.home { background: #07080a; }
.storm-home {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.storm-backdrop, .storm-backdrop picture, .storm-backdrop img, .storm-video {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}
.storm-backdrop { z-index: -1; pointer-events: none; background: #07080a; }
.storm-backdrop img, .storm-video { display: block; object-fit: cover; object-position: center; }
.storm-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(4 7 13 / 50%), transparent 29%);
}
.storm-video { opacity: 0; transition: opacity .35s linear; }
.storm-video.is-playing { opacity: 1; }
.search-dock {
  --dock-gap: clamp(26px, 6.5vh, 82px);
  --field-height: 62px;
  position: absolute;
  left: 0; right: 0; bottom: 34px;
  margin: 0 auto;
  width: calc(100% - 40px);
  max-width: 35rem;
  bottom: calc(max(var(--dock-gap), env(safe-area-inset-bottom)) + var(--keyboard-inset, 0px));
  inset-inline: 0;
  margin-inline: auto;
  width: min(35rem, calc(100% - 40px));
}
.search-form {
  display: flex;
  align-items: center;
  gap: 13px;
  height: var(--field-height);
  padding: 6px 7px 6px 21px;
  background: rgba(10,14,22,.89);
  background: rgb(10 14 22 / 89%);
  border: 1px solid rgb(225 234 250 / 42%);
  border-radius: 100px;
  box-shadow: 0 10px 46px rgb(0 0 0 / 42%), inset 0 1px 0 rgb(255 255 255 / 6%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.search-form:focus-within { border-color: #a6b6ff; box-shadow: 0 0 0 2px rgb(120 142 255 / 26%); }
.search-form > .icon-search { color: #e0e7ef; }
.search-form input {
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  background: transparent;
  color: #f3f5f8;
  caret-color: #92a5ff;
  border: 0;
  outline: 0;
  font: 450 1.02rem/1.4 var(--sans);
}
.search-form input::placeholder { color: #c5ceda; opacity: 1; }
.search-submit {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #07080a;
  background: #f3f5f8;
}
.search-submit:hover, .search-submit:focus-visible { background: #c2ccff; }
.submit-arrow { position: relative; width: 18px; height: 14px; }
.submit-arrow::before, .submit-arrow::after { content: ""; position: absolute; }
.submit-arrow::before { top: 6px; left: 0; width: 17px; height: 2px; background: currentColor; }
.submit-arrow::after { right: 1px; top: 2px; width: 10px; height: 10px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.search-results {
  position: absolute;
  left: 0; right: 0;
  max-height: 45vh;
  inset-inline: 0;
  bottom: calc(100% + 10px);
  max-height: min(25rem, calc(var(--usable-height, 100vh) - var(--dock-gap) - var(--field-height) - 22px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 5px;
  background: #101318;
  color: #f3f5f8;
  border: 1px solid #39424f;
  border-radius: 17px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 42%);
}
.report-card, .score-results li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 13px;
}
.report-card { border-radius: 11px; text-decoration: none; }
.report-card:hover, .report-card:focus-visible, .more-results:hover { background: #202935; }
.report-card:focus-visible { outline-offset: -2px; }
.report-card h3, .result-company strong { font-size: 1rem; font-weight: 600; }
.result-ticker, .result-company span { font: .85rem/1.4 var(--numeric); color: #abb6c5; }
.result-open { margin-left: auto; color: #afbdff; font-size: 1.22rem; }
.score-results { list-style: none; padding: 0; }
.score-results li + li { border-top: 1px solid #252c35; }
.result-company, .result-score { display: flex; flex-direction: column; }
.result-score { align-items: flex-end; margin-left: auto; }
.result-score b { font-size: .9rem; }
.result-score small { font-size: .76rem; color: #aeb8c4; }
.more-results { width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: #afbdff; }
.empty-message { padding: 13px; color: #c5cdd9; }
@media (max-width: 660px) {
  .search-dock { --field-height: 56px; --dock-gap: clamp(26px, 8vh, 78px); }
  .search-form { padding: 5px 5px 5px 17px; gap: 10px; }
  .search-form input { font-size: 16px; }
  .search-submit { height: 44px; width: 44px; }
}
@media (max-height: 460px) { .search-dock { --dock-gap: 16px; --field-height: 54px; } }
@media (prefers-reduced-motion: reduce) { .storm-video { display: none; } }

.storm-backdrop img, .storm-video { filter: hue-rotate(13deg); }
