.top .brand img { width: clamp(86px, 8vw, 116px); height: clamp(76px, 7vw, 94px); object-fit: contain }
.top nav a, .top .login { font-size: 1rem; font-weight: 650 }
.top nav a:hover { color: #c6ff00 }
.segments .stv-segment { color: inherit; padding: .4rem .65rem; border-radius: .55rem; transition: color .2s, background-color .2s, box-shadow .2s }
.segments .stv-segment:hover { color: #dcff78; background: #c6ff0018; box-shadow: 0 0 1rem #c6ff0024 }
.requirements { position: relative }
@property --stv-install-angle { syntax: "<angle>"; inherits: false; initial-value: 290deg }
.requirements::after {
  content: ""; position: absolute; inset: 0; padding: 2px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--stv-install-angle,290deg), transparent 10deg, #c6ff0030 25deg, #dfff80 46deg, transparent 66deg);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
@media (prefers-reduced-motion: no-preference) {
  .requirements::after { animation: stv-install-neon 20s linear infinite }
  @keyframes stv-install-neon { to { --stv-install-angle: 650deg } }
  .stv-map-notes > li { animation: stv-note-in .45s both }
  .stv-map-notes > li:nth-child(2) { animation-delay: .14s }
  .stv-map-notes > li:nth-child(3) { animation-delay: .28s }
  @keyframes stv-note-in { from { opacity: 0; transform: translateY(5px) } }
}
#feature-dialog.stv-demo-open { width: min(940px, 94vw); max-width: none; max-height: 90dvh; overflow: auto }
.stv-demo { margin: 1rem 0 1.25rem }
.stv-demo[hidden] { display: none }
.stv-demo p { margin: .4rem 0 .8rem }
.stv-demo-map { height: clamp(280px,48vh,410px); border: 1px solid #81956c; border-radius: .8rem; background: #d9e5d3; color: #182815 }
.stv-demo-map .leaflet-popup-content { font: .88rem/1.4 system-ui }
.stv-demo-map .leaflet-popup-content strong { display: block }
.stv-map-notes { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem }
.stv-map-notes li { border: 1px solid #a7c7774d; border-radius: .65rem; padding: .6rem; background: #293521 }
.stv-gallery {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .25rem .15rem .8rem; scrollbar-color: #adcf6d #26321e;
}
.stv-gallery.stv-scrollable { cursor: grab }
.stv-gallery.stv-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none }
.stv-gallery > article { flex: 0 0 clamp(116px, 36%, 184px); min-width: 0; scroll-snap-align: start }
.workflow > div { min-width: 0 }
#stv-workflow-tvs .stv-gallery { gap: .75rem }
#stv-workflow-tvs .stv-gallery > article { flex-basis: clamp(105px, 34%, 164px) }
#stv-workflow-tvs .stv-gallery-hint { margin: .6rem 0 }
.stv-gallery .stv-gallery-screen {
  position: relative; width: 100%; aspect-ratio: 9 / 16; box-sizing: border-box;
  border: 4px solid #222c1e; outline: 1px solid #87986c; outline-offset: -1px;
  border-radius: .7rem; overflow: hidden; background: #151b12;
}
.stv-gallery-screen :is(iframe,img) { width: 100%; height: 100%; border: 0; position: absolute; inset: 0 }
.stv-gallery-screen img { object-fit: cover; pointer-events: none }
.stv-gallery-screen img[hidden] { display: none }
.stv-gallery-screen iframe { pointer-events: none }
#feature-dialog #feature-cards[hidden] { display: none }
.stv-demo :is(button,.stv-gallery):focus-visible { outline: 2px solid #c6ff00; outline-offset: 2px }
@media(max-width: 650px) {
  .top .brand img { width: 85px; height: 72px }
  .top .login { font-size: .81rem }
  .stv-map-notes { grid-template-columns: 1fr }
}
