body {
    --mono: "Consolas", "Courier New", monospace;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%),
        linear-gradient(180deg, #101418 0%, #0b0f12 100%);
}

.renderer-page {
    display: grid;
    gap: var(--space-4);
    min-height: 100vh;
    padding: var(--space-4);
}

.renderer-focus,
.compare-board {
    display: grid;
    gap: var(--space-3);
}

.renderer-caption,
.compare-intro {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    align-items: start;
    padding: var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.renderer-eyebrow {
    margin-bottom: var(--space-2);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.renderer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.renderer-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--text-xs);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

.compare-intro {
    display: grid;
}

.compare-intro p {
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.68;
}

.compare-note {
    color: rgba(255, 255, 255, 0.62);
}

.scene,
.compare-scene {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scene {
    min-height: 920px;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.compare-card {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.compare-head {
    display: grid;
    gap: var(--space-2);
}

.compare-title {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    align-items: baseline;
}

.compare-title h3 {
    font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.compare-kicker {
    color: rgba(255, 255, 255, 0.54);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.compare-card .compare-note {
    font-size: var(--text-xs);
}

.compare-scene {
    min-height: 360px;
}

.scene[data-surface="door"],
.compare-scene[data-surface="door"] {
    background:
        linear-gradient(180deg, rgba(255, 247, 237, 0.08), transparent 28%),
        linear-gradient(180deg, #171312 0%, #0f0d0d 100%);
}

.scene[data-surface="door"]::before,
.compare-scene[data-surface="door"]::before,
.scene[data-surface="door"]::after,
.compare-scene[data-surface="door"]::after,
.scene[data-surface="wall"]::before,
.compare-scene[data-surface="wall"]::before,
.scene[data-surface="wall"]::after,
.compare-scene[data-surface="wall"]::after,
.scene[data-surface="projection"]::before,
.compare-scene[data-surface="projection"]::before,
.scene[data-surface="projection"]::after,
.compare-scene[data-surface="projection"]::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.scene[data-surface="door"]::before,
.compare-scene[data-surface="door"]::before {
    top: 4%;
    width: min(56%, 480px);
    height: 88%;
    border: 18px solid #534033;
    border-bottom-width: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.12));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.scene[data-surface="door"]::after,
.compare-scene[data-surface="door"]::after {
    right: 18%;
    top: 18%;
    width: 10px;
    height: 90px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 210, 160, 0.9), rgba(255, 255, 255, 0.15));
    box-shadow: 0 0 20px rgba(255, 186, 118, 0.35);
}

.scene[data-surface="wall"],
.compare-scene[data-surface="wall"] {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
        linear-gradient(180deg, #161515 0%, #101010 100%);
}

.scene[data-surface="wall"]::before,
.compare-scene[data-surface="wall"]::before {
    inset: 8% 10%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
        linear-gradient(180deg, #d3c7b9 0%, #c6baac 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    opacity: 0.12;
}

.scene[data-surface="wall"]::after,
.compare-scene[data-surface="wall"]::after {
    top: 14%;
    left: 14%;
    width: 140px;
    height: 26px;
    background: rgba(245, 194, 110, 0.16);
    transform: rotate(-12deg);
}

.scene[data-surface="projection"],
.compare-scene[data-surface="projection"] {
    background:
        radial-gradient(circle at 16% 14%, rgba(116, 159, 255, 0.18), transparent 22%),
        linear-gradient(180deg, #0d1016 0%, #090b10 100%);
}

.scene[data-surface="projection"]::before,
.compare-scene[data-surface="projection"]::before {
    top: -4%;
    left: 6%;
    width: 54%;
    height: 70%;
    background: linear-gradient(140deg, rgba(132, 175, 255, 0.2), transparent 62%);
    filter: blur(8px);
    transform: skewX(-14deg);
}

.scene[data-surface="projection"]::after,
.compare-scene[data-surface="projection"]::after {
    right: 12%;
    top: 8%;
    width: 120px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.sign-scale-shell {
    position: relative;
    width: var(--shell-render-width, 620px);
    height: var(--shell-render-height, 500px);
    transition: width var(--duration-normal) var(--ease-out), height var(--duration-normal) var(--ease-out);
}

.sign-shell {
    position: absolute;
    inset: 0 auto auto 0;
    width: var(--shell-width, 620px);
    height: var(--shell-height, 500px);
    transform: scale(var(--sign-scale, 1));
    transform-origin: top left;
    overflow: hidden;
    border-radius: var(--shell-radius, 24px);
    color: var(--ink, #1b1918);
    transition:
        transform 220ms var(--ease-out),
        box-shadow 220ms var(--ease-out),
        background 220ms var(--ease-out);
}

.sign-shell[data-mode="calm"] {
    --mode-accent: #5c7cff;
}

.sign-shell[data-mode="helpful"] {
    --mode-accent: #0b8c69;
}

.sign-shell[data-mode="creepy"] {
    --mode-accent: #bc4545;
}

.sign-shell[data-surface="door"] {
    --ink: #241d19;
    background: linear-gradient(180deg, #f8f1e6 0%, #eee2d0 100%);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sign-shell[data-surface="wall"] {
    --ink: #1f1b19;
    background: linear-gradient(180deg, #f4efe7 0%, #ebe2d6 100%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18), 0 4px 14px rgba(0, 0, 0, 0.08);
}

.sign-shell[data-surface="projection"] {
    --ink: #f6f8ff;
    background: linear-gradient(180deg, rgba(10, 14, 21, 0.96), rgba(11, 16, 24, 0.88));
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.36);
}

.sign-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.sign-shell[data-surface="projection"]::after {
    border-color: rgba(190, 215, 255, 0.14);
}

.sign-aura {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
        linear-gradient(90deg, transparent 0, transparent 84%, rgba(255, 255, 255, 0.035) 84%, rgba(255, 255, 255, 0.035) 100%);
    opacity: 0.12;
}

.sign-shell[data-surface="projection"] .sign-aura {
    background:
        repeating-linear-gradient(0deg, transparent 0, transparent 15px, rgba(190, 215, 255, 0.035) 15px, rgba(190, 215, 255, 0.035) 16px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%);
    opacity: 0.18;
}

.sign-top,
.sign-meter,
.sign-title,
.sign-body,
.signal-stack,
.queue-badge,
.annotation-card,
.footer-band {
    position: absolute;
    box-sizing: border-box;
}

.sign-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: start;
    column-gap: 14px;
}

.surface-id,
.sign-status {
    color: rgba(0, 0, 0, 0.54);
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.sign-shell[data-surface="projection"] .surface-id,
.sign-shell[data-surface="projection"] .sign-status {
    color: rgba(235, 244, 255, 0.58);
}

.surface-id {
    max-width: 12ch;
}

.sign-status {
    max-width: 13ch;
    text-align: right;
}

.sign-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid color-mix(in srgb, var(--mode-accent) 32%, rgba(0, 0, 0, 0.08));
    color: var(--mode-accent);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.sign-kicker-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
}

.sign-meter {
    display: grid;
    gap: 4px;
}

.meter-label {
    color: rgba(0, 0, 0, 0.54);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.sign-shell[data-surface="projection"] .meter-label {
    color: rgba(235, 244, 255, 0.58);
}

.meter-track {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.1);
}

.sign-shell[data-surface="projection"] .meter-track {
    background: rgba(255, 255, 255, 0.08);
}

.meter-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, color-mix(in srgb, var(--mode-accent) 42%, white 58%), var(--mode-accent));
    transition: width 180ms var(--ease-out);
}

.sign-title-line,
.sign-body-line {
    position: absolute;
    white-space: pre;
}

.sign-title-line {
    letter-spacing: -0.035em;
}

.sign-body-line {
    color: rgba(31, 27, 24, 0.86);
}

.sign-shell[data-surface="door"] .sign-title-line {
    letter-spacing: -0.042em;
}

.sign-shell[data-surface="projection"] .sign-title-line {
    letter-spacing: -0.048em;
}

.sign-shell[data-surface="projection"] .sign-body-line {
    color: rgba(240, 246, 255, 0.85);
}

.signal-stack {
    display: grid;
    gap: 8px;
}

.signal-chip {
    display: grid;
    gap: 3px;
    padding: 8px 0 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    background: none;
}

.sign-shell[data-surface="projection"] .signal-chip {
    border-top-color: rgba(180, 210, 255, 0.18);
}

.signal-chip strong {
    display: block;
    color: rgba(0, 0, 0, 0.46);
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.sign-shell[data-surface="projection"] .signal-chip strong {
    color: rgba(235, 244, 255, 0.58);
}

.signal-chip div {
    color: rgba(31, 27, 24, 0.76);
    font-size: 12px;
    line-height: 1.35;
}

.sign-shell[data-surface="projection"] .signal-chip div {
    color: rgba(240, 246, 255, 0.76);
}

.signal-chip.warn {
    border-top-color: rgba(192, 134, 43, 0.44);
}

.signal-chip.danger {
    border-top-color: rgba(190, 74, 74, 0.42);
}

.signal-chip.cool {
    border-top-color: color-mix(in srgb, var(--mode-accent) 28%, rgba(0, 0, 0, 0.1));
}

.sign-shell[data-surface="projection"] .signal-chip.warn {
    border-top-color: rgba(255, 196, 124, 0.34);
}

.sign-shell[data-surface="projection"] .signal-chip.danger {
    border-top-color: rgba(255, 128, 128, 0.34);
}

.sign-shell[data-surface="projection"] .signal-chip.cool {
    border-top-color: rgba(144, 186, 255, 0.26);
}

.queue-badge,
.annotation-card {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.18);
}

.sign-shell[data-surface="projection"] .queue-badge,
.sign-shell[data-surface="projection"] .annotation-card {
    border-color: rgba(180, 210, 255, 0.16);
    background: none;
}

.queue-badge {
    align-content: center;
    padding: 14px 14px 16px;
}

.queue-label,
.annotation-label {
    color: rgba(0, 0, 0, 0.48);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.sign-shell[data-surface="projection"] .queue-label,
.sign-shell[data-surface="projection"] .annotation-label {
    color: rgba(235, 244, 255, 0.58);
}

.queue-value {
    font-size: 44px;
    line-height: 0.9;
    font-weight: 320;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums lining-nums;
}

.queue-caption,
.annotation-text {
    color: rgba(0, 0, 0, 0.74);
    font-size: 12.5px;
    line-height: 1.42;
}

.sign-shell[data-surface="projection"] .queue-caption,
.sign-shell[data-surface="projection"] .annotation-text {
    color: rgba(240, 246, 255, 0.8);
}

.annotation-card {
    padding: 14px 14px 16px;
}

.footer-band {
    display: grid;
    gap: 8px;
}

.footer-rule {
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
}

.sign-shell[data-surface="projection"] .footer-rule {
    background: rgba(180, 210, 255, 0.16);
}

.footer-copy {
    color: rgba(0, 0, 0, 0.68);
    font-size: 12.5px;
    line-height: 1.45;
}

.sign-shell[data-surface="projection"] .footer-copy {
    color: rgba(240, 246, 255, 0.72);
}

.footer-tags {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: rgba(0, 0, 0, 0.48);
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.sign-shell[data-surface="projection"] .footer-tags {
    color: rgba(235, 244, 255, 0.54);
}

.sign-shell[data-surface="door"] .sign-top {
    left: 28px;
    right: 28px;
    top: 26px;
}

.sign-shell[data-surface="door"] .sign-meter {
    left: 28px;
    top: 74px;
    width: 160px;
}

.sign-shell[data-surface="door"] .signal-stack {
    left: 28px;
    right: 28px;
    bottom: 100px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sign-shell[data-surface="door"] .signal-chip {
    min-height: 54px;
}

.sign-shell[data-surface="door"] .queue-badge {
    border-radius: 12px;
    transform: none;
    background: rgba(255, 255, 255, 0.24);
}

.sign-shell[data-surface="door"] .annotation-card {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.sign-shell[data-surface="door"] .footer-band {
    left: 28px;
    right: 28px;
    bottom: 30px;
}

.sign-shell[data-surface="wall"] .sign-top {
    left: 30px;
    right: 30px;
    top: 24px;
}

.sign-shell[data-surface="wall"] .sign-meter {
    left: 30px;
    top: 72px;
    width: 220px;
}

.sign-shell[data-surface="wall"] .signal-stack {
    width: 160px;
    padding-left: 12px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.sign-shell[data-surface="wall"] .signal-chip {
    min-height: 0;
}

.sign-shell[data-surface="wall"] .queue-badge,
.sign-shell[data-surface="wall"] .annotation-card {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
}

.sign-shell[data-surface="wall"] .footer-band {
    left: 30px;
    right: 30px;
    bottom: 22px;
}

.sign-shell[data-surface="projection"] .sign-top {
    left: 42px;
    right: 42px;
    top: 28px;
}

.sign-shell[data-surface="projection"] .sign-meter {
    left: 42px;
    top: 72px;
    width: 250px;
}

.sign-shell[data-surface="projection"] .queue-badge,
.sign-shell[data-surface="projection"] .annotation-card {
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
}

.sign-shell[data-surface="projection"] .sign-kicker {
    border-top-color: rgba(180, 210, 255, 0.18);
}

.sign-shell[data-surface="projection"] .signal-stack {
    gap: 6px;
}

.sign-shell[data-surface="projection"] .queue-value {
    font-size: 60px;
}

.sign-shell[data-surface="projection"] .footer-band {
    left: 42px;
    right: 42px;
    bottom: 24px;
}

@media (max-width: 1100px) {
    .compare-grid {
        grid-template-columns: 1fr;
    }

    .renderer-caption {
        display: grid;
    }
}

@media (max-width: 720px) {
    .renderer-page {
        padding: var(--space-3);
    }

    .scene {
        min-height: 760px;
        padding: var(--space-3);
    }
}
