/* Visucio refinements: the only colored aura belongs to the search field. */
.search-app [hidden] { display: none !important; }
.experience-page { position: relative; z-index: 1; }
.search-landing { background: transparent; }
.search-aura { position: relative; isolation: isolate; border-radius: 999px; }
.search-aura::before {
  content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, #87bbff 2%, #678fff 38%, #aa8aeb 70%, #8bb8ff);
  filter: blur(13px); opacity: .27; transition: opacity 200ms, filter 200ms;
  pointer-events: none;
}
.search-aura:focus-within::before { opacity: .55; filter: blur(16px); }
.search-capsule.vis-glass {
  background: var(--vis-surface); border: 1px solid var(--vis-border);
  box-shadow: 0 3px 14px rgba(22, 37, 68, .045); backdrop-filter: none; -webkit-backdrop-filter: none;
  --vis-muted: var(--vis-glass-muted);
}
.search-capsule:focus-within { border-color: var(--vis-action); box-shadow: 0 0 0 1px var(--vis-action); }
.search-form-large .search-submit, .search-capsule .search-submit {
  width: 48px; min-width: 48px; min-height: 48px; padding: .7rem; flex: none;
}
.search-form-large .search-capsule { min-height: 68px; padding: .55rem .55rem .55rem 1.4rem; }
.landing-focus { max-width: 710px; gap: 2.5rem; }
.search-brand-large { width: clamp(225px, 23vw, 285px); }
.search-choices { margin-top: 1.65rem; }
.search-choices span { font-size: .8125rem; padding: .6rem .9rem; }
.experience-page .search-footer { border: 0; }
.experience-modes {
  display: inline-flex; align-items: center; gap: .2rem; padding: .25rem;
  border-radius: 999px; border: 1px solid var(--vis-border); background: var(--vis-surface-soft);
}
.experience-modes a {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .55rem 1rem; min-height: 40px; border-radius: 999px; font-size: .8125rem;
  text-decoration: none; color: var(--vis-muted); font-weight: 500; white-space: nowrap;
}
.experience-modes a:hover { color: var(--vis-ink); }
.experience-modes a[aria-current] { background: var(--vis-surface); color: var(--vis-ink); box-shadow: 0 2px 5px #1428470b; }
.experience-modes .vis-icon { width: 17px; height: 17px; }
.appearance-controls { display: flex; align-items: center; gap: 1.3rem; }
.nature-settings { position: relative; z-index: 30; }
.appearance-button {
  display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .1rem;
  cursor: pointer; list-style: none; font-size: .8125rem; color: var(--vis-muted);
}
.appearance-button::-webkit-details-marker { display: none; }
.appearance-button .vis-icon { width: 18px; height: 18px; }
.nature-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(350px, calc(100vw - 2rem));
  padding: 1.35rem; border: 1px solid var(--vis-border); border-radius: 22px;
  background: var(--vis-surface); color: var(--vis-ink); box-shadow: var(--vis-shadow-lg);
}
.nature-panel-heading { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1rem; }
.nature-panel-heading strong { font-size: 1rem; font-weight: 600; }
.nature-panel-heading>span { color: var(--vis-muted); font-size: .8125rem; }
.appearance-theme { margin: .75rem 0 1rem; border-bottom: 1px solid var(--vis-border); padding-bottom: .5rem; }
.experience-page .nature-panel .theme-control { display: inline-flex; color: var(--vis-muted); }
.nature-options { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.scene-choice {
  position: relative; display: flex; flex-direction: column; padding: 0; gap: .45rem; text-align: left;
  border: 0; background: none; color: inherit; cursor: pointer; font: inherit; font-size: .75rem;
}
.scene-choice img, .scene-swatch {
  width: 100%; height: 75px; border-radius: 12px; object-fit: cover;
  outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 150ms;
}
.scene-swatch { display: grid; place-items: center; background: var(--vis-surface-soft); color: var(--vis-muted); border: 1px solid var(--vis-border); }
.scene-choice[aria-pressed=true] img, .scene-choice[aria-pressed=true] .scene-swatch { outline-color: var(--vis-action); }
.scene-choice>span:last-child { padding-block: .2rem; }
.nature-cycle { display: flex; align-items: center; gap: .6rem; margin-top: 1.3rem; font-size: .8125rem; cursor: pointer; }
.nature-cycle input { width: 17px; height: 17px; accent-color: var(--vis-action); }
.nature-playback { border-top: 1px solid var(--vis-border); margin-top: 1.1rem; padding-top: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.nature-playback .vis-button { font-size: .8125rem; }
.nature-playback>span, .nature-panel-note { font-size: .6875rem; color: var(--vis-muted); }
.nature-panel-note { margin-top: 1rem !important; }
.nature-backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #14251e; }
.nature-backdrop>img, .nature-backdrop>video { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.nature-backdrop>video { opacity: 0; transition: opacity 650ms ease; }
.nature-backdrop>video.is-ready { opacity: 1; }
.nature-shade { position: absolute; inset: 0; background: rgba(4, 12, 21, .48); }
body.is-nature { background: #14251e; }
.is-nature .search-brand img { filter: brightness(0) invert(1); }
.is-nature .experience-modes { border-color: #ffffff32; background: #07121f3b; }
.is-nature .experience-modes a, .is-nature .appearance-button, .is-nature .theme-control,
.is-nature .search-footer, .is-nature .chat-welcome, .is-nature .chat-note, .is-nature .chat-dock-top { color: #fff; }
.is-nature .experience-modes a[aria-current] { background: #ffffff26; color: #fff; box-shadow: none; }
.is-nature .search-choices span { color: #fff; }
.is-nature .search-choices input:checked+span, .is-nature .search-choices label:hover span { background: #ffffff24; color: #fff; border-color: #ffffff42; box-shadow: none; }
.is-nature .search-aura::before { opacity: .48; }
.is-nature .search-footer { text-shadow: 0 1px 5px #0005; }
.nature-credit { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem 1rem; color: #fff; font-size: .6875rem; padding: .6rem 1rem .2rem; }
.nature-credit>span { opacity: .8; }
.nature-credit a { text-underline-offset: 3px; }
.nature-credit button { background: #07121f60; color: #fff; border: 1px solid #ffffff38; border-radius: 999px; padding: .45rem .8rem; min-height: 36px; font: inherit; cursor: pointer; }
.chat-page { display: flex; flex: 1; flex-direction: column; min-height: 100dvh; }
.chat-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; padding: 1.2rem clamp(1.25rem, 3vw, 3rem); }
.chat-header .appearance-controls { justify-self: end; }
.chat-main { width: min(790px, calc(100% - 2.5rem)); margin: auto; padding: 2rem 0 4rem; }
.chat-welcome { text-align: center; padding: 1.5rem 0 2rem; }
.chat-emblem { display: inline-flex; margin-bottom: 1.3rem; color: var(--vis-action); }
.chat-emblem .vis-icon { width: 33px; height: 33px; stroke-width: 1.4; }
.chat-welcome h1 { font-size: clamp(1.75rem, 3.3vw, 2.4rem); line-height: 1.25; font-weight: 500; letter-spacing: -.055em; margin-bottom: .8rem !important; }
.chat-welcome p { color: var(--vis-muted); font-size: .9375rem; }
.is-nature .chat-welcome p, .is-nature .chat-emblem { color: #fff; }
.chat-thread { display: flex; flex-direction: column; gap: 1.8rem; }
.chat-dock { margin-top: .6rem; }
.chat-dock-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; font-size: .75rem; color: var(--vis-muted); }
.chat-new, .chat-copy { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; min-height: 40px; padding: .3rem .1rem; }
.chat-new { display: flex; gap: .4rem; align-items: center; white-space: nowrap; font-size: .75rem; }
.chat-new .vis-icon { width: 16px; height: 16px; }
.chat-composer { background: var(--vis-surface); border: 1px solid var(--vis-border); border-radius: 24px; padding: 1.1rem 1.15rem .8rem; box-shadow: 0 6px 25px #0b17370a; }
.chat-composer:focus-within { border-color: var(--vis-action); box-shadow: 0 0 0 1px var(--vis-action); }
.chat-composer textarea {
  display: block; width: 100%; min-height: 68px; max-height: 220px; background: transparent;
  color: var(--vis-ink); border: 0; padding: .1rem .2rem; font: inherit; line-height: 1.65;
  font-size: 1rem; resize: vertical; outline: none; box-shadow: none;
}
.chat-composer textarea::placeholder { color: var(--vis-muted); opacity: 1; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .5rem; }
.composer-identity { display: flex; align-items: center; gap: .45rem; color: var(--vis-muted); font-size: .75rem; }
.composer-identity .vis-icon { width: 16px; height: 16px; }
.chat-send { border-radius: 999px; width: 44px; height: 44px; min-width: 44px; padding: .6rem; }
.chat-send .vis-icon { transform: rotate(-90deg); }
.chat-composer[aria-busy=true] .chat-send .vis-icon { animation: chat-pulse 1s ease-in-out infinite alternate; }
@keyframes chat-pulse { to { opacity: .35; } }
.chat-suggestions { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.chat-suggestions button { min-height: 40px; font: inherit; font-size: .75rem; color: var(--vis-muted); background: transparent; border: 1px solid var(--vis-border); border-radius: 999px; padding: .55rem .9rem; cursor: pointer; }
.chat-suggestions button:hover:enabled { border-color: var(--vis-action); color: var(--vis-ink); }
.is-nature .chat-suggestions button { color: #fff; border-color: #ffffff4d; background: #07121f3b; }
.is-nature .chat-suggestions button:hover:enabled { color: #fff; border-color: #fff; }
.chat-suggestions button:disabled { opacity: .5; cursor: default; }
.chat-note { color: var(--vis-muted); font-size: .6875rem; text-align: center; margin-top: 1rem !important; line-height: 1.7; }
.chat-note span { display: block; margin-top: .15rem; opacity: .85; }
.chat-note a { text-underline-offset: 3px; }
.chat-main.has-conversation { margin: 0 auto; padding-top: 1.5rem; }
.has-conversation .chat-dock { margin-top: 1.4rem; }
.chat-message { min-width: 0; max-width: 100%; scroll-margin-top: 2rem; }
.chat-author { font-size: .75rem; font-weight: 600; margin-bottom: .55rem !important; }
.chat-message-user { align-self: flex-end; width: fit-content; max-width: 90%; padding: 1rem 1.3rem; border: 1px solid var(--vis-border); border-radius: 22px 22px 6px 22px; background: var(--vis-surface-soft); }
.chat-message-user .chat-message-content { white-space: pre-wrap; }
.chat-message-assistant { align-self: stretch; padding: .25rem .2rem; }
.chat-message-assistant .chat-author { color: var(--vis-accent-ink); }
.chat-message-content { font-size: .9375rem; line-height: 1.8; overflow-wrap: anywhere; color: var(--vis-ink); }
.chat-message-content p+p { margin-top: .65rem !important; }
.chat-message-content ul, .chat-message-content ol { padding-left: 1.5rem; margin-block: .75rem; }
.chat-message-content h3 { font-size: 1.1rem; font-weight: 600; margin-block: 1rem .5rem !important; }
.chat-message-content a { color: var(--vis-accent-ink); text-underline-offset: 3px; }
.chat-message-content code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em; padding: .1em .3em; border-radius: 5px; background: var(--vis-surface-soft); }
.chat-message-content pre { max-width: 100%; overflow: auto; padding: 1rem; border: 1px solid var(--vis-border); border-radius: 14px; background: var(--vis-surface-soft); margin-block: 1rem; }
.chat-message-content pre code { padding: 0; white-space: pre; overflow-wrap: normal; }
.chat-copy { color: var(--vis-muted); font-size: .6875rem; margin-top: .3rem; }
.chat-copy:hover { text-decoration: underline; }
.chat-truncated { margin-top: .7rem !important; font-size: .75rem; color: var(--vis-muted); }
.chat-error, .chat-unavailable { background: var(--vis-surface); border: 1px solid var(--vis-border); border-radius: 14px; padding: .9rem 1rem; font-size: .8125rem; color: var(--vis-ink); margin-bottom: 1rem !important; }
.chat-error { margin-top: 1rem !important; color: var(--vis-danger); }
.is-nature .chat-message-user { background: var(--vis-surface); }
.is-nature .chat-message-assistant { background: var(--vis-surface); padding: 1.25rem 1.4rem; border-radius: 20px; }
.result-tabs { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 900px) {
  .chat-header { grid-template-columns: 1fr auto; gap: 1rem; }
  .chat-header .search-brand { width: 126px; }
  .chat-header .experience-modes { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
  .chat-header .appearance-controls { grid-row: 1; grid-column: 2; }
}
@media (max-width: 760px) {
  .landing-top { padding: 1rem; gap: .5rem; }
  .appearance-controls { gap: .8rem; }
  .landing-top .theme-control { display: none; }
  .experience-modes a { padding: .45rem .85rem; font-size: .75rem; }
  .appearance-button { font-size: .75rem; gap: .35rem; }
  .landing-focus { gap: 2rem; }
  .landing-main { padding-inline: 1.2rem; padding-bottom: 5rem; }
  .search-form-large .search-capsule { min-height: 62px; padding: .4rem .4rem .4rem 1rem; }
  .search-form-large .search-submit, .search-capsule .search-submit { min-width: 44px; width: 44px; min-height: 44px; height: 44px; }
  .search-capsule input { font-size: 1rem; }
  .search-choices { gap: .1rem; }
  .search-choices span { padding: .6rem .7rem; font-size: .75rem; }
  .chat-header { padding: 1rem 1.2rem; }
  .chat-header .theme-control { display: none; }
  .chat-main { width: calc(100% - 2rem); padding: .5rem 0 2rem; }
  .chat-welcome { padding-top: 1rem; }
  .chat-welcome p { font-size: .8125rem; }
  .chat-message-user { max-width: 95%; }
  .chat-note span { display: none; }
  .chat-suggestions { gap: .5rem; }
  .chat-suggestions button { font-size: .6875rem; padding-inline: .7rem; }
  .chat-composer { border-radius: 20px; padding-inline: .9rem; }
  .result-toolbar { gap: .3rem; }
  .result-tabs { gap: 1rem; overflow-x: auto; scrollbar-width: thin; }
  .result-tabs .vis-icon { display: none; }
  .search-filters { flex: none; }
  .nature-credit { font-size: .625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .search-aura::before, .nature-backdrop>video { transition: none; }
  .chat-composer[aria-busy=true] .chat-send .vis-icon { animation: none; }
}
@media (forced-colors: active) {
  .search-aura::before, .nature-backdrop { display: none; }
  .scene-choice[aria-pressed=true] { outline: 2px solid Highlight; outline-offset: 4px; }
  .is-nature .experience-modes a, .is-nature .search-choices span, .is-nature .appearance-button,
  .is-nature .chat-welcome, .is-nature .chat-note, .is-nature .search-footer { color: CanvasText; }
}
@media (max-width: 440px) {
  .landing-top .appearance-button>span { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
  .landing-top .appearance-button { padding:.65rem; }
  .landing-top .experience-modes a { padding:.45rem .75rem; }
}
