:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --soft: #f8f9fa;
  --link: #1a0dab;
  --link-visited: #681da8;
  --accent: #1f1f1f;
  --shadow: 0 1px 6px rgba(32, 33, 36, 0.12);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #202124;
  --surface: #202124;
  --ink: #e8eaed;
  --muted: #9aa0a6;
  --line: #3c4043;
  --soft: #303134;
  --link: #8ab4f8;
  --link-visited: #c58af9;
  --accent: #e8eaed;
  --shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.45;
  transition: background 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

.topbar {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left,
.topbar-right,
.top-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-minimal,
.search-brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.brand-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand-logo::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.28), rgba(52, 168, 83, 0.16) 42%, rgba(66, 133, 244, 0) 74%);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
}

.brand-logo img {
  width: 24px;
  height: 24px;
  display: block;
  position: relative;
  z-index: 1;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.brand-processing-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #34a853, #4285f4);
  box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.34);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-logo span {
  color: var(--muted);
}

.brand-logo.is-processing img,
body.app-processing .brand-logo img {
  filter: drop-shadow(0 0 6px rgba(66, 133, 244, 0.22));
}

.brand-logo.is-processing::before,
body.app-processing .brand-logo::before {
  opacity: 1;
  transform: scale(1);
  animation: brandProcessingGlow 1.35s ease-in-out infinite;
}

.brand-logo.is-processing .brand-processing-dot,
body.app-processing .brand-processing-dot {
  opacity: 1;
  transform: scale(1);
  animation: brandProcessingPulse 1.1s ease-out infinite;
}

.search-brand {
  min-width: 132px;
}

.search-brand span {
  color: var(--ink);
}

.top-links a,
.text-link,
.subtle-link,
.footer a,
.footer span {
  font-size: 0.88rem;
  color: var(--muted);
}

.text-link,
.icon-button,
.avatar-button,
.user-menu-action {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.icon-button:hover,
.avatar-button:hover {
  background: var(--soft);
}

.theme-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.user-menu-wrap {
  position: relative;
}

.avatar-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.avatar-button span {
  font-size: 0.8rem;
  font-weight: 700;
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--soft);
}

.user-menu {
  position: absolute;
  top: 44px;
  right: 0;
  min-width: 220px;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: none;
  z-index: 20;
}

.user-menu.is-open {
  display: block;
}

