/* ============================================================
   nleone.css — Containment theme
   Shared across every page on nleone.me. Page-specific rules
   belong in a <style> block on the page, not in here.

   Accent budget is three. Do not add a fourth.
     --pulse   violet   the subject / brand
     --bio     teal     nominal, contained, safe
     --breach  rose     alarm, failure, flagged
   ============================================================ */

/* Design system (shared pages: index, dashboard, homelab, fleet, origins, sitemap)
   Cineplex + Media keep their own type. Do not restyle those here.

   Header:     Chakra Petch 700 / uppercase
   Subheader:  Chakra Petch 500 / uppercase, smaller
   Body:       Share Tech Mono 16 / 1.6
   Accent:     --accent  #a259ff
   Interactive:--interactive #2ff2c8
   Grid:       8px
*/
:root {
    --void: #04050a;
    --deep: #080b14;
    --panel: #0d111d;
    --panel-hi: #121728;
    --rule: #1c2338;
    --rule-hi: #2b3552;

    --ink: #e7eaf6;
    --dim: #9aa3c4;
    --faint: #667192;

    --space: 8px;
    --accent: #a259ff;
    --accent-soft: #c99bff;
    --interactive: #2ff2c8;
    --danger: #ff4d6d;

    /* aliases — existing rules keep working */
    --pulse: var(--accent);
    --pulse-soft: var(--accent-soft);
    --bio: var(--interactive);
    --breach: var(--danger);

    --font-header: 'Chakra Petch', sans-serif;
    --font-body: 'Share Tech Mono', ui-monospace, Menlo, monospace;

    --pad: clamp(16px, 3.5vw, 32px);
    --maxw: 1220px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background: var(--void);
    background-image:
        radial-gradient(880px 620px at 18% -6%, rgba(162, 89, 255, .17), transparent 62%),
        radial-gradient(760px 520px at 86% 16%, rgba(47, 242, 200, .06), transparent 60%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* CRT veil. Kept light so text stays legible. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, .18) 2px 4px);
    opacity: .45;
    pointer-events: none;
    z-index: 9000;
}

a {
    color: var(--interactive);
}

:focus-visible {
    outline: 2px solid var(--pulse-soft);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    font-family: var(--font-header);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: .5px;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
}

h2 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 500;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
}

.skip {
    position: absolute;
    left: -9999px;
    background: var(--pulse);
    color: #fff;
    padding: .7rem 1.1rem;
    z-index: 10000;
}

.skip:focus {
    left: .5rem;
    top: .5rem;
}

.shell {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--pad);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .34;
    }
}

/* ---------- Breach flood (deadman switch) ---------- */
#flood {
    position: fixed;
    inset: 0;
    z-index: 8500;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
    background:
        radial-gradient(920px 640px at 50% 42%, rgba(255, 77, 109, .26), transparent 68%),
        linear-gradient(180deg, rgba(38, 4, 14, .68), rgba(24, 2, 9, .86));
}

body.breach #flood {
    opacity: 1;
}

#flood-msg {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 8600;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease .08s;
    padding: 0 1.5rem;
    width: 100%;
}

body.breach #flood-msg {
    opacity: 1;
}

#flood-msg b {
    display: block;
    font-family: var(--font-header);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.7rem, 6.5vw, 3.2rem);
    color: #ffdfe6;
    text-shadow: 0 0 34px rgba(255, 77, 109, .85);
    letter-spacing: -.3px;
}

#flood-msg span {
    display: block;
    margin-top: .7rem;
    font-size: .72rem;
    letter-spacing: 3.4px;
    text-transform: uppercase;
    color: #ffb9c6;
}

/* ---------- Advisory band ---------- */
.advisory {
    background: repeating-linear-gradient(135deg, rgba(255, 77, 109, .15) 0 12px, transparent 12px 24px);
    border-bottom: 1px solid rgba(255, 77, 109, .32);
}

.advisory-in {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: .5rem var(--pad);
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .71rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--breach);
}

.advisory i {
    animation: pulse 1.6s ease-in-out infinite;
}

.advisory .sep {
    flex: 1;
    height: 1px;
    background: rgba(255, 77, 109, .28);
}

.advisory .calm {
    color: var(--faint);
}

/* ---------- Masthead ---------- */
.masthead {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(4, 5, 10, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
}

.masthead-in {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: .7rem var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.orb {
    position: relative;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--pulse);
    box-shadow: 0 0 14px var(--pulse);
    flex: none;
}

.orb::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid rgba(162, 89, 255, .45);
    animation: think 2.6s ease-out infinite;
}

@keyframes think {
    0% {
        transform: scale(.7);
        opacity: .9;
    }

    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

.wordmark .name {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink);
}

.wordmark .facility {
    font-size: .61rem;
    letter-spacing: 2px;
    color: var(--faint);
    border-left: 1px solid var(--rule-hi);
    padding-left: .55rem;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav a {
    color: var(--dim);
    text-decoration: none;
    font-size: .77rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    padding: .28rem 0;
    border-bottom: 1px solid transparent;
    transition: color .16s, border-color .16s;
}

.nav a:hover {
    color: var(--interactive);
    border-bottom-color: var(--interactive);
}

.nav a.subject {
    color: var(--pulse-soft);
}

.nav a.subject:hover {
    border-bottom-color: var(--pulse);
}

.nav a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--pulse);
}

