/* ============================================================
   SiteRooster — Homepage Styles
   ------------------------------------------------------------
   This file contains styles that are specific to the public
   homepage (the block-editor page rendered by the theme).
   It covers:

     1. Demo frame (browser chrome) wrapping the agent widget
     2. Agent widget — idle/draft state styles
        (extracted from site-detail-automation.css — idle state
        only; run/completed/activity/receipt/unsaved-bar rules
        are NOT included here by design)

   If the dashboard agent tab design changes, the homepage will
   drift — update this file manually to keep it aligned.
   ============================================================ */

/* ============================================================
   AI Platform Readiness Widget — Homepage Hero
   Scoped under .srh-aip-* to avoid conflict with dashboard CSS.
   Add this block to homepage.css.
   ============================================================ */

/* ── Browser chrome ── */
.srh-aip-wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    background: #1a2535;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.srh-aip-chrome {
    background: #0f1923;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.srh-aip-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}
.srh-aip-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}
.srh-aip-dots span:nth-child(1) { background: #fc6058; }
.srh-aip-dots span:nth-child(2) { background: #fec02e; }
.srh-aip-dots span:nth-child(3) { background: #2aca44; }

.srh-aip-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'DM Sans', system-ui, sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.srh-aip-bar svg { flex-shrink: 0; }

/* ── Widget body ── */
.srh-aip-widget-body {
    background: #ffffff;
    padding: 24px;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #1f2937;
}

/* ── Section header ── */
.srh-aip-section-header { margin-bottom: 16px; }

.srh-aip-section-title {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}
.srh-aip-section-title svg { color: #6b7280; }

.srh-aip-section-sub {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* ── Grid ── */
.srh-aip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .srh-aip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .srh-aip-grid { grid-template-columns: 1fr; }
}

/* ── Panel card ── */
.srh-aip-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    opacity: 0;
    animation: srhAipIn 0.35s ease forwards;
}
.srh-aip-panel:nth-child(1) { animation-delay: 0s; }
.srh-aip-panel:nth-child(2) { animation-delay: 0.05s; }
.srh-aip-panel:nth-child(3) { animation-delay: 0.10s; }
.srh-aip-panel:nth-child(4) { animation-delay: 0.15s; }
.srh-aip-panel:nth-child(5) { animation-delay: 0.20s; }
.srh-aip-panel:nth-child(6) { animation-delay: 0.25s; }

@keyframes srhAipIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.srh-aip-panel:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.srh-aip-panel.srh-aip-selected {
    border-color: var(--sel-color, #e5e7eb);
    box-shadow: 0 0 0 1px var(--sel-color, transparent), 0 4px 16px rgba(0, 0, 0, 0.07);
}

/* Blocked dimming */
.srh-aip-panel.srh-aip-blocked .srh-aip-body { opacity: 0.45; }
.srh-aip-panel.srh-aip-blocked:hover .srh-aip-body { opacity: 0.65; }

.srh-aip-accent { height: 4px; }

.srh-aip-body {
    padding: 16px 16px 20px;
    transition: opacity 0.2s;
}

/* ── Panel header ── */
.srh-aip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.srh-aip-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.srh-aip-logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}

.srh-aip-logo-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

/* Badge */
.srh-aip-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 100px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.srh-aip-badge-blocked { background: #fef2f2; color: #dc2626; }
.srh-aip-badge-notidx  { background: #fefce8; color: #92400e; }
.srh-aip-badge-needs   { background: #fef2f2; color: #b91c1c; }
.srh-aip-badge-partial { background: #fefce8; color: #92400e; }
.srh-aip-badge-good    { background: #ecfdf5; color: #047857; }

/* ── Score ring ── */
.srh-aip-score-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.srh-aip-ring {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}
.srh-aip-ring svg {
    width: 64px;
    height: 64px;
    display: block;
}
.srh-aip-ring circle:last-child {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.srh-aip-ring-val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.srh-aip-status { flex: 1; min-width: 0; }

.srh-aip-status-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.srh-aip-status-text {
    font-size: 13px;
    color: #1f2937;
    line-height: 1.4;
}

/* ── Layer bars ── */
.srh-aip-layers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.srh-aip-layer {
    display: grid;
    grid-template-columns: 62px 1fr 32px;
    align-items: center;
    gap: 8px;
}

.srh-aip-layer-lbl {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.srh-aip-layer-track {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.srh-aip-layer-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.srh-aip-layer-val {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
}

/* ── Detail strip ── */
.srh-aip-detail {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    animation: srhAipIn 0.25s ease forwards;
}

.srh-aip-detail-accent { height: 3px; }

.srh-aip-detail-body {
    padding: 16px 20px;
}

.srh-aip-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.srh-aip-detail-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.srh-aip-detail-close {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.srh-aip-detail-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* ── Dimension rows ── */
.srh-aip-dims {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.srh-aip-dim-row {
    display: grid;
    grid-template-columns: 110px 1fr 44px 44px;
    align-items: center;
    gap: 10px;
}

.srh-aip-dim-header-row .srh-aip-dim-name {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}
.srh-aip-dim-header-row .srh-aip-dim-weight {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.srh-aip-dim-header-row .srh-aip-dim-val {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.srh-aip-dim-name {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
}

.srh-aip-dim-track {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.srh-aip-dim-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.srh-aip-dim-weight {
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
}

.srh-aip-dim-val {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
}

.srh-aip-detail-footer {
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
}
.srh-aip-detail-footer strong {
    color: #1f2937;
}

@media (max-width: 640px) {
    .srh-aip-dim-row {
        grid-template-columns: 90px 1fr 36px 36px;
    }
    .srh-aip-widget-body { padding: 16px; }
}


/* ============================================================
   Dashboard layout — sidebar + main
   ============================================================ */

.srh-aip-dashboard {
    display: flex;
    background: #f9fafb;
    min-height: 580px;
    max-height: 700px;
    overflow: hidden;
}

/* ── Sidebar ── */
.srh-aip-sidebar {
    width: 210px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.srh-aip-sidebar-logo {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f3f4f6;
}
.srh-aip-sidebar-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.srh-aip-sidebar-logo span {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

/* Site switcher */
.srh-aip-site-switcher {
    margin: 10px 10px 6px;
    padding: 8px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.srh-aip-site-favicon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.srh-aip-site-favicon svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.srh-aip-site-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.srh-aip-site-name {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.srh-aip-site-url {
    font-size: 11px;
    color: #6b7280;
}

.srh-aip-site-arrow {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Nav */
.srh-aip-sidebar-nav {
    flex: 1;
    padding: 4px 0;
    overflow-y: auto;
}

.srh-aip-nav-section {
    padding: 4px 0;
}

.srh-aip-nav-title {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 16px 4px;
}

.srh-aip-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    cursor: default;
    transition: background 0.15s;
    white-space: nowrap;
}
.srh-aip-nav-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #9ca3af;
}
.srh-aip-nav-item.active {
    color: #059669;
    font-weight: 600;
}
.srh-aip-nav-item.active svg {
    color: #059669;
}

/* ── Main area ── */
.srh-aip-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Top bar */
.srh-aip-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.srh-aip-breadcrumb {
    font-size: 12px;
    color: #6b7280;
}

/* Credits */
.srh-aip-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.srh-aip-credits-label {
    font-size: 11px;
    font-weight: 500;
    color: #059669;
    white-space: nowrap;
}
.srh-aip-credits-bar {
    width: 80px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}
.srh-aip-credits-fill {
    width: 100%;
    height: 100%;
    background: #059669;
    border-radius: 2px;
}

/* Tabs */
.srh-aip-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.srh-aip-tab {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: default;
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
}
.srh-aip-tab.active {
    color: #059669;
    font-weight: 600;
    border-bottom-color: #059669;
}

/* Adjust widget body inside dashboard */
.srh-aip-dashboard .srh-aip-widget-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* ── Mobile: hide sidebar ── */
@media (max-width: 900px) {
    .srh-aip-sidebar { display: none; }
    .srh-aip-dashboard { min-height: auto; max-height: none; }
}

@media (max-width: 640px) {
    .srh-aip-topbar { padding: 8px 12px; }
    .srh-aip-tabs { padding: 0 12px; }
    .srh-aip-credits { display: none; }
    .srh-aip-dashboard .srh-aip-widget-body { padding: 12px; }
}

/* ============================================================
   AI Surface Visibility view — Track Keyword + rich table
   ============================================================ */

/* ── Track Keyword control panel ── */
.srh-vt-control {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.srh-vt-control-form {
    flex: 1;
    padding: 16px;
    min-width: 0;
}

.srh-vt-control-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}
.srh-vt-control-header svg { color: #6b7280; }

.srh-vt-field-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.srh-vt-field { min-width: 0; }
.srh-vt-field-grow { flex: 1; }
.srh-vt-field label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.srh-vt-field label svg { color: #9ca3af; }

.srh-vt-input, .srh-vt-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    color: #9ca3af;
    background: #fff;
    font-family: inherit;
}

.srh-vt-platforms {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 11px;
    color: #4b5563;
}

.srh-vt-plat-group-lbl {
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.srh-vt-plat-sep {
    width: 1px;
    height: 16px;
    background: #e5e7eb;
}

.srh-vt-plat-check {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #4b5563;
    cursor: default;
}

.srh-vt-check-box {
    width: 14px;
    height: 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 3px;
    display: inline-block;
}
.srh-vt-check-box.on {
    background: #059669;
    border-color: #059669;
}

.srh-vt-toggle-track {
    display: inline-block;
    width: 28px;
    height: 16px;
    background: #d1d5db;
    border-radius: 8px;
    position: relative;
    vertical-align: middle;
}
.srh-vt-toggle-track.on { background: #059669; }

.srh-vt-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.15s;
}
.srh-vt-toggle-knob.on { left: 14px; }

.srh-vt-sched-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #4b5563;
}

.srh-vt-add-btn {
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
    opacity: 0.9;
    font-family: inherit;
}

/* Stats column */
.srh-vt-control-stats {
    width: 160px;
    flex-shrink: 0;
    padding: 16px;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.srh-vt-stat-big {
    text-align: right;
}
.srh-vt-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}
.srh-vt-stat-lbl {
    display: block;
    font-size: 11px;
    color: #6b7280;
}
.srh-vt-stat-green .srh-vt-stat-num { color: #059669; }
.srh-vt-stat-amber .srh-vt-stat-num { color: #f59e0b; }

.srh-vt-stat-sub {
    text-align: right;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f3f4f6;
}

/* ── Filter bar ── */
.srh-vt-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

.srh-vt-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.srh-vt-filter-tabs svg { color: #6b7280; }
.srh-vt-filter-tab { cursor: default; }
.srh-vt-filter-tab.active { color: #1f2937; }
.srh-vt-filter-tab:not(.active) { color: #9ca3af; font-weight: 500; }
.srh-vt-filter-sep { color: #d1d5db; margin: 0 2px; }

.srh-vt-filter-pills {
    display: flex;
    gap: 0;
    margin-left: auto;
}

.srh-vt-pill {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    cursor: default;
}
.srh-vt-pill:first-child { border-radius: 6px 0 0 6px; }
.srh-vt-pill:last-child  { border-radius: 0 6px 6px 0; }
.srh-vt-pill:not(:first-child) { border-left: none; }
.srh-vt-pill.active {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

.srh-vt-filter-search {
    width: 140px;
    padding: 5px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    color: #9ca3af;
    background: #fff;
    font-family: inherit;
}

/* ── Keyword table ── */
.srh-vt-table-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 10px 10px;
    overflow-x: auto;
}

.srh-vt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.srh-vt-table thead th {
    padding: 8px 8px;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    text-align: center;
    white-space: nowrap;
}

.srh-vt-th-kw { text-align: left !important; padding-left: 16px !important; }

.srh-vt-th-icon {
    font-weight: 700;
    font-size: 11px;
    margin-right: 2px;
}

.srh-vt-sort {
    font-size: 8px;
    color: #059669;
}

.srh-vt-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
    vertical-align: middle;
}

.srh-vt-table tbody tr:last-child td { border-bottom: none; }
.srh-vt-table tbody tr:hover td { background: #f9fafb; }

.srh-vt-kw-cell {
    text-align: left !important;
    padding-left: 16px !important;
    max-width: 180px;
}
.srh-vt-kw-name {
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.srh-vt-kw-loc {
    font-size: 11px;
    color: #9ca3af;
}

/* Rank badges */
.srh-vt-rank {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    min-width: 28px;
}
.srh-vt-rank-top { background: #ecfdf5; color: #047857; }
.srh-vt-rank-mid { color: #1f2937; }
.srh-vt-rank-low { color: #9ca3af; }

/* AIO badges */
.srh-vt-aio {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.srh-vt-aio-cited { background: #ecfdf5; color: #047857; }
.srh-vt-aio-not   { background: #fef2f2; color: #dc2626; }

.srh-vt-cell-mention { color: #4b5563; font-size: 11px; }
.srh-vt-cell-na      { color: #9ca3af; font-size: 11px; }
.srh-vt-cell-dash    { color: #d1d5db; }

.srh-vt-sched {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #059669;
    font-weight: 500;
    white-space: nowrap;
}

.srh-vt-date {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

/* Clickable nav items */
.srh-aip-nav-item[data-view] {
    cursor: pointer;
}
.srh-aip-nav-item[data-view]:hover {
    background: #f3f4f6;
}

@media (max-width: 640px) {
    .srh-vt-control { flex-direction: column; }
    .srh-vt-control-stats {
        width: auto;
        flex-direction: row;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        gap: 16px;
    }
    .srh-vt-stat-big { text-align: center; }
    .srh-vt-field-row { flex-direction: column; }
    .srh-vt-filter-pills { display: none; }
    .srh-vt-table { font-size: 11px; }
    .srh-vt-kw-cell { max-width: 120px; }
}

/* ============================================================
   Competition view — stats + leaderboard table
   ============================================================ */

.srh-ct-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.srh-ct-stat {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    border-top: 3px solid transparent;
}
.srh-ct-stat-emerald { border-top-color: #059669; }
.srh-ct-stat-blue    { border-top-color: #2563eb; }
.srh-ct-stat-amber   { border-top-color: #f59e0b; }
.srh-ct-stat-red     { border-top-color: #ef4444; }

.srh-ct-stat-val {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.srh-ct-stat-lbl {
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    margin-top: 2px;
}
.srh-ct-stat-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 1px;
}

/* Table card */
.srh-ct-table-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.srh-ct-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
    gap: 8px;
}

.srh-ct-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.srh-ct-card-title svg { color: #6b7280; }
.srh-ct-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 4px;
}

.srh-ct-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.srh-ct-table-wrap { overflow-x: auto; }

.srh-ct-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.srh-ct-table thead th {
    padding: 8px 10px;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    white-space: nowrap;
}
.srh-ct-th-comp { text-align: left; padding-left: 16px !important; }
.srh-ct-center { text-align: center; }

.srh-ct-table tbody td {
    padding: 10px 10px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.srh-ct-table tbody tr:last-child td { border-bottom: none; }
.srh-ct-table tbody tr:hover td { background: #f9fafb; }

.srh-ct-comp-cell { padding-left: 16px !important; text-align: left; }
.srh-ct-comp-name { font-weight: 500; color: #1f2937; }

/* Found On icons */
.srh-ct-fo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.srh-ct-fo-icon {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
.srh-ct-fo-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

/* Threat level — dot + coloured text */
.srh-ct-threat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
}
.srh-ct-threat-high { color: #ef4444; }
.srh-ct-threat-med  { color: #f59e0b; }
.srh-ct-threat-low  { color: #9ca3af; }
.srh-ct-threat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.srh-ct-cell-dash { color: #d1d5db; }

/* AI Visibility bar */
.srh-ct-aivis {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 110px;
}
.srh-ct-aivis-bar {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}
.srh-ct-aivis-fill {
    height: 100%;
    border-radius: 3px;
}
.srh-ct-aivis-val {
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    min-width: 32px;
    text-align: right;
}

/* Rank number circle */
.srh-ct-rank-cell {
    width: 44px;
    text-align: center !important;
    padding: 10px 6px !important;
}
.srh-ct-rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
}
.srh-ct-rank-you {
    background: transparent;
    color: #d1d5db;
}

/* Favicon */
.srh-ct-favicon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Competitor cell with favicon + name + domain */
.srh-ct-comp-cell { text-align: left; padding-left: 8px !important; }
.srh-ct-comp-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}
.srh-ct-comp-text { min-width: 0; }
.srh-ct-comp-name { font-weight: 600; color: #1f2937; font-size: 13px; }
.srh-ct-comp-domain { font-size: 11px; color: #9ca3af; }

/* Avg rank styling */
.srh-ct-avgrank { font-weight: 600; }
.srh-ct-avgrank-top { color: #059669; }
.srh-ct-avgrank-mid { color: #f59e0b; }
.srh-ct-avgrank-low { color: #ef4444; }

/* Keywords total */
.srh-ct-kw-total { color: #9ca3af; font-weight: 400; font-size: 11px; }

/* You row */
.srh-ct-you-row td { background: #f0fdf4 !important; }
.srh-ct-you-row:hover td { background: #ecfdf5 !important; }

/* Export button */
.srh-ct-export-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    font-size: 11px;
    font-weight: 500;
    color: #4b5563;
    cursor: default;
    font-family: inherit;
    white-space: nowrap;
}
.srh-ct-export-btn svg { color: #6b7280; }

@media (max-width: 900px) {
    .srh-ct-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .srh-ct-stats { grid-template-columns: 1fr; }
}


/* ============================================================
   Citations view — stats + sources + all citations table
   ============================================================ */

/* Source ranking list */
.srh-cit-sources-body {
    padding: 12px 16px;
}

.srh-cit-source-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}
.srh-cit-source-row:last-child { border-bottom: none; }
.srh-cit-source-row.srh-cit-yours { background: #ecfdf5; margin: 0 -16px; padding: 8px 16px; border-radius: 6px; }

.srh-cit-source-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}

.srh-cit-source-info { flex: 1; min-width: 0; }
.srh-cit-source-url {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.srh-cit-source-bar-wrap {
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
}
.srh-cit-source-bar {
    height: 100%;
    background: #059669;
    border-radius: 2px;
}

.srh-cit-source-count {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

/* "You" badge */
.srh-cit-you-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    background: #059669;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.srh-cit-yours-row td { background: #f0fdf4 !important; }

/* Platform dots */
.srh-cit-plat-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}

.srh-cit-src-cell {
    text-align: left !important;
    padding-left: 16px !important;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.srh-cit-src-url {
    font-weight: 500;
    color: #1f2937;
}


/* ============================================================
   Dashboard layout — sidebar + main
   ============================================================ */

.srh-aip-dashboard {
    display: flex;
    background: #f9fafb;
    min-height: 580px;
    max-height: 700px;
    overflow: hidden;
}

/* ── Sidebar ── */
.srh-aip-sidebar {
    width: 210px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.srh-aip-sidebar-logo {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f3f4f6;
}
.srh-aip-sidebar-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.srh-aip-sidebar-logo span {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

/* Site switcher */
.srh-aip-site-switcher {
    margin: 10px 10px 6px;
    padding: 8px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.srh-aip-site-favicon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.srh-aip-site-favicon svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.srh-aip-site-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.srh-aip-site-name {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.srh-aip-site-url {
    font-size: 11px;
    color: #6b7280;
}

.srh-aip-site-arrow {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Nav */
.srh-aip-sidebar-nav {
    flex: 1;
    padding: 4px 0;
    overflow-y: auto;
}

.srh-aip-nav-section {
    padding: 4px 0;
}

.srh-aip-nav-title {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 16px 4px;
}

.srh-aip-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    cursor: default;
    transition: background 0.15s;
    white-space: nowrap;
}
.srh-aip-nav-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #9ca3af;
}
.srh-aip-nav-item.active {
    color: #059669;
    font-weight: 600;
}
.srh-aip-nav-item.active svg {
    color: #059669;
}

/* ── Main area ── */
.srh-aip-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Top bar */
.srh-aip-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.srh-aip-breadcrumb {
    font-size: 12px;
    color: #6b7280;
}

/* Credits */
.srh-aip-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.srh-aip-credits-label {
    font-size: 11px;
    font-weight: 500;
    color: #059669;
    white-space: nowrap;
}
.srh-aip-credits-bar {
    width: 80px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}
.srh-aip-credits-fill {
    width: 100%;
    height: 100%;
    background: #059669;
    border-radius: 2px;
}

/* Tabs */
.srh-aip-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.srh-aip-tab {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: default;
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
}
.srh-aip-tab.active {
    color: #059669;
    font-weight: 600;
    border-bottom-color: #059669;
}

/* Adjust widget body inside dashboard */
.srh-aip-dashboard .srh-aip-widget-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* ── Mobile: hide sidebar ── */
@media (max-width: 900px) {
    .srh-aip-sidebar { display: none; }
    .srh-aip-dashboard { min-height: auto; max-height: none; }
}

@media (max-width: 640px) {
    .srh-aip-topbar { padding: 8px 12px; }
    .srh-aip-tabs { padding: 0 12px; }
    .srh-aip-credits { display: none; }
    .srh-aip-dashboard .srh-aip-widget-body { padding: 12px; }
}

/* ============================================================
   AI Surface Visibility view — Track Keyword + rich table
   ============================================================ */

/* ── Track Keyword control panel ── */
.srh-vt-control {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.srh-vt-control-form {
    flex: 1;
    padding: 16px;
    min-width: 0;
}

.srh-vt-control-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}
.srh-vt-control-header svg { color: #6b7280; }

.srh-vt-field-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.srh-vt-field { min-width: 0; }
.srh-vt-field-grow { flex: 1; }
.srh-vt-field label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.srh-vt-field label svg { color: #9ca3af; }

.srh-vt-input, .srh-vt-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    color: #9ca3af;
    background: #fff;
    font-family: inherit;
}

.srh-vt-platforms {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 11px;
    color: #4b5563;
}

.srh-vt-plat-group-lbl {
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.srh-vt-plat-sep {
    width: 1px;
    height: 16px;
    background: #e5e7eb;
}

.srh-vt-plat-check {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #4b5563;
    cursor: default;
}

.srh-vt-check-box {
    width: 14px;
    height: 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 3px;
    display: inline-block;
}
.srh-vt-check-box.on {
    background: #059669;
    border-color: #059669;
}

.srh-vt-toggle-track {
    display: inline-block;
    width: 28px;
    height: 16px;
    background: #d1d5db;
    border-radius: 8px;
    position: relative;
    vertical-align: middle;
}
.srh-vt-toggle-track.on { background: #059669; }

.srh-vt-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.15s;
}
.srh-vt-toggle-knob.on { left: 14px; }

.srh-vt-sched-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #4b5563;
}

.srh-vt-add-btn {
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
    opacity: 0.9;
    font-family: inherit;
}

/* Stats column */
.srh-vt-control-stats {
    width: 160px;
    flex-shrink: 0;
    padding: 16px;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.srh-vt-stat-big {
    text-align: right;
}
.srh-vt-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}
.srh-vt-stat-lbl {
    display: block;
    font-size: 11px;
    color: #6b7280;
}
.srh-vt-stat-green .srh-vt-stat-num { color: #059669; }
.srh-vt-stat-amber .srh-vt-stat-num { color: #f59e0b; }

.srh-vt-stat-sub {
    text-align: right;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f3f4f6;
}

/* ── Filter bar ── */
.srh-vt-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

.srh-vt-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.srh-vt-filter-tabs svg { color: #6b7280; }
.srh-vt-filter-tab { cursor: default; }
.srh-vt-filter-tab.active { color: #1f2937; }
.srh-vt-filter-tab:not(.active) { color: #9ca3af; font-weight: 500; }
.srh-vt-filter-sep { color: #d1d5db; margin: 0 2px; }

.srh-vt-filter-pills {
    display: flex;
    gap: 0;
    margin-left: auto;
}

.srh-vt-pill {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    cursor: default;
}
.srh-vt-pill:first-child { border-radius: 6px 0 0 6px; }
.srh-vt-pill:last-child  { border-radius: 0 6px 6px 0; }
.srh-vt-pill:not(:first-child) { border-left: none; }
.srh-vt-pill.active {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

.srh-vt-filter-search {
    width: 140px;
    padding: 5px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    color: #9ca3af;
    background: #fff;
    font-family: inherit;
}

/* ── Keyword table ── */
.srh-vt-table-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 10px 10px;
    overflow-x: auto;
}

.srh-vt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.srh-vt-table thead th {
    padding: 8px 8px;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    text-align: center;
    white-space: nowrap;
}

.srh-vt-th-kw { text-align: left !important; padding-left: 16px !important; }

.srh-vt-th-icon {
    font-weight: 700;
    font-size: 11px;
    margin-right: 2px;
}

.srh-vt-sort {
    font-size: 8px;
    color: #059669;
}

.srh-vt-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
    vertical-align: middle;
}

.srh-vt-table tbody tr:last-child td { border-bottom: none; }
.srh-vt-table tbody tr:hover td { background: #f9fafb; }

.srh-vt-kw-cell {
    text-align: left !important;
    padding-left: 16px !important;
    max-width: 180px;
}
.srh-vt-kw-name {
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.srh-vt-kw-loc {
    font-size: 11px;
    color: #9ca3af;
}

/* Rank badges */
.srh-vt-rank {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    min-width: 28px;
}
.srh-vt-rank-top { background: #ecfdf5; color: #047857; }
.srh-vt-rank-mid { color: #1f2937; }
.srh-vt-rank-low { color: #9ca3af; }

/* AIO badges */
.srh-vt-aio {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.srh-vt-aio-cited { background: #ecfdf5; color: #047857; }
.srh-vt-aio-not   { background: #fef2f2; color: #dc2626; }

.srh-vt-cell-mention { color: #4b5563; font-size: 11px; }
.srh-vt-cell-na      { color: #9ca3af; font-size: 11px; }
.srh-vt-cell-dash    { color: #d1d5db; }

.srh-vt-sched {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #059669;
    font-weight: 500;
    white-space: nowrap;
}

.srh-vt-date {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

/* Clickable nav items */
.srh-aip-nav-item[data-view] {
    cursor: pointer;
}
.srh-aip-nav-item[data-view]:hover {
    background: #f3f4f6;
}

@media (max-width: 640px) {
    .srh-vt-control { flex-direction: column; }
    .srh-vt-control-stats {
        width: auto;
        flex-direction: row;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        gap: 16px;
    }
    .srh-vt-stat-big { text-align: center; }
    .srh-vt-field-row { flex-direction: column; }
    .srh-vt-filter-pills { display: none; }
    .srh-vt-table { font-size: 11px; }
    .srh-vt-kw-cell { max-width: 120px; }
}

/* ============================================================
   Competition view — stats + leaderboard table
   ============================================================ */

.srh-ct-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.srh-ct-stat {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    border-top: 3px solid transparent;
}
.srh-ct-stat-emerald { border-top-color: #059669; }
.srh-ct-stat-blue    { border-top-color: #2563eb; }
.srh-ct-stat-amber   { border-top-color: #f59e0b; }
.srh-ct-stat-red     { border-top-color: #ef4444; }

.srh-ct-stat-val {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.srh-ct-stat-lbl {
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    margin-top: 2px;
}
.srh-ct-stat-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 1px;
}

/* Table card */
.srh-ct-table-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.srh-ct-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
    gap: 8px;
}

.srh-ct-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.srh-ct-card-title svg { color: #6b7280; }
.srh-ct-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 4px;
}

.srh-ct-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.srh-ct-table-wrap { overflow-x: auto; }

.srh-ct-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.srh-ct-table thead th {
    padding: 8px 10px;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    white-space: nowrap;
}
.srh-ct-th-comp { text-align: left; padding-left: 16px !important; }
.srh-ct-center { text-align: center; }

.srh-ct-table tbody td {
    padding: 10px 10px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.srh-ct-table tbody tr:last-child td { border-bottom: none; }
.srh-ct-table tbody tr:hover td { background: #f9fafb; }

.srh-ct-comp-cell { padding-left: 16px !important; text-align: left; }
.srh-ct-comp-name { font-weight: 500; color: #1f2937; }

/* Found On pills */
.srh-ct-found-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    margin-right: 3px;
}

/* Threat badges */
.srh-ct-threat {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}
.srh-ct-threat-high { background: #fef2f2; color: #dc2626; }
.srh-ct-threat-med  { background: #fefce8; color: #92400e; }
.srh-ct-threat-low  { background: #f3f4f6; color: #6b7280; }

@media (max-width: 900px) {
    .srh-ct-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .srh-ct-stats { grid-template-columns: 1fr; }
}


/* ============================================================
   Citations view — stats + sources + all citations table
   ============================================================ */

/* Source ranking list */
.srh-cit-sources-body {
    padding: 12px 16px;
}

.srh-cit-source-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}
.srh-cit-source-row:last-child { border-bottom: none; }
.srh-cit-source-row.srh-cit-yours { background: #ecfdf5; margin: 0 -16px; padding: 8px 16px; border-radius: 6px; }

.srh-cit-source-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}

.srh-cit-source-info { flex: 1; min-width: 0; }
.srh-cit-source-url {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.srh-cit-source-bar-wrap {
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
}
.srh-cit-source-bar {
    height: 100%;
    background: #059669;
    border-radius: 2px;
}

.srh-cit-source-count {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

/* "You" badge */
.srh-cit-you-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    background: #059669;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.srh-cit-yours-row td { background: #f0fdf4 !important; }

/* Platform dots */
.srh-cit-plat-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}

.srh-cit-src-cell {
    text-align: left !important;
    padding-left: 16px !important;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.srh-cit-src-url {
    font-weight: 500;
    color: #1f2937;
}


/* ============================================================
   Dashboard layout — sidebar + main
   ============================================================ */

.srh-aip-dashboard {
    display: flex;
    background: #f9fafb;
    min-height: 580px;
    max-height: 700px;
    overflow: hidden;
}

/* ── Sidebar ── */
.srh-aip-sidebar {
    width: 210px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.srh-aip-sidebar-logo {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f3f4f6;
}
.srh-aip-sidebar-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.srh-aip-sidebar-logo span {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

/* Site switcher */
.srh-aip-site-switcher {
    margin: 10px 10px 6px;
    padding: 8px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.srh-aip-site-favicon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.srh-aip-site-favicon svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.srh-aip-site-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.srh-aip-site-name {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.srh-aip-site-url {
    font-size: 11px;
    color: #6b7280;
}

.srh-aip-site-arrow {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Nav */
.srh-aip-sidebar-nav {
    flex: 1;
    padding: 4px 0;
    overflow-y: auto;
}

.srh-aip-nav-section {
    padding: 4px 0;
}

.srh-aip-nav-title {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 16px 4px;
}

.srh-aip-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    cursor: default;
    transition: background 0.15s;
    white-space: nowrap;
}
.srh-aip-nav-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #9ca3af;
}
.srh-aip-nav-item.active {
    color: #059669;
    font-weight: 600;
}
.srh-aip-nav-item.active svg {
    color: #059669;
}

/* ── Main area ── */
.srh-aip-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Top bar */
.srh-aip-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.srh-aip-breadcrumb {
    font-size: 12px;
    color: #6b7280;
}

/* Credits */
.srh-aip-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.srh-aip-credits-label {
    font-size: 11px;
    font-weight: 500;
    color: #059669;
    white-space: nowrap;
}
.srh-aip-credits-bar {
    width: 80px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}
.srh-aip-credits-fill {
    width: 100%;
    height: 100%;
    background: #059669;
    border-radius: 2px;
}

/* Tabs */
.srh-aip-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.srh-aip-tab {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: default;
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
}
.srh-aip-tab.active {
    color: #059669;
    font-weight: 600;
    border-bottom-color: #059669;
}

/* Adjust widget body inside dashboard */
.srh-aip-dashboard .srh-aip-widget-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* ── Mobile: hide sidebar ── */
@media (max-width: 900px) {
    .srh-aip-sidebar { display: none; }
    .srh-aip-dashboard { min-height: auto; max-height: none; }
}

@media (max-width: 640px) {
    .srh-aip-topbar { padding: 8px 12px; }
    .srh-aip-tabs { padding: 0 12px; }
    .srh-aip-credits { display: none; }
    .srh-aip-dashboard .srh-aip-widget-body { padding: 12px; }
}

/* ============================================================
   AI Surface Visibility view — Track Keyword + rich table
   ============================================================ */

/* ── Track Keyword control panel ── */
.srh-vt-control {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.srh-vt-control-form {
    flex: 1;
    padding: 16px;
    min-width: 0;
}

.srh-vt-control-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}
.srh-vt-control-header svg { color: #6b7280; }

.srh-vt-field-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.srh-vt-field { min-width: 0; }
.srh-vt-field-grow { flex: 1; }
.srh-vt-field label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.srh-vt-field label svg { color: #9ca3af; }

.srh-vt-input, .srh-vt-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    color: #9ca3af;
    background: #fff;
    font-family: inherit;
}

.srh-vt-platforms {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 11px;
    color: #4b5563;
}

.srh-vt-plat-group-lbl {
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.srh-vt-plat-sep {
    width: 1px;
    height: 16px;
    background: #e5e7eb;
}

.srh-vt-plat-check {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #4b5563;
    cursor: default;
}

.srh-vt-check-box {
    width: 14px;
    height: 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 3px;
    display: inline-block;
}
.srh-vt-check-box.on {
    background: #059669;
    border-color: #059669;
}

.srh-vt-toggle-track {
    display: inline-block;
    width: 28px;
    height: 16px;
    background: #d1d5db;
    border-radius: 8px;
    position: relative;
    vertical-align: middle;
}
.srh-vt-toggle-track.on { background: #059669; }

.srh-vt-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.15s;
}
.srh-vt-toggle-knob.on { left: 14px; }

.srh-vt-sched-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #4b5563;
}

.srh-vt-add-btn {
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
    opacity: 0.9;
    font-family: inherit;
}

/* Stats column */
.srh-vt-control-stats {
    width: 160px;
    flex-shrink: 0;
    padding: 16px;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.srh-vt-stat-big {
    text-align: right;
}
.srh-vt-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}
.srh-vt-stat-lbl {
    display: block;
    font-size: 11px;
    color: #6b7280;
}
.srh-vt-stat-green .srh-vt-stat-num { color: #059669; }
.srh-vt-stat-amber .srh-vt-stat-num { color: #f59e0b; }

.srh-vt-stat-sub {
    text-align: right;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f3f4f6;
}

/* ── Filter bar ── */
.srh-vt-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

.srh-vt-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.srh-vt-filter-tabs svg { color: #6b7280; }
.srh-vt-filter-tab { cursor: default; }
.srh-vt-filter-tab.active { color: #1f2937; }
.srh-vt-filter-tab:not(.active) { color: #9ca3af; font-weight: 500; }
.srh-vt-filter-sep { color: #d1d5db; margin: 0 2px; }

.srh-vt-filter-pills {
    display: flex;
    gap: 0;
    margin-left: auto;
}

.srh-vt-pill {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    cursor: default;
}
.srh-vt-pill:first-child { border-radius: 6px 0 0 6px; }
.srh-vt-pill:last-child  { border-radius: 0 6px 6px 0; }
.srh-vt-pill:not(:first-child) { border-left: none; }
.srh-vt-pill.active {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

.srh-vt-filter-search {
    width: 140px;
    padding: 5px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    color: #9ca3af;
    background: #fff;
    font-family: inherit;
}

/* ── Keyword table ── */
.srh-vt-table-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 10px 10px;
    overflow-x: auto;
}

.srh-vt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.srh-vt-table thead th {
    padding: 8px 8px;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    text-align: center;
    white-space: nowrap;
}

.srh-vt-th-kw { text-align: left !important; padding-left: 16px !important; }

.srh-vt-th-icon {
    font-weight: 700;
    font-size: 11px;
    margin-right: 2px;
}

.srh-vt-sort {
    font-size: 8px;
    color: #059669;
}

.srh-vt-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
    vertical-align: middle;
}

.srh-vt-table tbody tr:last-child td { border-bottom: none; }
.srh-vt-table tbody tr:hover td { background: #f9fafb; }

.srh-vt-kw-cell {
    text-align: left !important;
    padding-left: 16px !important;
    max-width: 180px;
}
.srh-vt-kw-name {
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.srh-vt-kw-loc {
    font-size: 11px;
    color: #9ca3af;
}

/* Rank badges */
.srh-vt-rank {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    min-width: 28px;
}
.srh-vt-rank-top { background: #ecfdf5; color: #047857; }
.srh-vt-rank-mid { color: #1f2937; }
.srh-vt-rank-low { color: #9ca3af; }

/* AIO badges */
.srh-vt-aio {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.srh-vt-aio-cited { background: #ecfdf5; color: #047857; }
.srh-vt-aio-not   { background: #fef2f2; color: #dc2626; }

.srh-vt-cell-mention { color: #4b5563; font-size: 11px; }
.srh-vt-cell-na      { color: #9ca3af; font-size: 11px; }
.srh-vt-cell-dash    { color: #d1d5db; }

.srh-vt-sched {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #059669;
    font-weight: 500;
    white-space: nowrap;
}

.srh-vt-date {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

/* Clickable nav items */
.srh-aip-nav-item[data-view] {
    cursor: pointer;
}
.srh-aip-nav-item[data-view]:hover {
    background: #f3f4f6;
}

@media (max-width: 640px) {
    .srh-vt-control { flex-direction: column; }
    .srh-vt-control-stats {
        width: auto;
        flex-direction: row;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        gap: 16px;
    }
    .srh-vt-stat-big { text-align: center; }
    .srh-vt-field-row { flex-direction: column; }
    .srh-vt-filter-pills { display: none; }
    .srh-vt-table { font-size: 11px; }
    .srh-vt-kw-cell { max-width: 120px; }
}

/* ============================================================
   Competition view — stats + leaderboard table
   ============================================================ */

.srh-ct-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.srh-ct-stat {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    border-top: 3px solid transparent;
}
.srh-ct-stat-emerald { border-top-color: #059669; }
.srh-ct-stat-blue    { border-top-color: #2563eb; }
.srh-ct-stat-amber   { border-top-color: #f59e0b; }
.srh-ct-stat-red     { border-top-color: #ef4444; }

.srh-ct-stat-val {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.srh-ct-stat-lbl {
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    margin-top: 2px;
}
.srh-ct-stat-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 1px;
}

/* Table card */
.srh-ct-table-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.srh-ct-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
    gap: 8px;
}

.srh-ct-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.srh-ct-card-title svg { color: #6b7280; }
.srh-ct-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 4px;
}

.srh-ct-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.srh-ct-table-wrap { overflow-x: auto; }

.srh-ct-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.srh-ct-table thead th {
    padding: 8px 10px;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    white-space: nowrap;
}
.srh-ct-th-comp { text-align: left; padding-left: 16px !important; }
.srh-ct-center { text-align: center; }

.srh-ct-table tbody td {
    padding: 10px 10px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.srh-ct-table tbody tr:last-child td { border-bottom: none; }
.srh-ct-table tbody tr:hover td { background: #f9fafb; }

.srh-ct-comp-cell { padding-left: 16px !important; text-align: left; }
.srh-ct-comp-name { font-weight: 500; color: #1f2937; }

/* Found On pills */
.srh-ct-found-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    margin-right: 3px;
}

/* Threat badges */
.srh-ct-threat {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}
.srh-ct-threat-high { background: #fef2f2; color: #dc2626; }
.srh-ct-threat-med  { background: #fefce8; color: #92400e; }
.srh-ct-threat-low  { background: #f3f4f6; color: #6b7280; }

@media (max-width: 900px) {
    .srh-ct-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .srh-ct-stats { grid-template-columns: 1fr; }
}


/* ============================================================
   Citations view — stats + sources + all citations table
   ============================================================ */

/* Source ranking list */
.srh-cit-sources-body {
    padding: 12px 16px;
}

.srh-cit-source-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}
.srh-cit-source-row:last-child { border-bottom: none; }
.srh-cit-source-row.srh-cit-yours { background: #ecfdf5; margin: 0 -16px; padding: 8px 16px; border-radius: 6px; }

.srh-cit-source-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}

.srh-cit-source-info { flex: 1; min-width: 0; }
.srh-cit-source-url {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.srh-cit-source-bar-wrap {
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
}
.srh-cit-source-bar {
    height: 100%;
    background: #059669;
    border-radius: 2px;
}

.srh-cit-source-count {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

/* "You" badge */
.srh-cit-you-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    background: #059669;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.srh-cit-yours-row td { background: #f0fdf4 !important; }

/* Platform dots */
.srh-cit-plat-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}

.srh-cit-src-cell {
    text-align: left !important;
    padding-left: 16px !important;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.srh-cit-src-url {
    font-weight: 500;
    color: #1f2937;
}


/* ============================================================
   1. DEMO FRAME (browser chrome around the widget)
   ============================================================ */

.sr-agent-demo-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    text-align: left;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.sr-agent-demo-chrome {
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sr-agent-demo-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.sr-agent-demo-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}
.sr-agent-demo-dots span:nth-child(1) { background: #fc6058; }
.sr-agent-demo-dots span:nth-child(2) { background: #fec02e; }
.sr-agent-demo-dots span:nth-child(3) { background: #2aca44; }

.sr-agent-demo-bar {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    color: #9ca3af;
    font-family: 'DM Sans', system-ui, sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.sr-agent-demo-bar svg { flex-shrink: 0; }
.sr-agent-demo-bar-url {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-agent-demo-body {
    padding: 24px;
    background: #ffffff;
    max-height: 720px;
    overflow-y: auto;
}


/* ============================================================
   2. AGENT WIDGET — scoped tokens + base
   (idle-state subset of site-detail-automation.css)
   ============================================================ */

#section-automation {
    --sra-emerald:       #059669;
    --sra-emerald-dark:  #047857;
    --sra-emerald-light: #ecfdf5;
    --sra-emerald-ring:  rgba(16, 185, 129, 0.133);

    --sra-ink:       #022c22;
    --sra-slate-900: #0f172a;
    --sra-slate-700: #334155;
    --sra-slate-600: #475569;
    --sra-slate-500: #64748b;
    --sra-slate-400: #94a3b8;
    --sra-slate-300: #cbd5e1;
    --sra-slate-200: #e2e8f0;
    --sra-slate-100: #f1f5f9;
    --sra-slate-50:  #f8fafc;
    --sra-white:     #ffffff;

    --sra-amber: #f59e0b;
    --sra-red:   #ef4444;

    --sra-radius-card: 14px;
    --sra-radius:      10px;
    --sra-radius-sm:   7px;

    color: var(--sra-ink);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 500;
    line-height: 1.5;
}

#section-automation *,
#section-automation *::before,
#section-automation *::after {
    box-sizing: border-box;
}


/* ============================================================
   3. WORKSPACE LAYOUT
   ============================================================ */

.sr-agent-workspace {
    display: grid;
    grid-template-columns: minmax(420px, 42%) 1fr;
    gap: 24px;
    align-items: start;
}


/* ============================================================
   4. AGENT CARD (left; not sticky on homepage)
   ============================================================ */

.sr-agent-card {
    position: static; /* on homepage this is never sticky */
    background: var(--sra-white);
    border: 1px solid var(--sra-slate-200);
    border-radius: var(--sra-radius-card);
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(2, 44, 34, 0.04),
        0 8px 20px -10px rgba(2, 44, 34, 0.08);
}
.sr-agent-card-accent {
    height: 4px;
    background: linear-gradient(90deg,
        var(--sra-emerald) 0%,
        #34d399 60%,
        var(--sra-emerald) 100%);
}
.sr-agent-card-body { padding: 24px 26px 20px; }

/* Meta row: label + status chip */
.sr-agent-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.sr-agent-label {
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sra-emerald);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sr-agent-label::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sra-emerald);
}

.sr-agent-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: var(--sra-slate-600);
    background: var(--sra-slate-100);
}
.sr-agent-status-chip .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sra-slate-400);
}

/* Agent name input styled as heading */
.sr-agent-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.sr-agent-name-input {
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    color: var(--sra-ink);
    letter-spacing: -0.02em;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
    min-width: 0;
    outline: none;
    line-height: 1.2;
}
.sr-agent-name-input::placeholder {
    color: var(--sra-slate-400);
    font-weight: 600;
}
.sr-agent-name-input:focus {
    background: var(--sra-slate-50);
    border-radius: 6px;
    padding: 2px 6px;
    margin-left: -6px;
}

/* Shimmer on empty name field — draws the eye. Animation pauses on focus
   and whenever the input has a value (JS adds .has-value on input). */
.sr-agent-name-input:placeholder-shown:not(:focus) {
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        transparent 40%,
        rgba(5, 150, 105, 0.09) 50%,
        transparent 60%,
        transparent 100%
    );
    background-size: 250% 100%;
    background-repeat: no-repeat;
    background-position: 100% 0;
    animation: sra-name-shimmer 2.6s ease-in-out infinite;
    border-radius: 6px;
    padding: 2px 6px;
    margin-left: -6px;
}
@keyframes sra-name-shimmer {
    0%   { background-position: 120% 0; }
    60%  { background-position: -20% 0; }
    100% { background-position: -20% 0; }
}

/* Shake the name input when user clicks Deploy while it's empty.
   JS toggles .shake briefly, then removes it. */
.sr-agent-name-input.shake {
    animation: sra-name-shake 480ms cubic-bezier(.36,.07,.19,.97) both;
    background: #fef3c7 !important;
    background-image: none !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
    border-radius: 6px;
    padding: 2px 6px;
    margin-left: -6px;
}
@keyframes sra-name-shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

.sr-agent-name-hint {
    font-family: inherit;
    font-size: 11px;
    color: var(--sra-slate-400);
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 120ms ease;
    flex-shrink: 0;
    white-space: nowrap;
}
.sr-agent-name-wrap:hover .sr-agent-name-hint,
.sr-agent-name-input:focus ~ .sr-agent-name-hint { opacity: 1; }

/* Mission statement */
.sr-agent-mission {
    font-size: 15px;
    line-height: 1.55;
    color: var(--sra-slate-700);
    margin: 0 0 22px;
}
.sr-agent-mission strong {
    color: var(--sra-ink);
    font-weight: 600;
}
.sr-agent-mission .mono {
    font-family: inherit;
    font-weight: 600;
    color: var(--sra-ink);
    font-size: 14px;
}
.sr-agent-mission.is-empty {
    color: var(--sra-slate-400);
    font-style: italic;
}

/* Stats row */
.sr-agent-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--sra-slate-200);
    border-bottom: 1px solid var(--sra-slate-200);
    margin: 0 -26px 20px;
    background: var(--sra-slate-50);
}
.sr-agent-stat {
    padding: 14px 20px;
    border-right: 1px solid var(--sra-slate-200);
}
.sr-agent-stat:last-child { border-right: none; }
.sr-agent-stat .label {
    font-family: inherit;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sra-slate-500);
    font-weight: 600;
    margin-bottom: 4px;
}
.sr-agent-stat .value {
    font-family: inherit;
    font-size: 18px;
    color: var(--sra-ink);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.sr-agent-stat .value.value-text { font-size: 14px; }
.sr-agent-stat .value .unit {
    font-size: 11px;
    color: var(--sra-slate-400);
    font-weight: 500;
    margin-left: 3px;
}

/* Capability pip summary */
.sr-agent-caps-summary { padding-bottom: 18px; }
.sr-agent-caps-summary .label {
    font-family: inherit;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sra-slate-500);
    font-weight: 600;
    margin-bottom: 10px;
}
.sr-agent-pips {
    display: flex;
    gap: 6px;
    align-items: center;
}
.sr-agent-pip {
    flex: 1;
    height: 36px;
    background: var(--sra-slate-100);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--sra-slate-400);
    transition: all 180ms ease;
    position: relative;
}
.sr-agent-pip.on {
    background: var(--sra-emerald-light);
    color: var(--sra-emerald);
}
.sr-agent-pip svg { width: 14px; height: 14px; stroke-width: 2; }
.sr-agent-pip .pip-num {
    font-family: inherit;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Primary action (Deploy) */
.sr-agent-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sr-btn-deploy {
    width: 100%;
    background: var(--sra-emerald);
    color: var(--sra-white);
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: var(--sra-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 140ms ease;
    box-shadow: 0 4px 12px -2px rgba(5, 150, 105, 0.28);
    letter-spacing: -0.005em;
}
.sr-btn-deploy:hover:not([aria-disabled="true"]) {
    background: var(--sra-emerald-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -2px rgba(5, 150, 105, 0.36);
}
.sr-btn-deploy:active:not([aria-disabled="true"]) { transform: translateY(0); }
.sr-btn-deploy[aria-disabled="true"] {
    background: var(--sra-slate-200);
    color: var(--sra-slate-400);
    cursor: pointer; /* clickable so the shake handler runs */
    box-shadow: none;
}
.sr-btn-deploy svg { width: 16px; height: 16px; stroke-width: 2.2; }
.sr-btn-deploy .icon-stop { display: none; }
.sr-btn-deploy .cost-pill {
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    letter-spacing: 0;
}
.sr-btn-deploy[aria-disabled="true"] .cost-pill {
    background: transparent;
    color: var(--sra-slate-400);
}
.sr-agent-action-hint {
    font-size: 11px;
    color: var(--sra-slate-500);
    text-align: center;
}
.sr-agent-action-hint .mono {
    font-family: inherit;
    color: var(--sra-slate-700);
}


/* ============================================================
   5. CAPABILITY STACK (right)
   ============================================================ */

.sr-capability-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* Global strip */
.sr-agent-global-strip {
    background: var(--sra-white);
    border: 1px solid var(--sra-slate-200);
    border-radius: var(--sra-radius);
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 4px;
}

.sr-field-label {
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sra-slate-500);
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
.sr-select,
.sr-input {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid var(--sra-slate-300);
    border-radius: var(--sra-radius-sm);
    font-family: inherit;
    font-size: 13px;
    color: var(--sra-ink);
    background: var(--sra-white);
    appearance: none;
    outline: none;
}
.sr-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}
.sr-select:focus,
.sr-input:focus {
    border-color: var(--sra-emerald);
    box-shadow: 0 0 0 3px var(--sra-emerald-ring);
}
.sr-field-help {
    font-size: 11px;
    color: var(--sra-slate-500);
    margin-top: 4px;
}
.sr-run-meta-inline {
    font-family: inherit;
    font-size: 11px;
    color: var(--sra-slate-500);
    text-align: right;
    padding-bottom: 4px;
    white-space: nowrap;
}
.sr-run-meta-inline .next {
    color: var(--sra-ink);
    font-weight: 500;
}

/* Section head above capability cards */
.sr-cap-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 4px;
}
.sr-cap-section-head .title {
    font-size: 13px;
    font-weight: 600;
    color: var(--sra-ink);
    letter-spacing: -0.005em;
}
.sr-cap-section-head .sub {
    font-size: 12px;
    color: var(--sra-slate-500);
}


/* ============================================================
   6. CAPABILITY CARD
   ============================================================ */

.sr-cap-card {
    background: var(--sra-white);
    border: 1px solid var(--sra-slate-200);
    border-radius: var(--sra-radius);
    transition: all 160ms ease;
    overflow: hidden;
}
.sr-cap-card:hover { border-color: var(--sra-slate-300); }
.sr-cap-card.expanded {
    border-color: var(--sra-emerald);
    box-shadow: 0 0 0 3px var(--sra-emerald-ring);
}
.sr-cap-card.disabled { background: var(--sra-slate-50); }

/* Card head (the clickable summary row) */
.sr-cap-head {
    display: grid;
    grid-template-columns: 36px 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
}
.sr-cap-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--sra-slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sra-slate-600);
    flex-shrink: 0;
}
.sr-cap-card:not(.disabled) .sr-cap-icon {
    background: var(--sra-emerald-light);
    color: var(--sra-emerald);
}
.sr-cap-icon svg { width: 17px; height: 17px; stroke-width: 2; }

.sr-cap-main { min-width: 0; }
.sr-cap-name-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 3px;
}
.sr-cap-num {
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--sra-slate-400);
    font-weight: 600;
}
.sr-cap-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--sra-ink);
    letter-spacing: -0.005em;
}
.sr-cap-card.disabled .sr-cap-name { color: var(--sra-slate-500); }
.sr-cap-summary {
    font-family: inherit;
    font-size: 11px;
    color: var(--sra-slate-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sr-cap-summary .sep {
    color: var(--sra-slate-300);
    margin: 0 5px;
}
.sr-cap-card.disabled .sr-cap-summary { color: var(--sra-slate-400); }
.sr-cap-summary .summary-run { display: none; } /* idle-only on homepage */

/* Cost pill */
.sr-cap-meta { display: flex; align-items: center; }
.sr-cap-cost {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--sra-ink);
    padding: 4px 9px;
    background: var(--sra-slate-100);
    border-radius: 6px;
    white-space: nowrap;
}
.sr-cap-card:not(.disabled) .sr-cap-cost {
    background: var(--sra-emerald-light);
    color: var(--sra-emerald-dark);
}
.sr-cap-card.disabled .sr-cap-cost {
    color: var(--sra-slate-300);
    background: transparent;
}
.sr-cap-status { display: none; } /* hidden on homepage; run states only */

/* Toggle + chev wrapper */
.sr-cap-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sr-cap-toggle {
    width: 34px;
    height: 20px;
    background: var(--sra-emerald);
    border: none;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background 160ms ease;
    flex-shrink: 0;
    padding: 0;
}
.sr-cap-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 16px;
    width: 16px;
    height: 16px;
    background: var(--sra-white);
    border-radius: 50%;
    transition: left 160ms ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.sr-cap-toggle.off,
.sr-cap-toggle[aria-checked="false"] { background: var(--sra-slate-300); }
.sr-cap-toggle.off::after,
.sr-cap-toggle[aria-checked="false"]::after { left: 2px; }
.sr-cap-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
.sr-cap-chev {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sra-slate-400);
    transition: transform 220ms ease;
}
.sr-cap-card.expanded .sr-cap-chev {
    transform: rotate(180deg);
    color: var(--sra-emerald);
}
.sr-cap-chev svg { width: 14px; height: 14px; stroke-width: 2.2; }

/* Card body (expanded config) */
.sr-cap-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
    border-top: 1px solid transparent;
}
.sr-cap-card.expanded .sr-cap-body {
    max-height: 1600px;
    border-top-color: var(--sra-slate-200);
}
.sr-cap-body-inner {
    padding: 22px 18px 20px;
    display: grid;
    gap: 22px;
}
.sr-cap-desc {
    font-size: 13px;
    color: var(--sra-slate-600);
    line-height: 1.55;
    max-width: 60ch;
    margin: 0;
}

/* Config section inside card body */
.sr-cap-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.sr-cap-section-title .title {
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sra-slate-500);
    font-weight: 600;
}
.sr-cap-section-title .rule {
    flex: 1;
    height: 1px;
    background: var(--sra-slate-100);
}
.sr-cap-field-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 18px;
}
.sr-cap-field-group.single-col { grid-template-columns: 1fr; }

/* In-body toggle row (eg. Google/Bing/ChatGPT/Gemini) */
.sr-field-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Output chips (feeds X, Y) */
.sr-cap-outputs {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.sr-cap-output-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sra-slate-600);
    padding: 4px 8px;
    background: var(--sra-slate-100);
    border-radius: 5px;
    font-weight: 600;
}
.sr-cap-output-chip svg { width: 11px; height: 11px; }


/* ============================================================
   7. RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    /* Hide the complex agent demo widget on mobile —
       the section heading + CTA buttons remain visible */
    .sr-agent-demo-wrap {
        display: none !important;
    }
}

@media (max-width: 1180px) {
    .sr-agent-workspace { grid-template-columns: 1fr; }
    .sr-cap-field-group { grid-template-columns: 1fr; }
    .sr-agent-global-strip { grid-template-columns: 1fr 1fr; }
    .sr-run-meta-inline {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .sr-agent-demo-body { padding: 16px; }
    .sr-agent-stats { grid-template-columns: 1fr; }
    .sr-agent-stat {
        border-right: none;
        border-bottom: 1px solid var(--sra-slate-200);
    }
    .sr-agent-stat:last-child { border-bottom: none; }
    .sr-agent-global-strip { grid-template-columns: 1fr; }
    .sr-cap-head {
        grid-template-columns: 36px 1fr auto;
    }
    .sr-cap-head .sr-cap-meta { display: none; }
}