/* Offer card v2 (beta toggle in profile) and the shared link-check row.
   Same palette as app.css. Hierarchy comes from type and spacing, not from boxes. */

/* ---------- Link check row (both card designs) ---------- */
.link-check { --tone: var(--muted); display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--border-soft); }
.brief-links { gap: 0; }
.brief-links > h2 { margin-bottom: 4px; }
.brief-links .link-check:first-of-type, .ov2-links .link-check:first-child { border-top: 0; }
.link-check--good { --tone: var(--success); }
.link-check--warn { --tone: var(--warning); }
.link-check--bad { --tone: var(--danger); }
.link-check-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.link-check-head strong { min-width: 0; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.link-check-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--tone); }
.link-check.is-checking .link-check-dot { animation: ov2-pulse 1.2s ease-in-out infinite; }
.link-check-verdict { margin-left: auto; flex: none; color: var(--tone); font-size: 12px; font-weight: 600; }
.link-check > * { margin: 0; }
.link-check-url { display: block; min-height: 0; padding-left: 15px; overflow: hidden; color: var(--accent); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
span.link-check-url { color: var(--subtle); }
.link-check-summary { margin: 0; padding-left: 15px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.link-check-more { padding-left: 15px; color: var(--subtle); font-size: 12px; }
.link-check-more summary { width: fit-content; min-height: 32px; padding: 6px 0; color: var(--muted); cursor: pointer; list-style: none; }
.link-check-more summary::-webkit-details-marker { display: none; }
.link-check-more summary::after { content: " ›"; display: inline-block; transition: transform .2s; }
.link-check-more[open] summary::after { transform: rotate(90deg); }
.link-check-more ul { margin: 0; padding: 0 0 4px 16px; line-height: 1.5; }

/* ---------- Layout ---------- */
.ov2 { --gap: 22px; font-feature-settings: "tnum" 1; letter-spacing: -.005em; }
.ov2-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ov2-top .back-button { margin: 0; }
.ov2-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.ov2-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ov2-status.is-warn { color: var(--warning); }
.ov2-status.is-good { color: var(--success); }

.ov2-head { display: flex; align-items: center; gap: 11px; margin-top: 20px; }
.ov2-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: none; overflow: hidden; border-radius: 50%; background: var(--accent-soft); color: #9dccff; font-size: 13px; font-weight: 700; }
.ov2-mark img { width: 100%; height: 100%; object-fit: cover; }
.ov2-head strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.ov2-head small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }

.ov2-kicker { display: block; color: var(--subtle); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ov2-price { margin-top: var(--gap); }
.ov2-amount { display: block; margin-top: 3px; font-size: clamp(32px, 10vw, 40px); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }
.ov2-amount.is-empty { font-size: 26px; letter-spacing: -.02em; color: var(--muted); }
.ov2-sub { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.ov2-scale { margin-top: 18px; }
.ov2-scale-track { position: relative; height: 18px; }
.ov2-scale-track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 2px; background: var(--border); }
.ov2-scale-band { position: absolute; top: 8px; height: 2px; background: #4a5664; }
.ov2-scale-tick { position: absolute; top: 4px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: var(--muted); }
.ov2-scale-point { position: absolute; top: 2px; width: 14px; height: 14px; margin-left: -7px; border: 3px solid var(--bg); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px #2a8cff55; animation: ov2-slide-in .6s cubic-bezier(.22,1,.36,1) both; }
.ov2-scale-labels { position: relative; height: 30px; color: var(--subtle); font-size: 11px; line-height: 1.25; }
.ov2-scale-labels span { position: absolute; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.ov2-scale-labels small { display: block; font-size: 10.5px; }
.ov2-scale-note { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.ov2-scale-note.is-good { color: var(--success); }
.ov2-scale-note.is-bad { color: var(--danger); }

.ov2 > .notice { margin: var(--gap) 0 0; }

.ov2-terms { display: grid; grid-template-columns: minmax(84px, 30%) minmax(0, 1fr); margin: var(--gap) 0 0; font-size: 14px; line-height: 1.35; }
.ov2-terms dt, .ov2-terms dd { margin: 0; padding: 11px 0; border-top: 1px solid var(--border-soft); }
.ov2-terms dt { padding-right: 12px; color: var(--muted); }
.ov2-terms dd { min-width: 0; overflow-wrap: anywhere; }
.ov2-terms dd.is-warn { color: var(--warning); }
.ov2-terms dt:last-of-type, .ov2-terms dd:last-of-type { border-bottom: 1px solid var(--border-soft); }
.ov2-terms dd:has(.ov2-company) { padding: 0; }
.ov2-company { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 0; padding: 11px 0; border: 0; border-radius: 0; background: none; color: var(--text); font: inherit; text-align: left; }
.ov2-company-copy { min-width: 0; flex: 1; }
.ov2-company-copy small { display: block; margin-top: 2px; color: var(--subtle); font-size: 11.5px; }
.ov2-company-mark { flex: none; color: var(--subtle); font-size: 15px; }
.ov2-company.is-good .ov2-company-mark { color: var(--success); }
.ov2-company.is-warn .ov2-company-mark { color: var(--warning); }
.ov2-company.is-bad .ov2-company-mark { color: var(--danger); }
.ov2-company:active { opacity: .7; }

/* Counterpart: who sent the offer, with a Telegram button. */
.ov2-counterpart { margin-top: var(--gap); }
.ov2-counterpart > .ov2-kicker { margin-bottom: 10px; }
.ov2-counterpart .ov2-person { padding: 0; }
.ov2-tg { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--accent); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .2s, transform .14s; }
.ov2-tg .icon { width: 16px; height: 16px; }
.ov2-tg:active { transform: scale(.97); background: var(--accent-soft); }
.ov2-terms dd.is-muted { color: var(--subtle); }

/* Tabs: plain text with an underline, one row, never wrap. */
/* Horizontal scroll only, and only when the tabs do not fit. */
.ov2-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 20px; margin: 28px -16px 0; padding: 12px 16px 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; touch-action: pan-x; background: var(--bg); border-bottom: 1px solid var(--border-soft); scrollbar-width: none; }
.ov2-tabs::-webkit-scrollbar { display: none; }
.ov2-tab { position: relative; display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 0; padding: 0 0 10px; border: 0; border-radius: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; }
.ov2-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .28s cubic-bezier(.22,1,.36,1); }
.ov2-tab.is-active { color: var(--text); }
.ov2-tab.is-active::after { transform: scaleX(1); }
.ov2-tab-count { color: var(--accent); font-size: 13px; }
.ov2-tab-mark { font-size: 12px; }
.ov2-tab-mark.is-good { color: var(--success); }
.ov2-tab-mark.is-warn { color: var(--warning); }
.ov2-tab-mark.is-bad { color: var(--danger); }

.ov2-panel { padding-top: 16px; animation: ov2-fade .22s ease-out; }
.ov2-panel[hidden] { display: none; }
.ov2-panel > .ai-advice { margin: 0 0 14px; }
.ov2-panel > .history { margin-top: 0; }
.ov2-panel .timeline-event { display: block; padding: 4px 0; border: 0; background: none; color: var(--muted); font-size: 12.5px; text-align: center; }
.ov2-panel .timeline-event > span { color: var(--muted); }
.ov2-panel .timeline-event > small { margin-left: 6px; color: var(--subtle); }
.ov2-panel .timeline-event .timeline-message { margin: 4px auto 0; max-width: 90%; color: var(--text); text-align: left; }
.ov2-panel > .full-button, .ov2-panel > button.secondary { margin-top: 14px; }
.ov2-composer { margin: 14px 0 0; padding: 0; border: 0; background: none; }

.ov2-brief { margin: 0; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; }
.ov2-brief.is-clamped { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 7; }
.ov2-links { margin: 18px 0 0; padding: 0; border: 0; background: none; }
.ov2-links > h2 { margin: 0 0 2px; color: var(--subtle); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ov2-panel .evidence-card { margin-top: 12px; }
.ov2-empty { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.ov2-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; text-decoration: none; }
.ov2-link .icon { width: 16px; height: 16px; }
.ov2-link.is-bad { color: var(--danger); }
/* Support: one quiet row under the tabs, the same on every tab and for both sides. */
.ov2-help { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 0; margin: 22px 0 4px; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--surface); color: var(--text); font: inherit; text-align: left; transition: background .18s, transform .14s; }
.ov2-help:active { background: var(--surface-hover); transform: scale(.99); }
.ov2-help-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--accent-soft); color: #8cc2ff; }
.ov2-help-icon .icon { width: 20px; height: 20px; }
.ov2-help-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ov2-help-copy strong { font-size: 14.5px; font-weight: 600; }
.ov2-help-copy small { color: var(--subtle); font-size: 12px; line-height: 1.35; }
.ov2-help-chevron { flex: none; color: var(--subtle); font-size: 20px; line-height: 1; }
.ov2-panel > .chat { margin-top: -4px; }

.ov2-verdict { --tone: var(--muted); position: relative; padding: 2px 0 2px 14px; }
.ov2-verdict::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 3px; background: var(--tone); }
.ov2-verdict.is-good { --tone: var(--success); }
.ov2-verdict.is-warn { --tone: var(--warning); }
.ov2-verdict.is-bad { --tone: var(--danger); }
.ov2-verdict strong { display: block; font-size: 15px; font-weight: 600; }
.ov2-verdict p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Decision bar: one primary button and, under it, a full-width two-part bar for the rest. */
.deal-actions.ov2-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.deal-actions.ov2-actions > .primary { width: 100%; min-height: 50px; font-size: 15px; }
.ov2-subactions { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; width: 100%; overflow: hidden; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); }
.ov2-subaction { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 46px; margin: 0; padding: 0 10px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .18s; }
.ov2-subaction + .ov2-subaction { border-left: 1px solid var(--border-soft); }
.ov2-subaction .icon { display: none; }
.ov2-subaction.is-danger { color: var(--danger); }
.ov2-subaction:active { background: var(--surface-hover); }
.ov2-subaction:disabled { opacity: .5; }