.user-menu-head {
  padding: 6px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.user-menu-head strong,
.user-menu-head span {
  display: block;
}

.user-menu-head span {
  color: var(--muted);
  font-size: 0.83rem;
}

.user-menu a,
.user-menu-action {
  width: 100%;
  display: block;
  text-align: left;
  padding: 10px 16px;
  color: var(--ink);
}

.user-menu a:hover,
.user-menu-action:hover {
  background: var(--soft);
  text-decoration: none;
}

.flash-stack {
  width: min(720px, calc(100vw - 32px));
  margin: 8px auto 0;
}

.flash {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-search {
  position: relative;
  min-height: calc(100vh - 128px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 16px 80px;
  isolation: isolate;
}

.home-atmosphere {
  position: absolute;
  inset: 8% 0 auto;
  height: min(56vw, 460px);
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.9;
  z-index: -1;
}

.home-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  mix-blend-mode: multiply;
  --orbit-x: -50%;
  --orbit-y: -50%;
  --orbit-scale: 1;
  --orbit-scale-mid: 1.08;
  animation: homeFloat 14s ease-in-out infinite;
}

.home-orbit-a {
  width: min(46vw, 440px);
  height: min(46vw, 440px);
  background: radial-gradient(circle at 30% 30%, rgba(76, 175, 80, 0.18), rgba(76, 175, 80, 0));
  --orbit-x: -70%;
  --orbit-y: -55%;
}

.home-orbit-b {
  width: min(38vw, 360px);
  height: min(38vw, 360px);
  background: radial-gradient(circle at 70% 35%, rgba(33, 150, 243, 0.16), rgba(33, 150, 243, 0));
  --orbit-x: -8%;
  --orbit-y: -30%;
  --orbit-scale-mid: 1.12;
  animation-duration: 17s;
}

.home-orbit-c {
  width: min(30vw, 300px);
  height: min(30vw, 300px);
  background: radial-gradient(circle at 45% 50%, rgba(255, 193, 7, 0.14), rgba(255, 193, 7, 0));
  --orbit-x: -28%;
  --orbit-y: -2%;
  --orbit-scale-mid: 1.15;
  animation-duration: 19s;
}

.home-mark {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  animation: markReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-mark span {
  color: var(--muted);
  font-weight: 500;
}

.searchbar {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(32, 33, 36, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.searchbar:hover,
.searchbar:focus-within {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.searchbar input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  padding: 12px 0;
}

.searchbar-home {
  min-height: 50px;
  animation: formReveal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s both;
}

.searchbar-home::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(76, 175, 80, 0.14), rgba(33, 150, 243, 0.12), rgba(255, 193, 7, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.searchbar-home:focus-within::before,
.searchbar-home:hover::before {
  opacity: 1;
}

.search-submit-state {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.search-submit-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(52, 168, 83, 0.38), rgba(66, 133, 244, 0.2) 45%, rgba(255, 193, 7, 0) 72%);
  transform: scale(0.2);
  opacity: 0;
}

.search-submit-wave-b {
  background: radial-gradient(circle, rgba(66, 133, 244, 0.32), rgba(52, 168, 83, 0.18) 45%, rgba(255, 193, 7, 0) 72%);
}

.search-submit-wave-c {
  background: radial-gradient(circle, rgba(255, 193, 7, 0.28), rgba(66, 133, 244, 0.16) 45%, rgba(52, 168, 83, 0) 72%);
}

.searchbar.is-submitting {
  border-color: rgba(66, 133, 244, 0.35);
  box-shadow: 0 10px 28px rgba(66, 133, 244, 0.16);
  transform: scale(1.012);
}

.searchbar.is-submitting .search-submit-state {
  opacity: 1;
}

.searchbar.is-submitting .search-submit-wave-a {
  animation: queryBloom 1.3s cubic-bezier(0.18, 0.7, 0.15, 1) infinite;
}

.searchbar.is-submitting .search-submit-wave-b {
  animation: queryBloom 1.3s cubic-bezier(0.18, 0.7, 0.15, 1) 0.22s infinite;
}

.searchbar.is-submitting .search-submit-wave-c {
  animation: queryBloom 1.3s cubic-bezier(0.18, 0.7, 0.15, 1) 0.44s infinite;
}

body.search-transition-active .home-mark,
body.search-transition-active .home-actions {
  opacity: 0.35;
  transform: translateY(-6px) scale(0.985);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.home-actions,
.home-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.home-meta {
  margin-top: 6px;
}

.home-actions {
  animation: fadeLift 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.16s both;
}

.search-layout {
  width: min(780px, calc(100vw - 32px));
  margin: 12px auto 48px;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.search-header-main {
  width: 100%;
}

.searchbar-results {
  width: 100%;
  max-width: none;
}

.search-summary {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 12px 0 24px;
}

.search-summary-inline {
  margin: 8px 0 0;
}

.search-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.search-tab {
  position: relative;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-tab:hover {
  text-decoration: none;
  color: var(--ink);
}

.search-tab.is-active {
  color: var(--link);
  font-weight: 600;
}

.search-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: var(--link);
}

.result-list {
  display: grid;
  gap: 26px;
  margin-top: 8px;
}

.result-row {
  max-width: 680px;
}

.result-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.result-head-copy {
  min-width: 0;
}

.result-favicon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 4px;
  flex: 0 0 18px;
  background: var(--soft);
}

.result-domain {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 3px;
}

.result-row h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
}

.result-row h2 a {
  color: var(--link);
}

.result-row h2 a:visited {
  color: var(--link-visited);
}

.result-url {
  display: inline-block;
  margin-top: 2px;
  color: #188038;
  font-size: 0.88rem;
  word-break: break-word;
}

html[data-theme="dark"] .result-url {
  color: #7bd88f;
}

.result-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.result-inline-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.image-card,
.video-card {
  display: grid;
  gap: 8px;
}

.image-thumb,
.video-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  position: relative;
}

.image-thumb-button,
.video-thumb-button {
  width: 100%;
  padding: 0;
  cursor: zoom-in;
}

.image-thumb img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.image-thumb:hover img,
.video-thumb:hover img {
  transform: scale(1.04);
}

.image-thumb.is-restricted::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.28);
}

.video-thumb.is-restricted::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.34);
}

