:root {
    --bg: #090b0f;
    --panel: #0d1016;
    --panel-2: #11151d;
    --ink: #f3f5f7;
    --muted: #8d96a3;
    --line: #202631;
    --line-hot: #384150;
    --acid: #d7ff4f;
    --cyan: #79d8ff;
    --quote: #121821;
    --danger: #ff735f;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sans: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; }
.min-w-0 { min-width: 0; }

.ambient-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(to right, transparent 0, transparent calc(100% - 1px), rgba(255,255,255,.024) calc(100% - 1px)),
        linear-gradient(to bottom, transparent 0, transparent calc(100% - 1px), rgba(255,255,255,.018) calc(100% - 1px));
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,.35));
}

.app-shell { max-width: 1440px; }

.topbar {
    min-height: 72px;
    border-bottom: 1px solid var(--line);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.wordmark-glyph {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--acid);
    color: var(--acid);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
}

.wordmark-text,
.live-status,
.intro-code,
.thread-tag,
.media-label,
.empty-code {
    font-family: var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wordmark-text { font-size: .7rem; font-weight: 600; }
.wordmark-arrow {
    color: var(--acid);
    font-family: var(--mono);
    font-size: .72rem;
    transition: transform .18s ease;
}
.wordmark:hover .wordmark-arrow { transform: translate(2px, -2px); }
.live-status { color: var(--muted); font-size: .62rem; }
.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 0 5px rgba(215,255,79,.07);
}

.intro {
    padding: 46px 0 48px;
    border-bottom: 1px solid var(--line-hot);
}

.intro--compact {
    min-height: 0;
}

.intro-kicker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.intro-code,
.intro-index {
    font-family: var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .62rem;
}

.intro-code { color: var(--acid); }
.intro-index { color: var(--muted); }

.intro h1 {
    margin: 0;
    max-width: 1180px;
    font-size: clamp(3.1rem, 7.5vw, 7.2rem);
    line-height: .86;
    letter-spacing: -.07em;
    font-weight: 700;
}

.intro h1 span {
    display: block;
}

.intro-solid {
    color: var(--ink);
}

.intro h1 .intro-outline {
    color: transparent;
    -webkit-text-stroke: 1px #747e8b;
}

.stale-strip {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--danger);
    font-family: var(--mono);
    font-size: .68rem;
}

.signal-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    position: relative;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(10px);
}

.signal-item.is-visible {
    animation: reveal .55s cubic-bezier(.2,.75,.2,1) both;
    animation-delay: var(--delay, 0ms);
}

@keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
}

.signal-meta-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 32px;
}

.signal-number {
    position: sticky;
    top: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line-hot);
    background: var(--bg);
    color: var(--muted);
    font-family: var(--mono);
    font-size: .62rem;
    transition: .2s ease;
}

.signal-line {
    width: 1px;
    flex: 1;
    background: var(--line);
}

.signal-item:hover .signal-number {
    border-color: var(--acid);
    color: var(--acid);
    transform: translateY(-2px);
}

.signal-content {
    padding: 30px 0 34px 18px;
    min-width: 0;
}

.signal-header { margin-bottom: 20px; }
.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.author-copy {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .72rem;
}

.author-copy strong {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.author-copy time,
.author-copy span { color: var(--muted); }

.jump-link {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
    transition: .18s ease;
}

.jump-link:hover {
    color: var(--acid);
    border-color: var(--acid);
    transform: translate(2px,-2px);
}

.signal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
}

.signal-grid--media {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: start;
}

