/* Interactive layer for the AI director agent comparison post.
   Look follows /ai-director (css/ai-director.css): black page under a faint dot grid,
   hairline white borders, near-black cards, white primary buttons, Inter headings,
   and one muted lavender (#8b7cd8 / #c9bff5) kept for RizzGen ("ours") and active
   states. No saturated purple, no glows.
   Everything here styles markup built by js/agent-comparison.js, plus two classed
   lists in the article (.ac-five, .ac-bottom). Class prefix: ac-  */

:root {
    /* this page only: the blog theme's #9a43ff becomes the /ai-director lavender */
    --rizzgen-accent-purple: #c9bff5;
    --font-heading: 'Inter', sans-serif;

    --ac-lav: #8b7cd8;
    --ac-lav-hi: #c9bff5;
    --ac-lav-bg: rgba(139, 124, 216, 0.14);
    --ac-lav-line: rgba(139, 124, 216, 0.5);
    --ac-ink: #fff;
    --ac-dim: rgba(255, 255, 255, 0.6);
    --ac-faint: rgba(255, 255, 255, 0.4);
    --ac-line: rgba(255, 255, 255, 0.08);
    --ac-line-hi: rgba(255, 255, 255, 0.16);
    --ac-card: rgba(255, 255, 255, 0.03);
    --ac-ease: cubic-bezier(.2, .7, .2, 1);
    --ac-dots: radial-gradient(rgba(255, 255, 255, .1) 1.1px, transparent 1.6px) 0 0 / 28px 28px;
}

body { background: var(--ac-dots), #000; }

/* headings in the /ai-director voice: Inter, bold, tight (the h1 is styled by the hero in blog_common.css) */
article h2, article h3 { font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.03em; }

/* ---------- shared pieces ---------- */
.ac-wide {
    width: min(1080px, calc(100vw - 32px));
    margin-left: calc(50% - min(540px, 50vw - 16px));
    box-sizing: border-box;
}
.ac-panel {
    position: relative;
    background: #0b0b0c;
    border: 1px solid var(--ac-line);
    border-radius: 28px;
    padding: 30px 32px;
    margin: 2em 0;
    overflow: hidden;
}
.ac-panel.ac-wide { margin-left: calc(50% - min(540px, 50vw - 16px)); margin-right: 0; }
.ac-panel:empty { display: none; }
.ac-panel h3 { margin: 0.15em 0 0.35em; font-size: 1.6em; line-height: 1.12; color: var(--ac-ink); }
.ac-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.86em; font-weight: 600; letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.55);
}

.ac-ico { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; }
.ac-ico svg, .ac-node-dot svg, .ac-node-loop svg {
    width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
}

/* agent discs: neutral; RizzGen's --hue is the lavender */
.ac-disc {
    --hue: #d9d9de;
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 46px; height: 46px; border-radius: 50%;
    font: 600 0.84em/1 'Inter', sans-serif; letter-spacing: 0.01em;
    color: color-mix(in srgb, var(--hue) 70%, #fff);
    background: color-mix(in srgb, var(--hue) 9%, #121215);
    border: 1px solid color-mix(in srgb, var(--hue) 34%, transparent);
}
.ac-disc--xs { width: 22px; height: 22px; font-size: 0.56em; }
.ac-disc--sm { width: 28px; height: 28px; font-size: 0.62em; margin-right: 8px; vertical-align: middle; }
.ac-disc--lg { width: 54px; height: 54px; font-size: 0.95em; }
.ac-disc--xl { width: 92px; height: 92px; font-size: 1.5em; }

.ac-meter { display: inline-flex; gap: 4px; align-items: center; }
.ac-meter i {
    display: block; width: 18px; height: 6px; border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.4s ease calc(var(--k) * 60ms);
}
.ac-meter i.on { background: var(--hue, rgba(255, 255, 255, 0.85)); }
.ac-meter--lg i { width: 26px; height: 7px; }
.ac-meter--sm i { width: 10px; height: 6px; }
.ac-meter-num { margin-left: 8px; font-variant-numeric: tabular-nums; }

/* scroll reveal: only for JS-built blocks, never article text */
.ac-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ac-ease), transform 0.7s var(--ac-ease); }
.ac-reveal.is-in { opacity: 1; transform: none; }
.ac-reveal:not(.is-in) .ac-meter i.on { background: rgba(255, 255, 255, 0.08); }

