/* Yarrow Studio — Collection Covers. Uses the page's own variables and the
   BTS / Image PDFs pages' shared pieces (.bts-head, .bts-modal-*, .log-row),
   so the pages look like one thing. */

#pageCovers .btn.sm, #coversModal .btn.sm { min-height: 34px; padding: 7px 12px; border-radius: 10px; font-size: 11.5px; gap: 7px; text-decoration: none; }
#coversOverlay .modal { width: min(1160px, 100%); }
#coversOverlay .modal.narrow { width: min(1040px, 100%); }

/* ---- the band, drawn as the website draws it ---- */
.cv-band { position: relative; display: block; width: 100%; aspect-ratio: 2560 / 900; border-radius: 14px; overflow: hidden; background: #141414; color: #f2f2f2; }
.cv-band.phone { aspect-ratio: 1200 / 800; border-radius: 12px; }
.cv-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-crop { position: absolute; inset: 0; overflow: hidden; }
.cv-crop img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; display: block; }
.cv-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 60%); }
.cv-name { position: absolute; inset: 0; display: flex; align-items: center; gap: 16px; padding: 0 6%; }
.cv-name i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .2em; color: rgba(242,242,242,.6); }
.cv-name b { font-family: var(--brand); font-weight: 500; font-size: clamp(15px, 2.1vw, 26px); letter-spacing: .14em; text-transform: uppercase; }
.cv-band.phone .cv-name { gap: 8px; }
.cv-band.phone .cv-name b { font-size: 11px; letter-spacing: .1em; white-space: nowrap; }
.cv-band.empty { display: flex; align-items: center; justify-content: center; padding: 0 24px; text-align: center; background: var(--panel-2); color: var(--muted); font-size: 12px; line-height: 1.6; border: 1.5px dashed var(--line); }

/* ---- the page: one panel per collection ---- */
.cv-row { display: flex; align-items: center; gap: 26px; padding: 18px; flex-wrap: wrap; }
.cv-row > .cv-band { flex: 1 1 380px; max-width: 560px; }
.cv-info { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.cv-info small { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cv-info h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.cv-info p { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--ink); font-size: 13px; }
.cv-info p b { font-weight: 600; color: var(--text); }
.cv-info .dim { color: var(--muted); font-size: 12px; }
.cv-info .warn { color: var(--warn); font-size: 12px; }
.cv-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--good-bg); color: var(--good); font-size: 11px; font-weight: 600; white-space: nowrap; }
.cv-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cv-tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: var(--panel-2); color: var(--ink); font-size: 11px; font-weight: 600; white-space: nowrap; }
.cv-acts { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; }
.cv-acts .btn { min-width: 150px; }

/* ---- the pop-up ---- */
.cv-steps { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cv-steps span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.cv-steps span i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--faint); font-style: normal; font-size: 11px; font-weight: 600; }
.cv-steps span.on, .cv-steps span.done { color: var(--text); font-weight: 650; }
.cv-steps span.on i, .cv-steps span.done i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cv-steps span + span::before { content: ""; width: 26px; height: 1px; background: var(--line); margin-right: 4px; }
.cv-bar { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; padding: 20px 28px 0; }
.cv-bar .search-box { max-width: none; }
.cv-note { padding: 12px 28px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.cv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 16px 28px 6px; }
.cv-tile { position: relative; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); color: var(--text); text-align: left; }
.cv-tile:hover { border-color: var(--faint); }
.cv-tile.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cv-pic { position: relative; display: flex; align-items: center; justify-content: center; height: 150px; background: var(--panel-2); color: var(--faint); }
.cv-pic > svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.cv-pic img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; display: block; }
.cv-tile .cv-tname { padding: 11px 13px 13px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-tile .cv-flag { position: absolute; top: 9px; left: 9px; padding: 3px 9px; border-radius: 999px; background: var(--panel); color: var(--text); font-size: 10.5px; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.cv-tile .cv-tick { position: absolute; top: 9px; right: 9px; display: none; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.cv-tile.on .cv-tick { display: inline-flex; }
.cv-tick svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cv-empty { padding: 46px 28px; text-align: center; color: var(--muted); font-size: 12.5px; }
.cv-more { padding: 8px 28px 18px; text-align: center; }

.cv-two { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-top: 1px solid var(--line-2); margin-top: 20px; }
.cv-left { display: flex; flex-direction: column; gap: 14px; padding: 20px 28px 22px; border-right: 1px solid var(--line-2); min-width: 0; }
.cv-right { display: flex; flex-direction: column; gap: 14px; padding: 20px 28px 22px; background: var(--tint); min-width: 0; }
.cv-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.cv-stage { position: relative; align-self: center; max-width: 100%; border-radius: 10px; overflow: hidden; background: #141414; line-height: 0; user-select: none; -webkit-user-select: none; }
.cv-stage > img { display: block; max-width: 100%; max-height: 400px; width: auto; height: auto; pointer-events: none; }
.cv-frame { position: absolute; padding: 0; border: 2px solid #fff; border-radius: 0; background: transparent; box-shadow: 0 0 0 4000px rgba(10,10,10,.62); cursor: grab; touch-action: none; display: flex; align-items: center; justify-content: center; }
.cv-frame:active { cursor: grabbing; }
.cv-frame:focus-visible { outline: 2px solid #7fb2ff; outline-offset: 2px; }
.cv-frame span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.94); color: #111; pointer-events: none; }
.cv-frame svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cv-hint { color: var(--muted); font-size: 12px; line-height: 1.55; }
.cv-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.cv-prev { display: flex; flex-direction: column; gap: 7px; }
.cv-prev > small { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 11.5px; font-weight: 600; }
.cv-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 190px)); gap: 16px; }

.cv-confirm { display: flex; flex-direction: column; gap: 18px; padding: 22px 28px 24px; }
.cv-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cv-what { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--tint); }
.cv-what h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.cv-what ul { margin: 0; padding: 0; }
.cv-what li { display: flex; gap: 10px; align-items: flex-start; list-style: none; padding: 4px 0; color: var(--ink); font-size: 13px; line-height: 1.5; }
.cv-what li svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; stroke: var(--good); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .cv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-two, .cv-pair { grid-template-columns: minmax(0, 1fr); }
  .cv-left { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .cv-acts { flex-direction: row; flex-wrap: wrap; }
}