.signal-text { min-width: 0; }
.signal-text h2 {
    margin: 0 0 16px;
    max-width: 980px;
    font-size: clamp(1.55rem, 2.8vw, 3.3rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 700;
}

.signal-text h2 a {
    text-decoration: none;
    transition: color .18s ease;
}
.signal-text h2 a:hover { color: var(--acid); }

.post-copy {
    position: relative;
    max-width: 860px;
    color: #c5ccd5;
    font-size: .94rem;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.post-copy > :first-child { margin-top: 0; }
.post-copy > :last-child { margin-bottom: 0; }
.post-copy p { margin: 0 0 .8em; }
.post-copy a { color: var(--cyan); text-underline-offset: 3px; }
.post-copy ul, .post-copy ol { padding-left: 1.3rem; }
.post-copy code, .post-copy pre { font-family: var(--mono); font-size: .85em; }

.post-copy blockquote {
    margin: 1rem 0;
    padding: 14px 16px;
    border-left: 2px solid var(--acid);
    background: var(--quote);
    color: #9da8b5;
}

.post-smilie {
    display: inline-block !important;
    width: 1.18em !important;
    height: 1.18em !important;
    max-width: 1.18em !important;
    max-height: 1.18em !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 .08em !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    object-fit: contain !important;
    vertical-align: -.18em;
}



.post-copy .post-inline-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 920px);
    max-height: 720px;
    margin: 1rem 0 1.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.post-copy a:has(> .post-inline-image) {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
}

.post-copy .post-embed-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: .65rem 0;
    padding: .65rem .8rem;
    border-left: 2px solid var(--cyan);
    background: rgba(75, 214, 255, .06);
    color: var(--cyan);
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .02em;
    text-decoration: none;
}

.post-copy .post-embed-link:hover {
    background: rgba(75, 214, 255, .1);
}

.media-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    max-height: 360px;
    padding: 12px;
    border: 1px solid var(--line-hot);
    background: #07090d;
    overflow: hidden;
    text-decoration: none;
}

.media-frame::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255,255,255,.04);
    pointer-events: none;
}

.media-frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 330px;
    object-fit: contain;
    transition: transform .3s ease, filter .3s ease;
}

.media-frame:hover img {
    transform: scale(1.012);
    filter: contrast(1.03);
}

.media-label {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 6px;
    background: var(--acid);
    color: #0a0c0f;
    font-size: .54rem;
    font-weight: 700;
}

.signal-actions {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.thread-tag {
    color: var(--muted);
    font-size: .58rem;
}

.read-link {
    color: var(--ink);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
}
.read-link span { color: var(--acid); }
.read-link:hover { color: var(--acid); }

.empty-state {
    padding: 72px 0;
    border-bottom: 1px solid var(--line);
}
.empty-code { color: var(--danger); font-size: .62rem; }
.empty-state h2 {
    margin: 12px 0 8px;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -.045em;
}
.empty-state p { max-width: 620px; color: var(--muted); }

.footerbar {
    min-height: 76px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .62rem;
}
.footerbar a { color: inherit; }

@media (max-width: 991.98px) {
    .intro { padding: 38px 0 36px; }
    .signal-grid--media { grid-template-columns: 1fr; }
    
.post-copy .post-inline-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 920px);
    max-height: 720px;
    margin: 1rem 0 1.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.post-copy a:has(> .post-inline-image) {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
}

.post-copy .post-embed-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: .65rem 0;
    padding: .65rem .8rem;
    border-left: 2px solid var(--cyan);
    background: rgba(75, 214, 255, .06);
    color: var(--cyan);
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .02em;
    text-decoration: none;
}

.post-copy .post-embed-link:hover {
    background: rgba(75, 214, 255, .1);
}

.media-frame { width: min(100%, 560px); justify-self: start; }
}

@media (max-width: 575.98px) {
    .topbar { min-height: 60px; }
    .wordmark-text { display: none; }
    .intro-kicker-row { margin-bottom: 16px; }
    .intro h1 { font-size: clamp(2.65rem, 14vw, 4.65rem); line-height: .9; }
    .signal-item { grid-template-columns: 36px minmax(0,1fr); }
    .signal-content { padding-left: 10px; }
    .signal-number { width: 24px; height: 24px; font-size: .54rem; }
    .signal-text h2 { font-size: clamp(1.45rem, 8vw, 2.25rem); }
    .post-copy { font-size: .9rem; }
    
.post-copy .post-inline-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 920px);
    max-height: 720px;
    margin: 1rem 0 1.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.post-copy a:has(> .post-inline-image) {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
}

.post-copy .post-embed-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: .65rem 0;
    padding: .65rem .8rem;
    border-left: 2px solid var(--cyan);
    background: rgba(75, 214, 255, .06);
    color: var(--cyan);
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .02em;
    text-decoration: none;
}

