/* AI Visibility screens of the demo: Prompts, Competitors and Sources (screens/visibility.js). */

/* ─────────────── Shared ─────────────── */
.awd-v-type { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--line); background: var(--bg); font-size: 12px; font-weight: 500; color: var(--gray); white-space: nowrap; }
.awd-v-type i { width: 8px; height: 8px; }
.awd-v-rank { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; background: var(--green-bg); color: var(--green); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.awd-v-rank--them { background: var(--bg-3); color: var(--ink); }
.awd-v-ptext { display: inline-block; min-width: 220px; line-height: 20px; }
.awd-v-logos { display: inline-flex; align-items: center; gap: 4px; }
.awd-v-gap { margin-top: 20px; }
.awd-v-legend { margin-top: 12px; }
.awd-table .awd-v-n { width: 40px; }
.awd-v-field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; color: var(--ink); font-size: 13px; font-weight: 500; }
.awd-v-field .awd-input.is-bad { border-color: var(--red); }
.awd-v-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.awd .awd-v-chips button { height: 28px; padding: 0 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--gray); }
.awd .awd-v-chips button:hover { color: var(--ink); border-color: var(--line-strong); }
.awd .awd-v-chips button.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ─────────────── Prompts: scores ─────────────── */
.awd-v-top__head { padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.awd-v-gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.awd-v-g { display: flex; flex-direction: column; gap: 12px; padding: 20px; min-width: 0; }
.awd-v-g + .awd-v-g { border-left: 1px solid var(--line-faint); }
.awd-v-g__lab { font-size: 13px; font-weight: 500; color: var(--ink); }
.awd-v-g__row { display: flex; align-items: center; gap: 14px; }
.awd-v-g__row .awd-ring b { display: none; }
.awd-v-g__num { font-size: 36px; line-height: 1; font-weight: 400; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.awd-v-g__help { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; font-size: 13px; color: var(--gray); }
@media (max-width: 1100px) {
  .awd-v-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awd-v-g:nth-child(3) { border-left: 0; }
  .awd-v-g:nth-child(n+3) { border-top: 1px solid var(--line-faint); }
}
@media (max-width: 520px) {
  .awd-v-gauges { grid-template-columns: minmax(0, 1fr); }
  .awd-v-g + .awd-v-g { border-left: 0; border-top: 1px solid var(--line-faint); }
  .awd-v-g { padding: 16px; }
  .awd-v-g__num { font-size: 32px; }
}

/* ─────────────── Prompts: table ─────────────── */
.awd-v-ptable { min-width: 980px; }
.awd-v-ptable .awd-v-col { width: 104px; }
.awd-v-topic td { background: var(--bg-2); }
.awd-v-topic:hover td { background: var(--bg-3) !important; cursor: pointer; }
.awd-v-topic__t { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.awd-v-topic__t .awd-i { color: var(--gray-2); }
.awd-v-count { height: 20px; padding: 0 6px; display: inline-flex; align-items: center; background: var(--bg-4); color: var(--gray); font-size: 12px; font-weight: 500; }
.awd-v-share { display: flex; flex-direction: column; gap: 4px; }
.awd-v-share i { display: block; width: 56px; height: 4px; background: var(--line-faint); overflow: hidden; }
.awd-v-share b { display: block; height: 100%; background: var(--brand); }
.awd-v-prow td:first-child { padding-left: 38px !important; }
.awd-v-wait { display: inline-flex; align-items: center; gap: 8px; color: var(--gray); font-size: 13px; }
.awd-v-addrow td { padding: 4px 8px 4px 34px !important; height: auto; }
.awd-v-addrow:hover td { background: none !important; }
.awd .awd-v-addp { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; color: var(--gray); font-size: 13px; font-weight: 500; }
.awd .awd-v-addp:hover { background: var(--bg-3); color: var(--ink); }

/* ─────────────── Prompt panel ─────────────── */
.awd .awd-v-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 1px; padding: 0; margin-bottom: 24px; background: var(--line); border: 1px solid var(--frame); }
.awd .awd-v-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; background: var(--bg); text-align: left; min-width: 0; }
.awd .awd-v-tile:hover { border-color: var(--line-strong); }
.awd .awd-v-tile.is-on { box-shadow: inset 0 0 0 1px var(--ink); }
.awd .awd-v-tile .awd-name { font-size: 13px; font-weight: 500; }
.awd .awd-v-tile b { font-size: 24px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.awd .awd-v-tile span:last-child { font-size: 12px; color: var(--gray); }
.awd-v-sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.awd-v-named li { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line-faint); }
.awd-v-named li:last-child { border-bottom: 0; }
.awd-v-named li .awd-tag { margin-left: auto; }
.awd-v-named li.is-you { background: color-mix(in oklab, var(--brand) 5%, var(--bg)); }
.awd-v-named__n { width: 18px; color: var(--gray-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.awd-v-checks { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.awd-v-checks i { width: 16px; height: 16px; border: 1px solid var(--line); background: var(--bg); }
.awd-v-checks i.is-on { border-color: var(--brand); background: var(--brand); }
.awd-v-cites li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 16px; border-bottom: 1px solid var(--line-faint); }
.awd-v-cites li:last-child { border-bottom: 0; }
.awd-v-cites li > .awd-name { flex: 1; min-width: 0; }
@media (min-width: 900px) {
  .awd-sheet .awd-v-sheet-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}

/* ─────────────── Competitors ─────────────── */
.awd-v-quad { position: relative; padding: 0 0 4px 18px; }
.awd-v-quad svg { display: block; width: 100%; height: auto; overflow: visible; }
.awd-v-quad__grid line { stroke: var(--line-faint); stroke-width: 1; }
.awd-v-ax { fill: var(--gray-2); font-size: 12px; }
.awd-v-dot { cursor: pointer; }
.awd-v-dot text { fill: var(--ink); font-size: 13px; font-weight: 500; }
.awd-v-dot.is-you { cursor: default; }
.awd-v-dot.is-you text { font-weight: 600; fill: var(--signal-ink); }
.awd-v-dot:hover circle { fill-opacity: 1; }
.awd-v-quad__y { position: absolute; left: -6px; top: 42%; transform: rotate(-90deg); font-size: 12px; color: var(--gray); }
.awd-v-quad__x { display: block; text-align: center; font-size: 12px; color: var(--gray); }
.awd-v-split { display: flex; gap: 2px; height: 40px; margin-bottom: 14px; overflow: hidden; }
.awd-v-split i { height: 100%; }
.awd-main--competitors .awd-legend { flex-direction: column; gap: 10px; }
.awd-main--competitors .awd-legend span { justify-content: flex-start; color: var(--ink); }
.awd-main--competitors .awd-legend b { margin-left: auto; font-weight: 500; }
.awd-v-ctable { min-width: 760px; }
.awd-v-heatt { min-width: 640px; }
.awd-v-tname { font-weight: 500; white-space: nowrap; }
.awd-v-heat { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 26px; padding: 0 8px; background: color-mix(in oklab, var(--brand) calc(var(--a) * 40%), var(--bg)); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink); }
.awd-v-heat.is-best { box-shadow: inset 0 0 0 1.5px var(--brand); font-weight: 600; }

/* ─────────────── Sources ─────────────── */
.awd-v-share-f { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.awd-v-sharebar { display: flex; gap: 2px; height: 40px; overflow: hidden; }
.awd .awd-v-sharebar button { height: 100%; min-width: 40px; font-size: 13px; font-weight: 500; transition: opacity .15s; }
.awd .awd-v-sharebar button.is-dim { opacity: .35; }
.awd-v-share-f .awd-legend { gap: 6px 20px; color: var(--ink); }
.awd-v-share-f .awd-legend b { font-weight: 500; }
.awd-v-tabs { overflow-x: auto; scrollbar-width: none; }
.awd-v-link { display: flex; flex-direction: column; gap: 2px; min-width: 260px; }
.awd-v-link b { font-weight: 500; }
.awd-v-link .awd-site { font-size: 12px; color: var(--gray); }
.awd-v-link .awd-site img { width: 12px; height: 12px; }
.awd-main--sources .awd-table { min-width: 760px; }
.awd-v-idea { padding: 14px 16px; background: color-mix(in oklab, var(--brand) 6%, var(--bg)); border: 1px solid color-mix(in oklab, var(--brand) 20%, var(--bg)); }
.awd-v-idea__t { display: flex; align-items: center; gap: 8px; margin-bottom: 4px !important; font-weight: 600; }
.awd-v-links li { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-bottom: 1px solid var(--line-faint); }
.awd-v-links li:last-child { border-bottom: 0; }
.awd-v-links b { font-weight: 500; }
.awd-v-links span { font-size: 12px; color: var(--gray); }

@media (max-width: 520px) {
  .awd-main--competitors .awd-frame__head, .awd-main--sources .awd-frame__head { flex-wrap: wrap; }
  .awd-main--competitors .awd-frame__right, .awd-main--sources .awd-frame__right { margin-left: 0; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .awd-v-dot text { font-size: 26px; }
  .awd-v-ax { font-size: 22px; }
  .awd-v-quad { padding-left: 14px; }
}
.awd .awd-v-tile .awd-name { white-space: normal; }
.awd-v-beat { min-width: 560px; }
.awd-v-beat td:nth-child(3), .awd-v-beat td:nth-child(4) { white-space: nowrap; }