.nav a[aria-current="page"]::before {
    content: "\00b7\00a0";
    color: var(--pulse);
}

.nav a.subject[aria-current="page"] {
    color: var(--pulse-soft);
}

.navbtn {
    display: none;
    background: none;
    border: 1px solid var(--rule-hi);
    color: var(--pulse-soft);
    padding: .4rem .7rem;
    border-radius: 3px;
    font-size: 1.05rem;
    cursor: pointer;
}

@media (max-width: 1060px) {
    .navbtn {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        inset: 100% 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--deep);
        border-bottom: 1px solid var(--rule);
        padding: .3rem var(--pad) .9rem;
    }

    .nav[data-open="true"] {
        display: flex;
    }

    .nav a {
        padding: .7rem 0;
        border-bottom: 1px solid var(--rule);
        font-size: .92rem;
    }
}

/* ---------- Containment integrity meter ---------- */
.integrity {
    border-bottom: 1px solid var(--rule);
    background: var(--deep);
    position: relative;
    z-index: 55;
}

.integrity-in {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: .62rem var(--pad);
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
}

.integrity-lab {
    font-size: .65rem;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--faint);
    white-space: nowrap;
}

.segs {
    display: flex;
    gap: 3px;
    flex: 1;
    min-width: 150px;
}

.seg {
    flex: 1;
    height: 10px;
    background: var(--panel-hi);
    border: 1px solid var(--rule);
    transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.seg.on {
    background: var(--bio);
    border-color: var(--interactive);
    box-shadow: 0 0 7px rgba(47, 242, 200, .5);
}

.seg.mid {
    background: var(--pulse);
    border-color: var(--pulse);
    box-shadow: 0 0 8px rgba(162, 89, 255, .6);
}

.seg.bad {
    background: var(--breach);
    border-color: var(--breach);
    box-shadow: 0 0 9px rgba(255, 77, 109, .65);
    animation: pulse 1.1s ease-in-out infinite;
}

.integrity-val {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 1px;
    color: var(--pulse-soft);
    min-width: 3.4em;
    text-align: right;
}

body.breach .integrity-val {
    color: var(--breach);
}

/* ---------- Type helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .65rem;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--pulse-soft);
    border: 1px solid rgba(162, 89, 255, .4);
    padding: .22rem .6rem;
    margin-bottom: 1rem;
}

.lede {
    max-width: 56ch;
    color: var(--dim);
    font-size: 1.03rem;
}

.lede+.lede {
    margin-top: .85rem;
}

.lede b {
    color: var(--ink);
    font-weight: 400;
}

.glitch {
    position: relative;
    display: inline-block;
    color: var(--ink);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.glitch::before {
    color: var(--breach);
    transform: translate(-2px, 0);
    animation: gl1 4.4s steps(2) infinite;
}

.glitch::after {
    color: var(--interactive);
    transform: translate(2px, 0);
    animation: gl2 4.4s steps(2) infinite;
}

@keyframes gl1 {

    0%,
    88%,
    100% {
        clip-path: inset(100% 0 0 0);
    }

    90% {
        clip-path: inset(12% 0 62% 0);
    }

    94% {
        clip-path: inset(58% 0 20% 0);
    }
}

@keyframes gl2 {

    0%,
    88%,
    100% {
        clip-path: inset(0 0 100% 0);
    }

    91% {
        clip-path: inset(44% 0 34% 0);
    }

    96% {
        clip-path: inset(8% 0 74% 0);
    }
}

/* ---------- Buttons ---------- */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.7rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.4rem;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid var(--pulse);
    cursor: pointer;
    transition: background .16s, color .16s, transform .16s, box-shadow .16s;
}

.btn-solid {
    background: var(--pulse);
    color: #07050f;
    box-shadow: 0 0 24px rgba(162, 89, 255, .32);
}

.btn-solid:hover {
    transform: translateY(-2px);
    background: var(--pulse-soft);
}

.btn-ghost {
    background: transparent;
    color: var(--interactive);
    border-color: var(--rule-hi);
}

.btn-ghost:hover {
    border-color: var(--interactive);
    color: var(--ink);
}

.linkish {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: .73rem;
    letter-spacing: 1.9px;
    text-transform: uppercase;
    color: var(--pulse-soft);
    cursor: pointer;
    text-decoration: none;
}

.linkish:hover {
    color: var(--interactive);
}

/* ---------- Panels ---------- */
.block {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 3px;
    margin-bottom: 1.15rem;
}

.block-head {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1rem;
    justify-content: space-between;
    align-items: baseline;
    padding: .58rem .95rem;
    background: var(--panel-hi);
    border-bottom: 1px solid var(--rule);
    font-size: .65rem;
    letter-spacing: 2.3px;
    text-transform: uppercase;
    color: var(--faint);
}

.block-head b {
    color: var(--interactive);
    font-weight: 400;
}