.ac-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001; pointer-events: none; }
.ac-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: rgba(255, 255, 255, 0.85); }

.ac-btn {
    display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 12px; font-size: 0.86em; font-weight: 600;
    background: #fff; color: #000 !important; text-decoration: none; border: 1px solid #fff; cursor: pointer;
    font-family: 'Inter', sans-serif; transition: transform 0.2s ease, background 0.2s ease;
}
.ac-btn:hover { background: #f0f0f0; transform: translateY(-1px); }
.ac-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.18); color: #fff !important; }
.ac-btn--ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.4); }

/* ---------- 1. control spectrum stage ---------- */
.ac-stage { background: var(--ac-dots), #0b0b0c; padding-bottom: 24px; }
.ac-stage > * { position: relative; }
.ac-stage-art { position: absolute !important; inset: 0; pointer-events: none; }
.ac-float { position: absolute; fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1.3; }
.ac-float--slate { width: 120px; right: 28px; top: 24px; transform: rotate(8deg); animation: ac-drift 9s ease-in-out infinite; }
.ac-float--lens { width: 92px; left: 46%; top: -28px; animation: ac-spin 40s linear infinite; }
.ac-float--film { width: 190px; right: 12%; bottom: 16px; transform: rotate(-6deg); animation: ac-drift 12s ease-in-out infinite reverse; }
@keyframes ac-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes ac-spin { to { rotate: 360deg; } }
.ac-rec { display: none; }

.ac-stage-head { max-width: 600px; }
.ac-stage-title { font-size: clamp(1.7em, 4vw, 2.4em) !important; letter-spacing: -0.035em; }
.ac-stage-sub { margin: 0; color: var(--ac-dim); font-size: 0.95em; }

.ac-rail-wrap { margin: 28px 0 6px; padding: 0 34px; }
.ac-rail { --step: 78px; position: relative; height: calc((var(--up) + var(--down)) * var(--step) + 34px); }
.ac-track {
    position: absolute; left: 0; right: 0; height: 2px; border-radius: 999px;
    top: calc(var(--up) * var(--step) + 14px);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.55));
    overflow: hidden;
}
.ac-track-sweep {
    position: absolute; inset: 0; width: 22%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    transform: translateX(-120%);
}
.ac-stage.is-live .ac-track-sweep { animation: ac-sweep 4.2s ease-in-out 1.4s infinite; }
@keyframes ac-sweep { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(520%); } }
.ac-tick { position: absolute; top: calc(var(--up) * var(--step) + 10px); width: 1px; height: 10px; background: rgba(255, 255, 255, 0.14); transform: translateX(-50%); }
.ac-tick b { display: none; }
.ac-pin {
    position: absolute; top: calc(var(--up) * var(--step) + 15px); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
    border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #0b0b0c;
    opacity: 0; transition: opacity 0.5s ease 1.2s;
}
.ac-stage.is-live .ac-pin { opacity: 1; }

