/* What AI Crawlers See (/tools/ai-crawler-view/). Builds on the shared classes in tools.css (sv-*, tl-*). */
.acv-app { font-size: 14px; line-height: 1.55; color: #343a40; }
.acv-app * { box-sizing: border-box; }
.acv-app code { font-size: .92em; padding: 0 .3em; background: #f1f3f5; color: #2f4ac0; border-radius: 3px; word-break: break-all; }
.acv-input { margin-bottom: 14px; }
.acv-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 8px; }
.acv-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #495057; cursor: pointer; }
.acv-check input { accent-color: #3b5bdb; width: 15px; height: 15px; }
.acv-privacy { margin-bottom: 0 !important; }
.acv-loading::before {
    content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px;
    border: 2px solid #bac8ff; border-top-color: #3b5bdb; border-radius: 50%; animation: acv-spin .8s linear infinite;
}
@keyframes acv-spin { to { transform: rotate(360deg); } }
.acv-empty { border: 1px dashed #dee2e6; border-radius: 10px; }
.acv-example-note { font-size: 12.5px; color: #e67700; margin: 0 0 8px !important; }

.acv-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.acv-summary-main { min-width: 0; flex: 1 1 320px; }
.acv-url { font-weight: 700; color: #1e3a8a; word-break: break-all; margin-bottom: 4px; }
.acv-summary-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; margin-bottom: 2px; }
.acv-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.acv-dot { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.acv-dot.is-pass { background: #ebfbee; color: #2b8a3e; }
.acv-dot.is-fail { background: #ffe3e3; color: #c92a2a; }
.acv-dot.is-warn { background: #fff3bf; color: #a35f00; }

.acv-layer { margin-bottom: 14px; padding: 0 !important; overflow: hidden; }
.acv-layer > summary {
    list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 14px 16px;
}
.acv-layer > summary::-webkit-details-marker { display: none; }
.acv-layer > summary::after { content: '▾'; margin-left: auto; color: #868e96; transition: transform .15s; }
.acv-layer:not([open]) > summary::after { transform: rotate(-90deg); }
.acv-layer > summary:focus-visible { outline: 2px solid #3b5bdb; outline-offset: -2px; }
.acv-layer-n {
    flex: none; width: 24px; height: 24px; border-radius: 50%; background: #3b5bdb; color: #fff; font-weight: 700; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center;
}
.acv-layer-title { font-weight: 700; font-size: 15px; color: #212529; }
.acv-layer-counts { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.acv-layer-sub { flex-basis: 100%; font-size: 12.5px; color: #868e96; padding-left: 34px; }
.acv-layer-body { padding: 0 16px 14px; }
.acv-sub { font-size: 12.5px; font-weight: 700; color: #495057; margin: 10px 0 6px !important; }

.acv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 10px; }
.acv-app table.tl-bots { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 !important; }
.acv-app table.tl-bots th, .acv-app table.tl-bots td { border: 0 !important; border-bottom: 1px solid #f1f3f5 !important; padding: 7px 6px !important; text-align: left; vertical-align: top; }
.acv-app table.tl-bots thead th { font-size: 12px; color: #868e96; font-weight: 600; white-space: nowrap; }
.acv-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.acv-signals span { display: inline-block; font-size: 11.5px; background: #f1f3f5; color: #495057; border-radius: 4px; padding: 0 6px; margin: 0 4px 3px 0; }
.tl-pill.is-warn { background: #fff3bf; color: #a35f00; }
.acv-ua summary { cursor: pointer; font-size: 12.5px; color: #495057; font-weight: 600; }
.acv-ua ul { list-style: none; margin: 6px 0 4px !important; padding: 0; }
.acv-ua li { font-size: 12px; margin: 0 0 6px !important; display: flex; flex-direction: column; gap: 2px; }
.acv-ua li a { font-size: 11.5px; }

.acv-app ul.acv-findings { list-style: none; margin: 10px 0 0 !important; padding: 0; }
.acv-app .acv-findings li.acv-f { margin: 0 0 8px !important; padding: 10px 12px; border-radius: 10px; border: 1px solid #e9ecef; border-left-width: 4px; background: #fff; }
.acv-f.is-fail { border-left-color: #e03131 !important; background: #fffafa !important; }
.acv-f.is-warn { border-left-color: #f59f00 !important; }
.acv-f.is-pass { border-left-color: #2f9e44 !important; }
.acv-f.is-info { border-left-color: #adb5bd !important; }
.acv-f-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.acv-sev { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: #f1f3f5; color: #495057; white-space: nowrap; }
.is-fail .acv-sev { background: #ffe3e3; color: #c92a2a; }
.is-warn .acv-sev { background: #fff3bf; color: #a35f00; }
.is-pass .acv-sev { background: #ebfbee; color: #2b8a3e; }
.acv-hard { font-size: 11px; color: #1e3a8a; border: 1px solid #bac8ff; border-radius: 4px; padding: 0 6px; white-space: nowrap; }
.acv-f-title { color: #212529; font-size: 14px; word-break: break-word; }
.acv-ev { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; white-space: nowrap; cursor: help; }
.acv-ev.ev-A { background: #e7f5ff; color: #1864ab; }
.acv-ev.ev-B { background: #f3f0ff; color: #5f3dc4; }
.acv-ev.ev-C { background: #fff4e6; color: #d9480f; }
.acv-ev.ev-D { background: #f1f3f5; color: #495057; }
.acv-app p.acv-f-body { margin: 6px 0 0 !important; font-size: 13px; color: #495057; word-break: break-word; }
.acv-app p.acv-src { margin: 6px 0 0 !important; font-size: 11.5px; color: #868e96; word-break: break-word; }
.acv-src a { color: #3b5bdb; }
.acv-fix { margin-top: 6px; }
.acv-fix summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: #3b5bdb; }
.acv-code { position: relative; margin-top: 6px; }
.acv-app .acv-code pre {
    margin: 0 !important; padding: 10px 12px; padding-right: 64px; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px;
    font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; max-height: 340px; overflow: auto;
}
.acv-app .acv-code pre code { background: none; padding: 0; color: #343a40; font-size: inherit; word-break: break-word; }
.acv-copy { position: absolute; top: 6px; right: 6px; }

.acv-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.acv-stat { border: 1px solid #e9ecef; border-radius: 10px; padding: 8px 10px; background: #fcfcfd; min-width: 0; }
.acv-stat-label { font-size: 11.5px; color: #868e96; }
.acv-stat-value { font-weight: 700; font-size: 16px; color: #1e3a8a; font-variant-numeric: tabular-nums; }
.acv-stat-note { font-size: 11.5px; color: #868e96; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acv-app p.acv-kv { margin: 0 0 4px !important; font-size: 13px; word-break: break-word; }
.acv-kv span { display: inline-block; min-width: 84px; font-size: 11.5px; color: #868e96; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.acv-excerpt { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #f8f9fa; border: 1px dashed #ced4da; }
.acv-excerpt-label { font-size: 11.5px; color: #868e96; margin-bottom: 4px; }
.acv-app .acv-excerpt p { margin: 0 !important; font-size: 13px; color: #343a40; word-break: break-word; }
.acv-paste { margin-top: 12px; }
.acv-app p.acv-paste-msg { margin: 6px 0 2px !important; font-size: 13px; }
.acv-paste-msg.is-bad { color: #c92a2a; }
.acv-paste-msg.is-ok { color: #2b8a3e; }

@media screen and (max-width: 600px) {
    .acv-layer > summary { padding: 12px; }
    .acv-layer-body { padding: 0 12px 12px; }
    .acv-layer-sub { padding-left: 0; }
    /* Agent table becomes one card per user agent: name + status + robots on a line, signals below */
    .acv-app table.acv-agents { font-size: 12px; }
    .acv-app table.acv-agents thead { display: none; }
    .acv-app table.acv-agents tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 8px; border-bottom: 1px solid #f1f3f5; padding: 6px 0; }
    .acv-app table.acv-agents td { border: 0 !important; padding: 2px 0 !important; }
    .acv-app table.acv-agents td:nth-child(3) { display: none; }
    .acv-app table.acv-agents td.acv-signals { grid-column: 1 / -1; }
    .acv-layer > summary::after { position: absolute; right: 12px; }
    .acv-layer > summary { position: relative; padding-right: 30px; }
}
@media (prefers-reduced-motion: reduce) { .acv-loading::before { animation: none; } }