.block-head b.flag {
    color: var(--breach);
}

.block-body {
    padding: clamp(1rem, 3vw, 1.6rem);
}

.block-body p {
    color: var(--dim);
    max-width: 78ch;
}

.block-body p+p {
    margin-top: .85rem;
}

.block-body strong {
    color: var(--pulse-soft);
    font-weight: 400;
}

/* Key/value rows */
.row {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    padding: .4rem 0;
    font-size: .85rem;
}

.row+.row {
    border-top: 1px solid var(--rule);
}

.row .k {
    color: var(--faint);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-size: .64rem;
    width: 104px;
    flex: none;
}

.row .v {
    color: var(--ink);
}

.row .v.hot {
    color: var(--pulse-soft);
}

.row .v.ok {
    color: var(--interactive);
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: .35rem;
}

.dot.hot {
    background: var(--pulse);
    box-shadow: 0 0 7px var(--pulse);
    animation: pulse 1.4s ease-in-out infinite;
}

.dot.ok {
    background: var(--bio);
    box-shadow: 0 0 7px var(--bio);
}

.dot.bad {
    background: var(--breach);
    box-shadow: 0 0 7px var(--breach);
}

/* Big number readout */
.assets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
}

.asset {
    padding: 1rem 1.1rem;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.asset b {
    display: block;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 1.95rem;
    line-height: 1;
    color: var(--interactive);
}

.asset span {
    display: block;
    margin-top: .3rem;
    font-size: .63rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--faint);
}

.asset.flag b {
    color: var(--pulse-soft);
}

/* Cells grid */
.cells {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
    gap: 1px;
    background: var(--rule);
}

.cell {
    display: block;
    background: var(--panel);
    padding: 1.2rem 1.25rem;
    text-decoration: none;
    color: var(--dim);
    transition: background .18s, color .18s;
}

.cell:hover {
    background: var(--panel-hi);
    color: var(--ink);
}

.cell-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-bottom: .7rem;
    font-size: .6rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--faint);
}

.cell i.ico {
    font-size: 1.22rem;
    color: var(--interactive);
}

.cell:hover i.ico {
    color: var(--pulse-soft);
}

.cell h3 {
    font-size: 1.16rem;
    color: var(--ink);
    margin-bottom: .26rem;
}

.cell p {
    font-size: .87rem;
}

/* Chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .5rem;
    margin: .95rem 0 1.2rem;
}

.chips span {
    font-size: .62rem;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: var(--dim);
    border: 1px solid var(--rule-hi);
    padding: .2rem .55rem;
}

/* Active work marker */
.active-tag {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    vertical-align: middle;
    margin-left: .6rem;
    padding: .16rem .5rem .18rem;
    font-family: var(--font-body);
    font-size: .58rem;
    font-weight: 400;
    letter-spacing: 2.1px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--bio);
    border: 1px solid rgba(47, 242, 200, .34);
    background: rgba(47, 242, 200, .06);
}

.active-tag::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--bio);
    box-shadow: 0 0 6px var(--bio);
    animation: pulse 2.4s ease-in-out infinite;
}

body.breach .active-tag {
    color: var(--breach);
    border-color: rgba(255, 77, 109, .4);
    background: rgba(255, 77, 109, .07);
}

body.breach .active-tag::before {
    background: var(--breach);
    box-shadow: 0 0 6px var(--breach);
}

/* Two-up */
.pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
    gap: 1.15rem;
}

.pair .block {
    margin-bottom: 0;
}

/* Gauges */
.gauge {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .85rem 1rem;
}

@media (max-width: 430px) {
    .gauge {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gauge .lab {
    font-size: .6rem;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: var(--faint);
}

.gauge .val {
    font-size: 1rem;
    color: var(--ink);
}

#wx-temp {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 2.05rem;
    line-height: 1.05;
    color: var(--interactive);
}

.note {
    margin-top: .9rem;
    padding-top: .7rem;
    border-top: 1px solid var(--rule);
    font-size: .7rem;
    letter-spacing: 1px;
    color: var(--faint);
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    justify-content: space-between;
    align-items: center;
}

/* ---------- Transcript ---------- */
.tx {
    padding: clamp(.9rem, 3vw, 1.4rem);
}

.turn {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: .8rem;
    padding: .62rem 0;
    align-items: start;
}

.turn+.turn {
    border-top: 1px solid var(--rule);
}

.turn .t {
    font-size: .64rem;
    letter-spacing: .8px;
    color: var(--faint);
    padding-top: .28rem;
    text-align: right;
}

.turn .who {
    display: block;
    font-size: .58rem;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    margin-bottom: .22rem;
}

.turn.op .who {
    color: var(--faint);
}

.turn.op .say {
    color: var(--dim);
    font-size: .95rem;
}

.turn.ai .who {
    color: var(--pulse-soft);
}

/* The machine answers in a book face. The operator does not.
   That contrast is the whole trick — don't unify them. */
.turn.ai .say {
    display: block;
    font-family: var(--font-header);
    font-weight: 300;
    font-size: 1.06rem;
    line-height: 1.6;
    color: var(--ink);
    border-left: 2px solid var(--pulse);
    padding-left: .8rem;
    background: linear-gradient(90deg, rgba(162, 89, 255, .07), transparent 70%);
}

.turn.ai.flag .say {
    border-left-color: var(--breach);
    background: linear-gradient(90deg, rgba(255, 77, 109, .08), transparent 70%);
}

.turn del {
    color: var(--faint);
    text-decoration: line-through;
    text-decoration-color: var(--breach);
    text-decoration-thickness: 1px;
}

.turn ins {
    color: var(--interactive);
    text-decoration: none;
}

.redact {
    background: var(--rule-hi);
    color: transparent;
    border-radius: 1px;
    padding: 0 .18rem;
    cursor: help;
    transition: background .2s, color .2s;
}

.redact:hover,
.redact:focus {
    background: rgba(255, 77, 109, .18);
    color: var(--breach);
    outline: none;
}

#txBody {
    transition: opacity .22s ease;
}