.media-age-shield {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 20, 24, 0.78);
  color: #f3f4f6;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.video-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(18, 20, 24, 0.96), rgba(41, 48, 58, 0.88));
}

.video-thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 20, 24, 0.68);
  color: #f3f4f6;
  font-size: 1.3rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.video-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.video-meta-title {
  font-size: 0.96rem;
  line-height: 1.35;
  color: var(--ink);
}

.video-card-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8rem;
}

.image-meta-title {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink);
}

.image-meta-domain,
.image-meta-caption {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.image-meta-domain {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.verified-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(52, 168, 83, 0.12);
  border: 1px solid rgba(52, 168, 83, 0.28);
  color: #137333;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.verified-domain-lock {
  font-size: 0.78rem;
  line-height: 1;
}

html[data-theme="dark"] .verified-domain-badge {
  background: rgba(123, 216, 143, 0.12);
  border-color: rgba(123, 216, 143, 0.28);
  color: #7bd88f;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(12px);
}

.image-lightbox-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - 24px));
  height: min(92vh, 860px);
  margin: 4vh auto;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
}

.image-lightbox-figure {
  margin: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 0;
}

.image-lightbox-figure img {
  width: 100%;
  height: 100%;
  max-height: calc(92vh - 170px);
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  min-height: 0;
}

.video-lightbox-shell {
  height: min(92vh, 920px);
}

.video-lightbox-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(8, 12, 18, 0.92);
  overflow: hidden;
}

.video-lightbox-stage video,
.video-lightbox-stage iframe,
.video-lightbox-fallback img {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-lightbox-stage video,
.video-lightbox-stage iframe {
  min-height: 420px;
}

.video-lightbox-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 16px;
  padding: 18px;
  align-content: center;
}

.video-lightbox-fallback[hidden] {
  display: none;
}

.video-lightbox-fallback img {
  object-fit: contain;
  border-radius: 18px;
  min-height: 0;
}

.video-lightbox-fallback strong,
.video-lightbox-fallback p {
  margin: 0;
  justify-self: center;
  text-align: center;
  color: rgba(243, 244, 246, 0.9);
  max-width: 520px;
}

.video-lightbox-fallback p {
  color: rgba(243, 244, 246, 0.72);
}

.video-lightbox-fallback a {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
}

.image-lightbox-meta {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(17, 20, 24, 0.68);
  color: #f3f4f6;
  max-height: 22vh;
  overflow: auto;
}

.image-lightbox-meta span,
.image-lightbox-meta p,
.image-lightbox-meta a {
  color: rgba(255, 255, 255, 0.82);
}

.image-lightbox-meta p {
  margin: 0;
}

.image-lightbox-meta a {
  font-size: 0.92rem;
}

.image-lightbox-close,
.image-lightbox-nav {
  border: 0;
  color: #f3f4f6;
  background: rgba(17, 20, 24, 0.72);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.image-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
}

.image-lightbox-nav {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  font-size: 1.5rem;
}

body.gallery-open {
  overflow: hidden;
}

.empty-state {
  padding: 20px 0;
  color: var(--muted);
}

.panel,
.empty-card,
.token-box,
.search-meta > div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.panel {
  padding: 22px;
}

.panel-dark {
  background: var(--soft);
}