.ac-token {
    position: absolute; left: 0;
    top: calc(var(--up) * var(--step) + 2px - var(--row) * var(--step));
    height: calc(var(--step) - 10px); width: 96px;
    display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; gap: 9px;
    background: none; border: 0; padding: 0; cursor: pointer; color: var(--ac-ink);
    transform: translateX(-50%) scale(0.7); opacity: 0;
    transition: left 1.3s var(--ac-ease) calc(var(--i) * 110ms), opacity 0.5s ease calc(var(--i) * 110ms), transform 0.6s var(--ac-ease) calc(var(--i) * 110ms);
}
.ac-token[data-side="down"] { top: calc(var(--up) * var(--step) + 30px + (var(--row) - 1) * var(--step)); flex-direction: column; }
.ac-stage.is-live .ac-token { left: var(--x); opacity: 1; transform: translateX(-50%) scale(1); }
.ac-token .ac-disc { transition: transform 0.25s var(--ac-ease), border-color 0.25s ease, background 0.25s ease; }
.ac-token:hover .ac-disc { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); }
.ac-token.is-on .ac-disc { border-color: #fff; background: #1b1b20; color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.ac-token[data-key="rizzgen"].is-on .ac-disc { border-color: var(--ac-lav-hi); background: rgba(139, 124, 216, 0.22); box-shadow: 0 0 0 3px rgba(139, 124, 216, 0.18); }
.ac-token:focus-visible { outline: none; }
.ac-token:focus-visible .ac-disc { outline: 2px solid var(--ac-lav); outline-offset: 5px; }
.ac-token-name { font-size: 0.74em; font-weight: 500; color: var(--ac-faint); white-space: nowrap; }
.ac-token.is-on .ac-token-name { color: #fff; }

.ac-rail-ends { display: flex; justify-content: space-between; gap: 12px; margin: 8px -34px 0; font-size: 0.76em; color: var(--ac-faint); }

.ac-detail { --hue: #d9d9de; margin-top: 18px; }
.ac-detail-in {
    border: 1px solid var(--ac-line); background: #111114;
    border-radius: 20px; padding: 20px 22px;
    animation: ac-pop 0.45s var(--ac-ease);
}
@keyframes ac-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ac-detail-top { display: flex; align-items: center; gap: 14px; }
.ac-detail-id { flex: 1; min-width: 0; }
.ac-detail-name { font-size: 1.15em; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.ac-detail-name span { font-weight: 400; color: var(--ac-dim); }
.ac-detail-arch { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 0.86em; color: var(--ac-dim); }
.ac-detail-score { text-align: right; line-height: 1; }
.ac-detail-score b { font-size: 2.4em; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.ac-detail-score span { display: block; font-size: 0.75em; color: var(--ac-faint); margin-top: 2px; }
.ac-detail .ac-meter { margin: 16px 0 4px; }
.ac-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.ac-facts div { background: var(--ac-card); border: 1px solid var(--ac-line); border-radius: 12px; padding: 10px 12px; }
.ac-facts dt { font-size: 0.74em; color: var(--ac-faint); }
.ac-facts dd { margin: 3px 0 0; font-size: 0.9em; font-weight: 600; color: #fff; }
.ac-facts dd.yes::before, .ac-strip-facts .yes b::before { content: "\2713\00a0"; color: var(--ac-lav-hi); }
.ac-facts dd.no { color: var(--ac-dim); }
.ac-detail-best { margin: 0 0 10px; font-size: 0.92em; line-height: 1.6; color: var(--ac-dim); }
.ac-detail-best strong { color: #fff; }
.ac-detail-link { font-size: 0.88em; font-weight: 600; color: #fff !important; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.ac-detail-link:hover { border-color: #fff; }
.ac-stage-foot { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 0.88em; }
.ac-stage-foot a { color: var(--ac-dim); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.ac-stage-foot a:hover { color: #fff; border-color: #fff; }

/* ---------- 2. the existing bar chart, animated ---------- */
.ac-js .ac-chart .aa-bar-fill { transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--ac-ease) calc(var(--i, 0) * 90ms); }
.ac-js .ac-chart.is-live .aa-bar-fill { transform: scaleX(1); }
.ac-chart .aa-bar-value { opacity: 0.4; transition: opacity 0.6s ease 1s; }
.ac-chart.is-live .aa-bar-value { opacity: 1; }
.ac-chart .aa-bar-fill.rizz-fill { position: relative; overflow: hidden; }
.ac-chart.is-live .aa-bar-fill.rizz-fill::after {
    content: ""; position: absolute; inset: 0; width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: ac-sweep 4s ease-in-out 1.6s infinite;
}
.ac-chart .aa-bar-row:hover .aa-bar-fill { filter: brightness(1.2); }

/* ---------- 3. architecture explorer ---------- */
.ac-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 20px; }
.ac-tab {
    display: flex; align-items: center; gap: 10px; text-align: left;
    background: none; border: 1px solid var(--ac-line); border-radius: 12px;
    padding: 13px 15px; color: rgba(255, 255, 255, 0.55); font: 500 0.9em/1.3 'Inter', sans-serif; cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ac-tab .ac-ico { width: 20px; height: 20px; }
.ac-tab:hover { border-color: var(--ac-line-hi); color: #fff; }
.ac-tab.is-on { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.ac-tab.is-on .ac-ico { color: var(--ac-lav-hi); }
.ac-tab:focus-visible { outline: 2px solid var(--ac-lav); outline-offset: 2px; }

.ac-arch-body.is-swap { animation: ac-pop 0.45s var(--ac-ease); }
.ac-arch-line { margin: 0 0 4px; font-size: 1.02em; color: #fff; }
.ac-arch-who { margin: 0; font-size: 0.9em; color: var(--ac-dim); }

.ac-flow { position: relative; display: flex; justify-content: space-between; gap: 6px; margin: 28px 0 8px; padding: 0 4px; }
.ac-flow-line {
    position: absolute; left: 7%; right: 7%; top: 23px; height: 1px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 5px, transparent 5px 11px);
}
.ac-head {
    position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; z-index: 3;
    border-radius: 50%; background: #fff; opacity: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
    transition: transform 0.55s var(--ac-ease), opacity 0.3s;
}
.ac-head.is-on { opacity: 1; }
.ac-node { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ac-node-dot {
    width: 46px; height: 46px; border-radius: 50%; padding: 12px; box-sizing: border-box;
    background: #0b0b0c; border: 1px solid rgba(255, 255, 255, 0.16); color: var(--ac-faint);
    transition: transform 0.35s var(--ac-ease), background 0.35s, border-color 0.35s, color 0.35s;
}
.ac-node[data-t="you"] .ac-node-dot { background: var(--ac-lav-bg); border-color: var(--ac-lav-line); color: var(--ac-lav-hi); }
.ac-node[data-t="gate"] .ac-node-dot { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.ac-node[data-t="render"] .ac-node-dot { border-style: dashed; border-color: rgba(255, 255, 255, 0.45); color: rgba(255, 255, 255, 0.75); }
.ac-node[data-t="after"] .ac-node-dot { color: var(--ac-dim); }
.ac-node-label { margin-top: 10px; font-size: 0.82em; font-weight: 600; color: #fff; line-height: 1.25; }
.ac-node-sub { margin-top: 2px; font-size: 0.72em; color: var(--ac-faint); }
.ac-node.is-now .ac-node-dot { transform: scale(1.1); border-color: #fff; color: #fff; }
.ac-node[data-t="gate"].is-now .ac-node-dot { animation: ac-wait 0.7s ease-in-out infinite alternate; }
.ac-node[data-t="gate"].is-ok .ac-node-dot { background: #fff; color: #000; animation: none; }
@keyframes ac-wait { from { transform: scale(1.04); } to { transform: scale(1.16); } }
.ac-node-loop {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 9px; border-radius: 999px;
    font-size: 0.7em; color: var(--ac-dim); border: 1px solid var(--ac-line); white-space: nowrap;
}
.ac-node-loop svg { width: 12px; height: 12px; }
.ac-node.is-now .ac-node-loop svg { animation: ac-spin 1s linear; }

.ac-arch-stats { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--ac-line); }
.ac-arch-count { display: flex; align-items: center; gap: 12px; }
.ac-arch-count b { font: 700 2.8em/1 'Inter', sans-serif; letter-spacing: -0.05em; color: #fff; }
.ac-arch-count span { font-size: 0.84em; color: var(--ac-dim); max-width: 210px; line-height: 1.4; }
.ac-arch-count em { color: var(--ac-faint); font-style: normal; }
.ac-arch-closest-label { display: block; font-size: 0.78em; color: var(--ac-faint); margin-bottom: 8px; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px;
    background: var(--ac-card); border: 1px solid var(--ac-line);
    color: #fff !important; text-decoration: none; font-size: 0.84em; font-weight: 600;
    transition: transform 0.2s, border-color 0.2s;
}
.ac-chip em { font-style: normal; font-weight: 400; color: var(--ac-faint); }
.ac-chip:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.3); }
.ac-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 0.78em; color: var(--ac-faint); }
.ac-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ac-legend i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid; }
.ac-legend .lg-you { background: var(--ac-lav-bg); border-color: var(--ac-lav-line); }
.ac-legend .lg-ai { border-color: rgba(255, 255, 255, 0.25); }
.ac-legend .lg-gate { border-color: rgba(255, 255, 255, 0.8); }
.ac-legend .lg-render { border-color: rgba(255, 255, 255, 0.5); border-style: dashed; }

/* ---------- 4. score-it-yourself ---------- */
.ac-scorer-head p { margin: 0 0 20px; font-size: 0.94em; color: var(--ac-dim); max-width: 640px; }
.ac-scorer-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.ac-rubs { display: grid; gap: 8px; }
.ac-rub {
    display: flex; align-items: flex-start; gap: 12px; text-align: left; width: 100%;
    background: var(--ac-card); border: 1px solid var(--ac-line); border-radius: 14px;
    padding: 12px 14px; color: var(--ac-ink); cursor: pointer; font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.ac-rub:hover { border-color: var(--ac-line-hi); }
.ac-rub:active { transform: scale(0.995); }
.ac-rub:focus-visible { outline: 2px solid var(--ac-lav); outline-offset: 2px; }
.ac-rub-box {
    position: relative; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3); transition: background 0.2s, border-color 0.2s;
}
.ac-rub-box::after {
    content: ""; position: absolute; left: 6.5px; top: 2.5px; width: 5px; height: 10px;
    border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.25s var(--ac-ease);
}
.ac-rub[aria-pressed="true"] { border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.05); }
.ac-rub[aria-pressed="true"] .ac-rub-box { background: #fff; border-color: #fff; }
.ac-rub[aria-pressed="true"] .ac-rub-box::after { transform: rotate(45deg) scale(1); }
.ac-rub-text b { display: block; font-size: 0.92em; font-weight: 600; }
.ac-rub-text span { display: block; margin-top: 2px; font-size: 0.82em; color: var(--ac-dim); line-height: 1.45; }

.ac-gauge-card { position: relative; text-align: center; background: var(--ac-dots), #0e0e11; border: 1px solid var(--ac-line); border-radius: 20px; padding: 20px 18px 16px; }
.ac-gauge { width: 100%; max-width: 300px; display: block; margin: 0 auto; overflow: visible; }
.ac-gseg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 16; transition: stroke 0.35s ease; }
.ac-gseg.on { stroke: rgba(255, 255, 255, 0.88); }
.ac-gticks text { fill: var(--ac-faint); font-size: 10px; text-anchor: middle; font-family: 'Inter', sans-serif; }
.ac-needle { transform-origin: 120px 120px; transform: rotate(-90deg); transition: transform 0.7s cubic-bezier(.3, 1.4, .5, 1); }
.ac-needle path { fill: var(--ac-lav-hi); }
.ac-needle circle { fill: #0b0b0c; stroke: var(--ac-lav-hi); stroke-width: 3; }
.ac-gauge-num { margin-top: -6px; line-height: 1; }
.ac-gauge-num b { font: 700 3.2em/1 'Inter', sans-serif; letter-spacing: -0.05em; color: #fff; font-variant-numeric: tabular-nums; }
.ac-gauge-num span { margin-left: 4px; color: var(--ac-faint); }
.ac-gauge-verdict { min-height: 2.8em; margin: 8px 0 4px; font-size: 0.9em; color: var(--ac-dim); }
.ac-mini { position: relative; height: 70px; margin: 6px 14px 4px; }
.ac-mini-track { position: absolute; left: 0; right: 0; top: 35px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.5)); }
.ac-mini-col { position: absolute; bottom: 40px; transform: translateX(-50%); display: flex; flex-direction: column-reverse; gap: 2px; }
.ac-mini-col .ac-disc--xs { width: 16px; height: 16px; font-size: 0.42em; }
.ac-mini-you {
    position: absolute; top: 44px; transform: translateX(-50%);
    font-size: 0.7em; font-weight: 700; color: #000; padding: 2px 8px; border-radius: 999px;
    background: #fff; transition: left 0.7s cubic-bezier(.3, 1.4, .5, 1);
}
.ac-mini-you::before { content: ""; position: absolute; left: 50%; top: -5px; margin-left: -4px; border: 4px solid transparent; border-bottom-color: #fff; border-top: 0; }
.ac-gauge-btns { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.ac-gauge-btns button, .ac-quiz-back {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; border-radius: 10px;
    padding: 7px 14px; font-size: 0.82em; cursor: pointer; font-family: 'Inter', sans-serif;
}
.ac-gauge-btns button:hover, .ac-quiz-back:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }

/* ---------- 5. quiz ---------- */
.ac-quiz-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; }
.ac-quiz-head .ac-kicker { flex-basis: 100%; }
.ac-quiz-head h3 { margin-bottom: 0; }
.ac-quiz-dots { display: flex; gap: 6px; padding-bottom: 8px; }
.ac-quiz-dots i { width: 24px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); transition: background 0.3s; }
.ac-quiz-dots i.on { background: #fff; }
.ac-quiz-stage { margin-top: 18px; }
.ac-quiz-stage.is-swap { animation: ac-pop 0.45s var(--ac-ease); }
.ac-quiz-q { margin: 0 0 12px; font-size: 1.05em; font-weight: 600; color: #fff; }
.ac-quiz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ac-opt {
    display: flex; flex-direction: column; gap: 4px; text-align: left;
    background: var(--ac-card); border: 1px solid var(--ac-line); border-radius: 18px;
    padding: 18px; color: #fff; cursor: pointer; font-family: 'Inter', sans-serif;
    transition: transform 0.3s var(--ac-ease), border-color 0.3s, background 0.3s;
    animation: ac-pop 0.45s var(--ac-ease) both; animation-delay: calc(var(--k) * 70ms);
}
.ac-opt b { font-size: 1em; font-weight: 600; }
.ac-opt span { font-size: 0.84em; color: var(--ac-dim); line-height: 1.45; }
.ac-opt:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.05); }
.ac-opt:focus-visible { outline: 2px solid var(--ac-lav); outline-offset: 2px; }
.ac-quiz-back { margin-top: 12px; }

.ac-result { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.ac-result-art { position: relative; display: flex; align-items: center; justify-content: center; height: 150px; }
.ac-result-ring { position: absolute; inset: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); animation: ac-ring 2.6s ease-out infinite; }
.ac-result-ring.r2 { animation-delay: 1.3s; }
@keyframes ac-ring { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.15); opacity: 0; } }
.ac-result-type { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84em; font-weight: 600; color: var(--ac-dim); }
.ac-result h4 { margin: 4px 0 6px; font-size: 1.6em; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.ac-result h4 span { font-weight: 400; color: var(--ac-dim); font-size: 0.66em; letter-spacing: 0; }
.ac-result-line { margin: 0 0 10px; color: #fff; font-size: 0.95em; }
.ac-result-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.82em; color: var(--ac-dim); }
.ac-result-best { margin: 10px 0 14px; font-size: 0.9em; color: var(--ac-dim); line-height: 1.55; }
.ac-result-best strong { color: #fff; }
.ac-result-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 6. per-agent strip under each review heading ---------- */
.ac-strip {
    display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px 22px;
    margin: -0.2em 0 1.2em; padding: 14px 16px; border-radius: 18px;
    border: 1px solid var(--ac-line); background: var(--ac-card);
}
.ac-strip-id { display: flex; align-items: center; gap: 12px; }
.ac-strip-arch { display: inline-flex; align-items: center; gap: 7px; font-size: 0.86em; font-weight: 600; color: #fff; }
.ac-strip-score { display: flex; flex-direction: column; gap: 6px; font-size: 0.78em; color: var(--ac-dim); }
.ac-strip-facts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ac-strip-facts span { font-size: 0.78em; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--ac-line); color: #fff; }
.ac-strip-facts em { font-style: normal; color: var(--ac-faint); margin-right: 6px; }
.ac-strip-facts b { font-weight: 600; }
.ac-strip-facts .no { color: var(--ac-dim); }

/* RizzGen is the only lavender row, like the "ours" column on /ai-director */
.ac-strip.is-ours { border-color: rgba(139, 124, 216, 0.4); background: rgba(139, 124, 216, 0.05); }
.ac-strip.is-ours .ac-strip-arch { color: var(--ac-lav-hi); }

/* ---------- 7. five questions as cards ---------- */
ol.ac-five { list-style: none; padding: 0; margin: 1.2em 0 2em; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; counter-reset: acq; }
ol.ac-five li {
    counter-increment: acq; position: relative; margin: 0; padding: 18px;
    border: 1px solid var(--ac-line); border-radius: 22px; font-size: 0.93em; line-height: 1.6;
    background: var(--ac-card);
    transition: transform 0.4s var(--ac-ease), border-color 0.4s;
}
ol.ac-five li:last-child { grid-column: 1 / -1; }
ol.ac-five li:hover { transform: translateY(-4px); border-color: var(--ac-line-hi); }
ol.ac-five li::after {
    content: "0" counter(acq); position: absolute; right: 18px; top: 14px;
    font: 700 1em/1 'Inter', sans-serif; color: var(--ac-faint); font-variant-numeric: tabular-nums;
}
.ac-five-ico {
    display: flex; width: 40px; height: 40px; padding: 10px; box-sizing: border-box; margin-bottom: 12px;
    border-radius: 12px; border: 1px solid var(--ac-line); background: rgba(255, 255, 255, 0.04); color: #fff;
}
.ac-five-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ac-js ol.ac-five li { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ac-ease), transform 0.6s var(--ac-ease), border-color 0.4s; }
.ac-js ol.ac-five.is-in li { opacity: 1; transform: none; }
.ac-js ol.ac-five.is-in li:hover { transform: translateY(-4px); }
ol.ac-five li:nth-child(2) { transition-delay: 0.08s; }
ol.ac-five li:nth-child(3) { transition-delay: 0.16s; }
ol.ac-five li:nth-child(4) { transition-delay: 0.24s; }
ol.ac-five li:nth-child(5) { transition-delay: 0.32s; }

/* ---------- 8. bottom line as a control ladder ---------- */
ul.ac-bottom { list-style: none; padding: 0; margin: 1.2em 0 2em; display: grid; gap: 8px; }
ul.ac-bottom li {
    position: relative; isolation: isolate; margin: 0; padding: 13px 70px 13px 18px; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--ac-line); background: rgba(255, 255, 255, 0.02); font-size: 0.93em; line-height: 1.55;
}
ul.ac-bottom li::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--s) / 8 * 100%);
    background: rgba(255, 255, 255, 0.045); border-right: 1px solid rgba(255, 255, 255, 0.3); z-index: -1;
    transform-origin: 0 50%; transition: transform 1.1s var(--ac-ease);
}
ul.ac-bottom li::after {
    content: attr(data-score) " / 8"; position: absolute; right: 16px; top: 14px;
    font-size: 0.8em; font-weight: 600; color: var(--ac-dim); font-variant-numeric: tabular-nums;
}
.ac-js ul.ac-bottom li::before { transform: scaleX(0); }
.ac-js ul.ac-bottom.is-in li::before { transform: scaleX(1); }
ul.ac-bottom li.is-top { border-color: rgba(139, 124, 216, 0.4); }
ul.ac-bottom li.is-top::before { background: rgba(139, 124, 216, 0.1); border-right-color: var(--ac-lav); }
ul.ac-bottom li.is-top::after { color: var(--ac-lav-hi); }

/* ---------- the post's own table, chart and compare, in the same palette ---------- */
.verified-badge { background: var(--ac-card) !important; border-color: var(--ac-line) !important; border-radius: 14px !important; }
.filter-chip { border-radius: 10px !important; }
.filter-chip:hover { border-color: rgba(255, 255, 255, 0.4) !important; }
.filter-chip.active { background: #fff !important; border-color: #fff !important; color: #000 !important; }
table.spec-table th:hover, table.spec-table th.sorted-asc .sort-arrow, table.spec-table th.sorted-desc .sort-arrow { color: #fff !important; }
table.spec-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03) !important; }
table.spec-table tr.rizz-row td { background: rgba(139, 124, 216, 0.06) !important; }
.score-pill { background: rgba(255, 255, 255, 0.07) !important; color: #fff !important; }
table.spec-table tr.rizz-row .score-pill { background: var(--ac-lav-bg) !important; color: var(--ac-lav-hi) !important; }
.chart-card { border-color: var(--ac-line) !important; border-radius: 22px !important; background: #0b0b0c; }
.aa-bar-track { background: rgba(255, 255, 255, 0.05) !important; height: 12px !important; border-radius: 3px !important; }
.aa-bar-fill { background: rgba(255, 255, 255, 0.55) !important; border-radius: 3px !important; }
.aa-bar-fill.rizz-fill { background: var(--ac-lav) !important; }
.spectrum { height: 2px !important; background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.55)) !important; }
.badge-new { background: rgba(255, 255, 255, 0.07) !important; color: rgba(255, 255, 255, 0.75) !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 600 !important; }
#agent-rizzgen .badge-new { background: var(--ac-lav-bg) !important; color: var(--ac-lav-hi) !important; }
.compare-card { border-color: var(--ac-line) !important; border-radius: 22px !important; background: #0b0b0c; }
.compare-picker select:focus { outline-color: var(--ac-lav) !important; }
.compare-result .cval.better { color: #fff !important; }
.compare-result .cval.better .ac-meter-num::after { content: "  \2191 more control"; color: var(--ac-lav-hi); font-weight: 600; }
.compare-share-btn { border-radius: 10px !important; }
.compare-share-btn:hover, .compare-share-btn.copied { border-color: rgba(255, 255, 255, 0.4) !important; color: #fff !important; }
.compare-result .cheader { display: flex; align-items: center; }
.compare-result .cval .ac-meter { vertical-align: middle; }
.blog-director-cta { border-radius: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
    .ac-panel { padding: 24px 16px; border-radius: 22px; }
    .ac-float--slate, .ac-float--film { display: none; }
    .ac-rail-wrap { padding: 0 18px; }
    .ac-rail-ends { margin: 8px -18px 0; font-size: 0.7em; }
    .ac-rail { --step: 50px; }
    .ac-token { width: 44px; }
    .ac-token .ac-disc { width: 38px; height: 38px; font-size: 0.72em; }
    .ac-token-name { display: none; }
    .ac-token[data-side="down"] { top: calc(var(--up) * var(--step) + 26px + (var(--row) - 1) * var(--step)); }
    .ac-facts { grid-template-columns: 1fr; }
    .ac-detail-score b { font-size: 1.9em; }
    .ac-tabs { grid-template-columns: 1fr; }
    .ac-flow { flex-direction: column; gap: 12px; margin-top: 22px; }
    .ac-flow-line {
        left: 27px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto;
        background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0 5px, transparent 5px 11px);
    }
    .ac-node { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; column-gap: 12px; padding-left: 4px; }
    .ac-node-label { margin-top: 0; }
    .ac-node-sub { margin: 0; flex-basis: 100%; padding-left: 58px; margin-top: -14px; }
    .ac-node-loop { margin-left: 58px; }
    .ac-arch-stats { grid-template-columns: 1fr; }
    .ac-scorer-grid { grid-template-columns: 1fr; }
    .ac-gauge-card { order: -1; }
    .ac-result { grid-template-columns: 1fr; text-align: center; }
    .ac-result-type, .ac-result-meter, .ac-result-btns { justify-content: center; }
    .ac-result-art { height: 120px; }
    .ac-strip { grid-template-columns: 1fr; }
    .ac-strip-facts { justify-content: flex-start; }
    ol.ac-five { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .compare-card .compare-result { grid-template-columns: 0.8fr minmax(0, 1fr) minmax(0, 1fr); }
    .compare-result .ac-meter--sm { gap: 3px; }
    .compare-result .ac-meter--sm i { width: 7px; }
    .compare-result .ac-meter-num { display: block; margin: 4px 0 0; }
    .compare-result .cval.better .ac-meter-num::after { content: " \2191"; }
    .compare-result .ac-disc--sm { width: 22px; height: 22px; font-size: 0.5em; margin-right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .ac-float, .ac-track-sweep, .ac-result-ring, .ac-chart .aa-bar-fill.rizz-fill::after, .ac-node-loop svg { animation: none !important; }
    .ac-reveal, .ac-token, .ac-js .ac-chart .aa-bar-fill, .ac-js ol.ac-five li, .ac-js ul.ac-bottom li::before,
    .ac-needle, .ac-mini-you, .ac-meter i { transition: none !important; }
    .ac-detail-in, .ac-arch-body.is-swap, .ac-quiz-stage.is-swap, .ac-opt { animation: none !important; }
}