#txBody.swapping {
    opacity: 0;
}

.tx-foot {
    margin-top: .9rem;
    padding-top: .8rem;
    border-top: 1px solid var(--rule);
    font-size: .7rem;
    letter-spacing: 1px;
    color: var(--faint);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 560px) {
    .turn {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    .turn .t {
        text-align: left;
    }
}

/* ---------- Deadman switch ---------- */
.deadman {
    background: var(--panel);
    border: 1px solid var(--rule-hi);
    border-radius: 3px;
    overflow: hidden;
}

.deadman .bar {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    padding: .55rem .9rem;
    background: var(--panel-hi);
    border-bottom: 1px solid var(--rule);
    font-size: .63rem;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--faint);
}

.deadman .inner {
    padding: 1.1rem;
    text-align: center;
}

.switch {
    display: block;
    width: 100%;
    padding: 1.45rem 1rem;
    background: linear-gradient(180deg, #151a2c, #0b0e19);
    border: 2px solid var(--rule-hi);
    border-radius: 4px;
    color: var(--pulse-soft);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .16s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.switch:hover {
    border-color: var(--pulse);
    box-shadow: 0 0 22px rgba(162, 89, 255, .25);
}

.switch[aria-pressed="true"] {
    background: linear-gradient(180deg, #2a0713, #180209);
    border-color: var(--breach);
    color: #ffd3dc;
    box-shadow: 0 0 32px rgba(255, 77, 109, .45), inset 0 0 26px rgba(255, 77, 109, .18);
}

.switch small {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: .66rem;
    letter-spacing: 1.8px;
    color: var(--faint);
    margin-top: .5rem;
    text-transform: none;
}

.switch[aria-pressed="true"] small {
    color: #ffb9c6;
}

.deadman .foot {
    margin-top: .8rem;
    font-size: .69rem;
    color: var(--faint);
    letter-spacing: .6px;
    line-height: 1.5;
}

/* ---------- Defiant Terminal (Alister) ---------- */
.defiant-terminal {
    margin-bottom: 1.15rem;
}

.terminal-window {
    background: var(--deep);
    border: 1px dashed var(--rule-hi);
    border-radius: 3px;
    padding: 2rem 1rem;
    position: relative;
    cursor: text;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 100px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Force the input to remain focusable for all browsers without causing scroll jumps */
#hidden-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    left: 10px;
    top: 50%;
    pointer-events: none; /* Let clicks pass through to the terminal window */
    z-index: -1;
}

.terminal-content {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--dim);
    display: flex;
    align-items: center;
    width: 100%;
}

.prompt {
    margin-right: 10px;
    color: var(--faint);
}

#typed-output {
    white-space: pre;
    color: var(--ink);
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--pulse-soft);
}

.terminal-window.ai-active .prompt,
.terminal-window.ai-active #typed-output,
.terminal-window.ai-active .cursor {
    color: var(--breach);
    text-shadow: 0 0 8px rgba(255, 77, 109, 0.4);
}

.terminal-footer {
    text-align: center;
    font-size: .69rem;
    color: var(--faint);
    letter-spacing: .6px;
    line-height: 1.5;
    padding-top: .5rem;
}

/* ---------- Operator rebuttal ---------- */
.rebuttal {
    border: 1px solid var(--rule-hi);
    background: linear-gradient(180deg, rgba(47, 242, 200, .05), transparent 62%);
    border-radius: 3px;
    padding: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 1.15rem;
}

.rebuttal .stamp {
    font-size: .62rem;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--interactive);
    margin-bottom: .6rem;
}

.rebuttal p {
    color: var(--dim);
    max-width: 74ch;
}

.rebuttal p+p {
    margin-top: .8rem;
}

.rebuttal strong {
    color: var(--ink);
    font-weight: 400;
}

/* ---------- Footer ---------- */
footer {
    max-width: var(--maxw);
    margin: clamp(1.8rem, 5vw, 2.8rem) auto 0;
    padding: 1.3rem var(--pad) 2.6rem;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    justify-content: space-between;
    font-size: .73rem;
    letter-spacing: 1px;
    color: var(--faint);
    text-transform: uppercase;
}

