/* ==========================================================================
   AI Citation Tracker — Frontend Shortcode Styles
   ========================================================================== */

/* Make Beaver Builder columns propagate full height into shortcode wrappers. */
.fl-col-content,
.fl-module,
.fl-module-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.aict-sc-donut-wrap {
    flex: 1;
    min-height: 0;
}

.aict-sc-comp-wrap:has(.aict-sc-comp-chart-card) {
    flex: 1;
    min-height: 0;
}

/* Hero Description shortcode */
.aict-hero-description {
    margin: 0;
}
.aict-hero-description-headline {
    font-size: 42px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -1px;
    margin: 0;
    color: #8553f4;
}
.aict-hero-description-body {
    font-size: 32px;
    font-weight: 400;
    font-family: "Baskerville", serif;
    line-height: 1.4;
    letter-spacing: -0.8px;
    margin: 16px 0 0;
    color: rgba(25, 36, 67, 0.75);
}
.aict-hero-description-closer {
    font-size: 28px;
    font-weight: 400;
    font-family: "Baskerville", serif;
    font-style: italic;
    line-height: 1.4;
    letter-spacing: -0.5px;
    margin: 12px 0 0;
    color: rgba(25, 36, 67, 0.55);
}
.aict-hero-description--empty {
    color: #9ca3af;
    font-size: 14px;
}

.aict-sc-headline {
    font-size: 58px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -1px;
    margin: 0;
}

.aict-sc-headline-url {
    color: #8553f4;
}

.aict-sc-headline-info {
    display: inline-flex;
    vertical-align: top;
    margin-left: 6px;
    margin-top: 4px;
}

.aict-sc-headline-info .aict-sc-metrics-tooltip {
    bottom: auto;
    top: 0;
    right: auto;
    left: calc(100% + 10px);
    transform: translateX(-4px);
    width: 260px;
    letter-spacing: 0;
}

.aict-sc-headline-info:hover .aict-sc-metrics-tooltip,
.aict-sc-headline-info:focus .aict-sc-metrics-tooltip {
    transform: translateX(0);
}

.aict-sc-headline-intro {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.5px;
    margin: 16px 0 0;
    color: rgba(25, 36, 67, 1);
}

.aict-sc-headline-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: inherit;
    letter-spacing: -0.5px;
    margin: 8px 0 0;
}

.aict-sc-headline-sub strong {
    font-weight: 700;
}

.aict-sc-accordion-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}

.aict-sc-queries-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aict-sc-queries-sort {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a0a09a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid #e5e5e2;
    border-radius: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #70706a;
    padding: 5px 30px 5px 12px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, color 0.15s;
}

.aict-sc-queries-sort:hover {
    border-color: #c0c0bb;
    color: #0e0e0c;
}

.aict-sc-queries-sort:focus {
    border-color: #8553f4;
}

.aict-sc-accordion-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.4px !important;
    color: #0e0e0c;
    margin: 0;
}

.aict-sc-accordion-title-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #70706a;
}

.aict-sc-accordion-title-badge strong {
    font-weight: 700;
    color: #0e0e0c;
}

.aict-sc-accordion-title-badge--lost {
    font-weight: 700;
    color: #b91c1c;
    letter-spacing: 0.3px;
}

.aict-sc-query-top-comp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #0e0e0c;
    background: transparent;
    border: 1px dashed #f5b8b3;
    border-radius: 6px;
    padding: 6px 6px 6px 12px;
    flex-shrink: 0;
    white-space: nowrap;
}
.aict-sc-query-top-comp-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 3px 5px;
    border-radius: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.aict-sc-query-won-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 1px 6px;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}

.aict-sc-accordion {
    --aict-source-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-margin-top: 16px;
}

/* Item */
.aict-sc-item {
    border: 1px solid #e5e5e2;
    border-radius: 12px;
    overflow: visible;
}

/* Trigger button */
.aict-sc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s ease;
    color: inherit;
    border-radius: 12px !important;
    overflow: visible;
}

.aict-sc-open > .aict-sc-trigger {
    border-radius: 12px 12px 0 0 !important;
}

.aict-sc-trigger:hover,
.aict-sc-trigger:focus {
    background: #fafaf9 !important;
    border: none !important;
    box-shadow: none !important;
    color: inherit;
}

.aict-sc-open > .aict-sc-trigger,
.aict-sc-open > .aict-sc-trigger:hover {
    background: #fafaf9 !important;
}

/* Query left group (cite dot + text) */
.aict-sc-query-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* Citation comparison badges */
.aict-sc-query-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.aict-sc-query-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 0px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
    position: relative;
}

.aict-sc-query-badge-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    white-space: nowrap;
    background: rgba(14, 14, 12, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    padding: 6px 10px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10000;
}

.aict-sc-query-badge:hover .aict-sc-query-badge-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.aict-sc-query-badge--you {
    background: #ede9fe;
    color: #7c3aed;
}

.aict-sc-query-badge--comp {
    color: #16a34a;
}

.aict-sc-query-badge--comp-winning {
    color: #dc2626;
}

.aict-sc-query-badge--comp-losing {
    color: #16a34a;
}

/* Query text */
.aict-sc-query-text {
    font-size: 18px;
    font-weight: 400;
    color: #0e0e0c;
    line-height: 1.4;
    flex: 1;
}

/* Right side meta */
.aict-sc-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.aict-sc-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aict-sc-stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0e0e0c;
}