.post-copy .post-embed-link:hover {
    background: rgba(75, 214, 255, .1);
}

.media-frame { min-height: 140px; max-height: 280px; }
    .media-frame img { max-height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
    .signal-item { opacity: 1; transform: none; }
    .signal-item.is-visible { animation: none; }
    * { scroll-behavior: auto !important; }
}

/* Live cache updates ------------------------------------------------------ */
.signal-list {
    transition: opacity .18s ease, transform .18s ease;
}

.signal-list.is-refreshing {
    opacity: .58;
    transform: translateY(4px);
}

.signal-item.is-new-signal {
    position: relative;
}

.signal-item.is-new-signal::before {
    content: "NEW";
    position: absolute;
    top: 24px;
    right: 0;
    z-index: 2;
    color: var(--acid);
    font-family: var(--mono);
    font-size: .52rem;
    font-weight: 700;
    letter-spacing: .1em;
    animation: newSignalFade 8s ease forwards;
}

.signal-item.is-new-signal .signal-number {
    border-color: var(--acid);
    color: var(--acid);
    box-shadow: 0 0 0 4px rgba(190, 255, 0, .08);
}

@keyframes newSignalFade {
    0%, 72% { opacity: 1; }
    100% { opacity: 0; }
}

.live-update-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    padding: 11px 14px;
    border: 1px solid var(--line-hot);
    background: rgba(7, 9, 13, .94);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .65rem;
    letter-spacing: .02em;
    box-shadow: 0 12px 42px rgba(0, 0, 0, .34);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    backdrop-filter: blur(12px);
}

.live-update-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.live-update-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 0 4px rgba(190, 255, 0, .08);
}

@media (max-width: 575.98px) {
    .live-update-toast {
        right: 12px;
        bottom: 12px;
    }

    .signal-item.is-new-signal::before {
        top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .signal-list,
    .live-update-toast,
    .signal-item.is-new-signal::before {
        transition: none;
        animation: none;
    }
}


/* --- Compact post media gallery ----------------------------------------- */
.post-copy .post-inline-image {
    display: none !important;
}

.media-gallery {
    width: min(100%, 430px);
    justify-self: end;
    align-self: start;
}

.media-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 230px;
    max-height: 360px;
    border: 1px solid var(--line-hot);
    background:
        linear-gradient(135deg, rgba(255,255,255,.025), transparent 48%),
        #07090d;
    overflow: hidden;
}

.media-stage::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 3;
    border: 1px solid rgba(255,255,255,.035);
    pointer-events: none;
}

.media-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    transform: scale(.985);
    transition:
        opacity .22s ease,
        transform .28s cubic-bezier(.2,.75,.2,1),
        visibility 0s linear .28s;
    text-decoration: none;
}

.media-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
    transition-delay: 0s;
}

.media-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 0;
    background: transparent;
}

.media-slide.is-broken {
    display: none;
}

.media-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 34px;
    height: 42px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(7,9,13,.82);
    backdrop-filter: blur(8px);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 1rem;
    cursor: pointer;
    opacity: .72;
    transition: border-color .16s ease, color .16s ease, opacity .16s ease, transform .16s ease;
}

.media-nav--prev { left: 10px; }
.media-nav--next { right: 10px; }

.media-gallery:hover .media-nav,
.media-nav:focus-visible {
    opacity: 1;
}

.media-nav:hover {
    border-color: var(--acid);
    color: var(--acid);
}

.media-nav--prev:hover { transform: translate(-2px, -50%); }
.media-nav--next:hover { transform: translate(2px, -50%); }

.media-chrome {
    position: absolute;
    z-index: 5;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.media-count {
    padding: 4px 7px;
    background: rgba(7,9,13,.88);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--muted);
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .06em;
}

.media-count b {
    color: var(--ink);
    font-weight: 600;
}

.media-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.media-dot {
    width: 22px;
    height: 3px;
    padding: 0;
    border: 0;
    background: var(--line-hot);
    cursor: pointer;
    transition: width .18s ease, background .18s ease;
}

.media-dot.is-active {
    width: 38px;
    background: var(--acid);
}

