:root {
    /* Tech Blog Typography */
    --font-serif: 'Times New Roman', 'Noto Serif SC', Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Noto Sans SC', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    --container: 960px;
    --container-wide: 1200px;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

    --accent-h: 218;
    --accent-s: 80%;
    --accent-l: 46%;
    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --accent-light: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.1);
    --accent-deep: hsl(218, 85%, 32%);
    --accent-soft: hsl(218, 60%, 58%);

    --radius: 12px;
    --card-opacity: 1;
    --shadow-strength: 0.08;
    --font-size-base: 18px;
    --font-size-sm: 16px;
    --font-size-lg: 19px;
    --font-size-h1: 40px;
    --font-size-h2: 32px;
    --font-size-h3: 24px;
    --line-height: 1.75;
    --content-width: 960px;
    --section-gap: 0px;

    --gloss-intensity: 0.7;
    --texture-opacity: 0.03;
    --sheen-height: 50%;

    --porcelain-glaze: linear-gradient(145deg,
        rgba(255,255,255,0.95) 0%,
        rgba(245,248,255,0.9) 30%,
        rgba(255,255,255,0.85) 70%,
        rgba(248,250,255,0.9) 100%);
    --porcelain-sheen: linear-gradient(180deg,
        rgba(255,255,255, var(--gloss-intensity)) 0%,
        rgba(255,255,255,0.3) 20%,
        rgba(255,255,255,0) var(--sheen-height));
    --porcelain-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");

    --shadow:
        0 2px 8px rgba(30, 80, 180, 0.08),
        0 8px 32px rgba(30, 80, 180, 0.1);
    --shadow-elevated:
        0 4px 16px rgba(30, 80, 180, 0.12),
        0 16px 48px rgba(30, 80, 180, 0.15);
}

.theme-a {
    --bg: #FFFFFF;
    --bg-flat: #FFFFFF;
    --bg-alt: #FFFFFF;
    --bg-card: rgba(255, 255, 255, var(--card-opacity));
    --text: #2a3a4a;
    --text-secondary: #4a5a6a;
    --text-muted: #7a8a9a;
    --border: rgba(30, 60, 90, 0.1);
    --border-strong: rgba(30, 60, 90, 0.18);
    --code-bg: rgba(30, 60, 90, 0.03);
    --highlight-row: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.08);
    --header-bg: rgba(255, 255, 255, 0.9);
}

.theme-b {
    --bg: linear-gradient(180deg, #08090c 0%, #050608 100%);
    --bg-flat: #08090c;
    --bg-alt: #0e1118;
    --bg-card: rgba(14, 17, 24, var(--card-opacity));
    --text: #e0e6f0;
    --text-secondary: #8a9ab8;
    --text-muted: #4a5670;
    --border: rgba(70, 90, 130, 0.2);
    --border-strong: rgba(70, 90, 130, 0.35);
    --code-bg: rgba(80, 110, 160, 0.1);
    --highlight-row: hsla(200, 50%, 50%, 0.1);
    --header-bg: rgba(8, 9, 12, 0.95);

    /* Soft blue accent - easy on eyes */
    --accent-h: 215;
    --accent-s: 60%;
    --accent-l: 55%;
    --accent: hsl(215, 60%, 55%);
    --accent-light: hsla(215, 60%, 55%, 0.15);
    --accent-deep: hsl(220, 55%, 45%);
    --accent-soft: hsl(210, 50%, 60%);

    /* Subtle glow effects */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(60, 90, 150, 0.03);
    --glow-accent: 0 0 15px rgba(70, 120, 180, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-serif);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text);
    background: var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.theme-a::before {
    display: none;
}

.theme-b::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% -30%, rgba(40, 100, 200, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 100% 100%, rgba(80, 40, 160, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 0% 80%, rgba(30, 80, 180, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 70% 20%, rgba(100, 150, 255, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 30% 70%, rgba(60, 100, 200, 0.04) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
}

.container { max-width: var(--content-width); margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 40px; text-align: left; }
.container-wide > * { text-align: left; }
.container-wide > .section-title { text-align: left; }
.container-wide > .section-intro { text-align: left; }

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

.theme-b .header {
    border-bottom-color: rgba(60, 100, 160, 0.15);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(40, 100, 200, 0.03);
}

.header-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-group { display: flex; align-items: center; }
.logo { height: 28px; width: auto; object-fit: contain; }

.nav { display: flex; gap: 24px; }
.nav a {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}
.nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.header-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.header-link:hover {
    color: var(--text);
    background: var(--bg-alt);
}
.header-link svg {
    width: 20px;
    height: 20px;
}

.header-btn {
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--accent);
    color: white;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(30, 80, 180, 0.2);
}
.header-btn:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 80, 180, 0.3);
}

.header-link-text {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    margin-left: 8px;
}
.header-link-text:hover {
    color: var(--accent);
}

.btn-ghost {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 0.4);
    background: var(--bg-alt);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-a .btn-ghost {
    box-shadow: 0 1px 4px rgba(26, 75, 140, 0.06);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-1px);
}

.hero {
    padding: 72px 0 24px;
    position: relative;
}

.hero .container {
    max-width: var(--container-wide);
}

.hero .teaser-chart-container {
    max-width: 860px;
    margin: 0 auto 0;
    padding: 16px 20px 0;
}

.hero .teaser-chart-header {
    margin-bottom: 12px;
}

.hero .teaser-chart-title {
    font-size: 16px;
}

.hero .teaser-chart-area {
    height: 400px;
}

.hero .teaser-chart-legend {
    margin-top: 16px;
}

.hero .abstract-block,
.theme-a .hero .abstract-block,
.theme-b .hero .abstract-block {
    max-width: 100%;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible;
}

.hero .abstract-block::before,
.hero .abstract-block::after,
.theme-a .hero .abstract-block::before,
.theme-a .hero .abstract-block::after {
    display: none !important;
    content: none !important;
}

.hero-header {
    text-align: center;
    margin-bottom: 20px;
}

.hero-title-large {
    font-family: var(--font-sans);
    font-size: var(--font-size-h1);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.2;
}

.hero-meta {
    font-family: var(--font-sans);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 700;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 300;
    margin-left: 1px;
    animation: cursorBlink 0.7s step-end infinite;
}

.typewriter-cursor.hidden {
    visibility: hidden;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.link-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 16px;
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}
.link-item svg {
    width: 12px;
    height: 12px;
}
.link-item:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.link-item:active {
    transform: translateY(0);
}
.link-item svg { width: 18px; height: 18px; opacity: 0.7; transition: opacity 0.2s ease; }
.link-item:hover svg { opacity: 1; }
.link-badge {
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    background: #e74c3c;
    padding: 2px 5px;
    border-radius: 8px;
    margin-left: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.link-badge-dot {
    width: 6px;
    height: 6px;
    background: #e74c3c;
    border-radius: 50%;
    margin-left: 4px;
    flex-shrink: 0;
}
.link-item-badge {
    position: relative;
}
.link-badge-new {
    position: absolute;
    top: -8px;
    right: -12px;
    font-size: 7px;
    font-weight: 700;
    color: #fff;
    background: #e74c3c;
    padding: 2px 4px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
}
.link-badge-hot {
    position: absolute;
    top: -8px;
    right: -18px;
    font-size: 7px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #5bc0de, #3498db);
    padding: 2px 4px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}
.link-badge-update {
    position: absolute;
    top: -8px;
    right: -12px;
    font-size: 7px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #5bc0de, #3498db);
    padding: 2px 4px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.link-item-highlight {
    background: linear-gradient(135deg, rgba(91,192,222,0.15), rgba(52,152,219,0.15));
    border-color: rgba(52,152,219,0.5);
    animation: pulse-highlight 2s ease-in-out infinite;
}
@keyframes pulse-highlight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,152,219,0.4); }
    50% { box-shadow: 0 0 8px 2px rgba(52,152,219,0.3); }
}

.abstract-block {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    text-align: left;
    padding: 24px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.theme-a .abstract-block {
    background: var(--porcelain-glaze), var(--bg-card);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 4px 16px rgba(30, 80, 180, 0.08),
        0 12px 40px rgba(30, 80, 180, 0.1);
}

.theme-a .abstract-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: var(--porcelain-sheen);
    pointer-events: none;
    border-radius: var(--radius) var(--radius) 0 0;
}

.theme-a .abstract-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--porcelain-texture);
    opacity: var(--texture-opacity);
    pointer-events: none;
    mix-blend-mode: overlay;
}

.abstract-block .paragraph {
    margin-bottom: 12px;
}

.abstract-block .paragraph:last-of-type {
    margin-bottom: 16px;
}

.abstract-block strong {
    color: var(--text);
}

.contrib-inline {
    font-size: var(--font-size-sm);
}

.contrib-inline strong {
    color: var(--text);
}

.section { padding: var(--section-gap) 0; }

.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.theme-a .section-card {
    background:
        var(--porcelain-glaze),
        var(--bg-card);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 -1px 0 rgba(30, 80, 180, 0.05) inset,
        0 4px 16px rgba(30, 80, 180, 0.08),
        0 12px 40px rgba(30, 80, 180, 0.1);
}

.theme-a .section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: var(--porcelain-sheen);
    pointer-events: none;
    border-radius: var(--radius) var(--radius) 0 0;
}

.theme-a .section-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--porcelain-texture);
    opacity: var(--texture-opacity);
    pointer-events: none;
    border-radius: var(--radius);
    mix-blend-mode: overlay;
}

