/* Shared tool surfaces inside the public site's normal header and footer. */
.tool-public-container { margin-top: 40px; }
.tool-public-surface {
  --app-ink: #172234;
  --app-muted: #788293;
  --app-orange: #ff8500;
  --app-line: #e1e5ec;
  --app-soft: #fff3e7;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 720px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 20px;
  background: #fff;
  color: var(--app-ink);
  box-shadow: 0 12px 40px #17223408;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  text-align: left;
  color-scheme: light;
}
.tool-public-surface *, .tool-public-surface *::before, .tool-public-surface *::after { box-sizing: border-box; }
.tool-public-surface [hidden] { display: none !important; }
.tool-public-surface :is(button, input, textarea, select) { font-family: inherit; }
.tool-public-surface button { cursor: pointer; }
.tool-public-surface button:disabled { cursor: wait; opacity: .55; }
.tool-public-surface :is(a, button, input, textarea):focus-visible { outline: 3px solid #c76200; outline-offset: 4px; }
.tool-public-surface .app-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:where(.tool-public-surface) .app-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--app-icon-ink, #465063); overflow: visible; transform-origin: center; }
.tool-public-surface .app-icon-accent { color: var(--app-icon-accent, var(--app-orange)); stroke: currentColor; }
.tool-public-surface .app-icon-accent[stroke="none"] { stroke: none; }
.tool-public-surface .app-icon > * { transform-box: fill-box; transform-origin: center; }
.tool-public-surface .ai-send { --app-icon-ink: #fff; --app-icon-accent: #ffe0ba; }
.tool-public-surface .ai-welcome h2 { color: var(--app-ink); font-family: inherit; }
.tool-public-surface .ai-welcome > p { line-height: 1.6; }
.tool-public-surface .ai-suggestions button { font-weight: 400; line-height: 1.5; }
.tool-public-surface .ai-compose textarea { width: 100%; border-radius: 0; box-shadow: none; }
.tool-public-surface .ai-links a { color: var(--app-ink); }
.tool-public-surface .models-search-workspace { flex: 1; }
.tool-public-surface .app-icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--app-ink); }
.tool-public-surface .app-icon-button:hover { background: var(--app-soft); }
.tool-public-surface .app-button { padding: 10px 14px; border: 1px solid var(--app-line); border-radius: 9px; background: #fff; color: var(--app-ink); font: inherit; }
.tool-public-surface .app-button:hover { border-color: var(--app-orange); }
.tool-public-surface :is(.models-search-submit, .models-search-clear, .ai-send) { flex-shrink: 0; }
.tool-public-surface .models-search-submit { --app-icon-ink: #fff; --app-icon-accent: #fff; }
.tool-public-surface .models-search-output .header-btn3::after,
.tool-public-surface .models-search-output .header-btn4::after { display: none; }
.tool-public-surface .models-search-output [data-gsc-preview-button]:hover { background: #ec7900; }
.tool-public-surface .models-search-output [data-gsc-source-button]:hover { border-color: var(--app-orange); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tool-public-surface :where(button, a[href], .ai-mark):not(:disabled):is(:hover, :focus-visible) .app-icon { animation: var(--app-glyph-motion, none) .72s ease-in-out both; }
  .tool-public-surface :where(button, a[href], .ai-mark):not(:disabled):is(:hover, :focus-visible) .app-icon > * { animation: var(--app-part-motion, none) .72s ease-in-out var(--app-part-delay, 0s) both; }
}
@media (max-width: 700px) {
  .tool-public-container { margin-top: 24px; }
  .tool-public-surface { height: 680px; border-radius: 16px; }
}
@media (max-height: 650px) {
  .tool-public-surface .ai-mark { display: block; }
  .tool-public-surface .models-search-mark { display: grid; }
  .tool-public-surface .ai-welcome { justify-content: center; }
}

/* Let public search results grow with the page instead of nesting a scroll area. */
.tool-public-search:has(.models-search-workspace[data-state="results"]) { height: auto; overflow: visible; }
.tool-public-search .models-search-output { flex: none; overflow: visible; overscroll-behavior: auto; }

/* Match the AI workspace's full-tab control on the public model search page. */
.models-search-form .models-search-expand { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 40px; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: var(--app-muted); cursor: pointer; }
.models-search-form .models-search-expand:hover { background: var(--app-soft); color: var(--app-orange); }
html.models-search-expanded-lock, body.models-search-expanded-lock { overflow: hidden; }
body > .tool-public-surface.tool-public-search.models-search-is-expanded { position: fixed; inset: 0; z-index: 2147483647; width: 100%; max-width: none; height: 100vh; height: 100dvh; margin: 0; overflow: hidden; border: 0; border-radius: 0; }
.models-search-is-expanded .models-search-workspace[data-state="welcome"] { overflow: auto; }
.models-search-is-expanded .models-search-workspace .models-search-output { flex: 1; overflow: auto; overscroll-behavior: contain; }
@media (max-width: 700px) {
  .models-search-form .models-search-expand { width: 28px; padding: 3px; }
}