@media (max-width: 991.98px) {
    .media-gallery {
        justify-self: start;
        width: min(100%, 520px);
    }
}

@media (max-width: 575.98px) {
    .media-stage {
        min-height: 210px;
        aspect-ratio: 1 / 1;
    }

    .media-slide {
        padding: 12px;
    }

    .media-nav {
        width: 32px;
        height: 38px;
    }
}

/* --- Responsive hero: preserve the desktop composition on mobile -------- */
@media (max-width: 900px) {
    .intro h1 {
        font-size: clamp(3.25rem, 10vw, 5.8rem);
        line-height: .88;
        letter-spacing: -.06em;
    }

    .intro h1 .intro-outline {
        font-size: .92em;
    }
}

@media (max-width: 575.98px) {
    .intro {
        padding: 22px 0 32px;
        overflow: hidden;
    }

    .intro-kicker-row {
        margin-bottom: 22px;
        gap: 12px;
    }

    .intro-code,
    .intro-index {
        font-size: .56rem;
        letter-spacing: .08em;
    }

    .intro h1 {
        max-width: 100%;
        font-size: clamp(2.8rem, 13vw, 4.15rem);
        line-height: .9;
        letter-spacing: -.055em;
    }

    .intro h1 span {
        display: block;
        width: 100%;
    }

    .intro h1 .intro-solid {
        color: var(--ink);
        white-space: normal;
    }

    .intro h1 .intro-outline {
        margin: 0;
        max-width: 100%;
        color: transparent;
        -webkit-text-stroke: .8px #747e8b;
        font-family: inherit;
        font-size: .84em;
        line-height: .96;
        letter-spacing: -.045em;
        font-weight: 700;
        text-transform: none;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    .intro h1 .intro-outline::before,
    .intro h1 .intro-outline::after {
        content: none;
    }
}

@media (max-width: 420px) {
    .intro h1 {
        font-size: clamp(2.55rem, 12.5vw, 3.55rem);
    }

    .intro h1 .intro-outline {
        font-size: .82em;
    }
}


/* Ignored users ---------------------------------------------------------- */
.topbar-controls { min-width: 0; }

.ignored-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .07em;
    cursor: pointer;
}

.ignored-toggle b {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 1px solid var(--line-hot);
    color: var(--ink);
    font-size: .55rem;
    font-weight: 500;
}

.ignored-toggle:hover { color: var(--acid); }
.ignored-toggle:hover b { border-color: var(--acid); color: var(--acid); }

.signal-header-actions { flex: 0 0 auto; }
.ignore-user-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid transparent;
    background: transparent;
    color: #59616d;
    font-family: var(--mono);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.ignore-user-btn:hover {
    border-color: var(--line-hot);
    background: var(--panel);
    color: var(--danger);
}

.signal-item.is-ignored { display: none !important; }

.all-ignored-state {
    padding: 58px 0;
    border-bottom: 1px solid var(--line);
}
.all-ignored-state h2 {
    margin: 10px 0 7px;
    font-size: clamp(1.7rem, 4vw, 3rem);
    letter-spacing: -.04em;
}
.all-ignored-state p { margin: 0; color: var(--muted); }

body.ignore-panel-open { overflow: hidden; }

.ignored-panel {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
    visibility: hidden;
}
.ignored-panel.is-open { pointer-events: auto; visibility: visible; }

.ignored-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
    opacity: 0;
    transition: opacity .22s ease;
}
.ignored-panel.is-open .ignored-panel-backdrop { opacity: 1; }

.ignored-panel-sheet {
    position: absolute;
    top: 0;
    right: 0;
    width: min(440px, 94vw);
    height: 100%;
    padding: 26px;
    overflow-y: auto;
    border-left: 1px solid var(--line-hot);
    background: #0b0e13;
    box-shadow: -24px 0 70px rgba(0, 0, 0, .35);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2,.75,.2,1);
}
.ignored-panel.is-open .ignored-panel-sheet { transform: translateX(0); }

