/* YouTube comments: the report card (in answers and the screen) and the screen's link box and video list. */
.yt-card { max-width: 760px; margin: 8px 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.an-sheet-body .yt-card { margin: 0; }
.yt-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.yt-thumb { flex: none; width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--line-2); }
.yt-thumb--sm { width: 80px; }
.yt-titles { display: flex; flex-direction: column; min-width: 0; }
.yt-title { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
a.yt-title:hover { text-decoration: underline; }
.yt-sub { color: var(--muted); font-size: 12.5px; }
.yt-h { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 6px; }
.yt-h--list { margin-top: 8px; }
.yt-summary { margin: 0; font-size: 15px; line-height: 1.55; }

.yt-progress-text { font-weight: 500; }
.yt-bar { height: 8px; margin: 8px 0 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.yt-bar span { display: block; height: 100%; background: var(--ink); transition: width 0.4s; }
.yt-progress .rs-muted { margin: 0; font-size: 13px; }

.yt-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.yt-list ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.yt-list li { overflow-wrap: anywhere; }
.yt-n { margin-left: 6px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.yt-actions ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

.yt-tone-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line-2); }
.yt-tone-bar .is-positive { background: var(--ok); }
.yt-tone-bar .is-neutral { background: #a1a1aa; }
.yt-tone-bar .is-negative { background: var(--danger); }
.yt-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.yt-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.yt-legend .is-positive::before { background: var(--ok); }
.yt-legend .is-neutral::before { background: #a1a1aa; }
.yt-legend .is-negative::before { background: var(--danger); }

.yt-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.yt-row { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto; align-items: center; gap: 8px;
  width: 100%; padding: 3px 4px; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer;
  font-size: 13px; }
.yt-row:hover { background: var(--bg); }
.yt-row-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-row-track { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.yt-row-track span { display: block; height: 100%; background: var(--ink-2); border-radius: 999px; }

.yt-quotes { display: flex; flex-direction: column; gap: 8px; }
.yt-quote { margin: 0; padding: 8px 12px; border-left: 3px solid var(--line); border-radius: 0 8px 8px 0;
  background: var(--bg); display: flex; justify-content: space-between; gap: 12px; overflow-wrap: anywhere; }
.yt-quote.is-positive { border-left-color: var(--ok); }
.yt-quote.is-negative { border-left-color: var(--danger); }
.yt-likes { flex: none; color: var(--muted); font-size: 12.5px; }
.yt-more { display: flex; flex-wrap: wrap; gap: 8px; }

/* the screen */
.an-sheet.yt-sheet { width: min(820px, 100vw); max-width: 100vw; }
.yt-soon { padding: 12px 14px; border-radius: 10px; background: var(--line-2); margin: 0; }
.yt-form-row { display: flex; gap: 8px; }
.yt-input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 14px; background: var(--card); color: var(--ink); }
.yt-input:focus { outline: none; border-color: var(--ink); }
.yt-check:empty { display: none; }
.yt-check { margin-top: 10px; }
.yt-confirm { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  display: flex; flex-direction: column; gap: 10px; }
.yt-confirm p { margin: 0; }
.yt-confirm-row { display: flex; flex-wrap: wrap; gap: 8px; }
.yt-videos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.yt-video { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); }
.yt-video-main { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0;
  background: none; text-align: left; cursor: pointer; padding: 0; }
.yt-video-actions { display: flex; gap: 4px; }
.yt-sure { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; }

@media (max-width: 560px) {
  .yt-card { padding: 14px 12px; }
  .yt-thumb { width: 88px; }
  .yt-row { grid-template-columns: minmax(0, 7em) minmax(0, 1fr) auto; }
}
.yt-soon.ui-empty { padding: 40px 24px; background: var(--surface); }
.yt-soon p { margin: 0; max-width: 460px; }
.yt-ask-now { align-self: flex-start; white-space: normal; height: auto; min-height: 36px; padding: 8px 14px; text-align: left; }
.yt-question { margin-top: 8px; width: 100%; }
.yt-askbox { padding: 14px; border-radius: 12px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 8px; }
.yt-askbox .yt-h { color: var(--accent-ink); margin: 0; }
.yt-ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.yt-bar-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yt-another { flex-basis: 100%; }
.yt-another:empty { display: none; }

/* Online reviews: three sections (Google reviews, YouTube videos, any link) */
.yt-section { padding: 18px 0 20px; border-top: 1px solid var(--border); }
.yt-section:first-child { border-top: 0; padding-top: 4px; }
.yt-section-h { margin: 0 0 4px; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.yt-section-help { margin: 0 0 12px; }
.yt-section .yt-videos { margin-top: 12px; }
.yt-place { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px;
  margin-top: 8px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.yt-place .yt-titles { min-width: 0; }
@media (max-width: 560px) { .yt-place { flex-direction: column; align-items: stretch; } }
