:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d8dadd;
  --accent: #176bff;
  --accent-strong: #0958df;
  --danger: #b42318;
  --surface-hover: #f5f7fa;
  --radius: 999px;
  --motion-liquid: cubic-bezier(.22, 1, .36, 1);
  --motion-liquid-duration: 420ms;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  display: grid;
  grid-template-rows: 64px 1fr 52px;
}

button, input { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--surface);
  background: var(--text);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  padding-inline: clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.menu-wrap { position: relative; }
.menu-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  display: grid;
  place-content: center;
  gap: 4px;
  cursor: pointer;
}
.menu-button:hover { background: rgb(118 118 128 / 10%); }
.menu-button span { width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.site-menu {
  position: absolute;
  z-index: 10;
  inset-block-start: 50px;
  inset-inline-end: 0;
  width: 184px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgb(0 0 0 / 12%);
}
.site-menu a { min-height: 44px; padding-inline: 12px; border-radius: 9px; display: flex; align-items: center; color: var(--text); text-decoration: none; }
.site-menu a:hover { background: rgb(118 118 128 / 10%); }

main { min-height: 0; display: grid; place-items: center; }
.search-home { width: min(calc(100% - 32px), 760px); padding-block: 24px 112px; text-align: center; }
.wordmark {
  width: clamp(220px, 23vw, 292px);
  margin: 0 auto 38px;
  line-height: 0;
}
.wordmark img { display: block; width: 100%; height: auto; }
.mode-options {
  position: absolute;
  z-index: 2;
  inset: 54px 0 auto;
  min-height: 76px;
  padding: 10px 14px 12px 54px;
  border-block-start: 1px solid #eceef1;
  background: transparent;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transform-origin: top center;
  transition:
    opacity 200ms var(--motion-liquid),
    transform 300ms var(--motion-liquid),
    visibility 0s linear 300ms;
}
.mode-option {
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 22px;
  color: #3c4043;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease, transform 180ms var(--motion-liquid);
}
.mode-option svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mode-option span { font-size: 13px; }
.mode-option:hover { color: var(--text); background: #f3f4f6; transform: none; }
.mode-option.is-selected { border-color: #c9d7f6; color: var(--accent-strong); background: #f3f7ff; font-weight: 600; }
.modes-open .mode-options { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }

.search-composer { position: relative; height: 54px; }
.search-surface {
  position: absolute;
  z-index: 2;
  inset: 0;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 5px rgb(32 33 36 / 10%);
  overflow: hidden;
  transform: translateZ(0);
  transition: height var(--motion-liquid-duration) var(--motion-liquid), border-radius var(--motion-liquid-duration) var(--motion-liquid), border-color 140ms ease, box-shadow 180ms ease;
}
.search-composer.modes-open .search-surface { height: 132px; border-radius: 27px; box-shadow: 0 5px 16px rgb(32 33 36 / 14%); }
.search-composer.image-search-open .search-surface { height: 420px; border-radius: 24px; box-shadow: 0 5px 16px rgb(32 33 36 / 18%); }
.search-composer.voice-search-open .search-surface { height: 150px; border-radius: 27px; box-shadow: 0 5px 16px rgb(32 33 36 / 14%); }
.search-surface:hover { border-color: #c6c8cc; box-shadow: 0 2px 8px rgb(32 33 36 / 14%); }
.search-surface:focus-within { border-color: #aeb3ba; box-shadow: 0 2px 8px rgb(32 33 36 / 15%); }
.search-shell {
  position: relative;
  z-index: 1;
  min-height: 54px;
  padding: 3px 8px 3px 6px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 176px;
  gap: 4px;
  align-items: center;
  box-shadow: none;
  transform-origin: center top;
  transition: opacity 210ms ease, transform var(--motion-liquid-duration) var(--motion-liquid), border-color 140ms ease, box-shadow 140ms ease;
}
.image-search-panel {
  position: absolute;
  z-index: 2;
  inset: 54px 0 auto;
  min-height: 366px;
  padding: 14px 20px 20px;
  border-block-start: 1px solid #eceef1;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateY(12px);
  transform-origin: center top;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 210ms ease, transform var(--motion-liquid-duration) var(--motion-liquid);
}
.image-search-open .image-search-panel { opacity: 1; transform: none; pointer-events: auto; }
.image-search-heading { position: relative; min-height: 38px; display: grid; place-items: center; }
.image-search-heading h2 { margin: 0; font-size: 16px; font-weight: 500; }
.image-panel-close { position: absolute; inset-inline-end: -6px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; display: grid; place-items: center; cursor: pointer; }
.image-panel-close:hover { color: var(--text); background: var(--surface-hover); }
.image-panel-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.image-drop-zone { min-height: 178px; margin-top: 8px; border: 1px dashed #c9ccd1; border-radius: 14px; background: #f8f9fa; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); transition: border-color 160ms ease, background 160ms ease; }
.image-drop-zone.is-dragging { border-color: var(--accent); background: #f1f6ff; }
.image-drop-zone > svg { width: 40px; height: 40px; fill: none; stroke: #7799d9; stroke-width: 1.6; }
.image-drop-zone p { margin: 0; }
.upload-link { padding: 0; border: 0; color: var(--accent-strong); background: transparent; cursor: pointer; }
.upload-link:hover { text-decoration: underline; }
.image-divider { height: 44px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.image-divider::before, .image-divider::after { content: ""; height: 1px; flex: 1; background: #e1e3e6; }
.image-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
#image-url-input { min-width: 0; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; outline: 0; color: var(--text); background: var(--surface); }
#image-url-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgb(23 107 255 / 14%); }
#image-url-submit { min-width: 94px; height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-strong); background: var(--surface); cursor: pointer; }
#image-url-submit:hover { background: var(--surface-hover); }
#image-url-submit:disabled { color: #a8a8ad; background: var(--surface); cursor: default; opacity: .72; }
.image-search-panel[aria-busy="true"] .image-drop-zone,
.image-search-panel[aria-busy="true"] .image-link-row { opacity: .55; pointer-events: none; }
.image-search-panel[aria-busy="true"] #image-url-submit { color: var(--accent-strong); opacity: 1; }
.image-tag.preview-unavailable img { display: none; }
.image-panel-error { min-height: 18px; margin: 8px 4px 0; color: var(--danger); text-align: start; font-size: 13px; }
.voice-search-panel {
  position: absolute;
  z-index: 2;
  inset: 54px 0 auto;
  min-height: 96px;
  padding: 18px 20px 20px 58px;
  border-block-start: 1px solid #eceef1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
  text-align: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform var(--motion-liquid-duration) var(--motion-liquid), visibility 0s linear 300ms;
}
.image-search-panel[hidden], .voice-search-panel[hidden] { display: none; }
.voice-search-open .voice-search-panel { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.voice-search-panel h2 { margin: 0; font-size: 16px; font-weight: 560; }
.voice-search-panel p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.voice-pulse { width: 42px; height: 42px; border-radius: 50%; background: #f3f7ff; display: flex; align-items: center; justify-content: center; gap: 3px; }
.voice-pulse span { width: 3px; height: 12px; border-radius: 3px; background: var(--accent); animation: voice-wave 760ms ease-in-out infinite alternate; }
.voice-pulse span:nth-child(2) { height: 22px; animation-delay: -260ms; }
.voice-pulse span:nth-child(3) { height: 16px; animation-delay: -520ms; }
@keyframes voice-wave { to { transform: scaleY(.45); opacity: .55; } }
.voice-panel-close { width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; display: grid; place-items: center; cursor: pointer; }
.voice-panel-close:hover { color: var(--text); background: var(--surface-hover); }
.voice-panel-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.suggestions-open .search-shell {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
  border-block-end-color: transparent;
  box-shadow: 0 5px 12px rgb(32 33 36 / 13%);
}
.search-suggestions {
  position: absolute;
  z-index: 1;
  inset: calc(100% - 1px) 0 auto;
  margin: 0;
  padding: 7px 8px 10px;
  border: 1px solid var(--line);
  border-block-start: 0;
  border-radius: 0 0 24px 24px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgb(32 33 36 / 14%);
  list-style: none;
  text-align: start;
  transform-origin: top center;
  animation: suggestions-in 180ms var(--motion-liquid) both;
}
.suggestion-option {
  min-height: 44px;
  padding: 0 16px 0 58px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  color: var(--text);
  cursor: pointer;
  position: relative;
}
.suggestion-option::before {
  content: "";
  position: absolute;
  inset-inline-start: 22px;
  width: 12px;
  height: 12px;
  border: 1.6px solid var(--muted);
  border-radius: 50%;
}
.suggestion-option::after {
  content: "";
  position: absolute;
  inset-inline-start: 27px;
  width: 1.5px;
  height: 5px;
  background: var(--muted);
  transform: translateY(-1px);
  transform-origin: bottom;
}
.suggestion-option[aria-selected="true"], .suggestion-option:hover { background: var(--surface-hover); }
@keyframes suggestions-in {
  from { opacity: 0; transform: scaleY(.96); }
  to { opacity: 1; transform: scaleY(1); }
}
.mode-toggle svg, .clear-button svg, .voice-button svg, .image-button svg, .search-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-query { min-width: 0; display: flex; align-items: center; gap: 8px; }
#search-input { min-width: 0; flex: 1 1 auto; height: 46px; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 16px; }
#search-input::-webkit-search-cancel-button { appearance: none; }
#search-input::placeholder { color: #8e8e93; opacity: 1; }
.mode-toggle, .clear-button, .voice-button, .image-button, .search-submit { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.search-actions { display: flex; width: 176px; flex: 0 0 176px; align-items: center; justify-content: flex-end; gap: 0; }
.mode-toggle { color: var(--muted); background: transparent; }
.mode-toggle svg { transition: transform var(--motion-liquid-duration) var(--motion-liquid); }
.mode-toggle:hover { color: var(--text); background: var(--surface-hover); }
.modes-open .mode-toggle { color: var(--text); }
.modes-open .mode-toggle svg { transform: rotate(45deg); }
.mode-tag, .image-tag {
  min-height: 36px;
  max-width: 112px;
  padding-inline: 11px 9px;
  border: 1px solid #c9d7f6;
  border-radius: 9px;
  color: #174ea6;
  background: #f3f7ff;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  cursor: pointer;
  animation: tag-in 240ms var(--motion-liquid) both;
}
.mode-tag span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode-tag:hover { background: #eaf1ff; }
.image-tag { max-width: 170px; padding-inline: 4px 8px; color: var(--text); background: #f7f8fa; border-color: var(--line); }
.image-tag:hover { background: var(--surface-hover); }
.image-tag img { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 6px; object-fit: cover; background: #e8eaed; }
.image-tag-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
@keyframes tag-in { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: scale(1); } }
.clear-button { position: relative; color: var(--muted); background: transparent; }
.clear-button::before { content: ""; position: absolute; inset-inline-start: 0; width: 1px; height: 28px; background: var(--line); }
.clear-button:hover { background: var(--surface-hover); }
.voice-button, .image-button { color: var(--muted); background: transparent; }
.voice-button:hover, .image-button:hover { color: var(--text); background: var(--surface-hover); }
.voice-button[aria-pressed="true"] { color: var(--accent); background: #eef4ff; }
.search-submit { color: var(--accent-strong); background: transparent; }
.search-submit:hover { background: var(--surface-hover); }
.search-error, .search-status { min-height: 20px; margin: 10px 8px 0; text-align: start; font-size: 13px; }
.search-error { color: var(--danger); }
.search-status { color: var(--muted); }
.search-error:empty, .search-status:empty { visibility: hidden; }

footer { padding-inline: clamp(20px, 3vw, 36px); display: flex; justify-content: space-between; align-items: center; color: var(--muted); background: #f7f8f9; font-size: 13px; }
footer a { min-height: 44px; display: flex; align-items: center; text-decoration: none; }
footer a:last-child { justify-self: end; }
footer a:hover { color: var(--text); }

/* Results preserve the Thinkof rail as the page's single navigation surface. */
body.has-results { display: block; }
body.has-results {
  --results-header-left: clamp(24px, 3.75vw, 72px);
  --results-brand-width: 112px;
  --results-header-gap: 24px;
  --results-content-inset: 20px;
  --results-axis: calc(var(--results-header-left) + var(--results-brand-width) + var(--results-header-gap) + var(--results-content-inset));
}
body.has-results .site-header { position: absolute; inset: 10px 0 auto; z-index: 8; }
body.has-results main { display: block; place-items: normal; }
body.has-results .search-home {
  width: 100%;
  min-height: 96px;
  padding: 20px var(--results-header-left) 18px;
  border-bottom: 1px solid #eceef1;
  display: flex;
  align-items: center;
  gap: var(--results-header-gap);
  text-align: start;
}
body.has-results .wordmark { width: var(--results-brand-width); flex: 0 0 var(--results-brand-width); margin: 0; }
body.has-results #search-form { width: min(680px, calc(100vw - var(--results-axis) - 44px)); }
body.has-results .search-error:empty { display: none; }
body.has-results footer { margin-top: 56px; min-height: 52px; }

.results-experience {
  width: min(680px, calc(100% - var(--results-axis) - 24px));
  margin-inline-start: var(--results-axis);
  padding-block: 0 40px;
}
.scope-tabs { height: 48px; display: flex; align-items: end; gap: 24px; border-bottom: 1px solid #eceef1; }
.scope-tabs a { position: relative; padding: 0 2px 13px; color: var(--muted); text-decoration: none; font-size: 14px; }
.scope-tabs a:hover { color: var(--text); }
.scope-tabs a[aria-current="page"] { color: var(--accent-strong); }
.scope-tabs a[aria-current="page"]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.results-meta { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.results-list { display: grid; gap: 28px; padding-top: 24px; text-align: start; }
.result-card { max-width: 680px; }
.result-source { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; column-gap: 10px; min-height: 34px; }
.result-source-mark { width: 28px; height: 28px; border: 1px solid #e1e4e8; border-radius: 50%; display: grid; place-items: center; color: #4e5968; background: #f7f8fa; font-size: 12px; font-weight: 650; }
.result-source-name { color: #202124; font-size: 14px; }
.result-url { overflow: hidden; color: #5f6368; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.result-title { display: inline-block; margin-top: 4px; color: #174ea6; font-size: 20px; line-height: 1.3; text-decoration: none; }
.result-title:hover { text-decoration: underline; }
.result-snippet { max-width: 68ch; margin: 4px 0 0; color: #4d5156; font-size: 14px; line-height: 1.5; }
.result-news-time { color: var(--muted); }
.result-card-news { position: relative; min-height: 132px; padding-inline-end: 112px; }
.result-card-news::after { content: ""; position: absolute; inset: 8px 0 auto auto; width: 88px; height: 88px; border-radius: 12px; background: linear-gradient(145deg, #eef3fa, #dfe8f5); }
.result-card-news .result-source-mark { width: 20px; height: 20px; border: 0; font-size: 10px; }
.result-card-news .result-title { font-size: 19px; }
.result-news-time { display: block; margin-top: 9px; font-size: 12px; }
.image-module { max-width: 720px; }
.image-module h2 { margin: 0 0 12px; font-size: 18px; font-weight: 560; }
.image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; overflow: hidden; border-radius: 12px; }
.image-tile { min-height: 112px; padding: 12px; color: #384152; background: linear-gradient(145deg, #eef3fa, #dfe8f5); display: flex; align-items: end; font-size: 13px; line-height: 1.35; text-decoration: none; }
.image-tile:nth-child(3n + 2) { min-height: 148px; background: linear-gradient(160deg, #e9eef6, #d9e4f2); }
.image-tile:nth-child(3n + 3) { background: linear-gradient(135deg, #f2f4f8, #dde7ee); }
.map-module { width: min(940px, calc(100vw - var(--results-axis) - 24px)); min-height: 460px; border: 1px solid #e1e4e8; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: minmax(280px, 38%) minmax(360px, 1fr); background: var(--surface); }
.map-results-list { padding: 20px; border-inline-end: 1px solid #e1e4e8; }
.map-results-list h2 { margin: 0 0 20px; font-size: 20px; font-weight: 560; }
.map-results-list .result-card { padding-bottom: 20px; }
.map-canvas { position: relative; min-height: 460px; overflow: hidden; background-color: #e8f0ea; background-image: linear-gradient(28deg, transparent 46%, rgb(255 255 255 / 78%) 47% 50%, transparent 51%), linear-gradient(118deg, transparent 42%, rgb(190 211 198 / 70%) 43% 49%, transparent 50%), repeating-linear-gradient(0deg, transparent 0 54px, rgb(178 205 187 / 42%) 55px 56px), repeating-linear-gradient(90deg, transparent 0 68px, rgb(178 205 187 / 42%) 69px 70px); }
.map-canvas::before { content: ""; position: absolute; width: 54%; height: 110%; inset: -5% -14% auto auto; border-radius: 48%; background: #d9ecf6; }
.map-pin { position: absolute; z-index: 1; left: var(--pin-x); top: var(--pin-y); width: 32px; height: 32px; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--accent); box-shadow: 0 2px 8px rgb(32 33 36 / 24%); display: grid; place-items: center; font-size: 12px; font-weight: 700; transform: translate(-50%, -50%); }
.results-state { max-width: 680px; }
.state-card { margin-top: 28px; padding: 28px 0; text-align: start; }
.state-card h2 { margin: 0 0 7px; font-size: 20px; font-weight: 560; }
.state-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.state-card button { margin-top: 18px; min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-strong); background: var(--surface); cursor: pointer; }
.state-card button:hover { background: var(--surface-hover); }
.result-skeleton { max-width: 640px; padding-top: 28px; display: grid; gap: 12px; }
.result-skeleton span { height: 12px; border-radius: 8px; background: #eef0f2; animation: skeleton 1.1s ease-in-out infinite alternate; }
.result-skeleton span:first-child { width: 34%; }
.result-skeleton span:nth-child(2) { width: 72%; height: 20px; }
.result-skeleton span:last-child { width: 88%; }
@keyframes skeleton { to { opacity: .45; } }
.partial-notice { margin-top: 18px; padding: 12px 14px; border-radius: 10px; color: #754c00; background: #fff7e0; font-size: 13px; }
.pagination { min-height: 64px; margin-top: 38px; display: flex; gap: 8px; }
.pagination a { min-width: 42px; height: 42px; padding-inline: 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-strong); display: grid; place-items: center; text-decoration: none; }
.pagination a:hover { background: var(--surface-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-height: 620px) { .search-home { padding-block: 12px 40px; } }
@media (max-width: 520px) {
  body { grid-template-rows: 60px 1fr 52px; }
  .search-home { padding-block-end: 52px; }
  .wordmark { width: min(64vw, 260px); margin-block-end: 32px; }
  .search-shell { min-height: 52px; padding-inline-start: 4px; gap: 4px; }
  .search-home { width: min(calc(100% - 16px), 760px); }
  .mode-tag { max-width: 76px; padding-inline: 8px 6px; }
  .image-tag { max-width: 86px; }
  .mode-toggle, .clear-button, .voice-button, .image-button, .search-submit { width: 44px; height: 44px; }
  .search-actions { width: 132px; flex-basis: 132px; }
  .search-shell { grid-template-columns: 44px minmax(0, 1fr) 132px; }
  .clear-button:not([hidden]) ~ .voice-button { display: none; }
  .search-composer.modes-open .search-surface { height: 126px; }
  .mode-options { min-height: 72px; padding: 10px 8px 12px; justify-content: center; gap: 4px; }
  .mode-option { min-width: 0; min-height: 42px; padding-inline: 10px; }
  .search-composer.image-search-open .search-surface { height: 420px; border-radius: 20px; }
  .image-search-panel { height: 366px; min-height: 366px; padding-inline: 14px; }
  .image-drop-zone { min-height: 190px; padding: 20px; flex-direction: column; }
  .image-link-row { grid-template-columns: 1fr; }
  #image-url-submit { width: 100%; }
  .voice-search-panel { padding-inline: 16px 10px; grid-template-columns: auto minmax(0, 1fr) 44px; }
}
@media (max-width: 820px) {
  body.has-results { --results-axis: 12px; }
  body.has-results .search-home { min-height: 0; padding: 16px 12px 18px; display: block; }
  body.has-results .wordmark { width: 112px; margin: 0 0 16px 8px; }
  body.has-results #search-form { width: 100%; }
  body.has-results .site-header { display: none; }
  .results-experience { width: calc(100% - 24px); margin-inline: var(--results-axis); }
  .scope-tabs { gap: 20px; overflow-x: auto; }
  .image-grid { grid-template-columns: repeat(2, 1fr); }
  .map-module { width: 100%; min-height: 0; grid-template-columns: 1fr; }
  .map-results-list { border-inline-end: 0; border-block-end: 1px solid #e1e4e8; }
  .map-canvas { min-height: 300px; }
}
@media (forced-colors: active) { .search-shell:focus-within { outline: 3px solid Highlight; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-delay: 0ms !important; }
  .mode-options { transform: none !important; transition-property: opacity, visibility !important; transition-duration: 180ms, 0s !important; }
  .mode-toggle svg { transition-duration: 180ms !important; }
  .mode-tag { animation: none; }
  .search-suggestions { animation: none; }
  .search-surface, .search-shell, .image-search-panel { transition-duration: 0ms !important; }
  .voice-search-panel { transition-duration: 0ms !important; }
  .voice-pulse span { animation: none; }
  .result-skeleton span { animation: none; }
}
