@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #02070b;
  --surface: rgba(4, 17, 25, 0.94);
  --surface-2: rgba(7, 27, 39, 0.92);
  --line: #238bb5;
  --line-soft: rgba(75, 180, 220, 0.28);
  --cyan: #55d8ff;
  --cyan-strong: #1bb8ef;
  --ice: #e8f8fd;
  --muted: #8faebb;
  --cream: #f3efcf;
  --red: #ef334f;
  --green: #58e68d;
  --header-h: 64px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--ice);
  background: var(--bg);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 22px); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ice); }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(37, 151, 194, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 151, 194, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, rgba(18, 114, 157, 0.18), transparent 40%);
  background-size: 24px 24px, 24px 24px, auto;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.12;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.08) 4px);
}
a { color: var(--cyan); }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(1, 9, 14, 0.96);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.site-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; border-bottom: 1px solid var(--line-soft); }
.nav-brand { color: var(--ice); font-family: "Barlow Condensed", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: 1px; text-decoration: none; text-transform: uppercase; }
.nav-brand::before { content: "> "; color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a, .nav-links button {
  min-height: 36px;
  padding: 8px 11px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-links a:hover, .nav-links button:hover { color: var(--ice); border-color: var(--cyan); }

.page-shell { width: min(1540px, calc(100% - 40px)); margin: 22px auto 70px; }
.page-shell > section { scroll-margin-top: calc(var(--header-h) + 20px); }

.live-dashboard-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #01070b;
  box-shadow: 0 0 0 4px rgba(28,128,168,.12), 0 28px 70px rgba(0,0,0,.56);
}
.live-dashboard-hero iframe { display: block; width: 100%; height: 100%; border: 0; background: #01070b; }

.campaign-intro { position: relative; margin-top: 22px; padding: clamp(26px,4vw,48px); border: 1px solid var(--line-soft); background: var(--surface); box-shadow: 0 18px 42px rgba(0,0,0,.28); }
.campaign-intro::before { content: ""; position: absolute; top: -1px; left: 28px; width: 110px; border-top: 3px solid var(--cyan); }
.campaign-intro h1 { max-width: 950px; margin: 0; color: var(--cream); font-family: "Barlow Condensed",sans-serif; font-size: clamp(38px,5vw,68px); line-height: .95; text-transform: uppercase; }
.campaign-intro > p:not(.kicker) { max-width: 88ch; margin: 22px 0; color: #c4d2d8; font-size: 14px; line-height: 1.75; }

.sg-screen {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(1, 8, 13, .95);
  box-shadow: 0 0 0 4px rgba(28, 128, 168, .12), 0 28px 70px rgba(0,0,0,.56);
}
.sg-screen { display: none; }
.sg-screen::before { content: ""; position: absolute; inset: 45px 0 110px; pointer-events: none; background: linear-gradient(115deg, transparent 24%, rgba(49,199,255,.035) 24.3%, transparent 24.6%), linear-gradient(65deg, transparent 76%, rgba(49,199,255,.035) 76.3%, transparent 76.6%); }
.sg-header { height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line-soft); color: var(--cyan); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.sg-header span:last-child { justify-self: end; }

.sg-terminal {
  position: relative;
  min-height: clamp(610px, 50vw, 760px);
  margin: 14px;
  border: 1px solid var(--line);
  border-radius: 18px 0 18px 0;
  background: linear-gradient(rgba(7, 26, 36, .12), rgba(0,0,0,.3));
}
.top-code { position: absolute; top: 12px; left: 24%; width: 44%; height: 25px; display: flex; align-items: center; gap: 15px; padding-left: 24px; border-top: 1px solid var(--line); }
.top-code::before, .top-code::after { content: ""; position: absolute; top: -1px; height: 16px; border-left: 1px solid var(--line); }
.top-code::before { left: 0; } .top-code::after { right: 0; }
.top-code i { width: 10px; height: 7px; background: var(--cyan); box-shadow: 0 0 8px rgba(85,216,255,.4); }
.top-code i:nth-child(3n) { background: var(--cream); }

.left-stack { position: absolute; top: 54px; bottom: 138px; left: 18px; width: 17%; display: grid; grid-template-rows: 96px repeat(3, 1fr); gap: 10px; }
.logo-tile, .avatar-tile, .blank-tile { min-height: 0; overflow: hidden; border: 1px solid var(--line); background: rgba(2, 11, 17, .88); }
.logo-tile { display: grid; place-items: center; padding: 10px; }
.logo-tile img { display: block; max-width: 100%; max-height: 74px; filter: drop-shadow(0 0 10px rgba(85,216,255,.28)); }
.avatar-tile, .data-tile { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px; color: var(--muted); font-size: 10px; line-height: 1.25; }
.avatar-tile span, .data-tile span { color: var(--cyan); font-weight: 600; }
.avatar-tile i { color: var(--green); font-style: normal; }

.chevron-panel { position: absolute; left: 18px; bottom: 18px; width: 17%; padding: 12px; border: 1px solid var(--line-soft); background: rgba(2, 12, 18, .92); }
.chevron-panel p { margin: 0 0 8px; color: var(--cyan); font-size: 10px; }
.chevron-panel b { display: grid; grid-template-columns: 1fr 42px; align-items: center; gap: 8px; margin: 5px 0; color: var(--cream); font-size: 10px; font-weight: 500; }
.chevron-panel i { display: block; height: 7px; border: 1px solid #9bb6a5; background: linear-gradient(90deg, #31ef7b 0 82%, #07120c 82%); animation: chevron-read 3.6s ease-in-out infinite; }
.chevron-panel b:nth-child(3) i { animation-delay: .25s; }.chevron-panel b:nth-child(4) i { animation-delay: .5s; }.chevron-panel b:nth-child(5) i { animation-delay: .75s; }.chevron-panel b:nth-child(6) i { animation-delay: 1s; }.chevron-panel b:nth-child(7) i { animation-delay: 1.25s; }
.chevron-panel i.red { background: linear-gradient(90deg, var(--red) 0 30%, #16070a 30%); }

.address-stack { position: absolute; top: 88px; right: 18px; bottom: 52px; width: 17%; display: grid; grid-template-rows: repeat(7, minmax(0,1fr)); gap: 9px; }
.glyph-meta { position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 10px 12px; border: 1px solid var(--line); background: rgba(3, 15, 23, .9); color: var(--ice); text-align: left; text-decoration: none; cursor: pointer; }
.glyph-meta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cyan-strong); opacity: .5; }
.glyph-meta strong { color: var(--cream); font-family: "Barlow Condensed", sans-serif; font-size: clamp(18px, 1.7vw, 30px); line-height: 1; }
.glyph-meta em { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }

.gate-wrap { position: absolute; top: 64px; bottom: 160px; left: 20%; right: 20%; display: grid; place-items: center; }
.css-gate { position: relative; width: min(41vw, 580px); max-width: 88%; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(from 2deg, #c3cfca 0 1deg, #137f8b 1deg 5deg, #041217 5deg 7deg); box-shadow: 0 0 0 4px #76b8bf, 0 0 0 10px #07141a, 0 0 0 12px #3ba3b4, 0 0 35px rgba(85,216,255,.32); }
.css-gate::before { content: ""; position: absolute; inset: 10%; border: 2px solid #d7ddc6; border-radius: 50%; background: repeating-conic-gradient(from 1deg, transparent 0 7deg, rgba(238,241,207,.78) 7deg 7.8deg), #061015; box-shadow: inset 0 0 22px #000, 0 0 0 5px #0a8a9b; }
.gate-band { position: absolute; inset: 4%; z-index: 2; border: 2px solid var(--cream); border-radius: 50%; opacity: .62; }
.gate-segments { position: absolute; inset: 7%; z-index: 2; border-radius: 50%; background: repeating-conic-gradient(transparent 0 9deg, rgba(243,239,207,.7) 9deg 9.7deg); mask: radial-gradient(transparent 0 73%, #000 74% 78%, transparent 79%); }
.gate-inner { position: absolute; inset: 22%; z-index: 3; border: 1px solid rgba(243,239,207,.7); border-radius: 50%; background: radial-gradient(circle, #fff 0 1px, #ac2232 2px, rgba(73, 8, 12, .65) 8%, #020405 33%); box-shadow: inset 0 0 45px #000, 0 0 28px rgba(255,255,255,.14); }
.css-gate > i { position: absolute; z-index: 4; top: 50%; left: 50%; width: 9%; height: 11%; transform: translate(-50%,-50%) rotate(var(--a)) translateY(-505%) rotate(45deg); border: 2px solid var(--cream); background: #07323a; box-shadow: 0 0 0 2px #02090c; }
.pulse { position: absolute; z-index: 8; width: 8px; height: 8px; border-radius: 50%; background: white; box-shadow: 0 0 12px 5px rgba(255,255,255,.65), 0 0 38px 16px rgba(194,39,55,.42); animation: core-pulse 2.8s ease-in-out infinite; }
.tweet-storm-countdown { position: absolute; z-index: 10; width: min(290px, 60%); padding: 16px; border: 1px solid var(--red); background: rgba(7,3,5,.94); text-align: center; }
.tweet-storm-countdown p, .tweet-storm-countdown span { margin: 0; display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.tweet-storm-countdown strong { display: block; margin: 6px 0; color: var(--red); font-family: "Barlow Condensed", sans-serif; font-size: 34px; }

.lst { position: absolute; bottom: 119px; color: var(--cream); font-size: 10px; }
.lst-left { left: 24%; } .lst-right { right: 24%; }
.ruler { position: absolute; left: 23%; right: 22%; bottom: 94px; height: 18px; border-top: 2px solid var(--cyan); background: repeating-linear-gradient(90deg, var(--cyan) 0 1px, transparent 1px 34px); }
.idle { position: absolute; left: 31%; right: 31%; bottom: 40px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(243,239,207,.45); background: rgba(25,3,7,.72); color: var(--red); font-family: "Barlow Condensed", sans-serif; font-size: 36px; font-weight: 700; letter-spacing: 8px; text-shadow: 0 0 14px var(--red); }
.auth { position: absolute; left: 20%; bottom: 13px; color: var(--cream); font-size: 9px; }
.auth span { margin-left: 8px; padding: 3px 6px; border: 1px solid var(--line); color: var(--cyan); }
.user-log { position: absolute; right: 21%; bottom: 12px; color: var(--cream); font-size: 9px; line-height: 1.35; }

.command-strip { min-height: 108px; display: grid; grid-template-columns: minmax(240px,.8fr) minmax(320px,1.5fr) auto auto; align-items: center; gap: 24px; padding: 18px 24px; border-top: 1px solid var(--line); background: rgba(3,14,20,.96); }
.eyebrow, .kicker { margin: 0 0 7px; color: var(--cyan); font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.command-strip h1, section h2 { margin: 0; font-family: "Barlow Condensed", sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.command-strip h1 { font-size: 30px; }
.command-strip > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.primary-link, .read-comment, .tweet-button, .comment-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 1px solid var(--cyan-strong); background: #07354a; color: var(--ice); font-weight: 600; text-decoration: none; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 18px rgba(27,184,239,.15); }
.primary-link:hover, .read-comment:hover, .tweet-button:hover, .comment-link:hover { background: #0b4d69; }
.uplink { color: var(--muted); font-size: 11px; white-space: nowrap; }.uplink i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.discord-panel, .petition-panel, .news-panel, .action-panel, .highlighted-x-panel, .x-panel, .dashboard {
  position: relative;
  margin-top: 22px;
  padding: clamp(24px, 3vw, 46px);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}
.upcoming-events {
  position: relative;
  margin-top: 22px;
  padding: clamp(24px,3vw,40px);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(35,139,181,.1), transparent 48%),
    var(--surface);
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}
.upcoming-events::before { content: ""; position: absolute; top: -1px; left: 28px; width: 110px; border-top: 3px solid var(--cyan); }
.upcoming-events-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.events-directory-link { flex: none; padding-bottom: 4px; border-bottom: 1px solid var(--cyan); color: var(--cyan); font-size: 10px; font-weight: 600; text-decoration: none; text-transform: uppercase; }
.events-directory-link::after { content: "  >"; }
.upcoming-events-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.upcoming-event-card { position: relative; min-width: 0; min-height: 230px; display: flex; flex-direction: column; padding: 20px 22px; overflow: hidden; border: 1px solid var(--line-soft); background: rgba(4,20,29,.94); }
.upcoming-event-card::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; border-top: 3px solid var(--cyan); }
.upcoming-event-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.upcoming-event-meta strong { color: var(--green); font-size: 9px; white-space: nowrap; }
.upcoming-event-card h3 { margin: 23px 0 7px; color: var(--cream); font-family: "Barlow Condensed",sans-serif; font-size: clamp(25px,2.5vw,36px); line-height: 1; text-transform: uppercase; }
.upcoming-event-card time { color: var(--cyan); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.upcoming-event-card > p { flex: 1; margin: 13px 0; color: #c5d5da; font-size: 11px; line-height: 1.55; }
.upcoming-event-details { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-bottom: 14px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.upcoming-event-card > a { align-self: flex-start; padding-bottom: 3px; border-bottom: 1px solid var(--cyan); color: var(--cyan); font-size: 9px; font-weight: 600; text-decoration: none; text-transform: uppercase; }
.upcoming-event-card > a::after { content: "  >"; }
.upcoming-event-placeholder { grid-column: 1 / -1; padding: 22px; border: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }
.discord-panel::before, .petition-panel::before, .news-panel::before, .action-panel::before, .highlighted-x-panel::before, .x-panel::before, .dashboard::before { content: ""; position: absolute; top: -1px; left: 28px; width: 110px; border-top: 3px solid var(--cyan); }
.discord-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 34px; }
section h2 { max-width: 100%; color: var(--cream); font-size: clamp(28px, 3vw, 44px); overflow-wrap: anywhere; }
section h3 { margin: 0 0 12px; color: var(--ice); font-family: "Barlow Condensed", sans-serif; font-size: 24px; text-transform: uppercase; }
section p, section li { color: #c4d2d8; font-size: 14px; line-height: 1.75; }
.petition-copy { max-width: 1000px; }
.petition-copy p { max-width: 86ch; }
.form-message { margin: 28px 0 0; padding: 12px 14px; border-left: 3px solid var(--cyan); background: rgba(35,139,181,.1); color: var(--muted); }

.news-panel-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.news-view-more { flex: none; padding: 8px 0 4px; border: 0; border-bottom: 1px solid var(--cyan); background: transparent; color: var(--cyan); font-size: 10px; font-weight: 600; text-transform: uppercase; cursor: pointer; }
.news-view-more::after { content: "  >"; }
.news-list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.news-item { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: rgba(4,20,29,.78); }
.news-item time, .news-item-source { color: var(--muted); font-size: 8px; line-height: 1.35; text-transform: uppercase; }
.news-item h3 { margin: 0; font-size: clamp(18px,1.7vw,24px); line-height: 1.08; }
.news-item h3 a { color: var(--cream); text-decoration: none; }
.news-item h3 a:hover { color: var(--cyan); }
.news-item p { flex: 1; display: -webkit-box; margin: 0; overflow: hidden; color: #afc3cb; font-size: 10px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-placeholder { grid-column: 1 / -1; padding: 20px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }
.news-dialog { width: min(940px,100%); }
.news-modal-list { display: grid; gap: 10px; margin-top: 22px; }
.news-modal-item { min-width: 0; padding: 18px 20px; border: 1px solid var(--line-soft); background: rgba(4,20,29,.86); }
.news-modal-item h3 { margin: 6px 0 9px; font-size: 22px; line-height: 1.1; }
.news-modal-item h3 a { color: var(--cream); text-decoration: none; }
.news-modal-item h3 a:hover { color: var(--cyan); }
.news-modal-item p { margin: 0; color: #b8cbd2; font-size: 11px; line-height: 1.6; }
.news-modal-meta { color: var(--muted); font-size: 8px; text-transform: uppercase; }

.action-panel, .highlighted-x-panel { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.5fr); gap: clamp(30px,5vw,80px); }
.action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.action-card, .signature-card, .trend-card { min-width: 0; padding: 20px; border: 1px solid var(--line-soft); background: var(--surface-2); }
.action-card ul { padding-left: 20px; overflow-wrap: anywhere; }
.source-link { display: inline-block; margin-top: 14px; font-size: 11px; }
.tag-line { color: var(--cyan); font-family: "Barlow Condensed",sans-serif; font-size: 28px; font-weight: 700; }
.highlighted-x-list { min-width: 0; display: grid; gap: 12px; }

.x-panel, .dashboard { display: grid; grid-template-columns: minmax(190px, .45fr) minmax(0,1.55fr); gap: clamp(30px,5vw,74px); }
.counter { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); container-type: inline-size; padding: 24px; border: 1px solid var(--line); text-align: center; background: #061720; }
.counter span {
  display: block;
  width: 100%;
  color: var(--cyan);
  font-family: "Barlow Condensed",sans-serif;
  font-size: clamp(38px, 25cqi, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.counter p { margin: 8px 0 0; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.recent { min-width: 0; }
.recent > h2:not(:first-child) { margin-top: 34px; }
.signature-list, .petition-list { display: grid; gap: 10px; min-width: 0; }
.petition-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.petition-list > *, .signature-list > * { min-width: 0; overflow-wrap: anywhere; }
.petition-list .petition-card {
  position: relative;
  min-height: 190px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, rgba(45,170,216,.09), transparent 55%),
    rgba(4,20,29,.94);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.petition-list .petition-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  border-top: 3px solid var(--cyan);
}
.petition-list .petition-card strong {
  display: block;
  min-height: 49px;
  padding-right: 6px;
  color: var(--ice);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  line-height: 1.05;
  text-transform: uppercase;
}
.petition-list .petition-card strong small {
  display: table;
  margin-top: 8px;
  padding: 4px 7px;
  border: 1px solid rgba(88,230,141,.5);
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.petition-list .petition-card > span {
  align-self: end;
  display: block;
  margin-top: 18px;
  color: var(--cream);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(31px,3vw,46px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.petition-list .petition-card > em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}
.petition-list .petition-card > a {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}
.petition-list .petition-card > a::after { content: "  >"; }
.petition-list .petition-card.official-petition {
  border-color: rgba(88,230,141,.58);
  background:
    linear-gradient(135deg, rgba(88,230,141,.11), transparent 58%),
    rgba(4,22,28,.96);
  box-shadow: 0 0 24px rgba(88,230,141,.08), inset 0 1px rgba(255,255,255,.03);
}
.petition-list .petition-card.official-petition::before { width: 100%; border-color: var(--green); }

.trend-scan {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin: 18px 0 22px;
}
.trend-scan .trend-card {
  position: relative;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 15px 16px 15px 20px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(4,20,29,.92);
}
.trend-scan .trend-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--line);
}
.trend-scan .trend-card strong {
  color: var(--ice);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}
.trend-scan .trend-card span { color: var(--muted); font-size: 9px; line-height: 1.45; text-transform: uppercase; }
.trend-scan .trend-summary {
  grid-column: 1 / -1;
  min-height: 96px;
  padding-left: 24px;
  border-color: rgba(85,216,255,.48);
  background:
    linear-gradient(90deg, rgba(35,139,181,.17), transparent 62%),
    rgba(4,20,29,.96);
}
.trend-scan .trend-summary strong { color: var(--cyan); font-size: 28px; }
.trend-scan .trend-summary span { color: #bfd3da; font-size: 11px; }
.trend-scan .trend-card.is-live { border-color: rgba(88,230,141,.54); }
.trend-scan .trend-card.is-live::before { background: var(--green); box-shadow: 0 0 12px var(--green); }
.trend-scan .trend-card.is-live strong::after { content: " LIVE"; margin-left: 7px; color: var(--green); font-family: "IBM Plex Mono",monospace; font-size: 8px; }
.comment-log-toggle { min-height: 42px; margin-top: 14px; padding: 9px 14px; border: 1px solid var(--line); background: transparent; color: var(--cyan); cursor: pointer; }

#comment-list .comment-log {
  min-width: 0;
  overflow: visible;
}
#comment-list .comment-log-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px 20px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--cyan);
  background: rgba(35,139,181,.08);
}
#comment-list .comment-log-status {
  margin: 0;
  color: var(--ice);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}
#comment-list .comment-log-source-note {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}
#comment-list .comment-log-header .comment-log-toggle {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 104px;
  margin: 0;
  background: rgba(7,53,74,.65);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
#comment-list .comment-log-items {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-color: var(--line) rgba(1,8,13,.8);
  scrollbar-width: thin;
}
#comment-list .comment-log-card {
  position: relative;
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 20px 20px 17px 24px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, rgba(35,139,181,.08), transparent 58%),
    rgba(4,20,29,.94);
  color: var(--ice);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
#comment-list .comment-log-card::before {
  content: "PETITION";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  overflow: hidden;
  background: var(--green);
  color: transparent;
  box-shadow: 0 0 12px rgba(88,230,141,.2);
}
#comment-list .comment-log-card.youtube-comment::before { content: "YOUTUBE"; background: var(--red); box-shadow: 0 0 12px rgba(239,51,79,.22); }
#comment-list .comment-log-card::after {
  content: "PETITION";
  position: absolute;
  top: 13px;
  right: 14px;
  padding: 3px 6px;
  border: 1px solid rgba(88,230,141,.42);
  color: var(--green);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .5px;
}
#comment-list .comment-log-card.youtube-comment::after { content: "YOUTUBE"; border-color: rgba(239,51,79,.48); color: #ff6f84; }
#comment-list .comment-log-card:hover { border-color: rgba(85,216,255,.62); background-color: rgba(8,31,43,.98); transform: translateY(-2px); }
#comment-list .comment-log-card strong {
  display: block;
  max-width: calc(100% - 84px);
  overflow: hidden;
  color: var(--cream);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 21px;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
#comment-list .comment-log-card > p {
  display: -webkit-box;
  flex: 1;
  margin: 15px 0 12px;
  overflow: hidden;
  color: #d3e0e4;
  font-size: 13px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
#comment-list .comment-log-card .post-meta {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#comment-list .comment-log-card > em {
  align-self: flex-start;
  margin-top: 12px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
}
#comment-list .comment-log-card > em::after { content: "  >"; }
#comment-list .comment-log-card.new-comment { animation: comment-arrive 1.1s ease both; }

@keyframes comment-arrive { 0% { opacity: 0; transform: translateY(-12px); box-shadow: 0 0 30px rgba(85,216,255,.35); } 100% { opacity: 1; transform: translateY(0); box-shadow: none; } }
.progress-track { position: relative; width: 100%; height: 7px; margin-top: 16px; overflow: hidden; border: 1px solid var(--line-soft); background: #02090c; }
.progress-fill { height: 100%; background: var(--cyan); transition: width .8s ease; }

.site-footer { padding: 28px 20px 42px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; line-height: 1.8; text-align: center; }

.comment-softbox[hidden] { display: none; }
.comment-softbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(0,5,8,.86); backdrop-filter: blur(8px); }
.comment-dialog { position: relative; width: min(760px,100%); max-height: min(82vh,900px); overflow: auto; padding: clamp(26px,4vw,48px); border: 1px solid var(--cyan); background: #04121a; box-shadow: 0 0 50px rgba(27,184,239,.22); }
.comment-close { position: sticky; float: right; top: 0; width: 38px; height: 38px; border: 1px solid var(--line); background: #071b25; color: var(--ice); cursor: pointer; }
.comment-dialog h2 { padding-right: 50px; }
.comment-dialog p { white-space: pre-wrap; overflow-wrap: anywhere; }
.email-template { color: #cbd9de; }
.contact-mail { display: block; margin: 24px 0; overflow-wrap: anywhere; font-size: clamp(16px,3vw,24px); }

@keyframes core-pulse { 0%,100% { transform: scale(.8); opacity: .7; } 50% { transform: scale(1.45); opacity: 1; } }
@keyframes chevron-read { 0%,100% { filter: brightness(.75); } 50% { filter: brightness(1.35); } }

@media (max-width: 1050px) {
  :root { --header-h: 58px; }
  .site-nav { padding: 0 16px; }
  .nav-links { overflow-x: auto; }
  .nav-links a, .nav-links button { flex: none; }
  .page-shell { width: min(100% - 22px, 900px); margin-top: 12px; }
  .sg-header { grid-template-columns: 1fr auto; }.sg-header span:nth-child(2) { display: none; }
  .sg-terminal { min-height: 700px; }
  .left-stack { width: 20%; }.chevron-panel { width: 20%; }
  .address-stack { width: 20%; }
  .gate-wrap { left: 22%; right: 22%; }
  .css-gate { width: min(52vw,500px); }
  .command-strip { grid-template-columns: 1fr auto; }
  .command-strip > p { grid-column: 1 / -1; grid-row: 2; }
  .uplink { justify-self: end; }
  .action-panel, .highlighted-x-panel { grid-template-columns: 1fr; gap: 26px; }
  .news-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .petition-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trend-scan { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  :root { --header-h: 56px; }
  .site-nav { align-items: flex-start; min-height: 56px; padding: 16px; }
  .nav-brand { font-size: 18px; white-space: nowrap; }
  .nav-links { position: absolute; top: 55px; left: 0; right: 0; display: none; padding: 8px; border-bottom: 1px solid var(--line); background: #020b10; }
  .site-nav:focus-within .nav-links, .site-nav:hover .nav-links { display: flex; }
  .page-shell { width: calc(100% - 14px); margin-top: 8px; }
  .live-dashboard-hero { aspect-ratio: 16 / 9; }
  .sg-header { height: 40px; padding: 0 10px; font-size: 8px; }
  .sg-terminal { min-height: 0; margin: 7px; padding: 48px 10px 12px; display: grid; grid-template-columns: 1fr; gap: 12px; border-radius: 12px 0 12px 0; }
  .top-code { top: 14px; left: 10%; width: 80%; gap: 9px; }
  .left-stack, .chevron-panel, .address-stack, .gate-wrap, .lst, .ruler, .idle, .auth, .user-log { position: relative; inset: auto; width: auto; }
  .gate-wrap { order: 1; min-height: 68vw; }
  .css-gate { width: min(68vw, 390px); max-width: none; }
  .left-stack { order: 2; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 74px 110px; gap: 8px; }
  .logo-tile img { max-height: 52px; }
  .avatar-tile, .data-tile { padding: 8px; font-size: 8px; }
  .chevron-panel { order: 3; display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; padding: 9px; }
  .chevron-panel p { grid-column: 1 / -1; }.chevron-panel b { display: flex; flex-direction: column; gap: 4px; margin: 0; text-align: center; }.chevron-panel i { width: 100%; }
  .address-stack { order: 4; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(4,68px); gap: 7px; }
  .glyph-meta:first-child { grid-column: 1 / -1; }
  .glyph-meta strong { font-size: 23px; }
  .lst { display: none; }
  .ruler { order: 5; height: 14px; }
  .idle { order: 6; left: auto; right: auto; bottom: auto; height: 48px; font-size: 30px; }
  .user-log { order: 7; padding: 10px; border-left: 2px solid var(--line); font-size: 8px; }
  .auth { order: 8; padding: 6px 0; font-size: 8px; }.auth span { display: inline-block; margin-top: 4px; }
  .command-strip { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .command-strip > p { grid-column: auto; grid-row: auto; }.primary-link { width: 100%; }.uplink { justify-self: start; }
  .discord-panel, .petition-panel, .news-panel, .action-panel, .highlighted-x-panel, .x-panel, .dashboard, .upcoming-events { margin-top: 12px; padding: 22px 18px; }
  .discord-panel, .x-panel, .dashboard { grid-template-columns: 1fr; gap: 24px; }
  .discord-panel, .discord-panel > *, .petition-panel, .petition-panel > *, .news-panel, .news-panel > *, .action-panel, .action-panel > *, .highlighted-x-panel, .highlighted-x-panel > *, .x-panel, .x-panel > *, .dashboard, .dashboard > * { min-width: 0; width: 100%; max-width: 100%; }
  .counter { position: relative; top: auto; }
  .progress-track { width: 100%; margin: 16px 0 0; }
  .action-grid { grid-template-columns: 1fr; }
  .news-panel-header { align-items: flex-start; flex-direction: column; }
  .news-view-more { width: auto; }
  .news-list { grid-template-columns: 1fr; }
  .upcoming-events-header { align-items: flex-start; flex-direction: column; }
  .upcoming-events-grid { grid-template-columns: 1fr; }
  .upcoming-event-card { min-height: 215px; }
  .petition-list, .trend-scan { grid-template-columns: 1fr; }
  #comment-list .comment-log-items { grid-template-columns: 1fr; max-height: 620px; }
  #comment-list .comment-log-header { grid-template-columns: 1fr; }
  #comment-list .comment-log-source-note { grid-column: 1; }
  #comment-list .comment-log-header .comment-log-toggle { grid-column: 1; grid-row: auto; width: 100%; }
  #comment-list .comment-log-card { min-height: 176px; }
  .petition-list .petition-card { min-height: 170px; }
  .petition-list .petition-card > span { font-size: 38px; }
  section h2 { font-size: clamp(24px, 7vw, 30px); line-height: 1.08; white-space: normal; word-break: break-word; }
  .discord-panel > div, .petition-copy, .action-panel > div, .highlighted-x-panel > div, .recent { min-width: 0; max-width: 100%; overflow: hidden; }
  section p, section li { font-size: 13px; line-height: 1.65; }
  .comment-softbox { padding: 8px; }.comment-dialog { max-height: 94vh; padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