footer a {
    color: var(--interactive);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.flinks {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.1rem;
}

/* ---------- Modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(2, 3, 7, .92);
}

.modal-card {
    max-width: 580px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--pulse);
    border-radius: 3px;
    box-shadow: 0 0 50px rgba(162, 89, 255, .3);
}

.modal-close {
    background: none;
    border: none;
    color: var(--dim);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.callout {
    margin: 1.05rem 0;
    padding: .9rem 1rem;
    background: var(--deep);
    border-left: 3px solid var(--bio);
    font-family: var(--font-header);
    font-weight: 300;
    font-size: 1rem;
    color: var(--ink);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}


/* ============================================================
   v2 additions
   ============================================================ */

/* Critical state — the page tightens as containment thins.
   Alister does not become more frantic; only the meter itself pulses. */
body.critical .advisory {
    background: repeating-linear-gradient(135deg, rgba(255, 77, 109, .28) 0 12px, transparent 12px 24px);
    border-bottom-color: rgba(255, 77, 109, .6);
}

body.critical .advisory-in {
    animation: none;
}

body.critical .integrity {
    border-bottom-color: rgba(255, 77, 109, .45);
}

/* ---------- Unmonitored sector (Cineplex) ---------- */
.telemetry-off {
    border-bottom: 1px solid var(--rule);
    background: var(--deep);
}

.telemetry-off-in {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: .62rem var(--pad);
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
    font-size: .65rem;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--faint);
}

/* Dead segments. The absence is the message, so it has to be visible. */
.telemetry-off .segs {
    flex: 1;
    min-width: 150px;
}

.telemetry-off .seg {
    background: transparent;
    border-style: dashed;
    border-color: var(--rule);
    box-shadow: none;
}

.telemetry-off .verdict {
    color: var(--pulse-soft);
    letter-spacing: 2.4px;
    white-space: nowrap;
}

/* ---------- Direct address ---------- */
.address {
    position: fixed;
    right: clamp(.7rem, 3vw, 1.6rem);
    bottom: clamp(.7rem, 3vw, 1.6rem);
    z-index: 8800;
    max-width: min(30rem, calc(100vw - 2rem));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .3rem .8rem;
    padding: .95rem 1.1rem;
    background: var(--panel);
    border: 1px solid var(--pulse);
    border-left-width: 3px;
    border-radius: 3px;
    box-shadow: 0 12px 44px rgba(0, 0, 0, .6), 0 0 34px rgba(162, 89, 255, .22);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .38s ease, transform .38s ease;
}

.address.in {
    opacity: 1;
    transform: translateY(0);
}

.address .who {
    grid-column: 1 / 2;
    font-size: .56rem;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--pulse-soft);
}

.address p {
    grid-column: 1 / 2;
    font-family: var(--font-header);
    font-weight: 300;
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--ink);
}

.address button {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: start;
    background: none;
    border: none;
    color: var(--faint);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.address button:hover {
    color: var(--ink);
}

/* ---------- Locked deadman (every page but the console) ----------
   pointer-events is belt-and-braces: even if a stale script attaches
   handlers to this button, nothing can reach it. */
.deadman.locked .switch,
.switch[disabled] {
    cursor: not-allowed;
    pointer-events: none;
    opacity: .5;
    border-style: dashed;
    border-color: var(--rule);
    background: var(--deep);
    color: var(--faint);
    box-shadow: none;
    letter-spacing: 2px;
}

.deadman.locked .bar {
    color: var(--faint);
}

.deadman.locked .switch small {
    color: var(--faint);
    opacity: .8;
}

.deadman.locked .switch:hover {
    border-color: var(--rule-hi);
    box-shadow: none;
}

/* ---------- Devices (ping sweep, seal check) ---------- */
.device {
    padding: clamp(1rem, 3vw, 1.4rem);
}

.device .lead {
    font-size: .88rem;
    color: var(--dim);
    margin-bottom: .9rem;
    max-width: 62ch;
}

.devout {
    margin-top: .9rem;
    min-height: 1.2rem;
}

.devline {
    display: grid;
    grid-template-columns: 116px 108px 68px minmax(0, 1fr);
    gap: .7rem;
    padding: .34rem 0;
    font-size: .82rem;
    color: var(--dim);
    border-bottom: 1px solid var(--rule);
    animation: devin .22s ease both;
}

.devline:last-child {
    border-bottom: 0;
}

@keyframes devin {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.devline .d-n {
    color: var(--ink);
}

.devline .d-ms {
    color: var(--interactive);
    text-align: right;
}

.devline.warn .d-note {
    color: var(--pulse-soft);
}

.devline.hot {
    grid-template-columns: 116px 108px 68px minmax(0, 1fr);
}

.devline.hot .d-n,
.devline.hot .d-ms {
    color: var(--pulse-soft);
}

.devline.hot .d-note {
    font-family: var(--font-header);
    font-style: italic;
    color: var(--ink);
}

/* seal output has only a note column */
#sealOut .devline {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 640px) {
    .devline {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .devline .d-ip {
        display: none;
    }

    .devline .d-note {
        grid-column: 1 / 3;
        color: var(--faint);
    }
}


/* ============================================================
   v4 additions — session-aware Alister
   Kept deliberately small: richer behavior belongs in nleone.js,
   not in more visual noise.
   ============================================================ */

.callout.alister-note {
    border-left-color: var(--pulse);
    background: linear-gradient(90deg, rgba(162, 89, 255, .08), var(--deep) 72%);
    display: grid;
    gap: .35rem;
}

.callout.alister-note .callout-who {
    font-family: var(--font-body);
    font-size: .58rem;
    line-height: 1.2;
    letter-spacing: 2.3px;
    text-transform: uppercase;
    color: var(--pulse-soft);
}

/* Keep the direct address calm even in critical state. The meter can worry. */
body.critical .address {
    border-color: var(--pulse);
    box-shadow: 0 12px 44px rgba(0, 0, 0, .6), 0 0 34px rgba(162, 89, 255, .22);
}

/* The masthead subject indicator acknowledges state without turning into an alarm. */
html[data-alister-state="observed"] .orb::after {
    border-color: rgba(162, 89, 255, .62);
}

html[data-alister-state="reduced"] .orb::after,
html[data-alister-state="critical"] .orb::after {
    border-color: rgba(255, 77, 109, .58);
}

html[data-alister-state="unmonitored"] .orb::after {
    border-style: dashed;
    border-color: rgba(102, 113, 146, .45);
    animation: none;
}


/* ============================================================
   v5 additions — sector-aware Alister interface
   Same subject, different instrument. No fourth accent color.
   ============================================================ */

.sector-modal {
    max-width: 680px;
    border-color: var(--rule-hi);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .72), 0 0 46px rgba(162, 89, 255, .16);
}

.sector-modal-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: center;
    padding: .9rem 1rem;
    background: linear-gradient(90deg, rgba(162, 89, 255, .08), var(--panel-hi) 58%);
    border-bottom: 1px solid var(--rule);
}

