/* =====================================================================
   OpenMaskit marketing site
   "Engineering manifest" aesthetic — restrained, mono-forward, technical.
   Design tokens mirror the dashboard at maskit/src/openmaskit/web/static.
   ===================================================================== */

:root {
    --bg-root: #0a0c10;
    --bg-surface: #12151c;
    --bg-elevated: #181c25;
    --bg-hover: #1e2330;

    --border-subtle: #1e2330;
    --border-default: #262d3a;
    --border-strong: #2f3847;

    --text-primary: #e8ecf0;
    --text-secondary: #8892a4;
    --text-muted: #5c6578;
    --text-faint: #3a4253;

    --accent: #58a6ff;
    --accent-hover: #79b8ff;
    --accent-glow: rgba(88, 166, 255, 0.12);

    --teal: #2dd4bf;
    --teal-hover: #5eead4;
    --teal-glow: rgba(45, 212, 191, 0.16);
    --teal-bg: rgba(45, 212, 191, 0.08);

    --red: #f87171;
    --red-bg: rgba(248, 113, 113, 0.08);

    --grid-line: rgba(255, 255, 255, 0.018);

    --radius-xs: 3px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace;

    --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
    --t-fast: 140ms var(--ease);
    --t-base: 220ms var(--ease);
    --t-slow: 420ms var(--ease);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-xs); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-root);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-hover); }
.link { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
em { font-style: normal; color: var(--teal); }
code { font-family: var(--font-mono); font-size: 0.9em; }

button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ---- Background grid (atmospheric, not loud) ---------------------- */
.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center top, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center top, black 20%, transparent 75%);
}

main, header, footer { position: relative; z-index: 1; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}
.container.narrow { max-width: 820px; }

@media (max-width: 640px) {
    .container { padding: 0 20px; }
}

/* ---- Navigation --------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 12, 16, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: -0.01em;
}
.logo:hover { color: var(--text-primary); }
.logo-mark {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-xs);
}
.logo-text {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tm {
    font-size: 0.55em;
    vertical-align: super;
    margin-left: 1px;
    opacity: 0.75;
    font-weight: 500;
    letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color var(--t-fast);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link svg { opacity: 0.75; }

/* ---- Hero --------------------------------------------------------- */
.hero {
    padding: 96px 0 80px;
    position: relative;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 32px;
    padding: 6px 12px 6px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin-bottom: 28px;
    max-width: 880px;
}
.hero-title-em {
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-sub {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 72px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all var(--t-fast);
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-root);
}
.btn-primary:hover {
    background: #fff;
    color: var(--bg-root);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 236, 240, 0.18);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-default);
}
.btn-secondary:hover {
    border-color: var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
}

/* ---- Transform panel (the signature animation) -------------------- */
.transform {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 20px;
    max-width: 1080px;
    margin: 0;
}

.transform-pane {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 40px 24px 24px;
    overflow: hidden;
}
.transform-pane::before {
    content: attr(data-label);
    position: absolute;
    top: 14px;
    left: 24px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}
