/* Competitor Sitemap Gap */
.brands { max-width: none; }
.brand-row { display: grid; grid-template-columns: 110px minmax(120px, 200px) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.brand-row:last-child { border-bottom: 0; }
.brand-row input[type="text"] { width: 100%; min-width: 0; }
.tag-you { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.brand-row.you .tag-you { color: var(--accent); }
.file-info { grid-column: 2 / -1; font-size: .82rem; }
.file-info:empty { display: none; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.sitelog { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .88rem; color: var(--muted); }
.sitelog:empty { display: none; }
.row-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.row-filters select, .row-filters input { min-width: 170px; }
.export { display: flex; gap: 8px; margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); }
.pr-high { color: var(--can-fg); background: var(--can-bg); }
.pr-medium { color: var(--gap-fg); background: var(--gap-bg); }
.pr-low { color: var(--unk-fg); background: var(--unk-bg); }
.more-ex { display: block; font-size: .8rem; }
#tbl td a { word-break: break-all; }
#tbl > thead th:first-child, #tbl > tbody > tr.main > td:first-child { min-width: 0; width: 96px; }
#tbl > thead th:nth-child(2), #tbl > tbody > tr.main > td:nth-child(2) { min-width: 200px; }
.compages { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.compages li { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: baseline; font-size: .88rem; }
.compages .cname { font-size: .76rem; font-weight: 700; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compages li.no { opacity: .75; }
#tbl .col-pages { min-width: 300px; }
.gsc-mini { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; max-width: none; }
.gsc-on { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.gsc-on .field.grow { flex: 1 1 320px; min-width: 0; }
.gsc-on .combo input { min-width: 0; }
#tbl .col-gsc { min-width: 150px; }
#tbl .col-gsc b, #tbl .col-vol b { font-variant-numeric: tabular-nums; }
#tbl .col-vol { min-width: 110px; }
.volbox, .gscbox { max-width: none; }

@media (max-width: 860px) {
  .brand-row { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .brand-row .tag-you { grid-column: 1; }
  .brand-row .btn { justify-self: start; }
  .file-info { grid-column: 1; }
  .row-filters { flex-direction: column; align-items: stretch; }
  .row-filters select, .row-filters input { width: 100%; min-width: 0; }
  .export { margin-left: 0; width: 100%; }
  .export .btn { flex: 1; }
  .gsc-on { flex-direction: column; align-items: stretch; }
  .gsc-on .field, .gsc-on .btn { width: 100%; }
  .gsc-mini .btn { width: 100%; }
}

/* Topic details panel */
.link { color: var(--accent-strong); font-weight: 650; }
.filebar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kw-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.detail h5 { margin: 14px 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.detail .error { max-width: none; margin: 6px 0; }
.mini.kwt { margin-bottom: 4px; }
.mini.kwt td:first-child { word-break: break-word; }
.brief-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.brief-item:last-child { border-bottom: 0; }
.brief-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brief-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-right: auto; }
.brief-head .btn { padding: 3px 10px; }
.brief-text { margin: 6px 0 0; font-weight: 600; word-break: break-word; }
@media (max-width: 1100px) {
  #tbl .col-pages, #tbl .col-gsc, #tbl .col-vol { min-width: 0; }
  #tbl > tbody > tr.main > td:nth-child(1), #tbl > tbody > tr.main > td:nth-child(2) { width: auto; min-width: 0; }
  .compages li { grid-template-columns: 110px 1fr; }
}
.gsc-actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gsc-on .btn.small { align-self: end; }
.mini.kwt td .act { margin-top: 1px; }
