/* scene detect: "Find a scene" drop panel (web/scene_detect.js) */
.sd-drop { margin: 0 0 18px; }
.sd-zone { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px dashed var(--line, #3a3a44); border-radius: 14px; cursor: pointer;
  background: var(--card, rgba(255,255,255,.03)); transition: border-color .15s, background .15s; }
.sd-zone:hover, .sd-zone:focus-visible, .sd-zone.over { border-color: var(--accent, #e8a33d); background: rgba(232,163,61,.07); outline: none; }
.sd-ico .ic { width: 26px; height: 26px; opacity: .8; }
.sd-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sd-txt span { font-size: 13px; opacity: .75; }
.sd-out:empty { display: none; }
.sd-out { margin-top: 12px; }
.sd-q { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sd-q img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; }
.sd-q .sd-clear { margin-left: auto; }
.sd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sd-r { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: var(--card, rgba(255,255,255,.03)); }
.sd-r.sd-best { box-shadow: inset 0 0 0 1.5px var(--accent, #e8a33d); }
.sd-thumb img { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; background: rgba(127,127,127,.15); display: block; }
.sd-title { font-weight: 600; }
.sd-ts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sd-conf { text-align: center; min-width: 58px; }
.sd-conf b { display: block; font-size: 18px; }
.sd-conf span { font-size: 11px; opacity: .7; }
.sd-conf.hi b { color: #3fb37f; } .sd-conf.mid b { color: #e8a33d; } .sd-conf.lo b { opacity: .6; }
.sd-verdict { margin: 4px 0 10px; } .sd-verdict.ok b { color: #3fb37f; } .sd-verdict.mid b { color: #e8a33d; }
.sd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sd-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: var(--card, rgba(255,255,255,.03)); }
.sd-card.sd-picked { box-shadow: inset 0 0 0 1.5px var(--accent, #e8a33d); } .sd-card.sd-dim { opacity: .5; }
.sd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sd-pair img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: rgba(127,127,127,.15); display: block; }
.sd-ok { color: #3fb37f; margin: 0; }
.sd-rates { max-height: 46vh; overflow: auto; margin: 8px 0; }
.sd-rates input { width: 110px; }
.sd-ov td { background: rgba(232,163,61,.08); }
.sd-log { max-height: 30vh; overflow: auto; }
@media (max-width: 640px) {
  .sd-zone { flex-wrap: wrap; }
  .sd-r { grid-template-columns: 72px 1fr; }
  .sd-thumb img { width: 72px; height: 41px; }
  .sd-conf { grid-column: 2; text-align: left; display: flex; gap: 6px; align-items: baseline; }
}
.sd-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; line-height: 18px; background: rgba(127,127,127,.18); text-decoration: none; }
.sd-meta { min-width: 0; line-height: 1.35; }
.sd-meta .small { overflow-wrap: anywhere; }
@media (max-width: 640px) { .sd-r { grid-template-columns: 72px minmax(0, 1fr); align-items: start; } .sd-conf { grid-column: 1 / -1; } .sd-q { flex-wrap: wrap; } }