.transform-before::after,
.transform-after::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 24px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.transform-before::after { background: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.transform-after::after { background: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }

.transform-code {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.85;
    color: var(--text-primary);
    overflow-x: auto;
}
.line { display: block; }
.t-key { color: var(--accent); }
.t-brace { color: var(--text-muted); }
.t-sensitive {
    color: var(--red);
    background: var(--red-bg);
    padding: 1px 5px;
    border-radius: var(--radius-xs);
    position: relative;
    transition: all var(--t-base);
}
.t-masked {
    color: var(--teal);
    background: var(--teal-bg);
    padding: 1px 5px;
    border-radius: var(--radius-xs);
}

/* The "after" pane lands in after a beat — only on the active slide so
   the carousel switch doesn't get a stutter from every slide firing its
   own keyframe on each change. */
.slide.is-active .transform-after {
    animation: pane-arrive 700ms var(--ease) both;
    animation-delay: 200ms;
}
@keyframes pane-arrive {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.transform-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}
.transform-arrow-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.transform-arrow svg {
    color: var(--teal);
    opacity: 0.7;
}

@media (max-width: 780px) {
    .transform {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .transform-arrow {
        flex-direction: row;
        padding: 6px 0;
    }
    .transform-arrow-label {
        writing-mode: horizontal-tb;
        transform: none;
    }
    .transform-arrow svg { transform: rotate(90deg); }
}

/* ---- Section structure ------------------------------------------- */
.section {
    padding: 88px 0;
    border-top: 1px solid var(--border-subtle);
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}
.section-id {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.04em;
}
.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.lede {
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 720px;
}
.lede em { color: var(--text-primary); font-weight: 500; }

/* ---- Architecture diagram ---------------------------------------- */
.section-architecture .lede { margin-top: 40px; }

.diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
    padding: 32px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}
.diagram-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    min-height: 130px;
    justify-content: center;
    transition: border-color var(--t-base);
}
.diagram-node-kind {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.diagram-node-name {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.diagram-node-detail {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.diagram-node-proxy {
    border-color: var(--teal);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--teal-bg) 100%);
}
.diagram-node-proxy .diagram-node-name { color: var(--teal); }
.diagram-node-proxy:hover { border-color: var(--teal-hover); }

.diagram-arrow {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    gap: 6px;
    min-width: 60px;
}
.diagram-arrow-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.diagram-arrow-rule {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
        var(--border-default) 0%,
        var(--border-strong) 50%,
        var(--border-default) 100%);
    position: relative;
}
.diagram-arrow-rule::after {
    content: "▸";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 10px;
}

@media (max-width: 780px) {
    .diagram {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px;
    }
    .diagram-arrow { min-width: 0; flex-direction: row; padding: 4px 0; }
    .diagram-arrow-rule {
        width: 1px;
        height: 24px;
        background: linear-gradient(to bottom,
            var(--border-default) 0%,
            var(--border-strong) 50%,
            var(--border-default) 100%);
    }
    .diagram-arrow-rule::after {
        content: "▾";
        right: 50%;
        top: auto;
        bottom: -8px;
        transform: translateX(50%);
    }
}

/* ---- Promise (§ 03) ---------------------------------------------- */
.section-promise { background: var(--bg-surface); }
.promise {
    position: relative;
    padding: 40px 36px;
    background: var(--bg-root);
    border: 1px solid var(--border-default);
    border-left: 2px solid var(--teal);
    border-radius: var(--radius-md);
}
.promise-line {
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.promise-line em { color: var(--teal); font-weight: 600; }
.promise-sub {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 640px;
}

/* ---- Install (§ 04) ---------------------------------------------- */
.install {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.install::before {
    content: "$";
    position: absolute;
    top: 18px;
    left: 22px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}
.install-code {
    padding: 18px 24px 18px 42px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--text-primary);
    overflow-x: auto;
}
.install-code .comment { color: var(--text-muted); }

.install-copy {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xs);
    transition: all var(--t-fast);
}
.install-copy:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: var(--bg-hover);
}
.install-copy.copied {
    color: var(--teal);
    border-color: var(--teal);
}

.install-foot {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}
.install-foot code {
    color: var(--text-secondary);
    background: var(--bg-surface);
    padding: 1px 6px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-subtle);
}

