.st-search-hero { max-width: 720px; }
.page-home .st-search-hero { margin-top: 18px; }

button.st-search-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d7e3f0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

button.st-search-open:hover,
button.st-search-open[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.st-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.st-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.st-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink, #10243a);
  font: inherit;
  font-size: 1rem;
  min-height: 48px;
  padding: 0;
}

.st-search-field input:focus { outline: none; }

.st-search-glass { display: inline-flex; color: var(--brand-2, #0e9cc6); }
.st-search-glass .ico { width: 20px; height: 20px; }

.st-search-nav .st-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(440px, calc(100vw - 24px));
  padding: 10px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(7, 29, 53, 0.18);
}

.st-search-nav .st-search-panel[hidden] { display: none; }

.st-search-nav .st-search-form {
  padding: 4px 6px 4px 8px;
  border: 1px solid var(--line, #e3eaf2);
  border-radius: 14px;
  background: #f7fafc;
}

.st-search-nav .st-search-field input { min-height: 42px; }

.st-search-back {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--navy, #071d35);
  cursor: pointer;
  box-shadow: none;
  padding: 0;
}

.st-search-hero .st-search-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-search-hero .st-search-form {
  padding: 8px 8px 8px 16px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(8, 16, 32, 0.18);
}

.page-search .st-search-hero .st-search-form {
  background: white;
  border: 1px solid var(--line, #e3eaf2);
  box-shadow: 0 10px 28px rgba(7, 29, 53, 0.06);
}

.st-search-hero .st-search-field input { font-size: 1.05rem; }

button.st-search-submit[type="submit"] {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--orange, #f28a22);
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  box-shadow: none;
}

button.st-search-submit[type="submit"]:hover { background: #dd7612; color: white; }

.st-search-form:focus-within {
  outline: 2px solid var(--brand, #13b9e8);
  outline-offset: 2px;
}

.st-search-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.st-search-suggest[hidden] { display: none; }

.st-search-suggest span {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st-search-suggest a {
  color: white;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.st-search-suggest a:hover { background: rgba(255, 255, 255, 0.24); color: white; }

.page-search .st-search-suggest,
.page-search .st-search-suggest a { color: var(--navy, #071d35); }
.page-search .st-search-suggest a { background: white; border: 1px solid var(--line, #e3eaf2); }

.st-search-pop {
  overflow: auto;
  background: white;
  color: var(--ink, #10243a);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(7, 29, 53, 0.16);
}

.st-search-nav .st-search-pop,
.st-search-hero .st-search-pop {
  margin-top: 8px;
  box-shadow: none;
  max-height: min(420px, 60vh);
}

.st-search-pop[hidden] { display: none; }

.st-search-status {
  margin: 0;
  padding: 12px 14px 4px;
  color: var(--muted, #5c7088);
  font-size: 0.92rem;
}

.st-search-status.is-busy::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid #d5e3ef;
  border-top-color: var(--brand, #13b9e8);
  vertical-align: -1px;
  animation: st-search-spin 0.7s linear infinite;
}

.st-search-group { padding: 6px; }

.st-search-cat {
  margin: 4px 8px 2px;
  color: var(--muted, #5c7088);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st-search-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.st-search-option:hover,
.st-search-option.is-active { background: #f3f8fc; color: inherit; }

.st-search-option img,
.st-search-option .st-search-ph {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
  background: #e7eef5;
}

.st-search-option span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.st-search-option strong { font-size: 0.98rem; letter-spacing: -0.02em; }
.st-search-option em,
.st-search-option small { color: var(--muted, #5c7088); font-style: normal; font-size: 0.82rem; }
.st-search-option b {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7f7fd;
  color: #08789c;
  font-size: 0.72rem;
  font-weight: 800;
}

.st-search-option.is-more { min-height: 40px; color: #0b8fb8; font-weight: 750; }
.st-search-option.is-more strong { color: #0b8fb8; font-size: 0.9rem; }

.st-search-empty { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px 14px; }
.st-search-empty p { margin: 0 0 4px; font-weight: 750; }
.st-search-empty span { color: var(--muted, #5c7088); font-size: 0.9rem; }

.top-end {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  min-width: 0;
}

.st-search-nav { position: relative; }

@media (max-width: 1200px) {
  .top-end .nav-toggle { order: 1; }
}

body.st-search-lock { overflow: hidden; }

.search-page { padding-bottom: 28px; }
.search-page h1 { margin-bottom: 16px; }
.search-note, .search-empty { margin-top: 18px; color: var(--muted, #5c7088); }
.search-empty {
  background: white;
  border-radius: 18px;
  padding: 18px 20px;
}
.search-empty h2 { font-size: 1.15rem; }
.search-group { margin-top: 22px; }
.search-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.search-group-head span { color: var(--muted, #5c7088); font-weight: 700; }
.search-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.search-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: white;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(7, 29, 53, 0.05);
}
.search-list a:hover { color: inherit; outline: 2px solid #d7f3fb; }
.search-list img, .search-thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  background: #e7eef5;
}
.search-list span { display: flex; flex-direction: column; min-width: 0; }
.search-list strong { letter-spacing: -0.02em; }
.search-list em, .search-list small { color: var(--muted, #5c7088); font-style: normal; }
.search-list b {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f7fd;
  color: #08789c;
  font-size: 0.75rem;
}
.search-more { margin: 8px 0 0; }
.search-more a { font-weight: 750; }

@keyframes st-search-spin { to { transform: rotate(360deg); } }

@media (max-width: 1280px) {
  .st-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .st-search-open { width: 42px; justify-content: center; padding: 0; }
}

@media (max-width: 860px) {
  .st-search-nav.is-fullscreen .st-search-panel {
    position: fixed;
    inset: 0;
    z-index: 90;
    width: auto;
    display: flex;
    flex-direction: column;
    padding: 12px 12px 16px;
    border-radius: 0;
    background: var(--paper, #f3f7fb);
    overflow: auto;
  }
  .st-search-nav.is-fullscreen .st-search-back { display: inline-flex; }
  .st-search-nav.is-fullscreen .st-search-form {
    position: sticky;
    top: 0;
    z-index: 1;
    background: white;
  }
  .st-search-nav.is-fullscreen .st-search-pop {
    max-height: none;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }
  .st-search-hero .st-search-form { padding-left: 12px; }
  .st-search-hero .st-search-pop { max-height: 52vh; }
  .st-search-submit,
  button.st-search-submit[type="submit"] { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-search-status.is-busy::before { animation: none; }
}
