.tc-threat-board {
    --led-red: #ff665c;
    --led-amber: #ffb65d;
    clear: both;
    margin: 12px 0;
    padding: 8px 12px;
    color: #f2d7ce;
    border: 1px solid #593e36;
    border-radius: 5px;
    background: #160f0e;
    box-shadow: inset 0 1px #524038;
    font: 13px/1.5 'Courier New', monospace;
}
.tc-threat-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 12px;
}
.tc-cyberint-version {
    flex: 0 0 100%;
    color: #78d8e8;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.tc-threat-title {
    color: #f2d7ce;
    font-weight: bold;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.tc-threat-title small { color: #c4a79b; font-size: inherit; }
.tc-threat-window {
    display: none;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #3d2520;
    border-radius: 3px;
    background: radial-gradient(circle, #38201d 1px, transparent 1.5px) 0 0 / 4px 4px, #0b0707;
}
.tc-threat-ready .tc-threat-window { display: block; }
.tc-threat-track {
    display: flex;
    width: max-content;
    box-sizing: content-box;
    padding: 6px 0;
    font-size: clamp(13px, 2vw, 16px);
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    animation: tc-threat-scroll var(--tc-scroll-duration, 120s) linear infinite reverse;
}
.tc-threat-track > div {
    display: flex;
    flex: none;
    gap: 36px;
    padding: 0 36px 0 8px;
}
.tc-threat-track span {
    text-shadow: 0 0 3px currentColor, 0 0 12px currentColor;
}
.tc-threat-stopped .tc-threat-track {
    width: auto;
    display: block;
    white-space: normal;
}
.tc-threat-stopped .tc-threat-track > div { display: block; padding: 0 8px; }
.tc-threat-stopped .tc-threat-track > div + div,
.tc-threat-stopped .tc-threat-track span:not(:first-child) { display: none; }
.tc-threat-kev { color: var(--led-red); }
.tc-threat-news, .tc-threat-canada { color: var(--led-amber); }
@keyframes tc-threat-scroll { to { transform: translateX(-50%); } }
.tc-threat-stopped .tc-threat-track {
    animation: none;
}
.tc-threat-stopped .tc-threat-window { overflow-x: auto; }
.tc-threat-board button {
    display: none;
    color: #f2d7ce;
    background: transparent;
    border: 1px solid #80645a;
    border-radius: 3px;
    padding: 2px 8px;
    font: inherit;
    cursor: pointer;
}
.tc-threat-ready button:not([hidden]) { display: inline-block; }
.tc-threat-board summary { cursor: pointer; padding: 3px 0; }
.tc-threat-board a { color: #fff2eb; text-decoration: underline; }
.tc-threat-board :focus-visible { outline: 2px solid var(--led-amber); outline-offset: 2px; }
.tc-threat-board .tc-threat-list { list-style: none; padding: 0; margin: 0; }
.tc-threat-list li { padding: 4px 0; overflow-wrap: anywhere; }
.tc-threat-list strong { display: block; }
.tc-threat-status:empty, .tc-threat-source-status:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
    .tc-threat-board:not(.tc-threat-motion-enabled) .tc-threat-track { animation: none; }
    /* Explicit Play must outlast the site-wide one-frame motion reset. */
    .tc-threat-ready.tc-threat-motion-enabled:not(.tc-threat-stopped) .tc-threat-track {
        animation-duration: var(--tc-scroll-duration, 120s) !important;
        animation-iteration-count: infinite !important;
    }
}

/* Match the homepage's vintage terminal treatment for editorial headlines. */
body[data-ticker-autoplay] .tc-threat-track .tc-threat-news {
    align-self: baseline;
    color: #78e889;
    font-size: .82em;
}

body[data-ticker-autoplay] .tc-threat-board .tc-threat-list:not(:empty) {
    direction: rtl; /* Put the scrollbar on the left in Chrome. */
    max-height: min(12rem, 45vh);
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-color: #ae8c7e #281b17;
    scrollbar-width: auto;
    margin: 4px 0 8px;
    padding: 4px 10px;
    border: 1px solid;
    border-color: #59423a #ae8c7e #ae8c7e #59423a;
    background: #100b09;
}
body[data-ticker-autoplay] .tc-threat-list > li {
    direction: ltr;
    text-align: left;
}

/* UAT navy treatment: preserve the vintage terminal character within the new brand system. */
.tc-threat-board {
    color: #d8edf7;
    border-color: #1f5677;
    background: #031d34;
    box-shadow: inset 0 1px rgba(120, 214, 232, .18), 0 10px 28px rgba(2, 20, 38, .13);
}
.tc-threat-title { color: #edfaff; }
.tc-threat-title small { color: #99bdcf; }
.tc-threat-window {
    border-color: #174865;
    background:
        radial-gradient(circle, #17435e 1px, transparent 1.5px) 0 0 / 4px 4px,
        #020f1c;
}
.tc-threat-board button {
    color: #d8edf7;
    border-color: #47748e;
}
.tc-threat-board a { color: #dff8ff; }
body[data-ticker-autoplay] .tc-threat-board .tc-threat-list:not(:empty) {
    scrollbar-color: #4d7b94 #071827;
    border-color: #174865 #4d7b94 #4d7b94 #174865;
    background: #020f1c;
}

.tc-threat-toolbar {
    row-gap: .35rem;
    padding-bottom: .35rem;
}
.tc-threat-toolbar #tc-intel-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: .4rem .9rem;
    color: #e8faff;
    background: linear-gradient(#194c68, #0c3047);
    box-shadow: inset 0 1px 0 #6296ac, 0 2px 0 #010e19;
    border: 1px solid #72c9de;
    border-radius: 4px;
    font: bold 15px/1.25 'Courier New', monospace;
    text-decoration: none;
    white-space: nowrap;
}
.tc-threat-toolbar #tc-intel-trigger:is(:hover, :focus-visible) {
    color: #031d34;
    background: #a8edfa;
}

.tc-threat-toolbar #tc-intel-trigger:active {
    background: #0b2c40;
    color: #e8faff;
    box-shadow: inset 0 2px 3px #041827;
    transform: translateY(1px);
}

@media (max-width: 680px) {
    .tc-threat-toolbar #tc-intel-trigger {
        position: relative;
        min-height: 34px;
        margin-block: 5px;
        padding-block: .2rem;
    }
    /* Extend the link's hit area into the space reserved above and below it. */
    .tc-threat-toolbar #tc-intel-trigger::before {
        content: "";
        position: absolute;
        inset: -6px -1px;
    }
}

.tc-ticker-controls {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.tc-ticker-controls .tc-intel-startup {
    min-width: 0;
    white-space: normal;
}
.tc-ticker-controls .tc-threat-pause {
    flex: none;
    margin-left: auto;
    position: relative;
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.25;
}
.tc-ticker-controls .tc-threat-pause::after {
    content: "";
    position: absolute;
    inset: -4px -3px;
}

.tc-alert-box { position: relative; display: flow-root; }
.tc-threat-board .tc-alert-step:not([hidden]) {
    position: absolute;
    left: -5px;
    bottom: 9px;
    display: grid;
    place-items: center end;
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    padding: 0 2px 0 0;
    border: 0;
    background: transparent;
    color: #ff625b;
    font: bold 12px/1 monospace;
}
.tc-threat-board .tc-alert-step[data-up] {
    top: 5px;
    bottom: auto;
}
body[data-ticker-autoplay] .tc-alert-box.has-scroll .tc-threat-list {
    direction: ltr;
    padding-left: 19px;
}