.aict-sc-stat-value--cited {
    font-size: 12px;
    color: #fff;
    background: #7c3aed;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}

.aict-sc-stat-value--cited-zero {
    color: #9ca3af;
    background: #e5e7eb;
}

.aict-sc-stat-value--cited:hover .aict-sc-query-badge-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.aict-sc-stat-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #a0a09a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Traffic potential badge in accordion */
/* Signal strength traffic indicator */
.aict-sc-traffic-signal {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    position: relative;
    flex-shrink: 0;
    height: 14px;
}

.aict-sc-signal-bar {
    display: block;
    width: 3px;
    border-radius: 1px;
    background: #e2e2de;
    flex-shrink: 0;
}

.aict-sc-signal-bar--1 { height: 4px; }
.aict-sc-signal-bar--2 { height: 6px; }
.aict-sc-signal-bar--3 { height: 8px; }
.aict-sc-signal-bar--4 { height: 11px; }
.aict-sc-signal-bar--5 { height: 14px; }

.aict-sc-traffic-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    white-space: nowrap;
    background: rgba(14, 14, 12, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    padding: 6px 10px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10000;
}

.aict-sc-traffic-signal:hover .aict-sc-traffic-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Chevron */
.aict-sc-chevron {
    display: flex;
    align-items: center;
    color: #a0a09a;
    transition: transform 0.18s ease;
}

.aict-sc-open > .aict-sc-trigger .aict-sc-chevron {
    transform: rotate(180deg);
}

/* Body */
.aict-sc-body {
    background: #f4f4f2;
    border-top: 0px solid #e5e5e2;
    overflow: hidden;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}

.aict-sc-body-inner {
    min-height: 0;
    padding: 0 16px;
    transition: padding 0.25s ease;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.aict-sc-open > .aict-sc-body {
    grid-template-rows: 1fr;
    border-top-width: 1px;
}

.aict-sc-open > .aict-sc-body .aict-sc-body-inner {
    padding: 16px;
}

/* Grouped bar chart */
.aict-sc-bar-wrap {
    height: 220px;
    margin-bottom: 24px;
    padding: 0 4px;
}

.aict-sc-bar-canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Competitor summary bar */
.aict-sc-comp-summary-scroll-wrap {
    position: relative;
    margin-bottom: 14px;
    overflow: hidden;
}
.aict-sc-comp-summary-scroll-wrap::before,
.aict-sc-comp-summary-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s ease;
}
.aict-sc-comp-summary-scroll-wrap::before {
    left: 0;
    background: linear-gradient(to left, transparent, #f4f4f2);
    opacity: 0;
}
.aict-sc-comp-summary-scroll-wrap::after {
    right: 0;
    background: linear-gradient(to right, transparent, #f4f4f2);
}
.aict-sc-comp-summary-scroll-wrap.aict-scroll-left::before {
    opacity: 1;
}
.aict-sc-comp-summary {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 48px;
    width: 100%;
    box-sizing: border-box;
}
.aict-sc-comp-summary::-webkit-scrollbar {
    display: none;
}

.aict-sc-comp-summary-item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    background: transparent;
    border: 1px dashed #f5b8b3;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: var(--aict-source-size);
    min-width: 110px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.aict-sc-comp-summary-item {
    cursor: pointer;
}
.aict-sc-comp-summary-item:hover {
    background: var(--aict-hover-bg, rgba(245, 184, 179, 0.35));
}

.aict-sc-comp-summary-item--you {
    border: 2px solid rgba(124, 58, 237, 0.5);
}

.aict-sc-comp-summary-item--you:hover {
    background: rgba(196, 181, 253, 0.35);
}

.aict-sc-comp-summary-item--you .aict-sc-comp-summary-count {
    background: #7c3aed;
}

.aict-sc-comp-summary-domain {
    color: #3a3a36;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.aict-sc-comp-summary-count {
    color: #fff;
    background: #e74c3c;
    border-radius: 4px;
    padding: 0px 5px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-width: 18px;
    text-align: center;
    margin-left: auto;
}

/* Leaderboard horizontal bar chart */
.aict-sc-hbar-chart {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0 12px;
}
.aict-sc-hbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.aict-sc-hbar-label {
    font-size: 13px;
    font-weight: 500;
    color: #3a3a36;
    width: 140px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}
.aict-sc-hbar-track {
    flex: 1;
    background: #f0f0ee;
    border-radius: 4px;
    height: 28px;
    overflow: hidden;
}
.aict-sc-hbar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
    min-width: 4px;
}
.aict-sc-hbar-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #3a3a36;
    width: 28px;
    flex-shrink: 0;
    text-align: left;
}

/* Platform grid */
.aict-sc-platforms {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

/* Platform card */
.aict-sc-platform {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    background: #fff;
    border: 1px solid #e5e5e2;
    border-radius: 10px;
    padding: 14px 16px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Platform header */
.aict-sc-platform-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0ee;
}

.aict-sc-platform-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.aict-sc-dot-agentai_chatgpt    { background: #1a1a1a; }
.aict-sc-dot-agentai_perplexity { background: #20808d; }
.aict-sc-dot-gemini             { background: #4285f4; }
.aict-sc-dot-claude             { background: #d4a574; }

.aict-sc-platform-name {
    font-size: 16px;
    font-weight: 400;
    color: #343430;
    text-transform: none;
    letter-spacing: 0;
    flex: 1;
}

/* Show all button */
.aict-sc-show-all {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    color: #70706a;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: background 0.1s, color 0.1s;
}

.aict-sc-show-all:hover {
    background: #f4f4f2;
    color: #0e0e0c;
}

.aict-sc-show-chevron {
    font-size: 13px;
    line-height: 1;
}

/* Sources list */
.aict-sc-sources {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aict-sc-source {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f4f4f2;
    opacity: 0.5;
}

.aict-sc-source--cited,
.aict-sc-source--competitor {
    opacity: 1;
}
.aict-sc-source--hidden {
    display: none;
}
.aict-sc-sources-show-all-global {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px 0;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #7D56EB;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.03em;
    transition: color 0.15s;
}

.aict-num-col {
    text-align: right !important;
}
.aict-sc-sources-show-all-global:hover,
.aict-sc-sources-show-all-global:focus,
.aict-sc-sources-show-all-global:active {
    color: #6941d4;
    background: transparent !important;
    border: none !important;
}

.aict-sc-source:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.aict-sc-source:first-child {
    padding-top: 0;
}

.aict-sc-source-rank {
    font-size: var(--aict-source-size);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: #a0a09a;
    width: 16px;
    flex-shrink: 0;
    text-align: right;
}

.aict-sc-source-domain {
    font-size: var(--aict-source-size);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #343430;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aict-sc-source-meta {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0e0e0c;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    cursor: default;
}

.aict-sc-source-meta::after {
    content: attr(data-rate);
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: rgba(14, 14, 12, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.aict-sc-source-meta:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Highlighted own-site citation row */
.aict-sc-source--cited {
    background: rgba(124, 58, 237, 0.05);
    margin: 0 -12px;
    padding: 10px 12px 10px 8px !important;
    border-radius: 6px;
    border-top: 1px solid #fff;
    border-bottom-color: #fff;
    border-left: 4px solid #7c3aed;
}

.aict-sc-source--cited:first-child {
    margin-top: -12px;
}

/* Highlighted competitor row */
.aict-sc-source--competitor {
    background: rgba(239, 68, 68, 0.05);
    margin: 0 -12px;
    padding: 10px 12px !important;
    border-radius: 6px;
    border-top: 1px solid #fff;
    border-bottom-color: #fff;
}

.aict-sc-source--competitor:first-child {
    margin-top: -12px;
}

.aict-sc-source--competitor .aict-sc-source-rank,
.aict-sc-source--cited .aict-sc-source-rank {
    color: #0e0e0c;
}

.aict-sc-source-cited-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7c3aed;
    flex-shrink: 0;
    margin-right: -4px;
}

.aict-sc-source-comp-dot {
    background: #ef4444;
}

/* Alias domain badge */
.aict-sc-alias-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Cross-platform presence dots */
.aict-sc-xplat-dots {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    margin-right: 4px;
    flex-shrink: 0;
}

.aict-sc-xplat-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    opacity: 0.75;
    flex-shrink: 0;
    position: relative;
    cursor: default;
}

.aict-sc-xplat-dot-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(14, 14, 12, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10000;
}

.aict-sc-xplat-dot:hover .aict-sc-xplat-dot-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Scan Stats Shortcode
   ========================================================================== */

.aict-sc-scan-stats--fixed {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

.aict-sc-scan-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(14, 14, 12, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.aict-sc-scan-stats-scroll-top {
    display: flex;
    flex-shrink: 0;
    outline: none;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.aict-sc-scan-stats-scroll-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.aict-sc-scan-stats-scroll-top:hover .aict-sc-scan-stats-scroll-overlay {
    opacity: 1;
}

.aict-sc-scan-stats-logo {
    height: 56px;
    width: auto;
    flex-shrink: 0;
    display: block;
}

.aict-sc-scan-stats-right-image-link {
    display: flex;
    flex-shrink: 0;
    outline: none;
}

.aict-sc-scan-stats-right-image {
    height: 32px;
    width: auto;
    flex-shrink: 0;
    display: block;
    opacity: 0.5;
}

.aict-sc-scan-stats-label {
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aict-sc-scan-stats-since {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
}

/* Loading state */
[data-aict-shortcode].aict-sc-loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.aict-sc-period-select {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0);
    border-radius: 20px;
    padding: 10px 32px 10px 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    outline: none;
    flex-shrink: 0;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.aict-sc-period-select:hover {
    border-color: rgba(255,255,255,0.35);
    background-color: rgba(255,255,255,0.12);
}

.aict-sc-period-select option {
    background: #2a2a28;
    color: #fff;
}

.aict-sc-scan-stats-meta {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
}

.aict-sc-scan-stats .aict-sc-stat-value {
    color: #fff;
}

.aict-sc-scan-stats .aict-sc-stat-label {
    color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   Metrics Shortcode
   ========================================================================== */

.aict-sc-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #e5e5e2;
    border-radius: 12px;
    overflow: visible;
}
.aict-sc-metrics--cols-1 { grid-template-columns: 1fr; }
.aict-sc-metrics--cols-2 { grid-template-columns: repeat(2, 1fr); }
.aict-sc-metrics--cols-3 { grid-template-columns: repeat(3, 1fr); }
.aict-sc-metrics--cols-4 { grid-template-columns: repeat(4, 1fr); }

.aict-sc-metrics-card:first-child { border-radius: 12px 0 0 12px; }
.aict-sc-metrics-card:last-child  { border-radius: 0 12px 12px 0; }

/* Separated variant — used when fewer than 4 cards are shown */
.aict-sc-metrics--separated .aict-sc-metrics-label {
    font-family: inherit;
    font-size: 24px;
    font-weight: 400;
    color: #0e0e0c;
    letter-spacing: 0;
}

.aict-sc-metrics--separated {
    gap: 16px;
    border: none;
    background: transparent;
}
.aict-sc-metrics--separated .aict-sc-metrics-card {
    border: 1px solid #e5e5e2;
    border-radius: 12px !important;
    border-right: 1px solid #e5e5e2;
}
.aict-sc-metrics--separated .aict-sc-metrics-card:last-child {
    border-right: 1px solid #e5e5e2;
}
.aict-sc-metrics--separated .aict-sc-metrics-card::after {
    border-radius: 0 0 2px 2px;
}

.aict-sc-metrics-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px 16px;
    background: #fff;
    border-right: 1px solid #e5e5e2;
    position: relative;
}

.aict-sc-metrics-card:last-child {
    border-right: none;
}

.aict-sc-metrics-card::after {
    display: none;
}

.aict-sc-metrics-card--champion {
    justify-content: center;
}
.aict-sc-metrics-card--champion::after {
    display: none;
}
.aict-sc-metrics-champion-name {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #0e0e0c;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.aict-sc-metrics-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.aict-sc-metrics-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: default;
    flex-shrink: 0;
}

.aict-sc-metrics-info svg {
    display: block;
    transition: opacity 0.15s;
}

.aict-sc-metrics-info:hover svg,
.aict-sc-metrics-info:focus svg {
    opacity: 0.7;
}

.aict-sc-metrics-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: rgba(14, 14, 12, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10000;
}

.aict-sc-metrics-info:hover .aict-sc-metrics-tooltip,
.aict-sc-metrics-info:focus .aict-sc-metrics-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent card overflow from clipping tooltip */
.aict-sc-metrics-card {
    overflow: visible;
}

.aict-sc-metrics-view-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.aict-sc-metrics-view-link:hover {
    text-decoration: underline;
}

.aict-sc-metrics-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #70706a;
    letter-spacing: 0.01em;
}

.aict-sc-metrics-value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.aict-sc-metrics-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0e0e0c;
    line-height: 1;
}

.aict-sc-metrics-unit {
    font-size: 20px;
    font-weight: 600;
    color: #0e0e0c;
}

.aict-sc-metrics-trend {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.aict-sc-metrics-trend--up      { color: #047857; background: rgba(16, 185, 129, 0.1); }
.aict-sc-metrics-trend--down    { color: #b91c1c; background: rgba(239, 68, 68, 0.1); }
.aict-sc-metrics-trend--neutral { color: #70706a; background: #f4f4f2; }

.aict-sc-metrics-delta {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    align-self: baseline;
}

.aict-sc-metrics-delta--up      { color: #047857; }
.aict-sc-metrics-delta--down    { color: #b91c1c; }
.aict-sc-metrics-delta--neutral { color: #a0a09a; }

.aict-sc-headline-delta {
    font-size: 18px;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

.aict-sc-headline-results {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0e0e0c;
    margin: 32px 0 0;
    letter-spacing: 0;
}

.aict-sc-headline-summary {
    margin: 24px 0 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.aict-sc-headline-summary-gap {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.aict-sc-headline-summary-gap--down { color: #b91c1c; }
.aict-sc-headline-summary-gap--up   { color: #047857; }

.aict-sc-headline-summary-stats {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aict-sc-headline-summary-stats li {
    font-size: 16px;
    font-weight: 400;
    color: rgba(25, 36, 67, 0.7);
}

.aict-sc-headline-summary-stats li strong {
    font-weight: 700;
    color: #0e0e0c;
}

.aict-sc-headline-invisible {
    color: #b91c1c;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 6px;
}

.aict-sc-headline-summary-verdict {
    font-size: 16px;
    font-weight: 600;
    color: #b91c1c;
    margin: 0;
}

.aict-sc-metrics-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    color: #a0a09a;
    margin-top: 2px;
}

.aict-sc-metrics-sub--link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.aict-sc-metrics-sub--link a:hover {
    text-decoration: underline;
}

.aict-sc-metrics-sub-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aict-sc-metrics-sub-link:hover {
    color: #7c3aed;
}

@media (max-width: 900px) {
    .aict-sc-metrics {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .aict-sc-metrics-card {
        border-right: 1px solid #e5e5e2;
        border-bottom: 1px solid #e5e5e2;
    }
    .aict-sc-metrics-card:nth-child(2n) {
        border-right: none;
    }
    .aict-sc-metrics-card:nth-last-child(-n+2) {
        border-bottom: none;
    }
    /* Reset corner radii then re-apply for 2-col layout */
    .aict-sc-metrics-card:first-child  { border-radius: 12px 0 0 0; }
    .aict-sc-metrics-card:nth-child(2) { border-radius: 0 12px 0 0; }
    .aict-sc-metrics-card:last-child   { border-radius: 0 0 12px 0; }
    .aict-sc-metrics-card:nth-last-child(2):nth-child(2n+1) { border-radius: 0 0 0 12px; }
    .aict-sc-metrics-value { font-size: 26px; }
}

@media (max-width: 480px) {
    .aict-sc-metrics {
        grid-template-columns: 1fr !important;
    }
    .aict-sc-metrics-card {
        border-right: none !important;
        border-bottom: 1px solid #e5e5e2;
        border-radius: 0 !important;
    }
    .aict-sc-metrics-card:first-child  { border-radius: 12px 12px 0 0 !important; }
    .aict-sc-metrics-card:last-child   { border-radius: 0 0 12px 12px !important; border-bottom: none; }
    .aict-sc-metrics-value { font-size: 28px; }
    .aict-sc-metrics-delta { font-size: 12px; }
    .aict-sc-metrics-sub   { font-size: 11px; }
}

/* ==========================================================================
   Top Domains Shortcode
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');

.aict-sc-domains {
    border: 1px solid #e5e5e2;
    border-radius: 12px;
    overflow: hidden;
}

.aict-sc-domains-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e2;
}

.aict-sc-domains-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.4px !important;
    color: #0e0e0c;
}

.aict-sc-domains-total {
    font-size: 12px;
    color: #a0a09a;
    background: #f4f4f2;
    border: 1px solid #e5e5e2;
    border-radius: 20px;
    padding: 2px 10px;
}

/* Body layout */
.aict-sc-domains-body {
    display: flex;
    align-items: stretch;
}

/* Chart column */
.aict-sc-domains-chart-col {
    width: 50%;
    flex-shrink: 0;
    padding: 24px 20px;
    border-right: 1px solid #e5e5e2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aict-sc-domains-chart-wrap {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.aict-sc-domains-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.aict-sc-domains-chart-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.aict-sc-domains-chart-total {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(20px, 5cqi, 36px);
    font-weight: 700;
    color: #0e0e0c;
    line-height: 1;
}

.aict-sc-domains-chart-total-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(9px, 2cqi, 13px);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #a0a09a;
    margin-top: 4px;
}


/* Table column */
.aict-sc-domains-table-col {
    width: 50%;
    flex: none;
    min-width: 0;
}

.aict-sc-domains-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.aict-sc-domains-table thead tr {
    border-bottom: 1px solid #e5e5e2;
}

.aict-sc-domains-table th {
    padding: 14px 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #a0a09a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    background: #fff;
}

.aict-sc-domains-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: #343430;
    border-bottom: 1px solid #f4f4f2;
    vertical-align: middle;
}

.aict-sc-domains-table tbody tr:last-child td {
    border-bottom: none;
}

.aict-sc-domains-table tbody tr {
    cursor: pointer;
}

.aict-sc-domains-table tbody tr:hover td {
    background: #fafaf9;
}

.aict-sc-domains-table-scroll {
    width: 100%;
}

.aict-sc-domains-table-scroll--overflow {
    max-height: 490px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e6e6e2 transparent;
}

.aict-sc-domains-table-scroll--overflow::-webkit-scrollbar {
    width: 4px;
}

.aict-sc-domains-table-scroll--overflow::-webkit-scrollbar-track {
    background: transparent;
}

.aict-sc-domains-table-scroll--overflow::-webkit-scrollbar-thumb {
    background: #e6e6e2;
    border-radius: 2px;
}

.aict-sc-domains-table-body {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.aict-sc-col-rank {
    width: 40px;
    color: #a0a09a !important;
    font-size: 16px !important;
}

.aict-sc-col-domain strong {
    font-weight: 400;
    font-size: 16px;
    color: #0e0e0c;
}

.aict-sc-col-platforms {
    text-align: right;
    width: 100px;
}

.aict-sc-col-platforms .aict-sc-xplat-dots {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-end;
    display: inline-flex;
}

.aict-sc-domains-table td.aict-sc-col-citations {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: #0e0e0c;
    text-align: right;
}

.aict-sc-domains-table th.aict-sc-col-citations {
    text-align: right;
}

.aict-sc-col-first,
.aict-sc-col-last {
    color: #70706a !important;
    white-space: nowrap;
}

/* Platform badges */
.aict-sc-plat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #70706a;
    background: #f0f0ee;
    flex-shrink: 0;
}

.aict-sc-plat-chatgpt    { background: #1a1a1a; color: #fff; }
.aict-sc-plat-perplexity { background: #00C4C4; color: #fff; }
.aict-sc-plat-gemini     { background: #005AEB; color: #fff; }
.aict-sc-plat-claude     { background: #FF8900; color: #fff; }

/* ==========================================================================
   Competitors Shortcode
   ========================================================================== */

.aict-sc-comp-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.aict-sc-comp-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.aict-sc-comp-row:has(.aict-sc-comp-chart-card) {
    min-height: 480px;
}

.aict-sc-comp-chart-card,
.aict-sc-comp-rankings-card {
    background: #fff;
    border: 1px solid #e5e5e2;
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.aict-sc-no-outline {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.aict-sc-comp-chart-card {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.aict-sc-comp-rankings-card {
    flex: 1 1 0;
    min-width: 0;
}

.aict-sc-comp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.aict-sc-comp-card-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.4px !important;
    color: #0e0e0c;
}

.aict-sc-comp-card-title-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.aict-sc-comp-behind-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #b91c1c;
    white-space: nowrap;
    flex-shrink: 0;
}

.aict-sc-comp-behind-badge--last {
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.aict-sc-comp-period-badge {
    font-size: 12px;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #70706a;
    background: #f4f4f2;
    border: 1px solid #e5e5e2;
    border-radius: 20px;
    padding: 3px 10px;
}

.aict-sc-donut-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aict-sc-donut-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.aict-sc-donut-toggle button.aict-sc-donut-toggle-btn {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #b0b8c1;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    transition: color 0.15s;
    white-space: nowrap;
    line-height: 1;
    border-radius: 0 !important;
    -webkit-appearance: none;
    appearance: none;
    text-transform: none;
    letter-spacing: normal;
}

.aict-sc-donut-toggle button.aict-sc-donut-toggle-btn--active {
    color: #0e0e0c;
    font-weight: 500;
}

.aict-sc-donut-toggle button.aict-sc-donut-toggle-btn:hover,
.aict-sc-donut-toggle button.aict-sc-donut-toggle-btn:focus,
.aict-sc-donut-toggle button.aict-sc-donut-toggle-btn:active {
    color: #0e0e0c;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none;
}

.aict-sc-donut-toggle-sep {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 12px;
    color: #d0d5dd;
    line-height: 1;
    user-select: none;
}

.aict-sc-comp-chart-wrap {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.aict-sc-comp-chart-wrap canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Scrollable rankings tbody */
.aict-sc-comp-table-scroll {
    width: 100%;
}

.aict-sc-comp-table-scroll-wrap {
    position: relative;
}

.aict-sc-comp-table-scroll-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s;
}

.aict-sc-comp-table-scroll-wrap.aict-sc-scroll-end::after {
    opacity: 0;
}

.aict-sc-comp-table-scroll--overflow {
    /* 5 rows * ~60px each */
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e6e6e2 transparent;
}

.aict-sc-comp-table-scroll--overflow::-webkit-scrollbar {
    width: 4px;
}

.aict-sc-comp-table-scroll--overflow::-webkit-scrollbar-track {
    background: transparent;
}

.aict-sc-comp-table-scroll--overflow::-webkit-scrollbar-thumb {
    background: #e6e6e2;
    border-radius: 2px;
}

.aict-sc-comp-table-head {
    margin-bottom: 0;
}

/* Rankings table */
.aict-sc-comp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.aict-sc-comp-table thead tr {
    border-bottom: 1px solid #e5e5e2;
}

.aict-sc-comp-table th {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #a0a09a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 0 10px;
    text-align: left;
}

.aict-sc-comp-th-right {
    text-align: right !important;
}

.aict-sc-comp-th-right:last-child {
    width: 80px;
    min-width: 80px;
}

.aict-sc-comp-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f4f4f2;
    vertical-align: middle;
}

.aict-sc-comp-td-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aict-sc-comp-color-bar {
    flex-shrink: 0;
    align-self: stretch;
    width: 3px;
    margin-top: -12px;
    margin-bottom: -12px;
}

.aict-sc-comp-table tbody tr:last-child td {
    border-bottom: none;
}

.aict-sc-comp-table tbody tr.aict-sc-comp-row-you {
    background: linear-gradient(to right, #f5f2ff, #ffffff);
}

.aict-sc-comp-table tbody tr.aict-sc-comp-row-you td {
    background: transparent;
}

.aict-sc-comp-table tbody tr.aict-sc-comp-row-you .aict-sc-comp-name {
    color: #7D56EB;
    font-weight: 500;
}

.aict-sc-comp-table tbody tr.aict-sc-comp-row-you .aict-sc-comp-domain {
    color: #6b7280 !important;
}

.aict-sc-comp-table tbody tr.aict-sc-comp-row-you .aict-sc-comp-citations-num {
    color: #0e0e0c !important;
}

.aict-sc-comp-table tbody tr.aict-sc-comp-row-you .aict-sc-comp-td-rank {
    color: #0e0e0c !important;
}

.aict-sc-comp-name {
    font-size: 16px;
    font-weight: 400;
    color: #0e0e0c;
    line-height: 1.3;
}

.aict-sc-comp-domain {
    font-size: 14px;
    color: #a0a09a;
    margin-top: 1px;
}

.aict-sc-comp-td-rank {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #c0c0bb;
    flex-shrink: 0;
    width: 20px;
}

.aict-sc-comp-citations-cell {
    text-align: right;
    white-space: nowrap;
}

.aict-sc-comp-citations-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0e0e0c;
    line-height: 1;
}

.aict-sc-comp-vs-cell {
    text-align: right;
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    width: 80px;
    min-width: 80px;
}

.aict-sc-comp-arrow-up {
    display: none;
}

.aict-sc-comp-table tr[data-aict-ds-index] {
    cursor: pointer;
}

/* Competitors chart tooltip */
.aict-sc-comp-tooltip {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 9999;
    background: rgba(12, 12, 11, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}

.aict-sc-comp-tooltip.aict-sc-comp-tooltip-visible {
    opacity: 1;
}

.aict-sc-comp-tt-date {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.aict-sc-comp-tt-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aict-sc-comp-tt-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aict-sc-comp-tt-line {
    width: 16px;
    height: 2px;
    border-radius: 2px;
    flex-shrink: 0;
}

.aict-sc-comp-tt-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    flex: 1;
}

.aict-sc-comp-tt-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin-left: 8px;
}

/* Chart tooltip */
.aict-chart-tooltip {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 14, 12, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 7px 12px 7px 9px;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.aict-chart-tooltip.aict-tooltip-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.aict-chart-tooltip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.aict-chart-tooltip-domain {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.01em;
}

.aict-chart-tooltip-count {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin-left: 2px;
}

/* Empty state */
.aict-sc-empty {
    margin: 16px 0 0;
    font-size: 13px;
    color: #a0a09a;
}

.aict-sc-no-data {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #fafaf9;
    border: 1px dashed #e5e5e2;
    border-radius: 8px;
    margin: 4px 0 8px;
}

.aict-sc-no-data-icon {
    font-size: 18px;
    color: #d1d1cc;
    flex-shrink: 0;
    line-height: 1;
}

.aict-sc-no-data-text {
    font-size: 13px;
    color: #a0a09a;
    line-height: 1.5;
}

/* ==========================================================================
   Citation Comparison Shortcode [aict_citation_comparison]
   ========================================================================== */

.aict-sc-comparison {
    /*font-family: 'Plus Jakarta Sans', sans-serif;*/
    border: 1px solid #e5e5e2;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.aict-sc-comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0ee;
}

.aict-sc-comparison-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.4px !important;
    color: #0e0e0c;
}

.aict-sc-comparison-period {
    font-size: 12px;
    font-weight: 500;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #6b6b65;
    background: #f4f4f2;
    border-radius: 20px;
    padding: 4px 12px;
}

.aict-sc-comparison--leaderboard .aict-sc-comparison-cols,
.aict-sc-comparison--leaderboard .aict-sc-comparison-row {
    grid-template-columns: 52px 1fr 100px 220px;
}
.aict-sc-comparison-cols {
    display: grid;
    grid-template-columns: 52px 1fr 100px 220px 90px;
    padding: 8px 24px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.06em;
    text-align: left;
    color: #a0a09a;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e5e2;
}

.aict-sc-comparison-row {
    display: grid;
    grid-template-columns: 52px 1fr 100px 220px 90px;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid #f4f4f2;
    border-left: 3px solid transparent;
    transition: background 0.15s ease;
}

.aict-sc-comparison-row:last-child {
    border-bottom: none;
}

.aict-sc-comparison-cols span:last-child {
    text-align: right !important
}

.aict-sc-comparison-row:hover {
    background: #f9f9f8;
}

.aict-sc-comp-row-you {
    border-left-color: #7D56EB;
    background: #f5f2ff;
}

.aict-sc-comp-row-you:hover {
    background: #f0ecff;
}

.aict-sc-comp-row-ahead {
    border-left-color: #fca5a5;
}

.aict-sc-comp-rank {
    font-size: 18px;
    font-weight: 800;
    color: #d4d4ce;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.aict-sc-comp-row-you .aict-sc-comp-rank {
    color: #7D56EB;
}

.aict-sc-comp-row-ahead .aict-sc-comp-rank {
    color: #0e0e0c;
}

.aict-sc-comp-identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aict-sc-comp-name {
    font-size: 14px;
    font-weight: 400;
    color: #0e0e0c;
    line-height: 1.2;
}

.aict-sc-comp-row-you .aict-sc-comp-name {
    color: #7D56EB;
}

.aict-sc-comp-domain-sm {
    font-size: 14px;
    color: #a0a09a;
}

.aict-sc-comparison-cols span:nth-child(5) {
    text-align: right;
    padding-left: 24px;
}

.aict-sc-comp-cit-num {
    font-size: 20px;
    font-weight: 800;
    color: #0e0e0c;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.aict-sc-comp-row-you .aict-sc-comp-cit-num {
    color: #7D56EB;
}

.aict-sc-comp-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aict-sc-comp-bar-track {
    flex: 1;
    height: 4px;
    background: rgba(0,0,0,0.05);
    border-radius: 99px;
    overflow: hidden;
}

.aict-sc-comp-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: #d4d4ce;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.aict-sc-comp-row-you .aict-sc-comp-bar-fill {
    background: #7D56EB;
}

.aict-sc-comp-row-ahead .aict-sc-comp-bar-fill {
    background: #f59e0b;
}

.aict-sc-comp-pct {
    font-size: 11px;
    color: #a0a09a;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    width: 36px;
    text-align: right;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.aict-sc-comp-delta {
    text-align: right;
    padding-left: 24px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.aict-sc-comp-delta-you   { color: #d4d4ce; font-weight: 400; }
.aict-sc-comp-delta-ahead { color: #16a34a; }
.aict-sc-comp-delta-behind { color: #dc2626; }
.aict-sc-comp-delta-tie   { color: #d4d4ce; }

.aict-sc-comp-platforms {
    display: flex;
    align-items: center;
    gap: 5px;
}

.aict-sc-comp-plat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.aict-sc-comp-plat-dot--inactive {
    background: #e5e5e2;
}

@media (max-width: 640px) {
    .aict-sc-comparison-cols,
    .aict-sc-comparison-row {
        grid-template-columns: 40px 1fr 60px 140px 60px;
    }
    .aict-sc-comparison--leaderboard .aict-sc-comparison-cols,
    .aict-sc-comparison--leaderboard .aict-sc-comparison-row {
        grid-template-columns: 40px 1fr 60px 140px;
    }
    .aict-sc-comparison-cols,
    .aict-sc-comparison-row {
        padding-left: 16px;
        padding-right: 16px;
    }
    .aict-sc-comp-cit-num { font-size: 16px; }
}

.aict-sc-comparison-scroll-wrap {
    position: relative;
}

.aict-sc-comparison-scroll-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s;
}

.aict-sc-comparison-scroll-wrap.aict-sc-scroll-end::after {
    opacity: 0;
}

.aict-sc-comparison-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e6e6e2 transparent;
}

.aict-sc-comparison-scroll::-webkit-scrollbar {
    width: 4px;
}

.aict-sc-comparison-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.aict-sc-comparison-scroll::-webkit-scrollbar-thumb {
    background: #e6e6e2;
    border-radius: 2px;
}

/* Platform Donut Chart */
.aict-sc-donut-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.aict-sc-donut-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 0;
    flex: 1;
    min-height: 0;
}

.aict-sc-donut-content-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.aict-sc-donut-canvas-wrap {
    position: relative;
    width: calc(100% - 48px);
    aspect-ratio: 1 / 1;
}

.aict-sc-donut-canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
}

.aict-sc-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.aict-sc-donut-total {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0e0e0c;
    line-height: 1;
}

.aict-sc-donut-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #9b9b96;
    margin-top: 5px;
    text-transform: uppercase;
}

.aict-sc-donut-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.aict-sc-donut-legend-item {
    display: inline-flex;
}

.aict-sc-donut-legend-item button {
    padding: 8px 12px;
}

.aict-sc-donut-legend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s ease;
    background-origin: border-box;
}

.aict-sc-donut-legend-badge.aict-sc-donut-badge--off {
    opacity: 0.35;
}

.aict-sc-donut-legend-abbr {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.aict-sc-donut-legend-pct {
    font-weight: 500;
    opacity: 0.75;
}

/* [aict_hero_summary] */
.aict-hero-summary {
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* background: #fff;
    border: 1px solid #e5e5e2;
    border-radius: 12px; */
    padding: 0px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.aict-hero-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 4px;
}
.aict-hero-summary-header .aict-hero-summary-label {
    margin: 0;
}
.aict-hero-summary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: #fff;
    background: #7D56EB;
    border-radius: 12px;
    padding: 10px 18px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.aict-hero-summary-btn:hover,
.aict-hero-summary-btn:active,
.aict-hero-summary-btn:visited,
.aict-hero-summary-btn:focus {
    background: #1B2440;
    color: #fff !important;
    text-decoration: none;
}
.aict-hero-summary-label {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.4px;
    text-transform: none;
    color: #0e0e0c;
    opacity: 1;
    margin: 0 0 4px;
}
.aict-hero-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.aict-hero-summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border-bottom: 1px solid #d1d1cc;
    border-right: 1px solid #d1d1cc;
}
.aict-hero-summary-stat:nth-child(2n) {
    border-right: none;
}
.aict-hero-summary-stat:nth-last-child(-n+2) {
    border-bottom: none;
}
.aict-hero-summary-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 8px;
}
.aict-hero-summary-label-text {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #6b7280;
    max-width: 160px;
}
.aict-hero-summary--empty {
    color: #999;
    font-style: italic;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #fff;
    border: 1px solid #e5e5e2;
    border-radius: 12px;
    padding: 28px 32px;
}

/* ==========================================================================
   Key Insights Shortcode [aict_key_insights]
   ========================================================================== */

.aict-key-insights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aict-key-insights-label {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.4px;
    color: #0e0e0c;
    margin: 0 0 4px;
}

.aict-key-insights-description {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #70706a;
    margin: 0 0 16px;
}

.aict-key-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.aict-key-insights-card {
    background: #f6f6f8;
    /*border: 1px solid #e5e5e2;*/
    border-radius: 12px;
    font-family: "Plus Jakarta Sans", sans-serif;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aict-key-insights-value {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.aict-key-insights-title {
    font-size: 16px;
    font-weight: 700;
    color: #0e0e0c;
    line-height: 1.3;
    margin-top: 4px;
}

.aict-key-insights-detail {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 2px;
}

.aict-key-insights-card--cta {
    background: #7D56EB;
    border-color: #7D56EB;
    justify-content: space-between;
    text-decoration: none;
    transition: background 0.15s ease;
}

.aict-key-insights-card--cta:hover {
    background: #1B2440;
    text-decoration: none;
}

.aict-key-insights-card--cta .aict-key-insights-title {
    color: #fff;
    font-size: 20px;
}

.aict-key-insights-card--cta .aict-key-insights-detail {
    color: rgba(255, 255, 255, 0.75);
}

.aict-key-insights-cta-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.aict-key-insights-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 0px;
    text-decoration: none;
    white-space: nowrap;
    align-self: flex-start;
}

.aict-key-insights-cta-btn:hover {
    color: #ffffff;
    text-decoration: none;
}

.aict-key-insights--empty {
    color: #999;
    font-style: italic;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #fff;
    border: 1px solid #e5e5e2;
    border-radius: 12px;
    padding: 28px 32px;
}

@media (max-width: 640px) {
    .aict-key-insights-grid {
        grid-template-columns: 1fr;
    }
}

/* Business Insights shortcode */
.aict-biz-insights {
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.aict-biz-insights-label {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.4px;
    color: #0e0e0c;
    margin: 0 0 4px;
}

.aict-biz-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.aict-biz-insights-card {
    background: #f6f6f8;
    border-radius: 12px;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aict-biz-insights-heading {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #7D56EB;
}

.aict-biz-insights-action {
    font-size: 16px;
    font-weight: 700;
    color: #0e0e0c;
    line-height: 1.3;
    margin-top: 4px;
}

.aict-biz-insights-reason {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.5;
}

.aict-biz-insights-cta {
    background: #7D56EB;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    transition: background 0.15s ease;
}

.aict-biz-insights-cta:hover {
    background: #1B2440;
}

.aict-biz-insights-warning-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.aict-biz-insights-warning-text {
    flex: 1;
    min-width: 0;
}

.aict-biz-insights-warning-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.aict-biz-insights-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    padding: 10px 18px;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.aict-biz-insights-cta-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.aict-biz-insights--empty {
    color: #999;
    font-style: italic;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #fff;
    border: 1px solid #e5e5e2;
    border-radius: 12px;
    padding: 28px 32px;
}

@media (max-width: 640px) {
    .aict-biz-insights-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Platform Breakdown Shortcode [aict_platform_breakdown]
   ========================================================================== */

.aict-sc-platbreak {
    border: 1px solid #e5e5e2;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.aict-sc-platbreak-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e2;
}

.aict-sc-platbreak-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.4px;
    color: #0e0e0c;
}

.aict-sc-platbreak-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

[data-aict-shortcode="competitor-distribution"] .aict-sc-platbreak-table {
    table-layout: fixed;
}

.aict-sc-platbreak-th {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #a0a09a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    text-align: left;
    background: #fafaf9;
    border-bottom: 1px solid #e5e5e2;
}

.aict-sc-platbreak-th--num,
.aict-sc-platbreak-th--pct {
    text-align: left;
}

.aict-sc-platbreak-th--num {
    white-space: nowrap;
}

.aict-sc-platbreak-th--comp {
    text-align: right;
    white-space: nowrap;
}

.aict-sc-platbreak-row {
    border-bottom: 1px solid #f4f4f2;
    transition: background 0.12s ease;
}

.aict-sc-platbreak-row:last-child {
    border-bottom: none;
}

.aict-sc-platbreak-row:hover {
    background: #fafaf9;
}

.aict-sc-platbreak-row--zero {
    opacity: 0.5;
}

.aict-sc-platbreak-td {
    padding: 14px 20px;
    vertical-align: middle;
    font-size: 14px;
    color: #343430;
}

.aict-sc-platbreak-td--platform {
    display: flex;
    align-items: center;
    gap: 9px;
}

.aict-sc-platbreak-plat-name {
    font-size: 16px;
    font-weight: 400;
    color: #0e0e0c;
}
a.aict-sc-platbreak-plat-link {
    text-decoration: none;
    color: #0e0e0c;
}
a.aict-sc-platbreak-plat-link:hover {
    text-decoration: underline;
    color: #0e0e0c;
}

.aict-sc-platbreak-td--num {
    text-align: left;
    white-space: nowrap;
}

.aict-sc-platbreak-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0e0e0c;
}

.aict-sc-platbreak-of {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #a0a09a;
    margin-left: 2px;
}

.aict-sc-platbreak-dash {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    color: #d4d4ce;
}

.aict-sc-platbreak-td--pct {
    padding-left: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.aict-sc-platbreak-pct-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.aict-sc-platbreak-bar-track {
    flex: 1;
    height: 5px;
    background: #f0f0ee;
    border-radius: 99px;
    overflow: hidden;
    min-width: 60px;
}

.aict-sc-platbreak-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: #f59e0b;
    transition: width 0.4s ease;
}

.aict-sc-platbreak-pct-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #70706a;
    width: 42px;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

.aict-sc-platbreak-td--comp {
    white-space: nowrap;
    text-align: right;
}

.aict-sc-platbreak-comp-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 220px;
    min-width: 0;
}

.aict-sc-platbreak-comp-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #343430;
    margin-right: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.aict-sc-platbreak-comp-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f2;
    border: 1px solid #e5e5e2;
    border-radius: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #70706a;
    padding: 1px 6px;
}



.aict-sc-platbreak-th--right,
.aict-sc-platbreak-td--right {
    text-align: right;
}

.aict-sc-compd-scroll-wrap {
    position: relative;
}

.aict-sc-compd-scroll-wrap:has(.aict-sc-compd-scroll--overflow):not(.aict-sc-compd-scroll-wrap--at-bottom)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
}

.aict-sc-compd-scroll {
    width: 100%;
}

.aict-sc-compd-scroll--overflow {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e6e6e2 transparent;
}

.aict-sc-compd-scroll--overflow::-webkit-scrollbar { width: 4px; }
.aict-sc-compd-scroll--overflow::-webkit-scrollbar-track { background: transparent; }
.aict-sc-compd-scroll--overflow::-webkit-scrollbar-thumb { background: #e6e6e2; border-radius: 2px; }

[data-aict-shortcode="competitor-distribution"] tfoot .aict-sc-platbreak-row--you td {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #f5f2ff;
}


.aict-sc-platbreak-row--you {
    border-top: 1px solid #c4b5fd;
    background: #f5f2ff;
}

.aict-sc-platbreak-row--you:hover {
    background: #f0ecff;
}

.aict-sc-platbreak-row--you .aict-sc-platbreak-bar-track {
    background: #ddd6fe;
}

.aict-sc-platbreak-bar-fill--you {
    background: #7c3aed;
}

@media (max-width: 640px) {
    .aict-sc-platbreak-th--pct,
    .aict-sc-platbreak-td--pct {
        display: none;
    }
}

/* ==========================================================================
   Citation Velocity shortcode
   ========================================================================== */

.aict-sc-velocity-wrap {
    background: #fff;
    border: 1px solid #e5e5e2;
    border-radius: 16px;
    padding: 0px;
}

.aict-sc-velocity-chart-wrap {
    position: relative;
    height: 280px;
    margin: 20px 0 28px;
    padding: 0 20px;
}

.aict-sc-velocity-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.aict-sc-velocity-gap {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #a0a09a;
}

.aict-sc-velocity-gap--pos {
    color: #16a34a;
}

.aict-sc-velocity-gap--neg {
    color: #dc2626;
}

/* ==========================================================================
   Platform Competitors Shortcode [aict_platform_competitors]
   ========================================================================== */

.aict-sc-platcomp-wrap {
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 1px solid #e5e5e2;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.aict-sc-platcomp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e2;
}

.aict-sc-platcomp-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.4px;
    color: #0e0e0c;
}

.aict-sc-platcomp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.aict-sc-platcomp-card {
    border-right: 1px solid #e5e5e2;
    min-width: 0;
}

.aict-sc-platcomp-card:last-child {
    border-right: none;
}

.aict-sc-platcomp-card-hero {
    padding: 24px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #e5e5e2;
}

.aict-sc-platcomp-plat-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.aict-sc-platcomp-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.aict-sc-platcomp-price {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1;
}

.aict-sc-platcomp-price-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #a0a09a;
    margin-top: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.aict-sc-platcomp-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aict-sc-platcomp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #f4f4f2;
}

.aict-sc-platcomp-item:last-child {
    border-bottom: none;
}

.aict-sc-platcomp-item--yours {
    background: #f5f2ff;
    border-top: 1px solid #c4b5fd !important;
    border-bottom: none !important;
}

.aict-sc-platcomp-item--yours .aict-sc-platcomp-name {
    font-weight: 700;
    color: #0e0e0c;
}

.aict-sc-platcomp-item--yours .aict-sc-platcomp-count {
    font-weight: 700;
    color: #0e0e0c;
}

.aict-sc-platcomp-name {
    font-size: 14px;
    font-weight: 400;
    color: #343430;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aict-sc-platcomp-item--yours .aict-sc-platcomp-name {
    font-weight: 600;
}

.aict-sc-platcomp-name--muted {
    color: #a0a09a;
    font-weight: 400;
}


.aict-sc-platcomp-count {
    font-size: 14px;
    font-weight: 600;
    color: #0e0e0c;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.aict-sc-platcomp-item--empty {
    padding: 10px 16px;
}

.aict-sc-platcomp-item--empty {
    padding: 12px 16px;
}

/* Competitor pill click — flash highlight */
@keyframes aict-source-flash {
    0%   { background: rgba(125, 86, 235, 0.18); }
    60%  { background: rgba(125, 86, 235, 0.12); }
    100% { background: transparent; }
}
.aict-sc-source--flash {
    animation: aict-source-flash 1.2s ease forwards;
    border-radius: 6px;
}

/* ==========================================================================
   Sentiment Shortcodes
   ========================================================================== */

/* Verdict badge */
.aict-sc-sentiment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.6;
}

.aict-sc-sentiment-score {
    font-size: 14px;
    font-weight: 800;
}

.aict-sc-sentiment-trusted   { background: #d1fae5; color: #065f46; }
.aict-sc-sentiment-neutral   { background: #fef3c7; color: #92400e; }
.aict-sc-sentiment-at_risk   { background: #fee2e2; color: #991b1b; }
.aict-sc-sentiment-not_found { background: #f3f4f6; color: #6b7280; }

/* Positive / neutral / negative count ticks */
.aict-sc-sent-pos { color: #16a34a; }
.aict-sc-sent-neu { color: #d97706; }
.aict-sc-sent-neg { color: #dc2626; }
.aict-sc-sent-nm  { color: #9ca3af; }

/* ---- Overview grid ---- */
.aict-sc-sentiment-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.aict-sc-sentiment-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aict-sc-sentiment-card--trusted { border-color: #a7f3d0; }
.aict-sc-sentiment-card--at_risk  { border-color: #fca5a5; }

.aict-sc-sentiment-card-entity {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aict-sc-sentiment-card-bar {
    height: 5px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.aict-sc-sentiment-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.aict-sc-sentiment-bar--trusted   { background: #16a34a; }
.aict-sc-sentiment-bar--neutral   { background: #d97706; }
.aict-sc-sentiment-bar--at_risk   { background: #dc2626; }
.aict-sc-sentiment-bar--not_found { background: #d1d5db; }

.aict-sc-sentiment-card-counts {
    display: flex;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    flex-wrap: wrap;
}

/* ---- Trend chart ---- */
.aict-sc-sentiment-trend {
    width: 100%;
}

/* ---- By-query table ---- */
.aict-sc-sentiment-by-query {
    overflow-x: auto;
}

.aict-sc-sentiment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.aict-sc-sentiment-table th,
.aict-sc-sentiment-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.aict-sc-sentiment-table th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.aict-sc-sentiment-table tbody tr:hover {
    background: #fafaf9;
}

.aict-sc-query-text {
    max-width: 260px;
    font-weight: 500;
}

.aict-sc-entity-cell {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.aict-sc-excerpt-cell {
    font-size: 13px;
    color: #4b5563;
    font-style: italic;
    max-width: 420px;
    line-height: 1.5;
}

.aict-sc-judgment-row--criticized .aict-sc-excerpt-cell {
    color: #991b1b;
}

.aict-sc-judgment-row--questioned .aict-sc-excerpt-cell {
    color: #92400e;
}

.aict-sc-judgment-row--trusted .aict-sc-excerpt-cell {
    color: #065f46;
}

.aict-sc-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    font-weight: 600;
}

/* ---- Comparison list ---- */
.aict-sc-sentiment-comparison {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aict-sc-sentiment-comp-item {
    display: grid;
    grid-template-columns: 24px 1fr auto 120px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.aict-sc-sentiment-comp-item--top {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.aict-sc-sentiment-comp-rank {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-align: center;
}

.aict-sc-sentiment-comp-entity {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aict-sc-sentiment-comp-bar-wrap {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.aict-sc-sentiment-comp-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Responsive: stack comparison on narrow screens */
@media (max-width: 480px) {
    .aict-sc-sentiment-comp-item {
        grid-template-columns: 24px 1fr auto;
        grid-template-rows: auto auto;
    }
    .aict-sc-sentiment-comp-bar-wrap {
        grid-column: 1 / -1;
    }
    .aict-sc-sentiment-overview {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Judgment Shortcodes
   ========================================================================== */

.aict-sc-judgment-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.aict-sc-judgment-trusted    { background: #d1fae5; color: #065f46; }
.aict-sc-judgment-questioned { background: #fef3c7; color: #92400e; }
.aict-sc-judgment-criticized { background: #fee2e2; color: #991b1b; }
.aict-sc-judgment-unknown    { background: #f3f4f6; color: #6b7280; }

.aict-sc-jv-trusted    { color: #16a34a; font-weight: 600; }
.aict-sc-jv-questioned { color: #d97706; font-weight: 600; }
.aict-sc-jv-criticized { color: #dc2626; font-weight: 600; }

/* ---- Judgment Overview ---- */
/* ── Judgment Overview — Waffle Grid ───────────────────────────────────── */

.aict-sc-judgment-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.aict-sc-judgment-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: relative;
    overflow: visible;
    transition: box-shadow 0.2s, transform 0.2s;
}

.aict-sc-judgment-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.aict-sc-judgment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 4px;
}

.aict-sc-judgment-card-entity {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0em;
    margin-bottom: 4px;
}

.aict-sc-judgment-card-score {
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.aict-sc-judgment-card-verdict {
    font-size: 20px;
    font-weight: 400;
    color: #6b7280;
    margin-bottom: 6px;
    letter-spacing: 0em;
}

.aict-sc-judgment-card-response-count {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.aict-sc-judgment-card-summary {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #f9fafb;
    border-left: 3px solid #e5e7eb;
    border-radius: 4px;
}

/* Segmented bar */
.aict-sc-judgment-segbar {
    display: flex;
    width: 100%;
    height: 5px;
    gap: 3px;
    margin-bottom: 16px;
    overflow: visible;
}

.aict-sc-segbar-c,
.aict-sc-segbar-q,
.aict-sc-segbar-t {
    height: 100%;
    border-radius: 999px;
    min-width: 4px;
}
.aict-sc-segbar-c { background: #ef4444; }
.aict-sc-segbar-q { background: #f59e0b; }
.aict-sc-segbar-t { background: #22c55e; }

.aict-sc-segbar-seg {
    position: relative;
    cursor: default;
    display: flex;
    align-items: center;
}

.aict-sc-segbar-seg > span.aict-sc-segbar-c,
.aict-sc-segbar-seg > span.aict-sc-segbar-q,
.aict-sc-segbar-seg > span.aict-sc-segbar-t {
    display: block;
    width: 100%;
    height: 5px;
    border-radius: 999px;
}

.aict-sc-segbar-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    white-space: nowrap;
    background: rgba(14, 14, 12, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    padding: 6px 10px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10000;
}

.aict-sc-segbar-seg:hover .aict-sc-segbar-tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Interactive segbar */
.aict-sc-segbar-btn {
    cursor: pointer;
    transition: opacity 0.2s ease;
    opacity: 0.35;
}
.aict-sc-segbar-btn.is-active {
    opacity: 1;
}
.aict-sc-segbar-btn:hover {
    opacity: 0.75;
}
.aict-sc-segbar-btn.is-active:hover {
    opacity: 1;
}
.aict-sc-bullets-panel {
    animation: aict-fade-in 0.2s ease;
}
@keyframes aict-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.aict-sc-jv-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.aict-sc-jv-icon--trusted    { color: #22c55e; }
.aict-sc-jv-icon--questioned { color: #f59e0b; }
.aict-sc-jv-icon--criticized { color: #ef4444; }
.aict-sc-jv-icon--unknown    { color: #9ca3af; }

/* Complaints section */
.aict-sc-judgment-card-complaints {
    width: 100%;
    margin-top: 4px;
}

.aict-sc-judgment-card-complaints-label {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0em;
    margin-bottom: 8px;
}

.aict-sc-judgment-card-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aict-sc-judgment-card-bullets li {
    font-size: 14px;
    line-height: 1.4;
    color: #4b5563;
    padding-left: 18px;
    position: relative;
}

.aict-sc-judgment-card-bullets li::before {
    content: '!';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--bullet-color, #6b7280);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.aict-sc-judgment-card-total {
    font-size: 10px;
    color: #c0c4cc;
    margin-top: -4px;
}

.aict-sc-bullet-source {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    margin-left: 5px;
    white-space: nowrap;
    transition: color 0.15s;
}

.aict-sc-bullet-source:hover {
    color: #4b5563;
    text-decoration: underline;
}

/* ── Judgment Platform — Heatmap ──────────────────────────────────────── */

.aict-sc-judgment-heatmap-wrap {
    overflow-x: auto;
}

.aict-sc-judgment-heatmap {
    display: grid;
    gap: 4px;
    min-width: 400px;
}

.aict-sc-heatmap-corner { display: block; }

.aict-sc-heatmap-col-head {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    text-align: center;
    padding: 6px 4px;
}

.aict-sc-heatmap-row-head {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    padding-right: 10px;
    white-space: nowrap;
}

.aict-sc-heatmap-cell {
    border-radius: 8px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: default;
    transition: filter 0.15s, transform 0.15s;
    min-height: 62px;
}

.aict-sc-heatmap-cell:hover {
    filter: brightness(0.93);
    transform: scale(1.03);
}

.aict-sc-heatmap-cell--criticized { background: rgba(239,68,68, var(--intensity, 0.5)); }
.aict-sc-heatmap-cell--questioned { background: rgba(245,158,11, var(--intensity, 0.5)); }
.aict-sc-heatmap-cell--trusted    { background: rgba(34,197,94,  var(--intensity, 0.5)); }
.aict-sc-heatmap-cell--empty      { background: #f9fafb; }

.aict-sc-heatmap-pct {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    font-variant-numeric: tabular-nums;
}

.aict-sc-heatmap-verdict {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.85);
}

.aict-sc-heatmap-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.aict-sc-heatmap-legend-item {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.aict-sc-heatmap-legend-item::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.aict-sc-heatmap-legend--c { color: #b91c1c; }
.aict-sc-heatmap-legend--c::before { background: #ef4444; }
.aict-sc-heatmap-legend--q { color: #b45309; }
.aict-sc-heatmap-legend--q::before { background: #f59e0b; }
.aict-sc-heatmap-legend--t { color: #15803d; }
.aict-sc-heatmap-legend--t::before { background: #22c55e; }

.aict-sc-heatmap-legend-note {
    font-size: 11px;
    color: #9ca3af;
    margin-left: auto;
}

/* Platform view wrapper & section labels (used in view="both") */
.aict-sc-judgment-platform-wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.aict-sc-plat-view-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aict-sc-plat-view-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
}

/* Small multiples grid: one card per platform */
.aict-sc-judgment-small-multiples {
    display: grid;
    gap: 16px;
}

.aict-sc-judgment-sm-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aict-sc-judgment-sm-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
}

.aict-sc-judgment-sm-canvas-wrap {
    position: relative;
    height: 220px;
}

/* 4-col grids get a shorter canvas since cards are narrower */
.aict-sc-judgment-small-multiples[style*="repeat(4,"] .aict-sc-judgment-sm-canvas-wrap {
    height: 160px;
}

/* On narrow screens, collapse to 2 columns regardless of attribute */
@media (max-width: 700px) {
    .aict-sc-judgment-small-multiples {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 400px) {
    .aict-sc-judgment-small-multiples {
        grid-template-columns: 1fr !important;
    }
}

/* Shared legend below the grid */
.aict-sc-sm-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.aict-sc-sm-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.aict-sc-sm-legend-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Donut view ───────────────────────────────────────────────────────── */

/* Grid of donuts inside each platform card — always 3 per row */
.aict-sc-judgment-donut-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 8px;
    width: 100%;
}

.aict-sc-judgment-donut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

/* Square aspect-ratio box that fills its grid cell */
.aict-sc-judgment-donut-canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.aict-sc-judgment-donut-canvas-wrap canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.aict-sc-judgment-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.aict-sc-judgment-donut-center-pct {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.aict-sc-judgment-donut-label {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    width: 100%;
}

.aict-sc-judgment-history { width: 100%; }

.aict-sc-judgment-explorer { overflow-x: auto; }

.aict-sc-judgment-excerpt {
    font-size: 12px;
    color: #4b5563;
    max-width: 300px;
}

.aict-sc-judgment-explorer-row--criticized td:first-child {
    border-left: 3px solid #dc2626;
    padding-left: 9px;
}

.aict-sc-judgment-explorer-row--questioned td:first-child {
    border-left: 3px solid #d97706;
    padding-left: 9px;
}

@media (max-width: 480px) {
    .aict-sc-judgment-overview,
    .aict-sc-judgment-platform {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Judgment Verdict Sentence [aict_judgment_verdict_sentence]
   ========================================================================== */

.aict-sc-judgment-verdict-sentence {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.aict-sc-judgment-verdict-sentence--trusted    { color: #065f46; }
.aict-sc-judgment-verdict-sentence--questioned { color: #92400e; }
.aict-sc-judgment-verdict-sentence--criticized { color: #991b1b; }

.aict-sc-judgment-verdict-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 10px 0 0;
    color: #4b5563;
}

.aict-sc-judgment-verdict-desc--criticized { color: #6b2020; }
.aict-sc-judgment-verdict-desc--questioned { color: #6b4a10; }
.aict-sc-judgment-verdict-desc--trusted    { color: #14532d; }

/* ==========================================================================
   Judgment Category Breakdown [aict_judgment_category_breakdown]
   ========================================================================== */

.aict-sc-judgment-category-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aict-sc-judgment-cat-row {
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aict-sc-judgment-cat-row--criticized { border-color: #fca5a5; }
.aict-sc-judgment-cat-row--questioned { border-color: #fcd34d; }
.aict-sc-judgment-cat-row--trusted    { border-color: #a7f3d0; }

.aict-sc-judgment-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.aict-sc-judgment-cat-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.aict-sc-judgment-cat-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aict-sc-judgment-cat-bar {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.aict-sc-judgment-cat-bar-seg {
    height: 100%;
    transition: width 0.3s ease;
}

.aict-sc-judgment-cat-bar-seg--criticized { background: #dc2626; }
.aict-sc-judgment-cat-bar-seg--questioned { background: #d97706; }
.aict-sc-judgment-cat-bar-seg--trusted    { background: #16a34a; }

.aict-sc-judgment-cat-total {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    flex-shrink: 0;
    min-width: 24px;
    text-align: right;
}

/* ==========================================================================
   Judgment Divergence [aict_judgment_divergence]
   ========================================================================== */

.aict-sc-judgment-divergence {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aict-sc-judgment-div-row {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aict-sc-judgment-div-entity {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.aict-sc-judgment-div-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aict-sc-judgment-div-plat {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 10px;
}

.aict-sc-judgment-div-plat-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   LANDER — [aict_judgment_lander]
   ========================================================================== */

/* ---- Shared tokens ---- */
.aict-lander {
    --lander-bg:             #111111;
    --lander-card-bg:        #1c1c1c;
    --lander-card-border:    rgba(255,255,255,0.08);
    --lander-card-hover:     rgba(255,255,255,0.03);
    --lander-text-primary:   #f0f0f0;
    --lander-text-secondary: #9ca3af;
    --lander-text-muted:     #5a5a5a;
    --lander-footer-bg:      #161616;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    background: var(--lander-bg);
    padding: 40px;
    border-radius: 12px;
}

.aict-lander--light {
    --lander-bg:             #ffffff;
    --lander-card-bg:        #f9fafb;
    --lander-card-border:    rgba(0,0,0,0.08);
    --lander-card-hover:     rgba(0,0,0,0.02);
    --lander-text-primary:   #111111;
    --lander-text-secondary: #4b5563;
    --lander-text-muted:     #9ca3af;
    --lander-footer-bg:      #ebebeb;
}

/* ---- Hero ---- */
.aict-lander-hero {
    margin-bottom: 16px;
    padding-right: 20%;
}

.aict-lander-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lander-text-muted);
    margin: 0 0 14px;
}

.aict-lander-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--lander-text-primary);
    margin: 0 0 12px;
    letter-spacing: -0.6px;
}

.aict-lander-subtext {
    font-size: clamp(15px, 4vw, 18px);
    color: var(--lander-text-secondary);
    margin: 0;
    line-height: 1.65;
}

/* ---- Meta bar ---- */
.aict-lander-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 14px;
}

.aict-lander-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--lander-text-muted);
}

.aict-lander-meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

.aict-lander-meta-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 28px;
}

.aict-lander-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--lander-text-muted);
}

.aict-lander-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Card grid ---- */
.aict-lander-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .aict-lander-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .aict-lander { padding: 24px 20px; }
    .aict-lander-grid { grid-template-columns: 1fr; }
    .aict-lander-footer-cta { flex-direction: column; gap: 16px; }
    .aict-lander-hero { padding-right: 0; }
}

/* ---- Individual card ---- */
.aict-lander-card {
    background: var(--lander-card-bg);
    border: 1px solid var(--lander-card-border);
    border-radius: 10px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: border-color 0.15s ease;
}

.aict-lander-card[data-href] {
    cursor: pointer;
}

.aict-lander-card[data-href]:hover {
    border-color: rgba(255,255,255,0.15);
}

.aict-lander--light .aict-lander-card[data-href]:hover {
    border-color: rgba(0,0,0,0.15);
}

.aict-lander-card--cta {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
    color: var(--lander-text-muted);
}

.aict-lander-cta-icon {
    color: var(--lander-text-muted);
    margin-bottom: 4px;
}

.aict-lander-cta-text {
    font-size: 14px;
    color: var(--lander-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.aict-lander-cta-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 9px 18px;
    border: 1px solid var(--lander-card-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lander-text-primary);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.aict-lander-cta-btn:hover,
.aict-lander-cta-btn:focus,
.aict-lander-cta-btn:active,
.aict-lander-cta-btn:visited {
    background: white;
    border-color: white;
    color: black;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

/* ---- Card top row ---- */
.aict-lander-card-top {
    margin-bottom: 6px;
}

.aict-lander-card-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--lander-text-primary);
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.aict-lander-card-verdict {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ---- Card summary ---- */
.aict-lander-card-summary {
    font-size: 14px;
    line-height: 1.7;
    color: var(--lander-text-secondary);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* ---- Card bullets ---- */
.aict-lander-card-bullets {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aict-lander-card-bullet {
    font-size: 13px;
    color: var(--lander-text-secondary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.aict-lander-bullet-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

.aict-lander-bullet-icon--negative {
    color: #ef4444;
}

.aict-lander-bullet-icon--positive {
    color: #22c55e;
}

/* ---- Card scorecard ---- */
.aict-lander-card-scorecard {
    flex: 1;
    border-bottom: 1px solid var(--lander-card-border);
    padding-bottom: 14px;
}

.aict-lander-scorecard-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lander-text-muted);
    margin-bottom: 8px;
}

.aict-lander-scorecard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
}

.aict-lander-scorecard-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aict-lander-scorecard-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.aict-lander-scorecard-name {
    font-size: 12px;
    color: var(--lander-text-secondary);
    flex: 1;
    min-width: 0;
}

/* ---- Card footer ---- */
.aict-lander-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--lander-card-border);
}

.aict-lander-card-link {
    align-self: flex-end;
    border: 1px solid var(--lander-card-border);
    padding: 8px 16px;
    border-radius: 6px;
}

.aict-lander-card-dots {
    display: flex;
    gap: 5px;
}

.aict-lander-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    opacity: 0.85;
    flex-shrink: 0;
}

.aict-lander-dot--criticized { background: #ef4444; }
.aict-lander-dot--questioned { background: #f59e0b; }
.aict-lander-dot--trusted    { background: #22c55e; }
.aict-lander-dot--no_data    { background: #6b7280; }
.aict-lander-dot--unknown    { background: #6b7280; opacity: 0.4; }
.aict-lander-dot--off        { background: var(--lander-card-border); opacity: 1; }

.aict-lander-card-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--lander-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}


.aict-lander-card[data-href]:hover .aict-lander-card-link {
    color: var(--lander-text-secondary);
}

/* ---- Footer CTA bar ---- */
.aict-lander-footer-cta {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 0;
    border-top: 1px solid var(--lander-card-border);
    gap: 20px;
    margin-top: 20px;
}

.aict-lander-footer-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aict-lander-footer-cta-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--lander-text-primary);
}

.aict-lander-footer-cta-text span {
    font-size: 12px;
    color: var(--lander-text-muted);
}

.aict-lander-footer-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 10px 22px;
    background: var(--lander-text-primary);
    color: var(--lander-bg);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: opacity 0.15s;
    outline: none;
    box-shadow: none;
}

.aict-lander-footer-btn:hover,
.aict-lander-footer-btn:focus,
.aict-lander-footer-btn:active,
.aict-lander-footer-btn:visited {
    opacity: 0.85;
    text-decoration: none;
    color: var(--lander-bg);
    outline: none;
    box-shadow: none;
}

/* ==========================================================================
   DETAIL — [aict_judgment_detail]
   ========================================================================== */

.aict-detail {
    --detail-bg:            #111111;
    --detail-card-bg:       #1c1c1c;
    --detail-border:        rgba(255,255,255,0.08);
    --detail-text-primary:  #f0f0f0;
    --detail-text-secondary:#9ca3af;
    --detail-text-muted:    #5a5a5a;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    background: var(--detail-bg);
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aict-detail--light {
    --detail-bg:            #ffffff;
    --detail-card-bg:       #f9fafb;
    --detail-border:        rgba(0,0,0,0.08);
    --detail-text-primary:  #111111;
    --detail-text-secondary:#4b5563;
    --detail-text-muted:    #9ca3af;
}

@media (max-width: 900px) {
    .aict-detail { padding: 24px 20px; }
    .aict-detail-meta-row { flex-direction: column; }
    .aict-detail-platforms-grid { grid-template-columns: 1fr !important; }
    .aict-detail-theme-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .aict-detail-theme-sources {
        width: 100%;
        text-align: left !important;
        padding-left: 34px;
        white-space: normal;
    }
}

/* ---- Back link ---- */
.aict-detail-back {
    display: inline-block;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 400;
    color: var(--detail-text-muted);
    text-decoration: none;
    margin-bottom: 28px;
    letter-spacing: 0.01em;
    transition: color 0.1s;
    outline: none;
    box-shadow: none;
}

.aict-detail-back:hover,
.aict-detail-back:focus,
.aict-detail-back:active,
.aict-detail-back:visited {
    color: var(--detail-text-secondary);
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

/* ---- Hero ---- */
.aict-detail-hero {
    margin-bottom: 24px;
}

.aict-detail-report-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--detail-text-muted);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.aict-detail-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.6px;
    color: var(--detail-text-primary);
    margin: 0 0 16px;
}

.aict-detail-subheader {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--detail-text-primary);
    margin: 14px 0 0;
    letter-spacing: -0.2px;
}

.aict-detail-tagline {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--detail-text-secondary);
    margin: 8px 0 0;
}

.aict-detail-summary {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--detail-text-secondary);
    margin: 0;
}

/* ---- Hero sources block ---- */
.aict-detail-sources-hero {
    margin-bottom: 24px;
}

.aict-detail-sources-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--detail-text-muted);
    margin-bottom: 10px;
}

.aict-detail-sources-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aict-detail-sources-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 400;
    color: var(--detail-text-secondary);
    background: transparent;
    border: 1px solid var(--detail-border);
    border-radius: 50px;
    padding: 5px 12px 7px 12px;
    letter-spacing: 0.01em;
}
.aict-detail-sources-pill--tracked {
    border-color: #16a34a55;
}

/* ---- Meta cards row ---- */
.aict-detail-meta-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.aict-detail-meta-card {
    background: var(--detail-card-bg);
    border: 1px solid var(--detail-border);
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.aict-detail-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.aict-detail-meta-pill {
    font-size: 12px;
    font-weight: 500;
    color: var(--detail-text-primary);
    background: var(--detail-bg);
    border: 1px solid var(--detail-border);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}

.aict-detail-meta-label {
    font-size: 11px;
    color: var(--detail-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
}

.aict-detail-meta-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.aict-detail-meta-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--detail-text-secondary);
    line-height: 1.4;
    margin-top: 2px;
}

/* ---- Segbar ---- */
.aict-detail-footprint-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--detail-card-bg);
    border: 1px solid var(--detail-border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--detail-text-secondary);
}

.aict-detail-footprint-icon {
    flex-shrink: 0;
    color: var(--detail-text-muted);
    margin-top: 1px;
}

.aict-detail-footprint-text strong {
    font-weight: 600;
    color: var(--detail-text-primary);
}

.aict-detail-segbar-row {
    display: flex;
    height: 5px;
    border-radius: 3px;
    overflow: visible;
    gap: 2px;
    margin-bottom: 12px;
}

.aict-detail-segbar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 0px;
}

.aict-detail-segbar-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
    color: var(--detail-text-secondary);
}

.aict-detail-segbar-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.aict-detail-segbar-seg {
    height: 100%;
    border-radius: 0;
    flex-shrink: 0;
    position: relative;
}

.aict-detail-segbar-seg:first-child { border-radius: 3px 0 0 3px; }
.aict-detail-segbar-seg:last-child  { border-radius: 0 3px 3px 0; }
.aict-detail-segbar-seg:only-child  { border-radius: 3px; }

.aict-detail-segbar-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(14, 14, 12, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10000;
}

.aict-detail-segbar-seg:hover .aict-detail-segbar-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- Section labels ---- */
.aict-detail-section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--detail-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    margin-top: 24px;
}

/* ---- Analyst Summary ---- */

.aict-detail-analyst-body {
    background: var(--detail-card-bg);
    border: 1px solid var(--detail-border);
    border-radius: 10px;
    padding: 24px 28px;
}

.aict-detail-analyst-body p {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--detail-text-secondary);
}

/* ---- Action briefs ---- */
.aict-detail-action-briefs {
    margin-top: 32px;
}

.aict-detail-briefs-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.aict-detail-brief-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--detail-border);
    background: transparent;
    color: var(--detail-text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: inherit;
}

.aict-detail-brief-tab svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.aict-detail-brief-tab:hover {
    background: var(--detail-card-bg);
    border-color: var(--detail-border);
    color: var(--detail-text-primary);
}

.aict-detail-brief-tab.active {
    background: var(--detail-card-bg);
    border-color: var(--detail-border);
    color: var(--detail-text-primary);
    font-weight: 600;
}

.aict-detail-brief-tab.active svg {
    opacity: 1;
}

.aict-detail-brief-panel {
    display: none;
    background: var(--detail-card-bg);
    border: 1px solid var(--detail-border);
    border-radius: 12px;
    padding: 28px 32px;
}

.aict-detail-brief-panel.active {
    display: block;
}

.aict-detail-brief-panel-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 6px;
}

.aict-detail-brief-panel-icon {
    color: var(--detail-text-muted);
    flex-shrink: 0;
}

.aict-detail-brief-panel-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aict-detail-brief-panel-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--detail-text-primary);
}

.aict-detail-brief-panel-desc {
    font-size: 13px;
    color: var(--detail-text-muted);
    margin-bottom: 0;
}

.aict-detail-brief-panel-header {
    margin-bottom: 20px;
}

.aict-detail-brief-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.aict-detail-brief-list li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--detail-text-secondary);
    padding-left: 16px;
    position: relative;
}

.aict-detail-brief-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--detail-text-muted);
}

.aict-detail-brief-list li strong {
    color: var(--detail-text-primary);
    font-weight: 600;
}

/* ---- Aggregated theme rows ---- */
.aict-detail-theme-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.aict-detail-theme-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--detail-card-bg);
    border: 1px solid var(--detail-border);
    border-radius: 8px;
    transition: border-color 0.12s;
}

.aict-detail-theme-row:hover {
    border-color: rgba(255,255,255,0.12);
}

.aict-detail--light .aict-detail-theme-row:hover {
    border-color: rgba(0,0,0,0.14);
}

.aict-detail-theme-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

.aict-detail-theme-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.aict-detail-theme-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--detail-text-primary);
    line-height: 1.3;
}

.aict-detail-theme-meta {
    font-size: 12px;
    color: var(--detail-text-muted);
    font-weight: 400;
}

.aict-detail-theme-sources {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--detail-text-muted);
    text-align: right;
    white-space: nowrap;
}
.aict-detail-theme-source-link {
    color: var(--detail-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.aict-detail-theme-source-link:hover {
    color: var(--detail-text-primary);
    text-decoration: underline;
}
.aict-tracked-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
}

/* ---- Platform grid ---- */
.aict-detail-platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.aict-detail-platform-card {
    background: var(--detail-card-bg);
    border: 1px solid var(--detail-border);
    border-radius: 10px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aict-detail-plat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.aict-detail-plat-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--detail-text-primary);
    letter-spacing: -0.2px;
}

.aict-detail-plat-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    background: color-mix(in srgb, var(--badge-color) 15%, transparent);
    color: var(--badge-color);
    border: 1px solid color-mix(in srgb, var(--badge-color) 30%, transparent);
    white-space: nowrap;
    flex-shrink: 0;
}

.aict-detail-plat-lead {
    font-size: 13px;
    font-style: italic;
    line-height: 1.6;
    color: var(--detail-text-secondary);
    margin: 0 0 14px;
}

.aict-detail-plat-categories {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--detail-border);
    margin-top: 4px;
}

.aict-detail-plat-cat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--detail-border);
}

.aict-detail-plat-cat-icon {
    color: var(--detail-text-muted);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.aict-detail-plat-cat-name {
    font-size: 13px;
    color: var(--detail-text-secondary);
    flex: 1;
}

.aict-detail-plat-cat-verdict {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
}

.aict-detail-plat-cat-verdict--nodata {
    color: var(--detail-text-muted) !important;
}

.aict-detail-plat-cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.aict-detail-plat-limited {
    font-size: 11px;
    color: var(--detail-text-muted);
    margin: 10px 0 0;
    font-style: italic;
}

/* ---- Bullets list ---- */
.aict-detail-bullets-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aict-detail-bullet-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    background: var(--detail-card-bg);
    border: 1px solid var(--detail-border);
    border-radius: 7px;
    transition: border-color 0.12s;
}

.aict-detail-bullet-row:hover {
    border-color: rgba(255,255,255,0.14);
}

.aict-detail--light .aict-detail-bullet-row:hover {
    border-color: rgba(0,0,0,0.15);
}

.aict-detail-bullet-sq {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border: 2px solid;
    border-radius: 2px;
    margin-top: 3px;
}

.aict-detail-bullet-body {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    flex: 1;
}

.aict-detail-bullet-phrase {
    font-size: 14px;
    color: var(--detail-text-primary);
    line-height: 1.5;
    font-weight: 500;
}

.aict-detail-bullet-source {
    font-size: 11px;
    color: var(--detail-text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.1s;
}

.aict-detail-bullet-source:hover {
    color: var(--detail-text-secondary);
    text-decoration: underline;
}

/* Lander modal */
.aict-lander-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.aict-lander-modal {
    position: relative;
    background: #1a1a1f;
    border-radius: 14px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.aict-lander-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s;
}
.aict-lander-modal-close:hover { color: #fff; }
button.aict-lander-cta-btn,
button.aict-lander-footer-btn {
    cursor: pointer;
    border: none;
}