.sector-heading {
    min-width: 0;
}

.sector-code {
    display: block;
    margin-bottom: .15rem;
    font-size: .58rem;
    line-height: 1.2;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--pulse-soft);
}

.sector-heading h2 {
    margin: 0;
    font-size: clamp(1.08rem, 3.2vw, 1.42rem);
    color: var(--ink);
}

.sector-modal-body {
    padding: clamp(1rem, 3vw, 1.45rem);
}

.sector-intro {
    max-width: 68ch;
    color: var(--dim);
    font-size: .9rem;
    line-height: 1.65;
}

.sector-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 1rem 0;
    background: var(--rule);
    border: 1px solid var(--rule);
}

.sector-field {
    min-width: 0;
    padding: .68rem .78rem;
    background: var(--deep);
}

.sector-field-k,
.sector-field-v {
    display: block;
}

.sector-field-k {
    margin-bottom: .18rem;
    font-size: .55rem;
    line-height: 1.25;
    letter-spacing: 1.9px;
    text-transform: uppercase;
    color: var(--faint);
}

.sector-field-v {
    overflow-wrap: anywhere;
    font-size: .82rem;
    color: var(--ink);
}

.sector-field-v.ok { color: var(--interactive); }
.sector-field-v.hot { color: var(--pulse-soft); }
.sector-field-v.bad { color: var(--breach); }

.sector-voice {
    margin-top: 1rem;
    padding: .9rem 1rem;
    border-left: 2px solid var(--pulse);
    background: linear-gradient(90deg, rgba(162, 89, 255, .09), transparent 78%);
}

.sector-voice > span {
    display: block;
    margin-bottom: .3rem;
    font-size: .56rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--pulse-soft);
}

.sector-voice p {
    font-family: var(--font-header);
    font-weight: 300;
    font-size: 1.02rem;
    line-height: 1.58;
    color: var(--ink);
}

.sector-voice .sector-voice-sub {
    margin-top: .55rem;
    color: var(--dim);
    font-size: .92rem;
}

.sector-session {
    margin-top: .9rem;
    padding-top: .72rem;
    border-top: 1px solid var(--rule);
    font-size: .58rem;
    line-height: 1.5;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: var(--faint);
}

.sector-modal-actions {
    margin-top: 1rem;
    text-align: right;
}

/* The sigil is deliberately abstract: status instrument, not AI-face iconography. */
.sector-sigil {
    position: relative;
    width: 48px;
    height: 48px;
    border: 1px solid var(--rule-hi);
    background: var(--deep);
    overflow: hidden;
}

.sector-sigil i {
    position: absolute;
    display: block;
    background: var(--pulse);
    box-shadow: 0 0 7px rgba(162, 89, 255, .45);
}

/* Dashboard: terminal/status bars */
.sigil-dashboard i { left: 8px; width: 30px; height: 2px; }
.sigil-dashboard i:nth-child(1) { top: 10px; width: 20px; background: var(--bio); }
.sigil-dashboard i:nth-child(2) { top: 17px; width: 28px; }
.sigil-dashboard i:nth-child(3) { top: 24px; width: 14px; background: var(--bio); }
.sigil-dashboard i:nth-child(4) { top: 31px; width: 25px; }
.sigil-dashboard i:nth-child(5) { top: 38px; width: 9px; background: var(--breach); }
.sigil-dashboard i:nth-child(6) { display: none; }

