@font-face {
    font-family: Montserrat;
    src: url("fonts/Montserrat-Regular.otf") format("opentype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url("fonts/Montserrat-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --red: #b81732;
    --rose: #ff7887;
    --paper: #f7f2ef;
    --ink: #23171a;
    --muted: #685255;
    --line: #e8d9d7;
    --white: #fff;
    --signal: #ffc4cb;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    background: var(--paper);
    color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4, strong { font-weight: 800; }
a { color: var(--red); text-underline-offset: .2em; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #bd1936; outline-offset: 4px; }
.broadcast :focus-visible, .login-page > :focus-visible { outline-color: var(--rose); }
.wrap { width: min(1140px, calc(100% - 100px)); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: absolute;
    z-index: 5;
    top: 8px;
    left: 8px;
    padding: 10px 15px;
    background: var(--white);
}

.public-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.broadcast, .login-page {
    background: radial-gradient(ellipse at 87% 25%, #971531 0%, transparent 57%),
        linear-gradient(115deg, #220910 12%, #340c17 59%, #6a1127 100%);
    color: var(--paper);
}

.broadcast { border-bottom: 4px solid #ed3b56; }

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 87px;
    border-bottom: 1px solid #ffd6db32;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff7f5;
    white-space: nowrap;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1;
}

.brand b { color: var(--rose); }

.brand-mark {
    display: block;
    flex: none;
    width: 38px;
    height: 38px;
}

.public-page .masthead { min-height: 62px; }

.broadcast-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid #ffbbc065;
    border-radius: 4px;
    color: var(--paper);
    background: #24070d59;
    font-size: .69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.broadcast-status i, .mini-dot {
    width: 8px;
    height: 8px;
    flex: none;
    border: 1px solid var(--rose);
    border-radius: 50%;
}

.broadcast-status.is-live i {
    background: var(--rose);
    box-shadow: 0 0 0 4px #ff788735;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 290px);
    min-height: 212px;
    isolation: isolate;
}

.hero-copy {
    align-self: center;
    padding-block: 30px 34px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6.5vw, 5.75rem);
    line-height: .97;
    letter-spacing: -.085em;
    text-transform: uppercase;
}

.hero h1 em { color: var(--rose); font-style: normal; white-space: nowrap; }

.hero-description {
    max-width: 55ch;
    margin-top: 13px;
    color: #f1dadd;
    font-size: clamp(.82rem, 1.3vw, .98rem);
    line-height: 1.55;
}

.evidence-art {
    position: relative;
    align-self: stretch;
    overflow: hidden;
    background-image: radial-gradient(#ffb7c64c 1px, transparent 1px);
    background-size: 14px 14px;
    mask-image: linear-gradient(90deg, transparent 0%, black 14% 84%, transparent 100%);
}

.evidence-sheet {
    position: absolute;
    top: 15%;
    left: 21%;
    display: grid;
    align-content: center;
    gap: 10px;
    width: 114px;
    height: 148px;
    padding: 16px;
    border: 1px solid #ff9aaa8a;
    background: #3c101ec9;
    box-shadow: 8px 8px 0 #c0214752, 16px 16px 0 #d12c4f2b;
    transform: rotate(-11deg);
}

.evidence-sheet i { height: 3px; background: #ffd0d6a6; }
.evidence-sheet i:nth-child(2) { width: 82%; }
.evidence-sheet i:nth-child(3) { width: 88%; background: #ff637d; }
.evidence-sheet i:nth-child(4) { width: 60%; }

.evidence-lens {
    position: absolute;
    top: 34%;
    left: 45%;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border: 2px solid #ffd1d9;
    border-radius: 50%;
    background: #6e142adb;
    box-shadow: 0 0 0 7px #ff56772b;
}

.evidence-lens::after {
    position: absolute;
    top: 67px;
    left: 66px;
    width: 40px;
    height: 4px;
    border-radius: 3px;
    background: #ffd1d9;
    transform: rotate(43deg);
    transform-origin: left center;
    content: "";
}

.evidence-lens i {
    width: 23px;
    height: 13px;
    border-left: 3px solid #fff3f4;
    border-bottom: 3px solid #fff3f4;
    transform: translateY(-2px) rotate(-45deg);
}

.timeline {
    flex: 1;
    padding-block: 30px 46px;
}

.timeline-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.timeline-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-heading h2::before {
    content: "";
    width: 4px;
    height: .9em;
    background: var(--red);
}

.timeline-heading h2, .column-heading h2 {
    font-size: clamp(1.1rem, 2.3vw, 1.52rem);
    line-height: 1.25;
    letter-spacing: -.035em;
}

.refresh-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .76rem;
}

.refresh-icon {
    position: relative;
    width: 12px;
    height: 12px;
    flex: none;
    border: 1.5px solid var(--red);
    border-right-color: transparent;
    border-radius: 50%;
    transform: rotate(-28deg);
}
.refresh-icon::after {
    position: absolute;
    top: -3px;
    right: -1px;
    content: "";
    border: 3px solid transparent;
    border-left-color: var(--red);
    transform: rotate(34deg);
}

.waiting {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 32px 20px 34px;
    text-align: center;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 7px;
}

.waiting-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 46px;
    height: 46px;
    margin-bottom: 5px;
    color: var(--red);
    background: #fae3e5;
    border-radius: 50%;
}
.waiting-icon i { display: block; width: 3px; height: 10px; border-radius: 5px; background: currentColor; }
.waiting-icon i:nth-child(2) { height: 18px; }

.waiting h3 { font-size: clamp(1rem, 2vw, 1.21rem); letter-spacing: -.035em; }
.waiting p { color: var(--muted); font-size: .85rem; }

.feed:not(:empty) { padding-block-start: 22px; }

.update {
    position: relative;
    display: grid;
    grid-template-columns: 87px minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 15px;
}

.update-clock {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-top: 20px;
    color: var(--red);
    font-size: 1.08rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.update-clock::before {
    position: absolute;
    right: 0;
    top: 0;
    bottom: -15px;
    width: 1px;
    background: #e3c6c4;
    content: "";
}

.update:last-child .update-clock::before { bottom: 0; }
.update-clock::after {
    position: absolute;
    top: 28px;
    right: -4px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--paper);
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 1px #b2757c;
    content: "";
}
.update:first-child .update-clock::after { background: var(--rose); box-shadow: 0 0 0 1px var(--red); }

.update-card {
    min-width: 0;
    padding: 20px 24px 23px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fffdfa;
    overflow-wrap: anywhere;
}
.update-card h3 {
    margin-top: 5px;
    font-size: clamp(1.13rem, 2.5vw, 1.55rem);
    line-height: 1.24;
    letter-spacing: -.036em;
}
.section-break:not(:first-child) { margin-top: 13px; }
.section-break .update-clock::after {
    border-radius: 2px;
    background: var(--red);
    transform: rotate(45deg);
}
.section-break-card {
    padding-block: 15px 17px;
    border-color: #571323;
    color: var(--white);
    background: linear-gradient(100deg, #530e20, #86162d);
}
.section-break-card .topic-label { color: var(--signal); }
.topic-label {
    color: var(--red);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .075em;
    text-transform: uppercase;
}
.block-text { max-width: 78ch; margin-top: 10px; white-space: pre-wrap; }
.block-source { margin-top: 10px; font-size: .83rem; font-weight: 800; }
.block-media { margin-top: 15px; }
.block-media img {
    width: auto;
    height: auto;
    max-height: 72vh;
    border-radius: 4px;
}

.public-footer { border-top: 1px solid var(--line); }
.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px 24px;
    padding-block: 20px;
    color: var(--muted);
    font-size: .72rem;
}
.footer-inner span:first-child { color: var(--red); font-weight: 800; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: .79rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.primary { background: var(--red); color: var(--white); }
.primary:hover { background: #8d1026; }
.primary:disabled { opacity: .65; cursor: wait; }
.outline { border-color: #d5b4b6; background: var(--white); color: var(--red); }
.quiet { color: var(--red); background: transparent; }
:is(.quiet, .outline):hover { background: #f8e6e5; }
.on-dark { border-color: #ffbeca5c; color: var(--white); background: #12030840; }
.on-dark:hover { background: #6c1126; }
.plus { font-size: 1.24em; line-height: 1; }

.panel-broadcast .masthead { min-height: 74px; border: 0; }
.panel-nav { display: flex; align-items: center; gap: 9px; }
.panel-main { padding-block: 34px 64px; }
.panel-heading, .editor-heading, .column-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
}
.panel-heading { margin-bottom: 25px; }
.panel-heading h1, .login-card h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -.055em; line-height: 1.12; }
.section-console {
    margin-bottom: 17px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--white);
}
.section-console h2 { font-size: 1rem; line-height: 1.25; letter-spacing: -.02em; }
.section-console-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.section-console-heading .button:disabled { opacity: .48; cursor: default; }
.section-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 11px 0 0;
    padding: 0;
    list-style: none;
}
.section-controls li { display: flex; align-items: center; min-width: 0; max-width: 100%; }
.section-controls li > :first-child { min-width: 0; }
.section-activate, .section-current { white-space: normal; text-align: left; overflow-wrap: anywhere; }
.section-activate span { font-size: .68rem; font-weight: 400; color: var(--muted); }
.section-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid #edc3c8;
    border-radius: 5px;
    color: var(--red);
    background: #f9e7e7;
    font-size: .79rem;
    font-weight: 800;
    line-height: 1.3;
}
.section-current i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--red); }
.section-current small { color: #785057; font-size: .67rem; white-space: nowrap; }
.section-create { margin-top: 10px; }
.section-create summary { width: fit-content; color: var(--red); font-size: .81rem; font-weight: 800; cursor: pointer; }
.section-create .topic-form { margin-top: 9px; }

.feedback { margin-bottom: 16px; padding: 10px 14px; border: 1px solid; border-radius: 5px; font-size: .83rem; }
.success { color: #1a5c47; border-color: #b2d4c5; background: #e8f5ef; }
.error { color: #842e36; border-color: #e0b2b4; background: #fff3f2; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 27px; align-items: start; }
.column-heading { min-height: 54px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.column-heading h2 { display: flex; align-items: center; gap: 8px; }
.mini-dot { background: var(--rose); border-color: #96253a; }
.count {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    min-height: 23px;
    padding-inline: 5px;
    border-radius: 4px;
    background: #f5e6e4;
    color: var(--red);
    font-size: .72rem;
    letter-spacing: 0;
}
.draft-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-width: 100%;
}
.draft-filters label { min-width: 0; }
.draft-filters input, .draft-filters select { width: min(175px, 100%); }
.topic-group, .published-list:not(:empty) { display: grid; gap: 8px; padding-top: 13px; }
.group-title { color: var(--red); font-size: .79rem; letter-spacing: .055em; text-transform: uppercase; overflow-wrap: anywhere; }
.panel-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 13px 13px 13px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
}

.panel-block-info { min-width: 0; overflow-wrap: anywhere; }
.panel-block :is(h3, h4) { font-size: .95rem; line-height: 1.3; }
.panel-block .topic-label { margin-bottom: 4px; }
.excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: .79rem;
}
.attachment-label { margin-top: 7px; color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
.block-actions { display: flex; flex-shrink: 0; justify-content: end; gap: 3px; }
.panel-empty {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 24px 16px;
    border: 1px dashed #d7bfc0;
    border-radius: 6px;
    color: var(--muted);
    font-size: .85rem;
}
.panel-empty a { justify-self: start; font-weight: 800; }

.editor, .login-card {
    padding: clamp(18px, 3vw, 29px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.editor { margin-bottom: 24px; scroll-margin-top: 16px; }
.topic-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.topic-form > div { flex: 1 1 190px; max-width: 350px; }
.editor-heading { align-items: start; margin-bottom: 16px; }
.editor-heading h2 { font-size: 1.3rem; letter-spacing: -.03em; }
.editor-heading p { font-size: .83rem; }
.editor-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px 17px; }
.wide-field { grid-column: 1 / -1; min-width: 0; }
.editor-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; margin-top: 18px; }
.button.danger { color: #942632; background: transparent; }
.button.danger:hover { background: #fff0f0; }
.editor-delete { margin-right: auto; }
.editor .block-media img { max-height: 290px; max-width: min(100%, 500px); }

label:not(.search) { display: block; margin-bottom: 5px; font-size: .82rem; font-weight: 800; }
label span:not(.sr-only) { margin-left: 4px; color: var(--muted); font-size: .72rem; font-weight: 400; }

:is(input, select, textarea):not([type="hidden"], [type="checkbox"]) {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    color: var(--ink);
    border: 1px solid #d6b5b7;
    border-radius: 5px;
    background: var(--white);
}
input[type="search"] { min-height: 36px; font-size: .78rem; }
input[type="file"] { max-width: 520px; font-size: .83rem; }
input::file-selector-button {
    padding: 5px 10px;
    margin-right: 8px;
    border: 0;
    border-radius: 4px;
    color: var(--red);
    background: #f7e8e7;
    font: inherit;
    cursor: pointer;
}
textarea { resize: vertical; }
.field-help { color: var(--muted); font-size: .73rem; margin-top: 4px; }
label.check-label { display: flex; gap: 6px; align-items: center; margin: 10px 0 0; font-weight: 400; }

.login-page { display: grid; place-items: center; min-height: 100dvh; padding: 25px; }
.login-wrap { width: min(100%, 440px); }
.login-wrap .brand { display: flex; width: fit-content; margin: 0 auto 25px; font-size: 1.06rem; }
.login-card { border-top: 4px solid #ed3b56; }
.login-card { color: var(--ink); }
.login-card .topic-label { margin-bottom: 7px; }
.login-card h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); margin-bottom: 19px; }
.login-card .primary { width: 100%; margin-top: 15px; }

@media (max-width: 1000px) {
    .wrap { width: calc(100% - 64px); }
    .panel-block { align-items: flex-start; flex-direction: column; }
    .block-actions { align-self: flex-end; }
}

@media (max-width: 700px) {
    .wrap { width: calc(100% - 40px); }
    .masthead { min-height: 69px; }
    .public-page .masthead { min-height: 58px; }
    .broadcast-status { gap: 8px; padding: 7px 10px; font-size: .61rem; }
    .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .hero-copy { position: relative; z-index: 1; padding-block: 21px 19px; }
    .hero h1 { font-size: clamp(1.78rem, 8.9vw, 3.8rem); }
    .hero-description { margin-top: 7px; }
    .evidence-art { position: absolute; inset: 0 0 0 67%; opacity: .24; pointer-events: none; }
    .timeline { padding-block: 19px 35px; }
    .timeline-heading { padding-bottom: 12px; }
    .waiting { margin-top: 15px; padding: 24px 14px; }
    .update { grid-template-columns: 58px minmax(0, 1fr); gap: 11px; }
    .update-clock { font-size: .85rem; padding-top: 17px; }
    .update-clock::after { top: 22px; }
    .update-card { padding: 14px 12px 16px; }
    .block-text { font-size: .88rem; }
    .workspace { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .panel-main { padding-top: 22px; }
    .editor-fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    :is(input, select, textarea):not([type="hidden"], [type="checkbox"]) { font-size: 1rem; }
    .panel-block { align-items: center; flex-direction: row; }
    .block-actions { align-self: center; }
}

@media (max-width: 430px) {
    .panel-broadcast .masthead { gap: 12px; }
    .brand { gap: 6px; font-size: .74rem; }
    .brand-mark { width: 31px; height: 31px; }
    .panel-nav { gap: 5px; }
    .panel-nav .button { padding-inline: 8px; font-size: .71rem; }
    .panel-block { align-items: flex-start; flex-direction: column; }
    .block-actions { align-self: flex-end; }
}

@media (max-width: 350px) {
    .wrap { width: calc(100% - 30px); }
    .masthead { gap: 12px; }
    .panel-heading .button { min-height: 36px; }
    .update { grid-template-columns: 48px minmax(0, 1fr); }
}

.truth-block {
    margin-top: .9rem;
    padding: .85rem 1rem 1rem;
    border-left: 3px solid #a91d3a;
    border-radius: 0 .45rem .45rem 0;
    color: #33151f;
    background: #faefec;
}

.truth-label {
    color: #891831;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .065em;
}

.truth-block .block-text { margin-top: .5rem; line-height: 1.65; }
.truth-block .block-source a { color: #891831; }

.panel-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.poll-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.poll-control label { font-weight: 800; }

.activate-link { margin-top: 1rem; text-align: center; }
.accounts-page { max-width: 850px; }
.account-list { display: grid; gap: 8px; margin-top: 12px; }
.account-list .panel-block { flex-wrap: wrap; }
.account-actions { flex-wrap: wrap; }
.accounts-page #invite-code { margin-top: 6px; font-family: ui-monospace, monospace; }