.ignored-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.ignored-panel-code,
.ignored-section-title,
.ignored-add-form label,
.ignored-lock {
    font-family: var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ignored-panel-code { color: var(--acid); font-size: .58rem; }
.ignored-panel-head h2 {
    margin: 7px 0 0;
    font-size: 2rem;
    letter-spacing: -.045em;
}
.ignored-close {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line-hot);
    background: transparent;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
}
.ignored-close:hover { color: var(--ink); border-color: var(--ink); }

.ignored-panel-note {
    margin: 18px 0 24px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.6;
}

.ignored-add-form { margin-bottom: 30px; }
.ignored-add-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: .55rem;
}
.ignored-add-row { display: grid; grid-template-columns: 1fr auto; }
.ignored-add-row input {
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line-hot);
    border-right: 0;
    border-radius: 0;
    outline: 0;
    background: var(--panel);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .75rem;
}
.ignored-add-row input:focus { border-color: var(--acid); }
.ignored-add-row button {
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--acid);
    background: var(--acid);
    color: #080a0d;
    font-family: var(--mono);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .05em;
    cursor: pointer;
}

.ignored-section { margin-top: 28px; }
.ignored-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-hot);
    color: var(--muted);
    font-size: .58rem;
}
.ignored-section-title b { color: var(--ink); font-weight: 500; }

.ignored-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 46px;
    border-bottom: 1px solid var(--line);
    font-size: .78rem;
}
.ignored-user-row > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ignored-user-row button {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--danger);
    font-family: var(--mono);
    font-size: .52rem;
    letter-spacing: .05em;
    cursor: pointer;
}
.ignored-user-row button:hover { text-decoration: underline; text-underline-offset: 3px; }
.ignored-user-row--locked { color: #aeb5bf; }
.ignored-lock { flex: 0 0 auto; color: #5e6875; font-size: .48rem; }
.ignored-empty { margin: 12px 0 0; color: #66707d; font-size: .72rem; }

@media (max-width: 575.98px) {
    .topbar-controls { gap: 10px !important; }
    .ignored-toggle > span { display: none; }
    .ignored-toggle b { min-width: 24px; height: 24px; }
    .live-status { font-size: .54rem; }
    .ignore-user-btn { width: 28px; height: 28px; }
    .jump-link { width: 28px; height: 28px; }
    .ignored-panel-sheet { padding: 20px; width: 100%; }
}

.signal-item.is-over-limit { display: none !important; }

/* --- Smart external references ---------------------------------------- */
.external-ref-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    max-width: 680px;
}

.external-ref-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 16px 17px 15px;
    border: 1px solid var(--line-hot);
    background:
        linear-gradient(110deg, rgba(255,255,255,.025), transparent 52%),
        rgba(12, 15, 20, .72);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.external-ref-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--acid);
    opacity: .8;
}

.external-ref-card:hover,
.external-ref-card:focus-visible {
    border-color: color-mix(in srgb, var(--acid) 55%, var(--line-hot));
    background:
        linear-gradient(110deg, rgba(204,255,0,.045), transparent 55%),
        rgba(12, 15, 20, .9);
    transform: translateY(-1px);
    outline: none;
}

.external-ref-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.external-ref-provider {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: .64rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.external-ref-mark {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    color: var(--acid);
    font-size: .78rem;
    line-height: 1;
}

.external-ref-arrow {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .78rem;
    transition: color .18s ease, transform .18s ease;
}

.external-ref-card:hover .external-ref-arrow {
    color: var(--acid);
    transform: translate(2px, -2px);
}

.external-ref-text {
    display: block;
    max-width: 62ch;
    color: #c8ced7;
    font-size: .88rem;
    line-height: 1.55;
}

.external-ref-domain {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .045em;
}

/* Raw iframe fallbacks from older cached posts should never reserve a giant
   media area. New cron data turns supported embeds into cards above. */
.post-copy .post-embed-link {
    display: inline-flex;
    width: auto;
    min-height: 0;
    margin: .6rem 0;
    padding: 7px 10px;
}

@media (max-width: 575.98px) {
    .external-ref-list {
        margin-top: 16px;
    }

    .external-ref-card {
        padding: 14px 14px 13px;
    }

    .external-ref-text {
        font-size: .83rem;
    }
}