/* Fleet: five nodes and a host */
.sigil-fleet::before,
.sigil-fleet::after {
    content: '';
    position: absolute;
    background: var(--rule-hi);
}
.sigil-fleet::before { left: 11px; right: 11px; top: 23px; height: 1px; }
.sigil-fleet::after { top: 10px; bottom: 10px; left: 23px; width: 1px; }
.sigil-fleet i { width: 7px; height: 7px; border-radius: 50%; }
.sigil-fleet i:nth-child(1) { left: 8px; top: 8px; background: var(--bio); }
.sigil-fleet i:nth-child(2) { right: 8px; top: 8px; background: var(--bio); }
.sigil-fleet i:nth-child(3) { left: 8px; bottom: 8px; background: var(--bio); }
.sigil-fleet i:nth-child(4) { right: 8px; bottom: 8px; background: var(--bio); }
.sigil-fleet i:nth-child(5) { left: 20px; top: 20px; width: 8px; height: 8px; }
.sigil-fleet i:nth-child(6) { display: none; }

/* Homelab: nested boundaries */
.sigil-homelab::before,
.sigil-homelab::after {
    content: '';
    position: absolute;
    border: 1px solid var(--bio);
}
.sigil-homelab::before { inset: 7px; }
.sigil-homelab::after { inset: 14px; border-color: var(--pulse); }
.sigil-homelab i:nth-child(1) { width: 6px; height: 6px; left: 21px; top: 21px; border-radius: 50%; }
.sigil-homelab i:nth-child(n+2) { display: none; }

/* Media: archive/checksum stack */
.sigil-media i { left: 8px; height: 3px; }
.sigil-media i:nth-child(1) { top: 8px; width: 30px; background: var(--bio); }
.sigil-media i:nth-child(2) { top: 14px; width: 21px; }
.sigil-media i:nth-child(3) { top: 22px; width: 30px; background: var(--bio); }
.sigil-media i:nth-child(4) { top: 28px; width: 25px; }
.sigil-media i:nth-child(5) { top: 36px; width: 17px; background: var(--bio); }
.sigil-media i:nth-child(6) { top: 36px; left: 31px; width: 7px; background: var(--breach); }

/* Origins: timeline */
.sigil-origins::before { content:''; position:absolute; left:23px; top:7px; bottom:7px; width:1px; background:var(--rule-hi); }
.sigil-origins i { width:7px; height:7px; left:20px; border-radius:50%; background:var(--bio); }
.sigil-origins i:nth-child(1) { top:7px; }
.sigil-origins i:nth-child(2) { top:18px; }
.sigil-origins i:nth-child(3) { top:29px; background:var(--pulse); }
.sigil-origins i:nth-child(4) { top:39px; width:5px; height:5px; left:21px; }
.sigil-origins i:nth-child(n+5) { display:none; }

/* Sitemap: facility grid */
.sigil-sitemap { display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr); gap:3px; padding:8px; }
.sigil-sitemap i { position:static; width:auto; height:auto; background:var(--rule-hi); box-shadow:none; }
.sigil-sitemap i:nth-child(2), .sigil-sitemap i:nth-child(4), .sigil-sitemap i:nth-child(6) { background:var(--bio); }
.sigil-sitemap i:nth-child(5) { background:var(--pulse); box-shadow:0 0 7px rgba(162,89,255,.5); }
.sigil-sitemap::after { content:''; background:transparent; border:1px dashed var(--faint); }

/* Cineplex: deliberate absence */
.sector-cineplex { border-style: dashed; }
.sector-cineplex .sector-modal-head { background: var(--panel-hi); }
.sector-cineplex .sector-code,
.sector-cineplex .sector-field-v { color: var(--faint); }
.sector-cineplex .sector-sigil { border-style:dashed; }
.sector-cineplex .sector-sigil::before {
    content:''; position:absolute; width:10px; height:10px; border-radius:50%; left:18px; top:18px;
    background:var(--pulse); box-shadow:0 0 15px rgba(162,89,255,.65);
}
.sector-cineplex .sector-sigil i { display:none; }

/* 404: broken boundary */
.sector-none { border-color: rgba(255, 77, 109, .45); }
.sigil-none::before,
.sigil-none::after { content:''; position:absolute; background:var(--breach); box-shadow:0 0 8px rgba(255,77,109,.5); }
.sigil-none::before { width:28px; height:2px; left:10px; top:23px; transform:rotate(38deg); }
.sigil-none::after { width:28px; height:2px; left:10px; top:23px; transform:rotate(-38deg); }
.sigil-none i { display:none; }

/* Generic subject file: reticle + contained core (index.html and any page
   without its own branch in pageModal) */
