/* Small additions for local behaviour on top of the original site's CSS. */
.sg-line-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-style: normal; font-size: 11px; line-height: 18px; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.sg-line-tag[data-steady="true"] { color: #1a7f4b; background: rgba(26, 127, 75, .12); }
.sg-line-tag[data-steady="false"] { color: #c2410c; background: rgba(194, 65, 12, .12); }
.sg-msg { margin: .6rem 0 0; font-size: 13px; line-height: 1.6; opacity: .9; }
.sg-msg[data-error="true"] { color: #e5484d; opacity: 1; }
.sg-msg[hidden] { display: none; }
.sg-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 10px; }
.sg-results.sg-single { grid-template-columns: minmax(0, 1fr); }
.sg-results figure { margin: 0; display: grid; gap: 6px; font-size: 12px; }
.sg-results img, .sg-results video { width: 100%; border-radius: 10px; background: rgba(127, 127, 127, .12); display: block; }
.sg-results a { color: inherit; }
.sg-history { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12px; }
.sg-history li { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; cursor: pointer; }
.sg-history li img { grid-row: span 2; width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.sg-history li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-history li small { grid-column: 2; opacity: .7; }
.sg-history li a { grid-row: 1 / span 2; grid-column: 3; color: inherit; }
.sg-preview[hidden] { display: none; }
.sg-preview { display: block; max-width: 100%; max-height: 240px; margin-top: 8px; border-radius: 10px; object-fit: contain; }
button[disabled] { cursor: not-allowed; opacity: .55; }