/* ---- Footer ------------------------------------------------------- */
.footer {
    margin-top: 64px;
    padding: 56px 0 24px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-root);
}
.footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-subtle);
}
.footer-left { display: flex; flex-direction: column; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-mark { width: 22px; height: 22px; border-radius: var(--radius-xs); }
.footer-name {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}
.footer-line {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 280px;
    line-height: 1.55;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-size: 13.5px;
    color: var(--text-secondary);
    transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
}
.footer-meta {
    font-size: 12px;
    color: var(--text-faint);
}
.footer-meta-mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

@media (max-width: 780px) {
    .footer-inner { grid-template-columns: 1fr; gap: 36px; }
    .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 500px) {
    .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ---- Reveal-on-scroll (progressive enhancement) ------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---- Responsive: hero + density ---------------------------------- */
@media (max-width: 780px) {
    .hero { padding: 64px 0 56px; }
    .hero-cta { margin-bottom: 56px; }
    .section { padding: 64px 0; }
    .section-head { gap: 12px; }
    .promise { padding: 28px 24px; }
    .install-code { padding: 16px 20px 16px 38px; font-size: 12.5px; }
}
@media (max-width: 480px) {
    .btn { width: 100%; justify-content: center; }
    .hero-cta { width: 100%; }
}

/* =====================================================================
   Hero carousel
   Same external footprint as the original single .transform.
   Slides stack absolutely inside the stage and crossfade between each
   other. Arrows on the sides, dot row at the bottom.
   ===================================================================== */

.carousel {
    position: relative;
    max-width: 1080px;
    margin: 0;
    padding: 0 56px;            /* room for side arrows */
}

.carousel-stage {
    /* Grid cell with all slides assigned to "slot" — the cell sizes to
       the tallest slide, so the dots below always clear the content
       regardless of which slide is active. */
    display: grid;
    grid-template-areas: "slot";
}

@media (max-width: 780px) {
    .carousel { padding: 0; }
}

/* ---- Slides (stacked in one grid cell, crossfaded) --------------- */
.slide {
    grid-area: slot;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
        opacity 380ms var(--ease),
        transform 380ms var(--ease),
        visibility 0s linear 380ms;
    pointer-events: none;
}
.slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
        opacity 420ms var(--ease),
        transform 420ms var(--ease),
        visibility 0s linear 0s;
    pointer-events: auto;
}

/* The slide meta row is tight — single line, mono caps, narrow.
   Sits above the transform without inflating the section's height. */
.slide-meta {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    padding: 0 2px;
}
.slide-id {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--teal);
}
.slide-name {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}
.slide-tag {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0;
    flex: 1;
    min-width: 200px;
}

/* The transform itself: keep the existing pane styling, but reset the
   margin/grid so it sits naturally inside the slide. */
.slide .transform {
    margin: 0;
    max-width: none;
    flex: 1;
}

/* ---- Side arrows ------------------------------------------------- */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition:
        color var(--t-fast),
        border-color var(--t-fast),
        background var(--t-fast),
        transform var(--t-fast);
    z-index: 2;
}
.carousel-nav:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: var(--bg-elevated);
}
.carousel-nav:active { transform: translateY(-50%) scale(0.96); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

@media (max-width: 780px) {
    .carousel-nav {
        top: auto;
        bottom: -52px;
        transform: none;
    }
    .carousel-nav:active { transform: scale(0.96); }
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
}

/* ---- Dot row ----------------------------------------------------- */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.dot {
    width: 24px;
    height: 4px;
    background: var(--border-default);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background var(--t-fast), width var(--t-base);
    padding: 0;
}
.dot:hover { background: var(--border-strong); }
.dot.is-active {
    background: var(--teal);
    width: 40px;
}

@media (max-width: 780px) {
    .carousel-dots { margin-top: 56px; }
}

/* ---- New JSON token colors used in the new slides ---------------- */
.t-string { color: var(--text-primary); }
.t-bool { color: var(--accent); }

/* ---- Guardrails: blocked pane treatment -------------------------- */
.transform-blocked {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    background: linear-gradient(
        180deg,
        var(--bg-surface) 0%,
        var(--red-bg) 130%
    );
}
.transform-blocked::after {
    /* override the small dot to be red regardless of transform-after default */
    background: var(--red) !important;
    box-shadow: 0 0 0 3px var(--red-bg) !important;
}
.blocked-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--red);
}
.blocked-mark {
    font-size: 14px;
    line-height: 1;
}
.blocked-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.5;
    margin: 0;
}
.blocked-meta > div { display: flex; gap: 10px; }
.blocked-meta dt {
    color: var(--text-muted);
    min-width: 64px;
    font-weight: 500;
}
.blocked-meta dd {
    color: var(--text-secondary);
    margin: 0;
}
.blocked-pattern {
    color: var(--red);
    background: var(--red-bg);
    padding: 1px 5px;
    border-radius: var(--radius-xs);
}

/* ---- Injections: highlighted "added" lines ----------------------- */
.t-injected {
    position: relative;
    background: var(--accent-glow);
    border-left: 2px solid var(--accent);
    margin-left: -10px;
    padding-left: 8px;
}
.t-injected-tag {
    display: inline-block;
    margin-left: 12px;
    padding: 0 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: var(--radius-xs);
    vertical-align: middle;
}

/* Mobile: drop the injected tag to keep the line readable */
@media (max-width: 520px) {
    .t-injected-tag { display: none; }
}