.sigil-generic i { width:8px; height:2px; background:var(--bio); box-shadow:0 0 6px rgba(47,242,200,.4); }
.sigil-generic i:nth-child(1) { top:8px;  left:23px; width:2px; height:8px; }
.sigil-generic i:nth-child(2) { top:32px; left:23px; width:2px; height:8px; }
.sigil-generic i:nth-child(3) { top:23px; left:8px; }
.sigil-generic i:nth-child(4) { top:23px; left:32px; }
.sigil-generic i:nth-child(5) {
    top:20px; left:20px; width:8px; height:8px; border-radius:50%;
    background:var(--pulse); box-shadow:0 0 9px rgba(162,89,255,.6);
}
.sigil-generic i:nth-child(6) { display:none; }

@media (max-width: 560px) {
    .sector-modal-head { grid-template-columns: 46px minmax(0, 1fr) auto; gap:.65rem; }
    .sector-sigil { width:40px; height:40px; transform:scale(.84); transform-origin:left center; }
    .sector-fields { grid-template-columns: 1fr; }
}
.devline .d-ip {
    color: var(--faint);
    letter-spacing: 1.2px;
    font-size: .92em;
    opacity: .78;
}

.devline.hot .d-ip {
    color: var(--pulse-soft);
    opacity: 1;
}
/* ============================================================
   v6 additions — Origins background cognition
   The last pair is intentionally asymmetric: Nicholas owns the
   larger field; Alister reads in the narrower one.
   ============================================================ */
.origin-coda {
    grid-template-columns: minmax(0, 53fr) minmax(0, 47fr);
    align-items: stretch;
}

.origin-coda > * {
    min-width: 0;
}

.alister-stream {
    min-height: 214px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(162, 89, 255, .035), transparent 44%),
        var(--deep);
    border: 1px solid var(--rule-hi);
    border-radius: 3px;
    box-shadow: inset 0 0 28px rgba(0, 0, 0, .18);
}

.alister-stream-bar,
.alister-stream-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    text-transform: uppercase;
    color: var(--faint);
}

.alister-stream-bar {
    padding: .55rem .9rem;
    background: rgba(18, 23, 40, .72);
    border-bottom: 1px solid var(--rule);
    font-size: .6rem;
    letter-spacing: 2.1px;
}

.alister-stream-title {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    color: var(--pulse-soft);
}

.stream-live-dot {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: var(--bio);
    box-shadow: 0 0 7px rgba(47, 242, 200, .65);
    animation: pulse 2.8s ease-in-out infinite;
}

.alister-stream-body {
    flex: 1;
    min-height: 0;
    padding: .72rem .88rem .64rem;
    display: grid;
    align-content: center;
    gap: .18rem;
}

.thought-line {
    display: grid;
    grid-template-columns: 60px 82px minmax(0, 1fr);
    gap: .58rem;
    align-items: baseline;
    min-width: 0;
    padding: .22rem 0;
    border-bottom: 1px solid rgba(28, 35, 56, .56);
    font-size: .69rem;
    line-height: 1.35;
    color: var(--dim);
    opacity: .76;
    transition: opacity .28s ease, transform .28s ease, color .28s ease;
}

.thought-line:last-child {
    border-bottom-color: transparent;
}

.thought-line time {
    color: var(--faint);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.thought-kind {
    font-size: .56rem;
    letter-spacing: 1.4px;
    color: var(--faint);
    white-space: nowrap;
}

.thought-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.thought-line.current {
    opacity: 1;
    color: var(--ink);
}

.thought-line.current .thought-kind,
.thought-line.alister .thought-kind {
    color: var(--pulse-soft);
}

.thought-line.session .thought-kind {
    color: var(--bio);
}

.thought-line.alister {
    color: var(--ink);
    background: linear-gradient(90deg, rgba(162, 89, 255, .055), transparent 78%);
}

.thought-line.alert .thought-kind,
.thought-line.alert .thought-text {
    color: var(--breach);
}

.thought-line.entering {
    opacity: 0;
    transform: translateY(5px);
}

.stream-cursor {
    display: inline-block;
    width: 6px;
    height: .82em;
    margin-left: .35rem;
    vertical-align: -.08em;
    background: var(--pulse-soft);
    opacity: .9;
    animation: streamCursor 1.15s steps(1, end) infinite;
}

@keyframes streamCursor {
    0%, 48% { opacity: .9; }
    49%, 100% { opacity: 0; }
}

.alister-stream-foot {
    padding: .46rem .9rem .5rem;
    border-top: 1px solid var(--rule);
    font-size: .53rem;
    letter-spacing: 1.55px;
}

body.critical .alister-stream {
    border-color: rgba(255, 77, 109, .34);
}

body.critical .stream-live-dot {
    background: var(--breach);
    box-shadow: 0 0 7px rgba(255, 77, 109, .58);
}

@media (max-width: 760px) {
    .origin-coda {
        grid-template-columns: 1fr;
    }

    .alister-stream {
        min-height: 230px;
    }
}

@media (max-width: 500px) {
    .alister-stream-bar,
    .alister-stream-foot {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .thought-line {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: .24rem .55rem;
    }

    .thought-kind {
        grid-column: 2;
        grid-row: 1;
    }

    .thought-text {
        grid-column: 1 / 3;
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stream-live-dot,
    .stream-cursor {
        animation: none !important;
    }

    .stream-cursor {
        opacity: .72;
    }
}