.dashboard-shell,
.detail-shell {
  width: min(1040px, calc(100vw - 32px));
  margin: 12px auto 48px;
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.property-card,
.dashboard-hero {
  display: grid;
  gap: 16px;
}

.dashboard-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-identity h1 {
  margin: 0;
}

.dashboard-policy-note {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(251, 188, 4, 0.08);
}

.dashboard-policy-note p,
.adult-domain-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbc04, #ea8600);
  border: 1px solid rgba(123, 63, 0, 0.28);
  color: #3b2200;
  box-shadow: 0 6px 16px rgba(234, 134, 0, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.property-head,
.stat-row,
.action-row,
.inline-form,
.result-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.property-head {
  justify-content: space-between;
  align-items: flex-start;
}

.property-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.stat-row > div,
.search-meta > div {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  background: var(--soft);
}

.stat-row strong,
.search-meta strong {
  display: block;
}

.status {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.82rem;
}

.status-verified {
  color: #188038;
}

.status-pending {
  color: #b06000;
}

.status-adult {
  background: rgba(179, 38, 30, 0.12);
  color: #b3261e;
}

.token-box {
  padding: 14px;
  background: var(--soft);
}

.inline-form input {
  flex: 1;
  min-width: 220px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 0.9rem;
}

.checkbox-row input {
  margin-top: 2px;
}

.adult-domain-note {
  padding: 12px 14px;
  border: 1px solid rgba(234, 134, 0, 0.24);
  border-radius: 14px;
  background: rgba(251, 188, 4, 0.08);
  color: var(--ink);
}

.result-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.result-card strong,
.result-card span,
.result-card p {
  display: block;
}

.result-card span,
.result-card p,
.error-text {
  color: var(--muted);
}

.property-cloud,
.result-list.compact {
  display: grid;
  gap: 12px;
}

.footer {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
}

.btn-primary {
  background: var(--soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes queryBloom {
  0% {
    transform: scale(0.18);
    opacity: 0;
  }
  18% {
    opacity: 0.9;
  }
  100% {
    transform: scale(22);
    opacity: 0;
  }
}

@keyframes brandProcessingGlow {
  0% {
    opacity: 0.18;
    transform: scale(0.78);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.08);
  }
  100% {
    opacity: 0.18;
    transform: scale(0.78);
  }
}

@keyframes brandProcessingPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.34);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(66, 133, 244, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
  }
}

@keyframes homeFloat {
  0%,
  100% {
    transform: translate(var(--orbit-x), var(--orbit-y)) scale(var(--orbit-scale));
  }
  50% {
    transform: translate(calc(var(--orbit-x) + 4%), calc(var(--orbit-y) + 4%)) scale(var(--orbit-scale-mid));
  }
}

@keyframes markReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    letter-spacing: -0.03em;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: -0.06em;
  }
}

@keyframes formReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .topbar,
  .search-header {
    width: calc(100vw - 24px);
  }

  .topbar-left .top-links {
    display: none;
  }

  .search-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search-brand {
    min-width: 0;
  }

  .home-mark {
    text-align: center;
  }

  .home-atmosphere {
    inset: 12% 0 auto;
    height: 320px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-lightbox-shell {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    height: min(94vh, 860px);
  }

  .image-lightbox-figure img {
    max-height: calc(94vh - 190px);
  }
}

@media (max-width: 520px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .image-lightbox-shell {
    width: calc(100vw - 12px);
    margin: 3vh auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    height: 94vh;
  }

  .image-lightbox-close {
    position: static;
    justify-self: end;
  }

  .image-lightbox-nav {
    position: absolute;
    top: 42%;
    width: 44px;
    height: 44px;
  }

  .image-lightbox-prev {
    left: 8px;
  }

  .image-lightbox-next {
    right: 8px;
  }

  .image-lightbox-figure img {
    max-height: calc(94vh - 220px);
    border-radius: 18px;
  }

  .image-lightbox-meta {
    max-height: 24vh;
    padding: 14px 16px;
  }
}