/* Reach proofs (advertiser): one tappable row per file. */
.ov2-proofs { display: grid; gap: 8px; }
.ov2-proof { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 0; padding: 10px 12px 10px 10px; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--surface); color: var(--text); font: inherit; text-align: left; transition: background .18s, transform .14s; }
.ov2-proof:active { background: var(--surface-hover); transform: scale(.99); }
.ov2-proof-preview { position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex: none; overflow: hidden; border-radius: 12px; background: var(--surface-raised); color: var(--subtle); }
.ov2-proof-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ov2-proof-preview .icon { width: 22px; height: 22px; }
.ov2-proof-play { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #000b; color: #fff; }
.ov2-proof-play .icon { width: 9px; height: 9px; fill: currentColor; stroke: none; }
/* Platform marks tint the empty preview so a video proof is still recognisable. */
.ov2-proof-preview.is-tiktok { background: #111; color: #fff; }
.ov2-proof-preview.is-instagram { background: linear-gradient(140deg, #5b3fd1, #c13584 55%, #f5a623); color: #fff; }
.ov2-proof-preview.is-telegram { background: #1f8ad2; color: #fff; }
.ov2-proof-preview.is-youtube { background: #d9302c; color: #fff; }
.ov2-proof-preview.is-vk { background: #2a6fd6; color: #fff; }
.ov2-proof-preview.is-tiktok .icon, .ov2-proof-preview.is-instagram .icon, .ov2-proof-preview.is-telegram .icon,
.ov2-proof-preview.is-youtube .icon, .ov2-proof-preview.is-vk .icon { width: 26px; height: 26px; }
.ov2-proof-copy { display: grid; gap: 1px; min-width: 0; flex: 1; }
.ov2-proof-copy strong { font-size: 15px; font-weight: 600; line-height: 1.25; }
.ov2-proof-value { overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ov2-proof-copy small { color: var(--subtle); font-size: 12px; }
.ov2-proof.is-stale .ov2-proof-copy small { color: var(--warning); }
.ov2-proof-chevron { flex: none; color: var(--subtle); font-size: 20px; line-height: 1; }

/* ---------- Safety page ---------- */
.ov2-title { margin: 18px 0 16px; font-size: 24px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; }
.ov2-section { margin-top: 28px; }
.ov2-section > .ov2-kicker { margin-bottom: 8px; }
.ov2-rows { border-bottom: 1px solid var(--border-soft); }
.ov2-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border-soft); font-size: 14px; line-height: 1.35; }
.ov2-row > span:first-child { flex: none; color: var(--muted); }
.ov2-row > span:last-child { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.ov2-row em { font-style: normal; }
.ov2-row em.is-good { color: var(--success); }
.ov2-row .is-bad, .ov2-row > .is-bad { color: var(--danger); }
.ov2-row > .is-warn { color: var(--warning); }
.ov2-row > .is-muted { color: var(--muted); }
.ov2-big { display: flex; align-items: baseline; gap: 8px; }
.ov2-big strong { font-size: 30px; font-weight: 650; letter-spacing: -.03em; }
.ov2-big span { color: var(--muted); font-size: 13.5px; }
.ov2-ratio { height: 4px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: var(--border); }
.ov2-ratio span { display: block; height: 100%; border-radius: inherit; background: var(--success); transform-origin: left; animation: ov2-grow .7s cubic-bezier(.22,1,.36,1) both; }
.ov2-note { margin: 8px 0 0; color: var(--subtle); font-size: 12.5px; line-height: 1.45; }
.ov2-note.is-warn { color: var(--warning); }
.ov2-person { display: flex; align-items: center; gap: 11px; padding-bottom: 8px; }
.ov2-person > div { min-width: 0; flex: 1; }
.ov2-person strong { display: block; font-size: 15px; font-weight: 600; }
.ov2-person small { display: block; color: var(--muted); font-size: 12.5px; }
.ov2-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.ov2-tools > button { width: 100%; min-height: 46px; justify-content: center; text-align: center; }
.ov2-tools > .is-danger { color: var(--danger); }
.ov2-companies summary { color: var(--text); cursor: pointer; list-style: none; }
.ov2-companies summary::-webkit-details-marker { display: none; }
.ov2-companies summary::after { content: " ›"; display: inline-block; color: var(--subtle); transition: transform .2s; }
.ov2-companies[open] summary::after { transform: rotate(90deg); }
.ov2-companies ul { margin: 8px 0 0; padding: 0; list-style: none; text-align: right; }
.ov2-companies li { padding: 4px 0; font-size: 13px; line-height: 1.35; }
.ov2-companies li small { display: block; color: var(--subtle); font-size: 11.5px; }
.ov2-footnote { margin: 24px 0 8px; color: var(--subtle); font-size: 11.5px; line-height: 1.5; }

@keyframes ov2-fade { from { opacity: 0; transform: translateY(4px); } }
@keyframes ov2-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes ov2-grow { from { transform: scaleX(0); } }
@keyframes ov2-slide-in { from { opacity: 0; transform: translateX(-14px); } }
@media (prefers-reduced-motion: reduce) {
  .ov2-panel, .ov2-ratio span, .ov2-scale-point, .link-check.is-checking .link-check-dot { animation: none; }
  .ov2-tab::after { transition: none; }
}

/* ---------- Autopilot catch-up (offer arrived while autopilot was off) ---------- */
.ai-catchup { display: grid; gap: 6px; margin: 0 0 14px; padding: 14px 16px 16px; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--surface); }
.ai-catchup-kicker { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ai-catchup > strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.ai-catchup > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ai-catchup > .primary { justify-self: start; min-height: 40px; margin-top: 6px; padding: 0 18px; font-size: 14px; }
.ai-catchup > .error-banner { margin-top: 6px; }

/* ---------- Blogger page: legal status and the always-visible offer button ---------- */
.creator-legal-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.creator-legal-status .registry-link { min-height: 32px; margin: 0; gap: 0; }
.creator-legal-dot { color: var(--subtle); }
.cooperate-bar > .full-button { width: 100%; }

/* ---------- Long lists: first few items, then "Показать ещё" ---------- */
.more-list { display: grid; gap: var(--space-sm); }
.more-list-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: var(--radius-md); background: transparent; color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; transition: background .18s, border-color .18s; }
.more-list-button small { color: var(--subtle); font-size: 12px; font-weight: 500; }
.more-list-button:active { background: var(--surface); border-color: var(--accent); }
.more-list > .support-rows + .more-list-button { margin-top: 2px; }

/* ---------- First launch: the agreement and the policy as two readable cards ---------- */
.legal-documents { display: grid; gap: 8px; }
.legal-document-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface-raised); color: var(--text); text-decoration: none; }
.legal-document-card > .icon:first-child { width: 22px; height: 22px; flex: none; color: #8cc2ff; }
.legal-document-card > .icon:last-child { width: 16px; height: 16px; flex: none; color: var(--subtle); }
.legal-document-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.legal-document-copy strong { font-size: 14.5px; font-weight: 600; }
.legal-document-copy small { color: var(--subtle); font-size: 12.5px; line-height: 1.35; }
.legal-acceptance-card .legal-consent-row { display: block; }

/* ---------- Public page editor: consent documents and manager confirmation ---------- */
.bio-editor-docs { display: grid; }
.bio-status { display: inline-block; margin-top: 3px; font-size: 12px; font-weight: 600; }
.bio-status--ok { color: var(--success); }
.bio-status--wait { color: var(--warning); }

/* ---------- Complaints and "my data" ---------- */
.report-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.report-row > button { grid-column: 1 / -1; }
.report-row-copy { display: grid; gap: 2px; min-width: 0; }
.report-row-copy small { color: var(--subtle); font-size: 12px; }
.my-data { display: grid; gap: 10px; }
.bio-invite-box { display: grid; gap: 6px; margin-top: 10px; }
.bio-invite-box small { color: var(--muted); font-size: 12.5px; }
.bio-invite { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); color: var(--text); font: 13px ui-monospace, Menlo, monospace !important; }