.section-title {
    font-family: Georgia, var(--font-serif);
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.acm-initial {
    color: var(--text);
    font-weight: 700;
}

.section-intro {
    font-size: var(--font-size-base);
    color: var(--text);
    margin-bottom: 32px;
    line-height: var(--line-height);
    text-align: left;
}

.section-intro + .section-intro {
    margin-top: -20px;
}

.section-intro-list {
    font-size: var(--font-size-base);
    color: var(--text);
    line-height: var(--line-height);
    margin: 0 0 16px 20px;
    padding: 0;
}

.section-intro-list li {
    margin-bottom: 4px;
}

.subsection-title {
    font-family: var(--font-sans);
    font-size: var(--font-size-h3);
    font-weight: 600;
    color: var(--text);
    margin: 16px 0 16px;
    letter-spacing: -0.01em;
}

.paragraph {
    font-size: var(--font-size-base);
    color: var(--text);
    line-height: var(--line-height);
    margin-bottom: 16px;
    text-align: left;
    width: 100%;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

.highlight-bg {
    background: var(--accent-light);
    padding: 2px 6px;
    border-radius: 4px;
}

strong {
    color: var(--text);
    font-weight: 600;
}

/* Brand highlight for product name */
.highlight-brand {
    color: var(--accent);
    font-weight: 600;
}

em {
    color: var(--text);
    font-style: normal;
    font-weight: 600;
}

.two-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

/* Contribution section styling */
.contrib-section {
    margin-top: 24px;
    padding: 0;
    background: none;
    border-radius: 0;
    border: none;
}

.hero .contrib-section {
    max-width: 100%;
    margin: 24px auto 0;
    padding: 0;
}

.theme-b .contrib-section {
    background: none;
    border-color: transparent;
}

.contrib-title {
    font-family: var(--font-sans);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.contrib-list {
    margin: 0;
    padding: 0 0 0 20px;
    display: block;
}

.contrib-item {
    position: relative;
    margin-bottom: 2px;
    line-height: 1.7;
    list-style: disc;
}

.contrib-item::marker {
    color: var(--accent);
}

.contrib-item .highlight-brand {
    display: inline;
    color: var(--text);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.contrib-item .contrib-desc {
    display: inline;
    color: var(--text);
    font-size: var(--font-size-sm);
}

.contrib-section strong {
    color: var(--text);
}

.meet-stepfun-section {
    margin-top: 24px;
}

.meet-stepfun-section .paragraph {
    margin: 0 0 10px 0;
}

.meet-stepfun-list {
    margin: 8px 0 0 20px;
    padding: 0;
    font-size: var(--font-size-sm);
    color: var(--text);
    line-height: var(--line-height);
}

.meet-stepfun-list li {
    margin-bottom: 4px;
}

.openclaw-setup {
    margin: 8px 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
}
.openclaw-setup summary {
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text);
    user-select: none;
}
.openclaw-setup summary:hover {
    color: var(--accent);
}
.openclaw-code {
    padding: 8px 12px 12px;
    border-top: 1px solid var(--border);
    font-size: var(--font-size-xs);
}
.openclaw-code p {
    margin: 4px 0;
}
.openclaw-code ul {
    margin: 4px 0 0 16px;
    padding: 0;
}
.openclaw-code li {
    margin-bottom: 2px;
}
.openclaw-code code {
    background: var(--bg-code, rgba(0,0,0,0.05));
    padding: 1px 4px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.link-switcher-option {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-switcher-option:hover {
    color: var(--accent-deep, var(--accent));
}

.link-switcher-option::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.link-switcher-option sup {
    font-size: 0.75em;
    color: var(--text-muted);
    margin-left: 1px;
}

.link-switcher-divider {
    color: var(--text-muted);
    margin: 0 2px;
}

.table-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

.table-wrapper { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 12px;
}

.data-table th, .data-table td {
    padding: 7px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table td { color: var(--text-secondary); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tr.highlight { background: var(--highlight-row); }
.data-table tr.highlight td { color: var(--text); }

.table-note {
    font-size: 11px;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 14px;
}

.container-full {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.bmk-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: visible;
    box-shadow: var(--shadow);
    position: relative;
    backdrop-filter: blur(8px);
    margin: 0 auto;
}

/* Step column highlight overlay */
.bmk-table-wrap::before {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: calc(200px + 5px);
    width: calc((100% - 200px) / 6 - 10px);
    background: linear-gradient(180deg,
        hsla(var(--accent-h), 80%, 65%, 0.15) 0%,
        hsla(var(--accent-h), 75%, 55%, 0.08) 50%,
        hsla(var(--accent-h), 80%, 65%, 0.12) 100%);
    border-radius: 14px;
    pointer-events: none;
    z-index: 100;
    box-shadow:
        0 0 20px hsla(var(--accent-h), 80%, 60%, 0.15),
        inset 0 1px 0 hsla(var(--accent-h), 100%, 90%, 0.4),
        inset 0 -1px 0 hsla(var(--accent-h), 80%, 40%, 0.1);
    border: 1px solid hsla(var(--accent-h), 70%, 70%, 0.25);
}

.theme-b .bmk-table-wrap::before {
    background: linear-gradient(180deg,
        hsla(var(--accent-h), 70%, 55%, 0.18) 0%,
        hsla(var(--accent-h), 65%, 45%, 0.10) 50%,
        hsla(var(--accent-h), 70%, 55%, 0.15) 100%);
    box-shadow:
        0 0 25px hsla(var(--accent-h), 70%, 50%, 0.2),
        inset 0 1px 0 hsla(var(--accent-h), 80%, 70%, 0.3),
        inset 0 -1px 0 hsla(var(--accent-h), 60%, 30%, 0.15);
    border: 1px solid hsla(var(--accent-h), 60%, 55%, 0.3);
}

.theme-a .bmk-table-wrap {
    box-shadow:
        0 2px 8px rgba(26, 75, 140, 0.06),
        0 12px 40px rgba(26, 75, 140, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.9);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,255,0.95) 100%);
}


.bmk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    table-layout: fixed;
    border-radius: var(--radius);
    overflow: hidden;
}

.bmk-table th,
.bmk-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.bmk-table th {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(180deg, hsla(var(--accent-h), 15%, 96%, 1) 0%, hsla(var(--accent-h), 12%, 94%, 1) 100%);
    white-space: normal;
    padding: 16px 10px;
    letter-spacing: 0.02em;
    border-bottom: 2px solid hsla(var(--accent-h), 30%, 80%, 0.4);
    vertical-align: middle;
    line-height: 1.3;
}

/* Rounded corners for first and last header cells */
.bmk-table th:first-child {
    border-top-left-radius: var(--radius);
}

.bmk-table th:last-child {
    border-top-right-radius: var(--radius);
}

.theme-b .bmk-table th {
    background: linear-gradient(180deg, hsla(var(--accent-h), 20%, 18%, 1) 0%, hsla(var(--accent-h), 18%, 15%, 1) 100%);
    border-bottom-color: hsla(var(--accent-h), 30%, 40%, 0.4);
}

.bmk-th-benchmark {
    text-align: left !important;
    width: 200px;
    padding-left: 20px !important;
}

.bmk-th-flash {
    font-weight: 700 !important;
    position: relative;
    z-index: 10;
    color: var(--accent) !important;
    font-size: 16px !important;
}

.theme-b .bmk-th-flash {
    color: hsl(210, 80%, 65%) !important;
}

.bmk-table td {
    color: var(--text);
}

.bmk-table td:not(:first-child) {
    font-weight: 400;
}

.bmk-table td:first-child {
    text-align: left;
    padding-left: 20px;
    color: var(--text);
    font-weight: 600;
}

.bmk-table tbody tr:last-child td {
    border-bottom: none;
}

.bmk-col-air {
    font-weight: 700;
    position: relative;
    z-index: 10;
    font-size: 17px;
    color: var(--accent) !important;
    text-shadow: 0 1px 2px hsla(var(--accent-h), 60%, 40%, 0.15);
}

.bmk-row-params td {
    background: var(--code-bg);
    font-size: 14px;
    color: var(--text-muted);
}

.bmk-row-params td:first-child {
    font-family: var(--font-sans);
    color: var(--text);
}

.bmk-table tbody tr:hover td {
    background: var(--code-bg);
}

.bmk-top1 {
    color: hsl(210, 80%, 45%) !important;
    font-weight: 700 !important;
}

.bmk-top2 {
    color: hsl(210, 60%, 60%) !important;
    font-weight: 400 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.theme-b .bmk-top1 {
    color: hsl(210, 80%, 65%) !important;
}

.theme-b .bmk-top2 {
    color: hsl(210, 50%, 75%) !important;
}

.bmk-sub {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}

.bmk-row-divider {
    position: relative;
}

.bmk-row-divider td,
.bmk-row-divider td:first-child {
    background: transparent;
    font-size: 11px;
    color: var(--text);
    padding: 6px 8px !important;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.bmk-table .bmk-row-divider .divider-text {
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--text);
}

.bmk-row-divider .divider-subtitle {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
    text-transform: none;
}

.theme-b .bmk-row-divider td,
.theme-b .bmk-row-divider td:first-child {
    background: transparent;
    color: var(--text);
}

.bmk-na {
    color: var(--text-muted) !important;
    opacity: 0.35;
    font-weight: 400 !important;
}

/* Kimi column slash-centered alignment */
.bmk-col-kimi,
.bmk-table td:nth-child(4) {
    text-align: center !important;
}

.bmk-table td:nth-child(4) .val-left,
.bmk-col-kimi .val-left {
    display: inline-block;
    min-width: 38px;
    text-align: right;
}

.bmk-table td:nth-child(4) .val-slash,
.bmk-col-kimi .val-slash {
    display: inline-block;
    width: 18px;
    text-align: center;
}

.bmk-table td:nth-child(4) .val-right,
.bmk-col-kimi .val-right {
    display: inline-block;
    min-width: 38px;
    text-align: left;
}

.bmk-note {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-muted);
    text-align: left;
    margin: 20px 0 0 0;
    padding: 8px 16px;
    border-left: 3px solid var(--border);
    list-style: disc;
    padding-left: 32px;
}

.bmk-note li {
    margin: 4px 0;
}

.bmk-note p {
    margin: 4px 0;
}

.table-note-center {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* Internal Evaluation Tables */
.internal-eval-section {
    margin-bottom: 48px;
}

.internal-eval-subtitle {
    font-family: var(--font-sans);
    font-size: calc(var(--font-size-base) * 1.05);
    font-weight: 600;
    color: var(--text);
    margin: 24px 0 12px;
}

.internal-eval-table-wrap {
    margin: 20px auto;
    overflow-x: auto;
    max-width: 900px;
}

.internal-eval-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 14px;
}

.internal-eval-table-wide {
    max-width: 100%;
}

.internal-eval-table th,
.internal-eval-table td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.internal-eval-table th {
    background: hsla(var(--accent-h), 20%, 92%, 0.5);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.theme-b .internal-eval-table th {
    background: hsla(var(--accent-h), 20%, 18%, 0.5);
}

.internal-eval-table td {
    color: var(--text-secondary);
}

.internal-eval-table td:not(:first-child) {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.internal-eval-table th:not(:first-child) {
    text-align: center;
}

.internal-eval-table tbody tr:hover td {
    background: var(--code-bg);
}

.bmk-row-highlight td {
    background: rgba(0, 90, 255, 0.06) !important;
    font-weight: 500;
}

.bmk-row-highlight td:first-child {
    color: var(--accent);
    font-weight: 600;
}

.bmk-pending {
    color: var(--text-muted) !important;
    font-style: italic;
}

.bmk-note-inline {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

.limitations-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.limitations-list > li {
    margin-bottom: 16px;
    padding-left: 0;
}

.limitations-list > li > strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.limitations-list > li > p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.limitations-list > li > ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.limitations-list > li > ul > li {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin-bottom: 4px;
}

@media (max-width: 1200px) {
    .bmk-table { font-size: 13px; }
    .bmk-table th, .bmk-table td { padding: 10px 8px; }
    .bmk-th-benchmark { width: 160px; }
    .bmk-table-wrap::before {
        left: calc(160px + 5px);
        width: calc((100% - 160px) / 6 - 10px);
    }
}

.method-content { width: 100%; text-align: left; }
.method-content .formula-block { text-align: center; }
.formula-section { margin-bottom: 24px; }

.method-list {
    font-size: var(--font-size-base);
    color: var(--text);
    line-height: var(--line-height);
    margin: 8px 0 16px 24px;
    padding-left: 0;
}

.method-list li {
    margin-bottom: 6px;
}

.showcase-figures-row {
    display: flex;
    gap: 24px;
    margin: 24px 0;
}

.showcase-figures-row.showcase-figures-centered {
    justify-content: center;
}

/* Performance Chart (inline) */
.perf-chart-container {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 40px 50px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.perf-chart-title {
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.perf-chart-wrapper {
    position: relative;
    padding-left: 50px;
    padding-top: 30px;
}

.perf-y-axis {
    position: absolute;
    left: 0;
    top: 30px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 13px;
}

.perf-y-axis span {
    text-align: right;
    width: 35px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 0;
}

.perf-chart-area {
    position: relative;
    height: 220px;
    background-color: var(--bg);
    border-radius: 8px;
    overflow: visible;
}

.perf-grid-lines {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.perf-grid-line {
    width: 100%;
    height: 0;
    border-bottom: 1px dashed var(--border);
}

.perf-bars-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 80px;
}

.perf-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.perf-bar-label {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
}

.perf-bar-value {
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.perf-bar {
    width: 80px;
    background: linear-gradient(180deg, #7cb5ec 0%, #5a9bd5 100%);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.perf-bar-icon {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.perf-bar:hover {
    background: linear-gradient(180deg, #8dc5fc 0%, #6aabe5 100%);
    transform: scaleX(1.02);
}

.perf-labels-container {
    height: 35px;
}

.showcase-figure {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.showcase-figure iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.showcase-figure .figure-placeholder {
    height: 400px;
}

.showcase-figure-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
}

.formula-block {
    margin: 12px 0;
    overflow-x: auto;
    text-align: center;
}

.figure-block { margin-top: 28px; }

.figure-img {
    display: block;
}

.figure-placeholder {
    height: 160px;
    background: var(--code-bg);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 12px;
}

.figure-caption {
    margin-top: 8px;
    font-size: 11px;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
}

.section-footer {
    background: var(--bg-alt);
    position: relative;
}

.theme-a .section-footer {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text);
    margin-bottom: 10px;
}

.footer-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.cta-buttons { display: flex; gap: 8px; }

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: white;
    border: none;
    border-radius: calc(var(--radius) * 0.5);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    letter-spacing: 0.02em;
}

.theme-a .btn-primary {
    box-shadow:
        0 4px 14px rgba(26, 75, 140, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(26, 75, 140, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-secondary {
    padding: 10px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    border-radius: calc(var(--radius) * 0.4);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.footer-list { list-style: none; padding: 0; }
.footer-list li {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 6px;
    padding-left: 12px;
    position: relative;
}
.footer-list li::before { content: '–'; position: absolute; left: 0; color: var(--text-muted); }

.site-footer {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-bottom { display: flex; justify-content: center; align-items: center; }
.copyright { font-family: var(--font-sans); font-size: 11px; color: var(--text-muted); }

.control-panel {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-family: var(--font-sans);
}

.control-header {
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius) var(--radius) 0 0;
}

.control-header h4 {
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.control-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background var(--transition);
}

.control-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.control-body {
    padding: 14px;
    max-height: 450px;
    overflow-y: auto;
}

.control-body.collapsed { display: none; }

.control-section-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 12px 0 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.control-section-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.control-group { margin-bottom: 12px; }
.control-group:last-child { margin-bottom: 0; }

.control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.control-value {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.control-input {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 2px;
    outline: none;
}

.control-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(30, 80, 180, 0.3);
    transition: transform 0.15s ease;
}

.control-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.control-presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
}

.control-preset-btn {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-alt);
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition);
}

.control-preset-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.control-preset-btn.active {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.control-reset {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}
.control-reset:hover { border-color: var(--accent); color: var(--accent); }

.control-copy {
    width: 100%;
    padding: 8px;
    margin-top: 6px;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    font-size: 11px;
    color: white;
    cursor: pointer;
    transition: all var(--transition);
}
.control-copy:hover { opacity: 0.85; }

@media (max-width: 768px) {
    .control-panel {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
    }
}

.carousel-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 44px;
}

.carousel-nav-btn {
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 0.6);
    background: var(--bg-card);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-a .carousel-nav-btn {
    box-shadow: 0 2px 8px rgba(26, 75, 140, 0.06);
}

.carousel-nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.carousel-nav-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.theme-a .carousel-nav-btn.active {
    box-shadow:
        0 4px 12px rgba(26, 75, 140, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.carousel-wrapper {
    position: relative;
    height: 420px;
    perspective: 1200px;
    margin: 0 -100px;
    overflow-x: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    width: 558px;
    left: 50%;
    top: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.2);
    padding: 28px;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.theme-a .carousel-item {
    box-shadow:
        0 4px 16px rgba(26, 75, 140, 0.08),
        0 16px 48px rgba(26, 75, 140, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(250,252,255,1) 100%);
}

.theme-a .carousel-item[data-pos="0"] {
    box-shadow:
        0 8px 32px rgba(30, 80, 180, 0.12),
        0 24px 64px rgba(30, 80, 180, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 0 0 1px rgba(30, 80, 180, 0.05);
}

.carousel-item[data-pos="0"] {
    transform: translate(-50%, -50%) translateX(0) translateZ(0) rotateY(0);
    opacity: 1;
    z-index: 10;
}

.carousel-item[data-pos="-1"] {
    transform: translate(-50%, -50%) translateX(-380px) translateZ(-150px) rotateY(25deg);
    opacity: 0.5;
    z-index: 5;
}

.carousel-item[data-pos="1"] {
    transform: translate(-50%, -50%) translateX(380px) translateZ(-150px) rotateY(-25deg);
    opacity: 0.5;
    z-index: 5;
}

.carousel-item[data-pos="-2"],
.carousel-item[data-pos="2"] {
    transform: translate(-50%, -50%) translateX(0) translateZ(-300px) rotateY(0);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.carousel-item[data-pos="-2"] {
    transform: translate(-50%, -50%) translateX(-600px) translateZ(-300px) rotateY(40deg);
}

.carousel-item[data-pos="2"] {
    transform: translate(-50%, -50%) translateX(600px) translateZ(-300px) rotateY(-40deg);
}

.carousel-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.carousel-item-title {
    font-family: var(--font-serif);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text);
}

.carousel-sample-tabs {
    display: flex;
    gap: 6px;
}

.carousel-sample-btn {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
}

.carousel-sample-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.carousel-sample-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.carousel-demo-content {
    display: none;
}

.carousel-demo-content.active {
    display: block;
}

.carousel-demo-user {
    padding: 12px 14px;
    background: var(--code-bg);
    border-left: 3px solid var(--border);
    border-radius: 4px;
    margin-bottom: 12px;
}

.carousel-demo-agent {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.carousel-demo-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.carousel-demo-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.carousel-flow-steps {
    margin: 10px 0;
    padding: 10px;
    background: var(--accent-light);
    border-radius: 4px;
}

.carousel-flow-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.carousel-flow-num {
    width: 18px;
    height: 18px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.carousel-demo-result {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .table-grid { grid-template-columns: 1fr; }
    .table-grid-2col { grid-template-columns: 1fr; }
    .efficiency-highlight { flex-direction: column; align-items: center; gap: 16px; }
    .carousel-wrapper { margin: 0 -50px; }
    .carousel-item { width: 450px; }
    .carousel-item[data-pos="-1"] { transform: translate(-50%, -50%) translateX(-300px) translateZ(-100px) rotateY(20deg); }
    .carousel-item[data-pos="1"] { transform: translate(-50%, -50%) translateX(300px) translateZ(-100px) rotateY(-20deg); }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .hero-title-large { font-size: 22px; }
    .two-col { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .section-card { padding: 20px; }
    .control-panel { width: calc(100% - 32px); left: 16px; right: 16px; }
    .carousel-wrapper { margin: 0; height: 380px; }
    .carousel-item { width: calc(100% - 48px); max-width: 500px; }
    .carousel-item[data-pos="-1"],
    .carousel-item[data-pos="1"] { opacity: 0; pointer-events: none; }
    .carousel-nav-tabs { flex-wrap: wrap; gap: 8px; }
    .carousel-nav-btn { padding: 8px 14px; font-size: 12px; }
    .efficiency-value { font-size: 26px; }
    .data-table { font-size: 10px; }
    .data-table th { font-size: 8px; }
}


.teaser-chart-container {
    width: 100%;
    max-width: 810px;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 20px 0;
    position: relative;
    overflow: visible;
}

.theme-a .teaser-chart-container {
    background: transparent;
}

.teaser-chart-container::before {
    display: none;
}

.teaser-chart-container::after {
    display: none;
}

.teaser-chart-header {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.teaser-chart-title {
    font-family: var(--font-sans);
    font-size: var(--font-size-h3);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.teaser-chart-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.teaser-chart-wrapper {
    position: relative;
    z-index: 1;
}

.teaser-chart-area {
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: 1fr 60px;
    gap: 0;
    height: 380px;
}

.teaser-y-axis {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 12px;
    position: relative;
}

.teaser-y-axis .teaser-axis-label {
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%) rotate(-90deg);
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary, #444);
    white-space: nowrap;
}

.teaser-y-axis .teaser-axis-ticks {
    position: relative;
    height: 100%;
}

.teaser-y-axis .teaser-axis-tick {
    position: absolute;
    right: 0;
    transform: translateY(50%);
}

.teaser-axis-tick {
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
    color: var(--text-secondary, #444);
}

.teaser-plot-area {
    position: relative;
    background: linear-gradient(to top right,
        rgba(255, 255, 255, 0.3) 0%,
        hsla(var(--accent-h), 30%, 96%, 0.5) 40%,
        hsla(var(--accent-h), 60%, 85%, 0.8) 100%);
    border: 1px solid hsla(var(--accent-h), 30%, 85%, 0.4);
    border-radius: 8px;
    overflow: visible;
    backdrop-filter: blur(4px);
}

.teaser-plot-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='fadeGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23888' stop-opacity='0'/%3E%3Cstop offset='35%25' stop-color='%23888' stop-opacity='0.5'/%3E%3Cstop offset='65%25' stop-color='%23888' stop-opacity='0.5'/%3E%3Cstop offset='100%25' stop-color='%23888' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M 0 0 Q 80 20, 100 100' stroke='url(%23fadeGrad)' stroke-width='0.4' stroke-dasharray='1.5,1.5' fill='none'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

/* Top-left quadrant annotation */
.teaser-quadrant-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 55%;
    background: none;
    pointer-events: none;
    z-index: 1;
}

.teaser-quadrant-highlight::after {
    content: '↖ cost-effectiveness zone';
    position: absolute;
    top: 8px;
    left: 10px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.7;
    letter-spacing: 0.01em;
}

/* Top-right optimal zone for TPS-based chart */
.teaser-quadrant-topright {
    top: -5px;
    left: auto;
    right: 10px;
    width: auto;
    height: auto;
}

.teaser-quadrant-topright::after {
    content: 'Higher Intelligence Density ↗';
    position: static;
    display: inline-block;
    background: none;
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    font-style: italic;
    padding: 0;
    border-radius: 0;
    opacity: 0.85;
    letter-spacing: 0.02em;
    box-shadow: none;
    text-shadow: none;
}

.teaser-quadrant-topright::before {
    display: none;
}

.teaser-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.teaser-grid-line {
    position: absolute;
    background: var(--border);
}

.teaser-grid-line.horizontal {
    left: 0;
    right: 0;
    height: 1px;
    background: hsla(var(--accent-h), 20%, 80%, 0.3);
}

.teaser-closed-ref-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
}

.teaser-closed-ref-group {
    position: absolute;
    left: 0;
    right: -80px;
    height: 0;
    display: flex;
    align-items: center;
}

.teaser-closed-ref-line {
    flex: 1;
    height: 0;
    border-top: 1px dashed currentColor;
    opacity: 0.35;
}

.teaser-logo-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.teaser-logo-circle img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.teaser-circle-initial {
    font-size: 11px;
    font-weight: 700;
}

.teaser-closed-score {
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 700;
}

.teaser-closed-name {
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
    text-align: center;
    line-height: 1.3;
}

.teaser-closed-model-card {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px 3px 3px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid hsla(var(--accent-h), 30%, 85%, 0.4);
    border-radius: 16px;
    margin-right: -80px;
    flex-shrink: 0;
    position: relative;
    min-width: 140px;
    justify-content: flex-start;
    backdrop-filter: blur(4px);
}

.teaser-closed-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-alt);
    border: 1px solid hsla(var(--accent-h), 30%, 85%, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(30, 80, 140, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.teaser-closed-model-card:hover .teaser-closed-tooltip {
    opacity: 1;
    visibility: visible;
}

.theme-b .teaser-closed-model-card {
    background: rgba(20, 34, 54, 0.95);
    border-color: rgba(80, 110, 140, 0.2);
}

.theme-b .teaser-closed-tooltip {
    background: var(--bg-alt);
    border-color: var(--border);
}

.teaser-data-points {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.teaser-data-point {
    position: absolute;
    transform: translate(-50%, 50%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.teaser-data-point:hover {
    z-index: 100;
}

.teaser-point-square {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-alt);
    border: 1.5px solid hsla(var(--accent-h), 30%, 85%, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    overflow: hidden;
}

.teaser-point-square img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.teaser-point-square .teaser-point-initial {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}

.teaser-data-point:hover .teaser-point-square {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(30, 80, 140, 0.1);
}

.teaser-data-point.highlight .teaser-point-square {
    border: 2px solid var(--accent);
    background: var(--bg-alt);
    box-shadow: 0 0 0 3px hsla(var(--accent-h), 80%, 60%, 0.12);
}

.teaser-data-point.highlight::before {
    display: none;
}

@keyframes teaserPulse {
    0%, 100% { opacity: 0; }
}

.teaser-point-score {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* Plain score text for non-highlight models */
.teaser-point-score-plain {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Right-positioned score for closed-source models to avoid overlap */
.teaser-point-score-right {
    position: absolute;
    top: 50%;
    left: calc(100% + 6px);
    transform: translateY(-50%);
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.teaser-point-score-left {
    position: absolute;
    top: 50%;
    right: calc(100% + 6px);
    transform: translateY(-50%);
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.teaser-point-score-top {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.teaser-point-score-above {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Dashed line for closed-source models */
.teaser-dash-line {
    position: absolute;
    left: -30px;
    height: 1px;
    border: none;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        to right,
        currentColor 0,
        currentColor 6px,
        transparent 6px,
        transparent 12px
    );
    color: var(--text-muted);
}

.teaser-point-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-alt);
    border: 1px solid hsla(var(--accent-h), 30%, 85%, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(30, 80, 140, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
    z-index: 1000;
}

.teaser-data-point:hover .teaser-point-tooltip {
    opacity: 1;
    visibility: visible;
}

.teaser-tooltip-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

.teaser-tooltip-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
}

.teaser-tooltip-stat {
    display: flex;
    flex-direction: column;
}

.teaser-tooltip-stat-label {
    color: var(--text-muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.teaser-tooltip-stat-value {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 600;
}

.teaser-x-axis {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
}

.teaser-x-axis .teaser-axis-ticks {
    width: calc(100% - 60px);
    margin-left: 30px;
    position: relative;
    height: 20px;
    margin-bottom: 6px;
}

.teaser-x-axis .teaser-axis-tick {
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
    color: var(--text-secondary, #444);
}

.teaser-axis-tick-closed {
    color: var(--text-muted);
    font-style: italic;
}

.teaser-x-axis .teaser-axis-label {
    font-family: 'Times New Roman', Times, serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary, #444);
    width: 100%;
    text-align: center;
    margin-left: 0;
}

.teaser-chart-legend {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.teaser-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.teaser-legend-shape {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teaser-legend-square {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid var(--text-muted);
    background: var(--bg-alt);
}

.teaser-legend-square.highlight {
    border-color: var(--accent);
    background: var(--bg-alt);
}

.teaser-legend-circle {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, hsla(210, 50%, 85%, 1) 0%, hsla(160, 30%, 80%, 1) 50%, hsla(45, 30%, 82%, 1) 100%);
    border-radius: 50%;
    border: none;
}

.teaser-legend-item.teaser-legend-highlight {
    font-weight: 600;
    color: var(--accent);
}

.teaser-insight-callout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 24px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid hsla(var(--accent-h), 30%, 85%, 0.4);
    border-radius: 8px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.teaser-insight-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.teaser-insight-icon svg {
    width: 18px;
    height: 18px;
}

.teaser-insight-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.teaser-insight-text strong {
    color: var(--text);
}

.teaser-insight-text em {
    font-style: normal;
    color: var(--text);
    font-weight: 500;
}

@media (max-width: 768px) {
    .teaser-chart-container {
        padding: 24px 20px;
        padding-right: 100px;
    }

    .teaser-chart-area {
        height: 320px;
    }

    .teaser-chart-legend {
        flex-wrap: wrap;
        gap: 12px;
    }

    .teaser-insight-callout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


.bar-charts-container {
    width: 100%;
    margin: 0 auto 8px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 20px 0;
    overflow: visible;
}

.bar-charts-note {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.teaser-chart-caption {
    font-family: var(--font-sans);
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 860px;
    margin: 4px auto 24px;
    padding: 0 20px;
    text-align: center;
    white-space: nowrap;
}

.showcase-figure-centered > .bar-charts-note {
    max-width: 900px;
    width: 100%;
    margin-top: 12px;
}

.inline-agentic-viewer + .bar-charts-note {
    margin-top: 16px;
}

.bar-charts-container::before {
    display: none;
}

.bar-charts-container::after {
    display: none;
}

.bar-charts-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.bar-charts-title {
    font-family: var(--font-serif);
    font-size: var(--font-size-h3);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.bar-charts-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 400;
}

/* New Category Layout */
.bar-category-dual-row {
    display: flex;
    gap: 24px;
}

.bar-category-half {
    flex: 1;
}

.bar-category-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin: 0 0 12px;
    padding-left: 4px;
    display: block;
    border-left: 3px solid var(--accent);
}

.bar-category-row,
.bar-category-half {
    position: relative;
    padding: 16px;
    background: hsla(var(--accent-h), 20%, 95%, 0.3);
    border-radius: 12px;
    border: 1px solid hsla(var(--accent-h), 30%, 85%, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.bar-category-row {
    margin-bottom: 24px;
}

.bar-category-row:last-child {
    margin-bottom: 0;
}

.theme-b .bar-category-row,
.theme-b .bar-category-half {
    background: hsla(var(--accent-h), 20%, 15%, 0.3);
    border-color: hsla(var(--accent-h), 30%, 30%, 0.3);
}

.bar-benchmarks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.bar-benchmark-panel {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid hsla(var(--accent-h), 30%, 85%, 0.4);
    border-radius: 12px;
    padding: 12px 14px;
    backdrop-filter: blur(4px);
    transition: all var(--transition);
    flex: 1 1 calc((100% - 32px) / 3);
    min-width: 280px;
    height: 220px;
    box-sizing: border-box;
}

.bar-benchmark-panel:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(30, 80, 140, 0.06);
}

.bar-benchmark-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.bar-benchmark-name {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.bar-benchmark-chart {
    display: flex;
    gap: 4px;
    height: 160px;
}

.bar-plot-area {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    padding: 4px 0;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.bar-plot-area::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50%;
    height: 1px;
    background: var(--border);
    opacity: 0.5;
}

/* Plot container: open | divider | closed */
.bar-plot-container {
    flex: 1;
    display: flex;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    height: 100%;
}

.bar-plot-container::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50%;
    height: 1px;
    background: var(--border);
    opacity: 0.5;
}

.bar-plot-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 3px;
    padding: 4px 4px;
    height: 100%;
}

.bar-plot-open {
    flex: 6;
}

.bar-plot-closed {
    flex: 4;
}

/* Variant layout: Step bars stay left, other bars evenly distributed using grid */
.bar-plot-open.has-variant {
    display: grid;
    grid-template-columns: 50px 1fr 1fr 1fr;
    align-items: end;
    justify-items: center;
    gap: 3px;
}

.bar-plot-open.has-variant > .bar-group-stacked {
    justify-self: start;
}

.bar-plot-divider {
    width: 1px;
    background: var(--border);
    opacity: 0.6;
    margin: 4px 0;
}

/* Closed bar style */
.bar.bar-closed {
    background: linear-gradient(0deg, hsla(210, 25%, 78%, 0.5) 0%, hsla(210, 20%, 60%, 0.5) 100%);
    box-shadow: 0 2px 6px rgba(100, 120, 140, 0.1);
}

.bar.bar-closed .bar-score {
    color: hsl(210, 25%, 50%);
}

/* Adjust bar styling for smaller panels */
.bar-benchmark-panel .bar-group {
    width: 28px;
}

.bar-benchmark-panel .bar {
    max-width: 24px;
}

.bar-benchmark-panel .bar-logo {
    width: 14px;
    height: 14px;
}

.bar-benchmark-panel .bar-score {
    font-size: 10px;
    color: var(--text);
    text-shadow: 0 0 4px var(--bg-card), 0 0 2px var(--bg-card);
}

.bar-benchmark-panel .bar-y-axis {
    width: 24px;
}

.bar-benchmark-panel .bar-y-tick {
    font-size: 8px;
}

/* Theme B adjustments */
.theme-b .bar-benchmark-panel {
    background: rgba(20, 30, 50, 0.6);
    border-color: hsla(var(--accent-h), 30%, 40%, 0.4);
}

.theme-b .bar-benchmark-panel:hover {
    background: rgba(25, 35, 55, 0.8);
}

/* Bar open style */
.bar.bar-open {
    background: linear-gradient(0deg, hsla(210, 25%, 78%, 0.6) 0%, hsla(210, 20%, 58%, 0.6) 100%);
    box-shadow: 0 2px 6px rgba(100, 120, 140, 0.15);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .bar-category-dual-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .bar-benchmarks-grid {
        justify-content: center;
    }
}

.bar-chart-panel {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid hsla(var(--accent-h), 30%, 85%, 0.4);
    border-radius: 16px;
    padding: 16px 20px;
    position: relative;
    width: 441px;
    min-width: 441px;
    height: 300px;
    min-height: 300px;
    backdrop-filter: blur(4px);
    transition: all var(--transition);
    box-sizing: border-box;
}

.bar-chart-panel:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(30, 80, 140, 0.06);
}

.bar-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.bar-panel-title {
    font-family: var(--font-serif);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text);
}

.bar-panel-badge {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--accent-light);
    padding: 3px 8px;
    border-radius: 10px;
}

.bar-chart-area {
    display: flex;
    gap: 4px;
    height: 220px;
}

.bar-y-axis {
    width: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
    flex-shrink: 0;
}

.bar-y-tick {
    font-size: 9px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-align: right;
}

.bar-plot {
    flex: 1;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 4px 0;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.bar-plot::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50%;
    height: 1px;
    background: var(--border);
    opacity: 0.5;
}

/* Bar sections for open/closed source */
.bar-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 100%;
}

.bar-section-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 100%;
    padding: 0 8px;
}

.bar-section-label {
    position: absolute;
    top: -20px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bar-section-label.bar-open-label {
    color: var(--text-muted);
}

.bar-section-label.bar-closed-label {
    color: hsl(210, 25%, 50%);
}

.bar-group {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    width: 36px;
}

.bar-special-label {
    display: none;
}

.bar-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.bar {
    width: 100%;
    max-width: 30px;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4px;
    cursor: pointer;
}

.bar:hover {
    filter: brightness(1.05);
    transform: scaleY(1.02);
}

.bar.open {
    background: linear-gradient(180deg, hsl(210, 25%, 72%) 0%, hsl(210, 20%, 65%) 100%);
    box-shadow: 0 2px 6px rgba(100, 120, 140, 0.2);
    opacity: 0.5;
}

.bar.bar-highlight {
    background: linear-gradient(0deg, hsla(var(--accent-h), 70%, 62%, 1) 0%, var(--accent-deep) 100%);
    box-shadow:
        0 0 0 2px hsla(var(--accent-h), 80%, 60%, 0.3),
        0 4px 12px rgba(30, 80, 180, 0.3);
    opacity: 1;
}

.bar.closed {
    background: linear-gradient(0deg, hsl(210, 25%, 78%) 0%, hsl(210, 20%, 60%) 100%);
    box-shadow: 0 2px 6px rgba(100, 120, 140, 0.2);
    opacity: 0.5;
}

.bar-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-top: 2px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)) brightness(1.1);
}

.bar-initial {
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.bar-score {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    text-shadow: 0 0 3px var(--bg-flat);
}

.bar.bar-highlight .bar-score {
    color: var(--accent);
    font-weight: 700;
}

/* Stacked bar styles for PaCoRe */
.bar-group-stacked {
    width: 36px;
    overflow: visible;
}

.bar-group-stacked .bar-wrapper {
    overflow: visible;
}

.bar-group-stacked .bar.bar-base {
    z-index: 2;
    position: relative;
}

.bar-pacore {
    width: 30px;
    border-radius: 4px 4px 0 0;
    position: absolute;
    bottom: 0;
    left: 16px;
    z-index: 1;
    background: linear-gradient(0deg, hsla(var(--accent-h), 50%, 72%, 0.9) 0%, hsla(var(--accent-h), 45%, 65%, 0.9) 100%);
    box-shadow: 0 2px 6px rgba(30, 80, 180, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bar-pacore:hover {
    filter: brightness(1.05);
    transform: scaleY(1.02);
    z-index: 3;
}

.bar-pacore .bar-score {
    color: hsla(var(--accent-h), 45%, 50%, 1);
}

.bar-pacore .bar-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-top: 2px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)) brightness(1.1);
}

/* Remove old stacked styles */
.bar.bar-stacked {
    position: relative;
    z-index: 2;
}

.bar-score-pacore {
    color: hsla(var(--accent-h), 50%, 55%, 1);
}

/* Base score stays at default position (4px above its bar) */
.bar-score-base {
    /* Position inherited from .bar-score */
}

.bar.closed .bar-score {
    color: hsl(210, 25%, 50%);
}

.bar-label {
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
    line-height: 1.3;
    max-width: 100%;
    white-space: normal;
}

.bar-tooltip {
    position: absolute;
    bottom: calc(100% + 24px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
}

.bar:hover .bar-tooltip {
    opacity: 1;
    visibility: visible;
}

.bar-tooltip-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
    text-align: center;
    line-height: 1.3;
}

.bar-tooltip-detail {
    font-size: 12px;
    color: #3a3a4a;
}

.bar-tooltip-detail span {
    color: #2563eb;
    font-weight: 600;
}

.bar-section-divider {
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        hsl(210, 25%, 65%) 0,
        hsl(210, 25%, 65%) 4px,
        transparent 4px,
        transparent 8px
    );
    opacity: 0.4;
    flex-shrink: 0;
    margin: 0 6px;
}

.bar-charts-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.bar-legend-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-legend-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.bar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}

.bar-legend-bar {
    width: 18px;
    height: 12px;
    border-radius: 3px;
    background: hsl(210, 25%, 72%);
}

.bar-legend-item.bar-highlight .bar-legend-bar {
    background: var(--accent);
    box-shadow: 0 0 0 2px hsla(var(--accent-h), 80%, 60%, 0.2);
}

.bar-legend-item.bar-highlight {
    font-weight: 600;
    color: var(--accent);
}

.bar-legend-bar.bar-closed {
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.2) 2px,
            rgba(255, 255, 255, 0.2) 4px
        ),
        hsl(210, 25%, 68%);
}

.bar-legend-item.bar-closed {
    color: hsl(210, 25%, 50%);
}

.bar-legend-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

@media (max-width: 1550px) {
    .bar-charts-stack {
        flex-direction: column;
        align-items: center;
    }

    .bar-chart-panel {
        width: 100%;
        max-width: 600px;
        min-width: auto;
        height: auto;
        min-height: auto;
        padding: 16px 20px;
    }

    .bar-chart-area {
        height: 180px;
    }

    .bar-group {
        width: 36px;
    }

    .bar {
        max-width: 32px;
    }

    .bar-section-bars {
        gap: 4px;
        padding: 0 6px;
    }
}

@media (max-width: 700px) {
    .bar-chart-area {
        height: 160px;
    }

    .bar-group {
        width: 28px;
    }

    .bar {
        max-width: 24px;
    }

    .bar-logo {
        width: 12px;
        height: 12px;
    }

    .bar-score {
        font-size: 9px;
    }

    .bar-label {
        font-size: 8px;
    }

    .bar-charts-legend {
        flex-wrap: wrap;
        gap: 12px;
    }

    .bar-legend-divider {
        display: none;
    }

    .bar-section-bars {
        gap: 2px;
        padding: 0 4px;
    }

    .bar-section-label {
        font-size: 8px;
        top: -16px;
    }
}


.theme-b .teaser-chart-container {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.theme-b .teaser-chart-container::before {
    display: none;
}

.theme-b .teaser-plot-area {
    background: linear-gradient(to top right,
        rgba(10, 14, 22, 0.3) 0%,
        hsla(var(--accent-h), 30%, 18%, 0.5) 40%,
        hsla(var(--accent-h), 50%, 30%, 0.8) 100%);
    border-color: rgba(80, 110, 140, 0.25);
}

.theme-b .teaser-closed-model-card {
    background: rgba(20, 34, 54, 0.9);
    border-color: rgba(80, 110, 140, 0.25);
}

.theme-b .teaser-point-square {
    background: var(--bg-alt);
    border-color: rgba(80, 110, 140, 0.3);
}

.theme-b .teaser-data-point.highlight .teaser-point-square {
    background: linear-gradient(135deg, rgba(30, 50, 80, 1) 0%, hsla(var(--accent-h), 50%, 25%, 1) 100%);
}

.theme-b .teaser-point-score {
    background: hsla(var(--accent-h), 60%, 20%, 1);
}

.theme-b .teaser-point-score-plain {
    color: var(--text-muted);
}

.theme-b .teaser-dash-line {
    opacity: 0.4;
}

.theme-b .teaser-point-tooltip {
    background: var(--bg-alt);
    border-color: var(--border);
}

.theme-b .teaser-legend-square {
    background: var(--bg-alt);
    border-color: rgba(100, 130, 160, 0.4);
}

.theme-b .teaser-legend-square.highlight {
    background: hsla(var(--accent-h), 80%, 25%, 1);
}

.theme-b .teaser-insight-callout {
    background: linear-gradient(135deg, hsla(var(--accent-h), 60%, 15%, 1) 0%, hsla(var(--accent-h), 40%, 12%, 1) 100%);
    border-color: hsla(var(--accent-h), 60%, 30%, 1);
}


.theme-b .bar-charts-container {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.theme-b .bar-charts-container::before {
    display: none;
}

.theme-b .bar-chart-panel {
    background: rgba(12, 16, 24, 0.85);
    border-color: rgba(60, 100, 160, 0.2);
    box-shadow: 0 0 30px rgba(40, 100, 200, 0.05);
}

.theme-b .bar-plot {
    border-color: rgba(80, 110, 140, 0.18);
}

.theme-b .bar-plot::before {
    background: var(--border);
}

.theme-b .bar.open {
    background: linear-gradient(180deg, hsl(210, 30%, 50%) 0%, hsl(210, 25%, 40%) 100%);
}

.theme-b .bar.bar-highlight {
    background: linear-gradient(0deg, hsla(var(--accent-h), 70%, 62%, 1) 0%, var(--accent-deep) 100%);
}

.theme-b .bar.closed {
    background: linear-gradient(0deg, hsl(210, 30%, 55%) 0%, hsl(210, 25%, 38%) 100%);
}

.theme-b .bar-tooltip {
    background: #1a1a2e;
    border-color: #3a3a4a;
}

.theme-b .bar-tooltip-title {
    color: #f0f0f5;
}

.theme-b .bar-tooltip-detail {
    color: #c0c0d0;
}

.theme-b .bar-tooltip-detail span {
    color: #60a5fa;
}

.theme-b .bar-legend-bar {
    background: hsl(210, 30%, 50%);
}

.theme-b .bar-legend-bar.bar-closed {
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.15) 2px,
            rgba(255, 255, 255, 0.15) 4px
        ),
        hsl(210, 30%, 50%);
}

.theme-b .bar-pacore {
    background: linear-gradient(0deg, hsla(var(--accent-h), 45%, 55%, 0.85) 0%, hsla(var(--accent-h), 40%, 48%, 0.85) 100%);
}

.theme-b .bar-pacore .bar-score {
    color: hsla(var(--accent-h), 40%, 65%, 1);
}

/* ========================================
   REFINED ANIMATIONS & MICRO-INTERACTIONS
   ======================================== */

/* Scroll-triggered fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 hsla(var(--accent-h), 70%, 50%, 0.4); }
    50% { box-shadow: 0 0 20px 4px hsla(var(--accent-h), 70%, 50%, 0.2); }
}

/* Apply animations to sections */
.section {
    animation: fadeInUp 0.8s ease-out both;
}

.hero {
    animation: fadeInScale 1s ease-out both;
}

.section-title {
    animation: slideInLeft 0.6s ease-out both;
    animation-delay: 0.2s;
}

.section-intro {
    animation: fadeInUp 0.6s ease-out both;
    animation-delay: 0.3s;
}

/* Staggered animations for cards */
.bar-chart-panel:nth-child(1) { animation: fadeInUp 0.6s ease-out both; animation-delay: 0.1s; }
.bar-chart-panel:nth-child(2) { animation: fadeInUp 0.6s ease-out both; animation-delay: 0.2s; }
.bar-chart-panel:nth-child(3) { animation: fadeInUp 0.6s ease-out both; animation-delay: 0.3s; }

/* Enhanced hover states */
.section-card,
.abstract-block,
.teaser-chart-container,
.bar-charts-container {
    transition: transform var(--transition), box-shadow var(--transition);
}

.section-card:hover,
.abstract-block:hover {
    transform: translateY(-2px);
}

/* Button hover enhancements */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
}

.btn-secondary:hover::after {
    width: 100%;
    left: 0;
}

/* Navigation link effects */
.nav a {
    position: relative;
    padding-bottom: 4px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast), left var(--transition-fast);
    border-radius: 1px;
}

.nav a:hover::after {
    width: 100%;
    left: 0;
}

/* Enhanced focus states for accessibility */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
.carousel-nav-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Smooth scroll indicator animation */
@keyframes scrollHint {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* Table row hover enhancement */
.bmk-table tbody tr {
    transition: background var(--transition-fast);
}

.bmk-table tbody tr:hover td {
    background: var(--code-bg);
}

/* Carousel enhanced transitions */
.carousel-item {
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-nav-btn {
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.carousel-nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.carousel-nav-btn:hover::before {
    width: 120%;
    height: 120%;
}

.carousel-nav-btn:hover {
    color: white;
    border-color: var(--accent);
}

.carousel-nav-btn.active::before {
    width: 120%;
    height: 120%;
}

/* Enhanced dots animation */
.carousel-dot {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-dot:hover {
    background: var(--accent-soft);
    transform: scale(1.2);
}

/* Arrow buttons */
.carousel-arrow {
    transition: all var(--transition-fast);
}

.carousel-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: scale(1.05);
}

/* Sample tab buttons */
.carousel-sample-btn {
    transition: all var(--transition-fast);
}

.carousel-sample-btn:hover:not(.active) {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Flow step animation */
.carousel-flow-step {
    transition: all var(--transition-fast);
}

.carousel-flow-step:hover {
    transform: translateX(4px);
    background: hsla(var(--accent-h), 50%, 95%, 0.5);
    border-radius: 4px;
    margin: 0 -4px;
    padding: 4px 4px;
}

/* Bar chart bars animation */
.bar {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: bottom center;
}

.bar:hover {
    transform: scaleY(1.03) scaleX(1.05);
    filter: brightness(1.08);
}

/* Data points enhanced hover */
.teaser-data-point {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.teaser-data-point:hover {
    z-index: 100;
}

.teaser-data-point:hover .teaser-point-square {
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(30, 80, 180, 0.25);
}

/* Closed model card hover */
.teaser-closed-model-card {
    transition: all var(--transition-fast);
}

.teaser-closed-model-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Control panel hover */
.control-panel {
    transition: transform var(--transition), box-shadow var(--transition);
}

.control-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

/* Formula block subtle animation */
/* Footer column stagger animation */
.footer-col:nth-child(1) { animation: fadeInUp 0.5s ease-out both; animation-delay: 0.1s; }
.footer-col:nth-child(2) { animation: fadeInUp 0.5s ease-out both; animation-delay: 0.2s; }
.footer-col:nth-child(3) { animation: fadeInUp 0.5s ease-out both; animation-delay: 0.3s; }

/* CTA button pulse on idle */
.btn-primary {
    animation: pulseGlow 3s ease-in-out infinite;
    animation-delay: 2s;
}

.btn-primary:hover {
    animation: none;
}

/* Enhanced text selection */
::selection {
    background: hsla(var(--accent-h), 70%, 60%, 0.3);
    color: var(--text);
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[src=""] {
    opacity: 0;
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-flat);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   New Showcase Section Styles
   ============================================ */

#showcase {
    padding-top: 48px;
}

/* Ensure consistent font in showcase section - inherit from body (serif) */
#showcase p,
#showcase .showcase-part-intro,
#showcase .showcase-part-desc,
#showcase .showcase-sub-desc,
#showcase .showcase-note {
    font-family: inherit;
}

/* Showcase Part Container */
.showcase-part {
    margin-bottom: 56px;
}

.showcase-part:last-child {
    margin-bottom: 0;
}

.showcase-part-header {
    margin-bottom: 24px;
}

.showcase-part-title {
    font-family: var(--font-sans);
    font-size: var(--font-size-h3);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

.showcase-part-intro {
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text);
    margin: 0 0 10px 0;
}

.showcase-part-intro:last-of-type {
    margin-bottom: 24px;
}

.showcase-part-num {
    background: var(--accent);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.showcase-part-desc {
    font-size: var(--font-size-base);
    color: var(--text);
    line-height: var(--line-height);
}

.showcase-part-desc a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.showcase-part-desc a::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 3px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.showcase-part-desc a:hover {
    color: var(--accent-deep);
}

/* Showcase Sub-sections */
.showcase-sub-section {
    margin-bottom: 28px;
}

.showcase-sub-title {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 0;
}

.inline-agentic-viewer + .showcase-sub-title {
    margin-top: 32px;
}

.showcase-sub-desc {
    font-size: var(--font-size-base);
    color: var(--text);
    line-height: var(--line-height);
}

.showcase-sub-desc p {
    margin: 0 0 10px 0;
}

.showcase-sub-desc p:last-child {
    margin-bottom: 0;
}

.showcase-sub-desc ul {
    margin: 0 0 10px 0;
    padding-left: 24px;
}

.showcase-sub-desc li {
    margin-bottom: 4px;
}

.showcase-sub-paragraph {
    font-size: var(--font-size-base);
    color: var(--text);
    line-height: var(--line-height);
    margin: 16px 0;
}

.showcase-note {
    font-size: var(--font-size-base);
    color: var(--text);
    line-height: var(--line-height);
    margin: 12px 0 0;
    padding: 12px 16px;
    background: hsla(var(--accent-h), 20%, 95%, 0.5);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.theme-b .showcase-note {
    background: hsla(var(--accent-h), 20%, 15%, 0.5);
}

.showcase-video-block {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.showcase-video-row {
    display: flex;
    gap: 24px;
    margin: 24px 0;
    align-items: stretch;
}

.showcase-video-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 24px 0;
    align-items: stretch;
}

.showcase-video-grid-3x2 .showcase-video-block {
    display: flex;
    flex-direction: column;
}

.showcase-video-grid-3x2 .showcase-video-block video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.showcase-video-row-centered {
    justify-content: center;
}

.showcase-video-row .showcase-video-block {
    flex: 1;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.showcase-video-row .showcase-video-block-wide {
    flex: 0 1 100%;
}

.showcase-video-row .showcase-video-block video {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.showcase-video-block video {
    width: 100%;
    display: block;
}

.video-caption {
    padding: 16px 20px;
    font-size: var(--font-size-base);
    color: var(--text);
    line-height: var(--line-height);
    background: var(--code-bg);
    border-top: 1px solid var(--border);
    flex: 1;
}

.video-caption a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.video-caption a::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 3px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.video-caption a:hover {
    color: var(--accent-deep);
}

.video-prompt {
    margin: 0;
    padding: 16px 20px 16px 24px;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height);
    background: var(--code-bg);
    border-top: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    font-style: italic;
}

.video-prompt strong {
    font-style: normal;
    color: var(--text);
}

/* Math Cases Styles */
.math-cases-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.math-case-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.math-case-header {
    padding: 12px 20px;
    background: var(--code-bg);
    border-bottom: 1px solid var(--border);
}

.math-case-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text);
}

.math-case-content {
    padding: 20px 24px;
    flex: 1;
    overflow-y: auto;
    max-height: 550px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.math-case-problem {
    margin-bottom: 20px;
}

.math-case-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.math-case-question {
    font-size: var(--font-size-base);
    color: var(--text);
    line-height: var(--line-height);
    background: var(--code-bg);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.math-case-solution {
    margin-top: 16px;
}

.math-case-answer {
    font-size: var(--font-size-sm);
    color: var(--text);
    line-height: 1.7;
}

.math-case-answer p {
    margin: 0 0 12px;
}

.math-case-answer p:last-child {
    margin-bottom: 0;
}

.math-case-answer strong {
    color: var(--text);
    font-weight: 600;
}

.math-case-answer hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

.math-case-caption {
    padding: 16px 24px;
    background: var(--code-bg);
    border-top: 1px solid var(--border);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

.math-case-caption p {
    margin: 0;
}

.math-section-header {
    display: block;
    font-size: var(--font-size-base);
    color: var(--accent);
    margin: 16px 0 8px;
}

/* Responsive: stack on smaller screens */
@media (max-width: 900px) {
    .math-cases-container {
        grid-template-columns: 1fr;
    }

    .math-case-content {
        max-height: 500px;
    }
}

.video-prompt-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px 14px;
    background: var(--code-bg);
    border-top: 1px solid var(--border);
}

.view-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-prompt-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.video-prompt-content[hidden] {
    display: none;
}

/* Prompt Modal */
.prompt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.prompt-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.prompt-modal {
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.prompt-modal-overlay.active .prompt-modal {
    transform: scale(1);
}

.prompt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.prompt-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.prompt-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-modal-copy {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-modal-copy:hover {
    background: var(--accent);
    color: white;
}

.prompt-modal-copy.copied {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.prompt-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-modal-close:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.prompt-modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
    font-family: var(--font-mono);
}

/* Agentic Showcase */
/* Safari Window Chrome */
.agentic-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.theme-a .agentic-showcase {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,252,255,0.95) 100%);
}

.theme-b .agentic-showcase {
    background: linear-gradient(180deg, rgba(12, 14, 20, 0.98) 0%, rgba(8, 10, 14, 0.95) 100%);
    border-color: rgba(60, 100, 160, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 60px rgba(40, 100, 200, 0.08);
}

/* Inline Agentic Viewer */
.inline-agentic-viewer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-top: 24px;
}

.theme-a .inline-agentic-viewer {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,252,255,0.95) 100%);
}

.theme-b .inline-agentic-viewer {
    background: linear-gradient(180deg, rgba(12, 14, 20, 0.98) 0%, rgba(8, 10, 14, 0.95) 100%);
    border-color: rgba(60, 100, 160, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 60px rgba(40, 100, 200, 0.08);
}

.inline-agentic-viewer .safari-title-bar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.inline-agentic-viewer .safari-title {
    margin-left: 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.viewer-toggle {
    display: flex;
    position: relative;
    margin-left: auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
    gap: 0;
}

.viewer-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: var(--accent);
    border-radius: 16px;
    transition: transform 0.25s ease;
    z-index: 0;
}

.viewer-toggle.trace-active::before {
    transform: translateX(100%);
}

.viewer-toggle-btn {
    position: relative;
    z-index: 1;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    padding: 5px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.25s ease;
    border-radius: 16px;
}

.viewer-toggle-btn.active {
    color: #fff;
    font-weight: 600;
}

.viewer-toggle-btn:hover:not(.active) {
    color: var(--text);
}

.result-iframe {
    width: 100%;
    height: 800px;
    border: none;
}

#stockInvestmentViewer {
    margin-bottom: 32px;
}

#stockInvestmentViewer > .message-container {
    height: 800px;
    max-height: 800px;
}

.inline-agentic-viewer > .message-container {
    max-height: 800px;
    overflow-y: auto;
    padding: 16px;
}

/* Report File Attachment */
.report-file-message {
    align-items: flex-start;
}

.message-avatar-placeholder {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.report-file-attachment {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    max-width: 320px;
    position: relative;
    overflow: hidden;
}

.report-file-attachment::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsla(var(--accent-h), 50%, 60%, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.report-file-attachment:hover::before {
    opacity: 1;
}

.report-file-attachment:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px hsla(var(--accent-h), 50%, 50%, 0.12);
    transform: translateY(-1px);
}

.report-file-attachment:hover .report-file-icon {
    transform: scale(1.1) rotate(-3deg);
    color: var(--accent);
}

.report-file-attachment:hover .report-file-arrow {
    opacity: 1;
    transform: translateX(0);
}

.report-file-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(var(--accent-h), 40%, 92%, 1);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.theme-b .report-file-icon {
    background: hsla(var(--accent-h), 30%, 20%, 1);
}

.report-file-info {
    flex: 1;
    min-width: 0;
}

.report-file-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.report-file-meta {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.report-file-arrow {
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s ease;
}

/* Report Modal */
.report-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.report-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.report-modal {
    width: 90%;
    max-width: 900px;
    height: 80vh;
    background: var(--bg);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
}

.report-modal-overlay.active .report-modal {
    transform: scale(1) translateY(0);
}

.report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.report-modal-title {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.report-modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.report-modal-close:hover {
    background: var(--bg-card);
    color: var(--text);
}

.report-modal-iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: white;
}

/* Multi-agent Showcase */
.multiagent-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 40px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.multiagent-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 14px;
}

/* Deep Research Showcase */
.dr-showcase-item {
    margin-bottom: 48px;
}

.dr-showcase-item:last-child {
    margin-bottom: 0;
}

/* Centered showcase figure */
.showcase-figure-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24px 0 32px;
}

.showcase-figure-centered .showcase-figure-img {
    max-width: 100%;
    height: auto;
}

.showcase-figure-centered .figure-caption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    line-height: 1.5;
}

/* Research Rubrics Chart */
.rr-chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 28px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.brand-research-rubrics {
    font-family: Georgia, var(--font-serif);
    font-weight: 600;
    letter-spacing: 0.05em;
    font-variant: small-caps;
}

.rr-chart-title {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin: 0 0 14px 0;
}

.rr-chart-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rr-bar-row {
    display: grid;
    grid-template-columns: 220px 1fr 50px 90px;
    align-items: center;
    gap: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.rr-bar-row.rr-bar-highlight {
    cursor: pointer;
}

.rr-bar-row.rr-bar-highlight:hover {
    background: var(--accent-light);
    transform: translateX(4px);
    box-shadow: 0 2px 12px hsla(var(--accent-h), 60%, 50%, 0.15);
}

.rr-bar-row.rr-bar-highlight:hover .rr-bar {
    box-shadow: 0 0 16px hsla(var(--accent-h), 70%, 50%, 0.4);
}

.rr-bar-row.rr-bar-highlight:hover .rr-bar-value {
    transform: scale(1.1);
}

.rr-bar-value {
    transition: transform 0.25s ease;
}

.rr-bar-label {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rr-bar-highlight .rr-bar-label {
    font-weight: 600;
    color: var(--accent);
}

.rr-bar-link .rr-bar-label {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.rr-bar-link .rr-bar-label::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.rr-bar-link .rr-bar-label:hover {
    color: var(--accent-deep);
}

.rr-bar-row.rr-bar-link {
    cursor: pointer;
}

.rr-bar-row.rr-bar-link:hover {
    background: var(--accent-light);
    transform: translateX(4px);
    box-shadow: 0 2px 12px hsla(var(--accent-h), 60%, 50%, 0.12);
}

.rr-bar-row.rr-bar-link:hover .rr-bar {
    box-shadow: 0 0 12px hsla(var(--accent-h), 70%, 50%, 0.3);
}

.rr-bar-row.rr-bar-link:hover .rr-bar-value {
    color: var(--accent);
    transform: scale(1.1);
}

.rr-bar-track {
    height: 20px;
    background: var(--code-bg);
    border-radius: 4px;
    overflow: hidden;
}

.rr-bar {
    height: 100%;
    background: linear-gradient(90deg,
        hsla(var(--accent-h), 25%, 80%, 0.5) 0%,
        hsla(var(--accent-h), 40%, 65%, 0.6) 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.rr-bar-row:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateX(4px);
}

.rr-bar-row:hover .rr-bar {
    filter: brightness(1.1);
    box-shadow: 0 2px 8px hsla(var(--accent-h), 50%, 50%, 0.3);
}

.rr-bar-highlight .rr-bar {
    background: linear-gradient(90deg,
        hsla(var(--accent-h), 60%, 62%, 1) 0%,
        hsl(var(--accent-h), 85%, 38%) 100%);
}

.rr-bar-value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
}

.rr-bar-highlight .rr-bar-value {
    color: var(--accent);
}

.rr-bar-type {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--text-muted);
    background: var(--code-bg);
    padding: 3px 8px;
    border-radius: 10px;
    text-align: center;
    white-space: nowrap;
}

.rr-bar-type.rr-type-react {
    color: var(--accent);
    background: var(--accent-light);
    font-weight: 500;
}

/* Dark theme adjustments */
.theme-b .rr-bar {
    background: linear-gradient(90deg,
        hsla(var(--accent-h), 40%, 55%, 0.4) 0%,
        hsla(var(--accent-h), 55%, 38%, 0.6) 100%);
}

.theme-b .rr-bar-highlight .rr-bar {
    background: linear-gradient(90deg,
        hsla(var(--accent-h), 60%, 62%, 1) 0%,
        hsl(var(--accent-h), 75%, 42%) 100%);
}

.theme-b .rr-bar-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.theme-b .rr-bar-row:hover .rr-bar {
    box-shadow: 0 2px 8px hsla(var(--accent-h), 50%, 50%, 0.4);
}

.theme-b .rr-bar-row.rr-bar-highlight:hover {
    background: hsla(var(--accent-h), 50%, 30%, 0.3);
    box-shadow: 0 2px 12px hsla(var(--accent-h), 60%, 40%, 0.25);
}

.theme-b .rr-bar-row.rr-bar-highlight:hover .rr-bar {
    box-shadow: 0 0 16px hsla(var(--accent-h), 70%, 50%, 0.5);
}

.theme-b .rr-bar-row.rr-bar-link:hover {
    background: hsla(var(--accent-h), 50%, 30%, 0.25);
    box-shadow: 0 2px 12px hsla(var(--accent-h), 60%, 40%, 0.2);
}

.theme-b .rr-bar-row.rr-bar-link:hover .rr-bar {
    box-shadow: 0 0 12px hsla(var(--accent-h), 70%, 50%, 0.4);
}

.dr-showcase-title {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px 0;
}

.dr-showcase-desc {
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text);
    margin: 0 0 20px 0;
}

.dr-showcase-viewer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.theme-a .dr-showcase-viewer {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,252,255,0.95) 100%);
}

.theme-b .dr-showcase-viewer {
    background: linear-gradient(180deg, rgba(12, 14, 20, 0.98) 0%, rgba(8, 10, 14, 0.95) 100%);
    border-color: rgba(60, 100, 160, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 60px rgba(40, 100, 200, 0.08);
}

.dr-result-view {
    height: 600px;
    max-height: 600px;
    overflow-y: auto;
    padding: 24px 32px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
}

#drResearchShowcase .agentic-viewer {
    height: 600px;
    max-height: 600px;
    box-sizing: border-box;
}

#drResearchShowcase .agentic-viewer .message-container {
    max-height: calc(600px - 70px);
}

.dr-result-view h1,
.dr-result-view h2,
.dr-result-view h3,
.dr-result-view h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text);
    margin: 1.5em 0 0.75em 0;
}

.dr-result-view h1 { font-size: 1.5em; }
.dr-result-view h2 { font-size: 1.25em; }
.dr-result-view h3 { font-size: 1.1em; }
.dr-result-view h4 { font-size: 1em; }

.dr-result-view p {
    margin: 0 0 1em 0;
}

.dr-result-view ul,
.dr-result-view ol {
    margin: 0 0 1em 0;
    padding-left: 1.5em;
}

.dr-result-view li {
    margin-bottom: 0.5em;
}

.dr-result-view table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 13px;
}

.dr-result-view th,
.dr-result-view td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
}

.dr-result-view th {
    background: var(--bg-subtle);
    font-weight: 600;
}

.dr-result-view blockquote {
    border-left: 3px solid var(--accent);
    margin: 1em 0;
    padding: 0.5em 1em;
    background: var(--bg-subtle);
    color: var(--text-muted);
}

.dr-showcase-comments {
    margin: 20px 0 0 0;
    padding: 0 0 0 24px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
}

.dr-showcase-comments li {
    margin-bottom: 8px;
}

.dr-showcase-comments li:last-child {
    margin-bottom: 0;
}

/* Coding Showcase */
.coding-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.coding-tabs-header {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.coding-tab-btn {
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coding-tab-btn:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.coding-tab-btn.active {
    color: var(--accent);
    background: var(--bg-card);
    border-color: var(--border);
}

.coding-tabs-content {
    position: relative;
}

.coding-tab-panel {
    display: none;
    width: 100%;
    height: 75vh;
    min-height: 600px;
    max-height: 800px;
    background: #000;
}

.coding-tab-panel.active {
    display: block;
}

.coding-tab-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .coding-tabs-header {
        flex-wrap: wrap;
    }

    .coding-tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .coding-tab-panel {
        height: 60vh;
        min-height: 400px;
        max-height: 500px;
    }
}

/* Safari Title Bar */
.safari-title-bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.theme-b .safari-title-bar {
    background: rgba(30, 32, 40, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Traffic Light Buttons */
.safari-traffic-lights {
    display: flex;
    gap: 8px;
    align-items: center;
}

.safari-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: default;
    position: relative;
}

.safari-btn-close {
    background: #ff5f57;
    box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.safari-btn-minimize {
    background: #febc2e;
    box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.safari-btn-expand {
    background: #28c840;
    box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

/* Safari Window Title */
.safari-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #4a4a4a;
    font-family: var(--font-sans);
}

.theme-b .safari-title {
    color: #b0b0b0;
}

/* Agentic Tabs */
.agentic-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--code-bg);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.agentic-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.agentic-tab:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.agentic-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.theme-b .agentic-tab.active {
    box-shadow: 0 0 12px rgba(80, 150, 160, 0.3), 0 0 25px rgba(80, 150, 160, 0.1);
}

.agentic-tab .tab-icon {
    font-size: 16px;
}

.case-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-buttons {
    display: flex;
    gap: 6px;
}

.case-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-alt);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.case-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.case-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Message Viewer */
.agentic-viewer {
    position: relative;
    padding: 20px;
    padding-bottom: 50px;
}

.message-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 550px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.message-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message Bubble */
/* Chatbox Message Styles */
.message {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    max-width: 85%;
}

.message:last-child {
    margin-bottom: 0;
}

/* User messages: right-aligned, no avatar */
.message.user {
    flex-direction: row;
    margin-left: auto;
    justify-content: flex-end;
}

.message.user .message-avatar {
    display: none;
}

/* Assistant messages: left-aligned */
.message.assistant,
.message.tool {
    flex-direction: row;
    margin-right: auto;
}

.message-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    overflow: hidden;
}

.message-avatar img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Role-specific avatar styles - remove old gradient backgrounds */
.message.user .message-avatar,
.message.assistant .message-avatar,
.message.system .message-avatar,
.message.tool .message-avatar {
    background: white;
}

.theme-b .message-avatar {
    background: var(--bg-alt);
    border-color: var(--border);
}

.message-body {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

/* Role header - hide for cleaner chat look */
.message-role-header {
    display: none;
}

.message-role {
    display: none;
}

/* Chat Bubble Styles */
.message-content {
    border-radius: 18px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    word-wrap: break-word;
}

/* User bubble - right side with accent color */
.message.user .message-content {
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Assistant bubble - left side with neutral color */
.message.assistant .message-content,
.message.tool .message-content {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

/* Code Blocks in Message Content */
.message-content .code-block {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.message-content .code-block code {
    display: block;
    white-space: pre;
    color: var(--text);
}

/* Final answer wrapper - combines reasoning + answer */
.final-answer-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 16px;
    overflow: hidden;
}

.final-answer-wrapper .reasoning-box {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    padding-left: 0;
}

/* Remove timeline dot and line for final-answer-wrapper */
.final-answer-wrapper .reasoning-box::before,
.final-answer-wrapper .reasoning-box::after {
    display: none;
}

.final-answer-wrapper .reasoning-box-header {
    border-radius: 12px 12px 0 0;
}

/* Final answer styling for DeepResearch */
.message-content.final-answer {
    padding: 20px 24px;
    max-height: 600px;
    overflow-y: auto;
    line-height: 1.7;
}

.message-content.final-answer p {
    margin: 0.8em 0;
}

.message-content.final-answer p:first-child {
    margin-top: 0;
}

.message-content.final-answer h1,
.message-content.final-answer h2,
.message-content.final-answer h3,
.message-content.final-answer h4 {
    color: var(--text);
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

.message-content.final-answer h1 { font-size: 1.4em; }
.message-content.final-answer h2 { font-size: 1.2em; }
.message-content.final-answer h3 { font-size: 1.05em; }

.message-content.final-answer h1:first-child,
.message-content.final-answer h2:first-child {
    margin-top: 0;
}

.message-content.final-answer hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5em 0;
}

.message-content.final-answer ul,
.message-content.final-answer ol {
    margin: 0.6em 0;
    padding-left: 1.5em;
}

.message-content.final-answer li {
    margin: 0.3em 0;
}

.message-content.final-answer strong {
    font-weight: 600;
    color: var(--text);
}

.message-content.final-answer a {
    color: var(--accent);
    text-decoration: underline;
}

.message-content.final-answer code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: hsla(var(--accent-h), 10%, 50%, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
}

.message-content .code-block[data-lang]::before {
    content: attr(data-lang);
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-family: var(--font-sans);
}

.theme-b .message-content .code-block {
    background: rgba(0, 0, 0, 0.3);
}

/* Reasoning Content (Collapsible) */
.reasoning-wrapper {
    position: relative;
    margin-bottom: 12px;
}

/* Content Type Labels */
.content-type-label {
    display: inline-block;
    padding: 2px 8px;
    margin-bottom: 6px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thinking-label {
    background: hsla(var(--accent-h), 40%, 90%, 0.8);
    color: var(--accent);
    border: 1px solid hsla(var(--accent-h), 40%, 80%, 0.5);
}

.content-label {
    background: hsla(120, 40%, 90%, 0.8);
    color: hsl(120, 50%, 35%);
    border: 1px solid hsla(120, 40%, 80%, 0.5);
}

.theme-b .thinking-label {
    background: hsla(var(--accent-h), 40%, 25%, 0.5);
    border-color: hsla(var(--accent-h), 40%, 40%, 0.5);
}

.theme-b .content-label {
    background: hsla(120, 40%, 25%, 0.5);
    color: hsl(120, 50%, 60%);
    border-color: hsla(120, 40%, 40%, 0.5);
}

.reasoning-content {
    padding: 14px;
    padding-bottom: 44px;
    background: hsla(var(--accent-h), 30%, 97%, 0.8);
    border: 1px solid hsla(var(--accent-h), 30%, 90%, 0.5);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.reasoning-content.expanded {
    max-height: none;
    padding-bottom: 14px;
}

.theme-b .reasoning-content {
    background: hsla(var(--accent-h), 30%, 15%, 0.5);
    border-color: hsla(var(--accent-h), 30%, 30%, 0.3);
}

.reasoning-toggle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px 10px;
    background: linear-gradient(to bottom, transparent 0%, hsla(var(--accent-h), 30%, 97%, 1) 50%);
    border: none;
    border-radius: 0 0 8px 8px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-b .reasoning-toggle {
    background: linear-gradient(to bottom, transparent 0%, hsla(var(--accent-h), 30%, 15%, 1) 50%);
}

.reasoning-toggle:hover {
    color: var(--accent-deep);
}

.reasoning-toggle .toggle-icon {
    font-size: 10px;
    transition: transform 0.2s;
}

.reasoning-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Tool Call Badge */
.tool-call-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: hsla(40, 80%, 50%, 0.15);
    border: 1px solid hsla(40, 80%, 50%, 0.3);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    color: hsl(30, 80%, 40%);
}

.theme-b .tool-call-badge {
    background: hsla(40, 70%, 50%, 0.2);
    border-color: hsla(40, 70%, 50%, 0.4);
    color: hsl(40, 80%, 65%);
}

/* Message Content Wrapper */
.message-content-wrapper {
    position: relative;
}

.message-content.collapsible {
    max-height: 180px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-content.collapsible.collapsed {
    padding-bottom: 20px;
}

.message-content.collapsible:not(.collapsed) {
    max-height: none;
    padding-bottom: 0;
}

.content-expand-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px 8px;
    background: linear-gradient(to bottom, transparent 0%, var(--code-bg) 40%);
    border: none;
    border-radius: 0 0 12px 12px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.message.user .content-expand-btn {
    background: linear-gradient(to bottom, transparent 0%, var(--accent-light) 40%);
}

.content-expand-btn:hover {
    color: var(--accent-deep);
}

.content-expand-btn .expand-icon {
    font-size: 10px;
}

/* Raw mode indicator */
.message-content.raw-mode {
    font-family: var(--font-mono);
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Agentic Controls Bar */
.agentic-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--code-bg);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.agentic-case-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Jump Corner Badges */
.jump-corner-btn {
    position: absolute;
    bottom: 12px;
    width: 32px;
    height: 32px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
    font-size: 12px;
    color: var(--text-secondary);
}

.jump-corner-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.jump-first {
    right: 52px;
}

.jump-final {
    right: 12px;
}

/* Turn Statistics - Hidden (no longer used) */
.turn-stats {
    display: none;
}

/* Tool Calls Summary */
.tool-calls-summary {
    margin-top: 8px;
    padding: 6px 10px;
    background: hsla(40, 70%, 95%, 0.8);
    border: 1px solid hsla(40, 60%, 80%, 0.5);
    border-radius: 6px;
    font-size: 11px;
    color: hsl(30, 70%, 35%);
    font-family: var(--font-mono);
}

.theme-b .tool-calls-summary {
    background: hsla(40, 50%, 25%, 0.3);
    border-color: hsla(40, 50%, 40%, 0.3);
    color: hsl(40, 60%, 65%);
}

/* Tool Content - Truncated to one line */
.tool-content-truncated {
    margin-top: 6px;
    padding: 6px 10px;
    background: hsla(200, 30%, 95%, 0.8);
    border: 1px solid hsla(200, 30%, 85%, 0.5);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.theme-b .tool-content-truncated {
    background: hsla(200, 30%, 25%, 0.3);
    border-color: hsla(200, 30%, 40%, 0.3);
}

/* Merged Assistant Block */
.merged-assistant-block {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    max-width: 85%;
    min-width: 70%;
    margin-right: auto;
}

.merged-assistant-block .message-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    align-self: flex-start;
    overflow: hidden;
}

.merged-assistant-block .message-avatar img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.theme-b .merged-assistant-block .message-avatar {
    background: var(--bg-alt);
}

.merged-content-stack {
    flex: 1;
    min-width: 60%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Main content item - matching assistant_box.svg design */
.merged-content-item {
    background: white;
    border: 1px solid #E9EDF7;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.theme-b .merged-content-item {
    background: var(--bg-card);
    border-color: rgba(100, 120, 150, 0.25);
}

/* Markdown rendered content styling */
.merged-content-item.markdown-rendered h1,
.merged-content-item.markdown-rendered h2,
.merged-content-item.markdown-rendered h3,
.merged-content-item.markdown-rendered h4,
.merged-content-item.markdown-rendered h5,
.merged-content-item.markdown-rendered h6 {
    font-family: var(--font-sans);
    color: var(--text);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.merged-content-item.markdown-rendered h1:first-child,
.merged-content-item.markdown-rendered h2:first-child,
.merged-content-item.markdown-rendered h3:first-child {
    margin-top: 0;
}

.merged-content-item.markdown-rendered h2 {
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.merged-content-item.markdown-rendered h3 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.merged-content-item.markdown-rendered p {
    margin: 0 0 12px 0;
}

.merged-content-item.markdown-rendered p:last-child {
    margin-bottom: 0;
}

.merged-content-item.markdown-rendered ul,
.merged-content-item.markdown-rendered ol {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.merged-content-item.markdown-rendered li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.merged-content-item.markdown-rendered li:last-child {
    margin-bottom: 0;
}

.merged-content-item.markdown-rendered strong {
    font-weight: 600;
    color: var(--text);
}

.merged-content-item.markdown-rendered a {
    color: var(--accent);
    text-decoration: none;
}

.merged-content-item.markdown-rendered a:hover {
    text-decoration: underline;
}

.merged-content-item.markdown-rendered code {
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.merged-content-item.markdown-rendered hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* Content with reasoning wrapper */
.content-with-reasoning {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Reasoning box within content */
.content-reasoning-box {
    background: white;
    border: 1px solid #E9EDF7;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    margin-bottom: -1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.content-reasoning-box + .merged-content-item {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top-color: #E9EDF7;
}

.content-reasoning-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid #E9EDF7;
}

.content-reasoning-header:hover {
    background: #F5F7FA;
}

.content-reasoning-title {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-reasoning-toggle {
    font-size: 10px;
    color: var(--accent);
    transition: transform var(--transition-fast);
}

.content-reasoning-box.expanded .content-reasoning-toggle {
    transform: rotate(180deg);
}

.content-reasoning-content {
    display: none;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: #FAFBFD;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}
}

.content-reasoning-box.expanded .content-reasoning-content {
    display: block;
}

/* Dark theme support */
.theme-b .content-reasoning-box {
    background: var(--bg-card);
    border-color: rgba(100, 120, 150, 0.25);
}

.theme-b .content-reasoning-header:hover {
    background: rgba(60, 80, 110, 0.3);
}

.theme-b .content-reasoning-content {
    background: rgba(30, 45, 65, 0.5);
    border-top-color: rgba(100, 120, 150, 0.25);
}

.merged-content-item:first-child {
    border-bottom-left-radius: 4px;
}

/* Collapsible content */
.merged-content-item.collapsible {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.merged-content-item.collapsible.collapsed {
    max-height: 120px;
}

.merged-content-item.collapsible.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--code-bg));
    pointer-events: none;
}

.content-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px 4px;
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.content-toggle-btn:hover {
    opacity: 1;
    color: var(--accent);
}

.content-toggle-btn .toggle-icon {
    display: inline-block;
    font-size: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-toggle-btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

.theme-b .content-toggle-btn {
    background: transparent;
}

/* Agentic Processing Wrapper */
.agentic-processing {
    background: white;
    border: 1px solid #E9EDF7;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.theme-b .agentic-processing {
    background: var(--bg-card);
    border-color: rgba(100, 120, 150, 0.25);
}

.agentic-processing-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #FAFBFD;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.agentic-processing-header:hover {
    background: #F5F7FA;
}

.agentic-processing-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.agentic-processing-preview {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.agentic-processing-toggle {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.agentic-processing.expanded .agentic-processing-toggle {
    transform: rotate(180deg);
}

.agentic-processing .agentic-processing-header {
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #E9EDF7;
}

.agentic-processing-body {
    position: relative;
    padding: 12px 14px 12px 14px;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    cursor: pointer;
}

/* Gradient overlay for collapsed state */
.agentic-processing-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, white 60%, white 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Click hint for collapsed state */
.agentic-processing-body::before {
    content: 'Click to expand';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-family: var(--font-sans);
    color: var(--accent);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.agentic-processing.expanded .agentic-processing-body {
    cursor: default;
    max-height: 2000px;
    overflow: visible;
}

.agentic-processing.expanded .agentic-processing-body::after,
.agentic-processing.expanded .agentic-processing-body::before {
    opacity: 0;
    pointer-events: none;
}

.theme-b .agentic-processing-header {
    background: rgba(40, 55, 75, 0.6);
}

.theme-b .agentic-processing-header:hover {
    background: rgba(50, 65, 85, 0.7);
}

.theme-b .agentic-processing .agentic-processing-header {
    border-bottom-color: rgba(100, 120, 150, 0.25);
}

.theme-b .agentic-processing-body::after {
    background: linear-gradient(to bottom, transparent 0%, var(--bg-card) 60%, var(--bg-card) 100%);
}

/* Timeline dot for sub-components */
.agentic-processing-body .reasoning-box,
.agentic-processing-body .toolcall-message-box,
.merged-content-stack .reasoning-box,
.merged-content-stack .toolcall-message-box {
    margin-bottom: 0;
    padding-left: 24px;
    position: relative;
}

/* The dot */
.agentic-processing-body .reasoning-box::before,
.agentic-processing-body .toolcall-message-box::before,
.merged-content-stack .reasoning-box::before,
.merged-content-stack .toolcall-message-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text);
    z-index: 2;
}

/* Connecting line between dots */
.agentic-processing-body .reasoning-box::after,
.agentic-processing-body .toolcall-message-box::after,
.merged-content-stack .reasoning-box::after,
.merged-content-stack .toolcall-message-box::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 19px;
    bottom: 0;
    width: 1px;
    background: #E0E4EC;
    z-index: 0;
}

/* Hide line on last item */
.agentic-processing-body > :last-child::after,
.merged-content-stack > :last-child::after {
    display: none;
}

.theme-b .agentic-processing-body .reasoning-box::after,
.theme-b .agentic-processing-body .toolcall-message-box::after,
.theme-b .merged-content-stack .reasoning-box::after,
.theme-b .merged-content-stack .toolcall-message-box::after {
    background: rgba(100, 120, 150, 0.3);
}

/* Reasoning Box Component */
.reasoning-box {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.reasoning-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-radius: 6px;
}

.reasoning-box-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

.reasoning-box-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-sans);
}

.reasoning-box-toggle {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.reasoning-box.expanded .reasoning-box-toggle {
    transform: rotate(180deg);
}

.reasoning-box-content {
    display: none;
    padding: 4px 8px 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.reasoning-box.expanded .reasoning-box-content {
    display: block;
}

.theme-b .reasoning-box-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.theme-b .reasoning-box-content {
    color: var(--text-muted);
}

/* Toolcall Message Box Component */
.toolcall-message-box {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

/* Reasoning section within toolcall box */
.toolcall-reasoning-section {
    border-bottom: none;
}

.toolcall-reasoning-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    cursor: pointer;
    background: transparent;
    transition: background var(--transition-fast);
    border-radius: 6px;
}

.toolcall-reasoning-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

.toolcall-reasoning-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.toolcall-reasoning-toggle {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.toolcall-reasoning-section.expanded .toolcall-reasoning-toggle {
    transform: rotate(180deg);
}

.toolcall-reasoning-content {
    display: none;
    padding: 4px 8px 8px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.toolcall-reasoning-section.expanded .toolcall-reasoning-content {
    display: block;
}

.theme-b .toolcall-reasoning-section {
    border-bottom: none;
}

.theme-b .toolcall-reasoning-header {
    background: transparent;
}

.theme-b .toolcall-reasoning-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.theme-b .toolcall-reasoning-content {
    color: var(--text-muted);
}

.toolcall-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-radius: 6px;
}

.toolcall-box-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

.toolcall-box-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.toolcall-box-toggle {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.toolcall-message-box.expanded .toolcall-box-toggle {
    transform: rotate(180deg);
}

.toolcall-box-body {
    display: none;
    padding: 4px 8px 8px;
}

.toolcall-message-box.expanded .toolcall-box-body {
    display: block;
}

.toolcall-box-result {
    font-size: 12px;
    color: var(--text-secondary);
    border-left: none;
    padding-left: 8px;
    font-family: var(--font-mono);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.toolcall-box-content {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}

.theme-b .toolcall-message-box {
    background: transparent;
}

.theme-b .toolcall-box-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.theme-b .toolcall-box-name {
    color: var(--text-muted);
}

.theme-b .toolcall-box-result {
    color: var(--text-muted);
}

/* Multiple tool results styling */
.toolcall-result-item {
    margin-bottom: 12px;
}

.toolcall-result-item:last-child {
    margin-bottom: 0;
}

.toolcall-result-label {
    font-size: 11px;
    font-weight: 600;
    color: hsl(40, 70%, 50%);
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.theme-b .toolcall-result-label {
    color: hsl(40, 60%, 60%);
}

/* Raw Toggle Button */
.raw-toggle-btn {
    padding: 6px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.raw-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.raw-toggle-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Tool Calls - Enhanced */
.tool-calls {
    margin-top: 12px;
    padding: 12px;
    background: var(--code-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.tool-calls-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.tool-call {
    padding: 10px 12px;
    background: var(--bg-alt);
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.tool-call:last-child {
    margin-bottom: 0;
}

.tool-call-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tool-call-label {
    padding: 2px 8px;
    background: var(--accent-light);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
}

.tool-call-name {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.tool-call-id {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-left: auto;
}

.tool-call-args-wrapper {
    position: relative;
}

.tool-call-args {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
    padding: 8px 10px;
    background: var(--code-bg);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.tool-call-args.collapsible {
    max-height: 150px;
    overflow: hidden;
}

.tool-call-args.collapsible.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--code-bg));
    pointer-events: none;
}

.tool-call-args.collapsible:not(.collapsed) {
    max-height: none;
}

.args-expand-btn {
    display: block;
    width: 100%;
    padding: 6px;
    margin-top: 6px;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.args-expand-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Edge Showcase - Tabs Design */
.edge-showcase-card {
    background: var(--porcelain-glaze), var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.theme-b .edge-showcase-card {
    background: var(--bg-card);
}

/* Tabs Header */
.edge-tabs-header {
    display: flex;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0 8px;
    overflow-x: auto;
}

.edge-tab-btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.edge-tab-btn:hover {
    color: var(--text-secondary);
}

.edge-tab-btn.active {
    color: var(--accent);
}

.edge-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    border-radius: 2px 2px 0 0;
    transition: var(--transition);
}

.edge-tab-btn.active::after {
    width: calc(100% - 32px);
}

.edge-tab-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    flex-shrink: 0;
}

.edge-tab-btn.active .edge-tab-icon {
    opacity: 1;
}

/* Tab Content */
.edge-tabs-content {
    position: relative;
}

.edge-tab-panel {
    display: none;
    padding: 32px;
    animation: edgeFadeIn 0.4s ease-out;
}

.edge-tab-panel.active {
    display: block;
}

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

/* Section Intro */
.edge-section-intro {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.edge-intro-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px hsla(var(--accent-h), 80%, 46%, 0.3);
}

.edge-intro-text {
    flex: 1;
}

.edge-intro-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.edge-intro-tag {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: 4px;
}

.edge-intro-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Demo Box */
.edge-demo-box {
    background: var(--bg-flat);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    overflow: hidden;
}

.theme-b .edge-demo-box {
    background: var(--bg-alt);
}

.edge-demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.edge-demo-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.edge-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28c840;
    animation: edgePulse 2s infinite;
}

@keyframes edgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.edge-case-selector {
    display: flex;
    gap: 6px;
}

.edge-case-btn {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-alt);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.edge-case-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.edge-case-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Demo Body */
.edge-demo-body {
    padding: 20px;
}

.edge-case-content {
    display: none;
}

.edge-case-content.active {
    display: block;
    animation: edgeFadeIn 0.3s ease-out;
}

/* Video Area */
.edge-video-area {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edge-video-area video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.edge-video-area.placeholder {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--code-bg) 100%);
    border: 1px solid var(--border);
}

.edge-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.edge-placeholder-icon {
    font-size: 48px;
    opacity: 0.5;
}

.edge-placeholder-text {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
}

.edge-placeholder-badge {
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
}

/* Demo Info */
.edge-demo-info {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.edge-demo-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.edge-demo-desc {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .edge-tabs-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .edge-tab-btn {
        padding: 14px 16px;
        font-size: 13px;
        min-width: max-content;
    }

    .edge-tab-panel {
        padding: 24px 20px;
    }

    .edge-section-intro {
        flex-direction: column;
    }

    .edge-intro-icon {
        width: 48px;
        height: 48px;
    }

    .edge-intro-icon svg {
        width: 24px;
        height: 24px;
    }

    .edge-intro-title {
        font-size: 18px;
    }

    .edge-demo-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .edge-case-selector {
        width: 100%;
        justify-content: flex-start;
    }

    .edge-case-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .edge-tab-btn span {
        display: none;
    }

    .edge-tab-btn {
        padding: 14px;
        justify-content: center;
    }

    .edge-tab-icon {
        width: 24px;
        height: 24px;
    }
}


/* Legacy Media Grid (keep for compatibility) */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

/* First card spans full width as featured */
.media-grid .media-card:first-child {
    grid-column: 1 / -1;
}

.media-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.media-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

/* Featured card (first child) has larger video */
.media-grid .media-card:first-child .media-video-wrapper {
    aspect-ratio: 16 / 9;
}

.media-grid .media-card:first-child .media-placeholder {
    aspect-ratio: 16 / 9;
}

/* Media Video Wrapper */
.media-video-wrapper {
    aspect-ratio: 16 / 10;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Media Placeholder */
.media-placeholder {
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--code-bg) 0%, var(--bg-alt) 100%);
    position: relative;
}

.media-placeholder.video {
    background: linear-gradient(135deg, hsla(var(--accent-h), 30%, 95%, 0.8) 0%, hsla(var(--accent-h), 20%, 98%, 0.6) 100%);
}

.theme-b .media-placeholder.video {
    background: linear-gradient(135deg, hsla(var(--accent-h), 30%, 20%, 0.5) 0%, hsla(var(--accent-h), 20%, 15%, 0.3) 100%);
}

.media-placeholder.image {
    background: linear-gradient(135deg, hsla(280, 30%, 95%, 0.8) 0%, hsla(280, 20%, 98%, 0.6) 100%);
}

.theme-b .media-placeholder.image {
    background: linear-gradient(135deg, hsla(280, 30%, 20%, 0.5) 0%, hsla(280, 20%, 15%, 0.3) 100%);
}

.media-placeholder.audio {
    background: linear-gradient(135deg, hsla(150, 30%, 95%, 0.8) 0%, hsla(150, 20%, 98%, 0.6) 100%);
}

.theme-b .media-placeholder.audio {
    background: linear-gradient(135deg, hsla(150, 30%, 20%, 0.5) 0%, hsla(150, 20%, 15%, 0.3) 100%);
}

.placeholder-icon {
    font-size: 36px;
    opacity: 0.6;
}

.placeholder-text {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.placeholder-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: var(--accent);
    color: white;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.media-caption {
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 900px) {
    .agentic-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 600px) {
    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-grid .media-card:first-child {
        grid-column: 1;
    }

    .agentic-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .agentic-tab .tab-label {
        display: none;
    }

    .agentic-tab .tab-icon {
        font-size: 20px;
    }
}

/* ===============================
   Tool-use Benchmark Chart
   =============================== */

.toolcall-chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 28px;
    margin: 0 auto 24px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.toolcall-chart-title {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin: 0 0 6px 0;
}

.toolcall-chart-subtitle {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 16px 0;
}

.toolcall-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 32px;
}

.toolcall-benchmark {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.toolcall-benchmark:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateX(4px);
}

.toolcall-benchmark:hover .toolcall-bar {
    filter: brightness(1.1);
    box-shadow: 0 2px 8px hsla(var(--accent-h), 50%, 50%, 0.3);
}

.toolcall-benchmark-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.toolcall-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toolcall-bar-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolcall-bar-track {
    flex: 1;
    height: 20px;
    background: var(--code-bg);
    border-radius: 4px;
    overflow: hidden;
}

.toolcall-bar {
    height: 100%;
    background: linear-gradient(90deg,
        hsla(var(--accent-h), 35%, 75%, 0.55) 0%,
        hsla(var(--accent-h), 55%, 50%, 0.75) 100%);
    border-radius: 4px;
    transition: width 0.6s ease, box-shadow 0.3s ease;
}

.toolcall-bar-python .toolcall-bar {
    background: linear-gradient(90deg,
        hsla(var(--accent-h), 60%, 62%, 1) 0%,
        hsl(var(--accent-h), 85%, 38%) 100%);
}

.toolcall-bar-value {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 56px;
    text-align: right;
}

.toolcall-bar-python .toolcall-bar-value {
    color: var(--accent);
}

/* Legend */
.toolcall-legend {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.toolcall-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolcall-legend-bar {
    width: 24px;
    height: 12px;
    border-radius: 3px;
    background: linear-gradient(90deg,
        hsla(var(--accent-h), 45%, 65%, 0.65) 0%,
        hsla(var(--accent-h), 55%, 55%, 0.75) 100%);
}

.toolcall-legend-python .toolcall-legend-bar {
    background: linear-gradient(90deg,
        hsl(var(--accent-h), var(--accent-s), var(--accent-l)) 0%,
        hsl(var(--accent-h), 85%, 38%) 100%);
}

.toolcall-legend-label {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-secondary);
}

.toolcall-legend-python .toolcall-legend-label {
    font-weight: 600;
    color: var(--accent);
}

/* Hover effects */
.toolcall-benchmark:hover .toolcall-bar-python .toolcall-bar {
    box-shadow: 0 0 12px hsla(var(--accent-h), 70%, 50%, 0.4);
}

.toolcall-benchmark:hover .toolcall-benchmark-name {
    color: var(--accent);
}

/* Dark theme adjustments */
.theme-b .toolcall-chart-container {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.theme-b .toolcall-bar {
    background: linear-gradient(90deg,
        hsla(var(--accent-h), 40%, 55%, 0.4) 0%,
        hsla(var(--accent-h), 55%, 38%, 0.6) 100%);
}

.theme-b .toolcall-bar-python .toolcall-bar {
    background: linear-gradient(90deg,
        hsla(var(--accent-h), 60%, 62%, 1) 0%,
        hsl(var(--accent-h), 75%, 42%) 100%);
}

.theme-b .toolcall-legend-bar {
    background: linear-gradient(90deg,
        hsla(var(--accent-h), 50%, 45%, 0.5) 0%,
        hsla(var(--accent-h), 55%, 40%, 0.6) 100%);
}

.theme-b .toolcall-legend-python .toolcall-legend-bar {
    background: linear-gradient(90deg,
        hsl(var(--accent-h), 70%, 55%) 0%,
        hsl(var(--accent-h), 75%, 45%) 100%);
}

.theme-b .toolcall-benchmark:hover {
    background: rgba(255, 255, 255, 0.05);
}

.theme-b .toolcall-benchmark:hover .toolcall-bar-python .toolcall-bar {
    box-shadow: 0 0 16px hsla(var(--accent-h), 70%, 50%, 0.5);
}

/* Responsive */
@media (max-width: 700px) {
    .toolcall-chart-container {
        padding: 20px 24px;
    }

    .toolcall-chart-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .toolcall-legend {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* ===============================
   Floating Side TOC Navigation
   =============================== */

.side-toc {
    position: fixed;
    left: 16px;
    top: 100px;
    z-index: 900;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.side-toc-toggle {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

.side-toc-toggle:hover {
    color: var(--accent);
}

.side-toc.is-open .side-toc-toggle {
    color: var(--text-secondary);
}

.side-toc-content {
    display: none;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.side-toc.is-open .side-toc-content {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.side-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.side-toc-sublist {
    list-style: none;
    margin: 1px 0 0 0;
    padding: 0 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.side-toc-link {
    display: block;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    padding: 3px 0;
    transition: color var(--transition-fast);
    white-space: nowrap;
    line-height: 1.5;
}

.side-toc-link.side-toc-sub {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.85;
}

.side-toc-link:hover {
    color: var(--accent);
}

.side-toc-link.active {
    color: var(--accent);
    font-weight: 500;
}

/* Hide on narrow screens */
@media (max-width: 1400px) {
    .side-toc {
        display: none;
    }
}

/* ============================================
   Multi-Agent Subagent Styles
   ============================================ */

/* Subagent blocks inside agentic-processing-body: timeline dots */
.agentic-processing-body .subagent-block {
    margin-bottom: 0;
    padding-left: 24px;
    position: relative;
}

.agentic-processing-body .subagent-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text);
    z-index: 2;
}

.agentic-processing-body .subagent-block::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 21px;
    bottom: 0;
    width: 1px;
    background: #E0E4EC;
    z-index: 0;
}

.agentic-processing-body .subagent-block:last-child::after {
    display: none;
}

.theme-b .agentic-processing-body .subagent-block::after {
    background: rgba(100, 120, 150, 0.3);
}

.subagent-block {
    transition: background var(--transition-fast);
}

.subagent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    user-select: none;
    border-radius: 6px;
    transition: background var(--transition-fast);
}

.subagent-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

.theme-b .subagent-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.subagent-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-sans);
}

.subagent-toggle {
    margin-left: auto;
    font-size: 10px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.subagent-block.expanded .subagent-toggle {
    transform: rotate(90deg);
}

.subagent-task {
    padding: 0 8px 6px 8px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.subagent-answer-preview {
    padding: 4px 8px 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

.subagent-answer-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, white);
}

.theme-b .subagent-answer-preview::after {
    background: linear-gradient(transparent, var(--bg-card));
}

.subagent-block.expanded .subagent-answer-preview {
    display: none;
}

.subagent-history {
    display: none;
    padding: 4px 8px 8px;
    max-height: 400px;
    overflow-y: auto;
}

.subagent-block.expanded .subagent-history {
    display: block;
}

.subagent-msg {
    padding: 6px 10px;
    margin: 4px 0;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
}

.subagent-msg-user {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text);
}

.theme-b .subagent-msg-user {
    background: rgba(255, 255, 255, 0.04);
}

.subagent-msg-assistant {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
}

.subagent-msg-tool {
    background: rgba(80, 120, 80, 0.06);
    border: 1px solid rgba(80, 120, 80, 0.12);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
}

.subagent-tool-call {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(100, 140, 200, 0.12);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    font-family: var(--font-mono);
}

.tool-result-label {
    font-weight: 600;
    color: rgba(80, 120, 80, 0.8);
}

/* Agentic processing header extras for multi-agent */
.agentic-processing-count {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

.theme-b .agentic-processing-count {
    background: rgba(255, 255, 255, 0.08);
}

.agentic-processing-toggle {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.agentic-processing.expanded .agentic-processing-toggle {
    transform: rotate(180deg);
}



/* Export button styles */
.export-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.export-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ========================================
   MOBILE ADAPTATION - 768px and below
   ======================================== */
@media (max-width: 768px) {
    /* 1. Container padding */
    .container { padding: 0 16px; }
    .container-wide { padding: 0 16px; }
    .container-full { padding: 0 16px; }

    /* 2. Typography */
    :root {
        --font-size-base: 16px;
        --font-size-sm: 14px;
        --font-size-lg: 17px;
        --font-size-h1: 28px;
        --font-size-h2: 24px;
        --font-size-h3: 20px;
    }

    /* 3. Hero */
    .hero { padding: 40px 0 16px; }
    .hero-subtitle { font-size: 16px; }

    /* 4. Teaser chart caption */
    .teaser-chart-caption {
        white-space: normal;
        padding: 0 16px;
    }

    /* 5. Section cards */
    .section-card { padding: 16px; }
    .abstract-block { padding: 16px 0; }

    /* 6. Bar benchmark panels */
    .bar-benchmark-panel {
        min-width: 0;
        flex: 1 1 100%;
        height: 200px;
    }
    .bar-benchmark-chart { height: 140px; }
    .bar-category-row { padding: 12px; }

    /* 7. Bar-chart-panel 441px fix */
    .bar-chart-panel {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    /* 8. Video grid stacking */
    .showcase-video-grid-3x2 { grid-template-columns: 1fr; }
    .showcase-video-row { flex-direction: column; }

    /* 9. Showcase figures row */
    .showcase-figures-row { flex-direction: column; }

    /* 10. RR chart */
    .rr-bar-row {
        grid-template-columns: 100px 1fr 36px 70px;
        gap: 6px;
    }
    .rr-bar-label { font-size: 11px; }
    .rr-bar-type {
        font-size: 9px;
        padding: 2px 5px;
        white-space: normal;
        line-height: 1.2;
    }
    .rr-chart-container { padding: 16px 12px; }

    /* 11. Toolcall chart */
    .toolcall-chart-grid { grid-template-columns: 1fr; }
    .toolcall-chart-container { padding: 16px 12px; }

    /* 12. Internal eval tables */
    .internal-eval-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .internal-eval-table { font-size: 12px; min-width: 480px; }
    .internal-eval-table th, .internal-eval-table td { padding: 8px 10px; }

    /* 13. Benchmark table */
    .bmk-table { font-size: 11px; }
    .bmk-table th, .bmk-table td { padding: 8px 6px; }
    .bmk-th-benchmark {
        width: 100px;
        padding-left: 8px !important;
    }
    .bmk-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .bmk-table {
        min-width: 600px;
    }
    .bmk-table-wrap::before {
        display: none; /* Hide highlight overlay on mobile */
    }
    .bmk-table th {
        padding: 10px 6px;
        font-size: 10px;
    }
    .bmk-th-flash {
        font-size: 11px !important;
    }

    /* 18. Teaser chart mobile optimization */
    .teaser-chart-container {
        padding: 12px 0 12px 40px;
        max-width: 100%;
        overflow: visible;
    }
    .teaser-chart-wrapper {
        overflow: visible;
    }
    .teaser-plot-area {
        overflow: visible;
    }
    .teaser-chart-area {
        height: 280px;
        grid-template-columns: 36px 1fr;
        grid-template-rows: 1fr 45px;
    }
    .teaser-y-axis {
        padding-right: 6px;
    }
    .teaser-y-axis .teaser-axis-label {
        font-size: 11px;
        left: -6px;
    }
    .teaser-axis-tick {
        font-size: 11px;
    }
    .teaser-point-square {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }
    .teaser-point-square img {
        width: 18px;
        height: 18px;
    }
    .teaser-point-score,
    .teaser-point-score-plain,
    .teaser-point-score-top,
    .teaser-point-score-right,
    .teaser-point-score-left {
        font-size: 9px;
    }
    .teaser-x-axis .teaser-axis-ticks {
        width: calc(100% - 40px);
        margin-left: 20px;
        height: 16px;
    }
    .teaser-x-axis .teaser-axis-tick {
        font-size: 10px;
    }
    .teaser-x-axis .teaser-axis-label {
        font-size: 11px;
    }
    .teaser-quadrant-highlight::after {
        font-size: 8px;
        top: 4px;
        left: 6px;
    }

    /* 14. Inline viewer */
    .inline-agentic-viewer .safari-title { font-size: 11px; }
    .result-iframe { height: 500px; }

    /* 15. Header */
    .header-actions { gap: 8px; }
    .header-btn { padding: 6px 12px; font-size: 12px; }

    /* 16. MathJax overflow */
    .formula-block, .formula-section { overflow-x: auto; }
    mjx-container { overflow-x: auto; max-width: 100%; }

    /* 17. Media grid */
    .media-grid { grid-template-columns: 1fr; }
}

/* ========================================
   SMALL PHONE - 480px and below
   ======================================== */
@media (max-width: 480px) {
    /* Container */
    .container { padding: 0 12px; }
    .container-wide { padding: 0 12px; }

    /* Typography */
    :root {
        --font-size-base: 15px;
        --font-size-h1: 24px;
        --font-size-h2: 20px;
        --font-size-h3: 18px;
    }

    /* Hero */
    .hero { padding: 28px 0 12px; }

    /* Header: hide text link */
    .header-link-text { display: none; }
    .header-btn { padding: 5px 10px; font-size: 11px; }

    /* RR chart narrower */
    .rr-bar-row { grid-template-columns: 80px 1fr 32px 60px; }
    .rr-bar-label { font-size: 10px; }
    .rr-bar-type {
        font-size: 8px;
        padding: 2px 4px;
    }

    /* Bar panels smaller */
    .bar-benchmark-panel { height: 180px; }
    .bar-benchmark-chart { height: 120px; }

    /* Section card */
    .section-card { padding: 12px; }

    /* Viewer buttons smaller */
    .viewer-toggle-btn { font-size: 10px; padding: 4px 10px; }
    .carousel-nav-btn { padding: 6px 10px; font-size: 11px; }

    /* Teaser chart small phone */
    .teaser-chart-container {
        padding-left: 35px;
    }
    .teaser-chart-area {
        height: 240px;
        grid-template-columns: 30px 1fr;
        grid-template-rows: 1fr 36px;
    }
    .teaser-y-axis .teaser-axis-label {
        font-size: 10px;
        left: -4px;
    }
    .teaser-axis-tick { font-size: 10px; }
    .teaser-point-square {
        width: 24px;
        height: 24px;
        border-radius: 5px;
    }
    .teaser-point-square img {
        width: 15px;
        height: 15px;
    }
    .teaser-point-score,
    .teaser-point-score-plain,
    .teaser-point-score-top,
    .teaser-point-score-right,
    .teaser-point-score-left {
        font-size: 8px;
    }
    .teaser-x-axis .teaser-axis-tick { font-size: 9px; }
    .teaser-x-axis .teaser-axis-label { font-size: 10px; }
    .teaser-x-axis .teaser-axis-ticks {
        width: calc(100% - 30px);
        margin-left: 15px;
    }
    .teaser-data-point.highlight .teaser-point-square {
        box-shadow: 0 0 0 2px hsla(var(--accent-h), 80%, 60%, 0.12);
    }

    /* BMK table small phone */
    .bmk-table { font-size: 10px; }
    .bmk-table th { font-size: 9px; padding: 8px 4px; }
    .bmk-table td { padding: 6px 4px; }
    .bmk-th-benchmark { width: 80px; padding-left: 6px !important; }
    .bmk-table-wrap { margin: 0 -12px; padding: 0 12px; }
}
