:root {
  color-scheme: dark;
  --bg: #080809;
  --bg-2: #0d0d12;
  --panel: #101014;
  --panel-2: #15151c;
  --line: rgba(210, 210, 220, 0.12);
  --line-strong: rgba(210, 210, 220, 0.22);
  --text: #e8e8ea;
  --muted: #8e8e98;
  --dim: #5d5d68;
  --red: #ff5588;
  --red-2: #cc3355;
  --blue: #7ab4ff;
  --blue-2: #3355cc;
  --purple: #c07aff;
  --purple-2: #7744bb;
  --amber: #f09a21;
  --green: #88cc88;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 72px);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(119, 68, 187, 0.16), transparent 30rem),
    radial-gradient(circle at 14% 8%, rgba(204, 51, 85, 0.11), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

p {
  color: var(--muted);
}

h1,
h2,
h3,
button,
input,
textarea,
select {
  font-family: var(--sans);
  letter-spacing: 0;
}

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: static;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  display: block;
  width: 190px;
  height: 52px;
}

.brand > span {
  display: none;
}

.case-lines span,
.thread-node,
.thread-line,
.vision-graphic span {
  font-size: 0;
  line-height: 0;
}

.brand strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.1;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
}

.main-nav a,
.header-cta {
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.main-nav a:hover,
.header-cta:hover {
  color: var(--text);
}

.nav-external {
  color: var(--amber) !important;
  font-weight: 700;
}

.nav-external:hover {
  color: var(--red) !important;
}

.header-cta {
  border: 1px solid rgba(240, 154, 33, 0.45);
  background: rgba(240, 154, 33, 0.12);
  color: var(--amber);
  padding: 8px 12px;
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-link {
  color: var(--muted);
  font-size: 13px;
}

.header-link:hover {
  color: var(--text);
}

main {
  overflow: hidden;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.hero {
  min-height: calc(100vh - 72px);
  padding: clamp(38px, 8vw, 96px) 0 clamp(58px, 8vw, 98px);
}

.kicker {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  color: #f7f7f8;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 760;
  line-height: 1.04;
}

h2 {
  color: #f2f2f4;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 740;
  line-height: 1.1;
}

h3 {
  color: #f3f3f4;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.red {
  color: var(--red);
}

.blue {
  color: var(--blue);
}

.purple {
  color: var(--purple);
}

.hero-sub {
  max-width: 530px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.65;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin-top: 28px;
}

.signal-row span {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: #bdbdc5;
  padding: 7px 10px;
  font-size: 11px;
}

.signal-row span:nth-child(3n + 1) {
  border-color: rgba(255, 85, 136, 0.32);
}

.signal-row span:nth-child(3n + 2) {
  border-color: rgba(122, 180, 255, 0.32);
}

.signal-row span:nth-child(3n + 3) {
  border-color: rgba(192, 122, 255, 0.32);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--amber);
  color: #120d04;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  color: #d8d8dd;
}

.btn-secondary:hover {
  border-color: rgba(240, 154, 33, 0.52);
  color: var(--amber);
}

.intel-panel,
.evidence-band,
.vision-band {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 85, 136, 0.08), rgba(51, 85, 204, 0.08) 52%, rgba(192, 122, 255, 0.07));
  background-size: 28px 28px, 28px 28px, auto;
}

.intel-panel {
  min-height: 530px;
  padding: 34px;
}

.corner {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.corner::before,
.corner::after {
  content: "";
  position: absolute;
  background: var(--amber);
}

.corner::before {
  width: 100%;
  height: 2px;
}

.corner::after {
  width: 2px;
  height: 100%;
}

.top-left {
  top: -1px;
  left: -1px;
}

.top-right {
  top: -1px;
  right: -1px;
  transform: rotate(90deg);
}

.bottom-right {
  right: -1px;
  bottom: -1px;
  transform: rotate(180deg);
}

.bottom-left {
  bottom: -1px;
  left: -1px;
  transform: rotate(270deg);
}

.exchange-brief {
  display: grid;
  align-content: space-between;
  gap: 26px;
}

.brief-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.brief-topline span {
  color: var(--amber);
  font-size: 11px;
  text-transform: uppercase;
}

.brief-topline strong {
  max-width: 220px;
  color: #f2f2f4;
  font-size: 24px;
  line-height: 1.05;
  text-align: right;
}

.artifact-stage {
  position: relative;
  min-height: 350px;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 28% 34%, rgba(255, 85, 136, 0.17), transparent 7rem),
    radial-gradient(circle at 74% 62%, rgba(122, 180, 255, 0.14), transparent 8rem),
    rgba(8, 8, 10, 0.34);
  overflow: hidden;
}

.artifact-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}

.case-card,
.ioc-stack,
.actor-card,
.hunt-card,
.detection-card {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line-strong);
  background: rgba(9, 9, 12, 0.84);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.case-card {
  top: 34px;
  left: 32px;
  width: min(300px, calc(100% - 64px));
  padding: 18px;
  z-index: 2;
}

.case-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-size: 9px;
  text-transform: uppercase;
}

.case-card strong {
  display: block;
  margin-top: 28px;
  color: #f1f1f3;
  font-size: 21px;
  line-height: 1.08;
}

.case-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.case-lines span {
  height: 7px;
  background: linear-gradient(90deg, rgba(240, 154, 33, 0.65), rgba(240, 154, 33, 0.08));
}

.case-lines span:nth-child(2) {
  width: 72%;
}

.case-lines span:nth-child(3) {
  width: 48%;
}

.artifact-thread {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.thread-node {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid;
  background: #09090b;
  transform: rotate(45deg);
}

.red-node {
  top: 58%;
  left: 34%;
  border-color: var(--red);
}

.amber-node {
  top: 35%;
  left: 50%;
  border-color: var(--amber);
}

.blue-node {
  right: 18%;
  bottom: 31%;
  border-color: var(--blue);
}

.thread-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 230, 235, 0.5), transparent);
  transform-origin: left;
}

.line-one {
  top: 58%;
  left: 35%;
  width: 22%;
  transform: rotate(-38deg);
}

.line-two {
  top: 37%;
  left: 51%;
  width: 31%;
  transform: rotate(45deg);
}

.ioc-stack {
  right: 22px;
  top: 28px;
  display: grid;
  gap: 8px;
  width: 174px;
  padding: 14px;
  z-index: 8;
}

.ioc-stack span,
.actor-card span,
.hunt-card span,
.detection-card span {
  color: var(--amber);
  font-size: 10px;
  text-transform: uppercase;
}

.ioc-stack code {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #cfcfd6;
  padding: 7px 8px;
  font-family: var(--mono);
  font-size: 11px;
}

.actor-card {
  top: 66px;
  right: 150px;
  width: 200px;
  padding: 14px;
  z-index: 5;
}

.hunt-card {
  left: 62px;
  bottom: 42px;
  width: 246px;
  padding: 14px;
  z-index: 6;
}

.detection-card {
  right: 64px;
  bottom: 24px;
  width: 218px;
  padding: 16px;
  z-index: 7;
}

.actor-card strong,
.detection-card strong {
  display: block;
  margin-top: 10px;
  color: #f2f2f4;
  font-size: 18px;
}

.actor-card small,
.hunt-card small,
.detection-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.hunt-card code {
  display: block;
  margin-top: 10px;
  color: #cfcfd6;
  font-family: var(--mono);
  font-size: 11px;
}

.panel-readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.panel-readout div {
  min-width: 0;
  padding: 20px 12px 0;
  border-right: 1px solid var(--line);
}

.panel-readout div:last-child {
  border-right: 0;
}

.panel-readout strong {
  display: block;
  color: var(--amber);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1;
}

.panel-readout span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.split-section,
.section-block,
.agenda-section,
.catalog-section,
.vision-band,
.evidence-band {
  margin-top: clamp(72px, 12vw, 156px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: clamp(28px, 7vw, 100px);
  align-items: center;
}

.split-section p {
  max-width: 460px;
  margin-top: 18px;
}

.split-section .btn {
  margin-top: 28px;
}

blockquote {
  margin: 0;
  color: #f3f3f4;
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 800;
  line-height: 1.25;
}

.evidence-band {
  padding: clamp(28px, 5vw, 54px);
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: start;
}

.question-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.question-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: #ededf0;
  font-weight: 700;
}

.question-list span {
  color: var(--amber);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 6vw, 86px);
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 510px;
}

.catalog-section .section-heading {
  grid-template-columns: minmax(560px, 1.05fr) minmax(360px, 0.95fr);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.four-card-grid {
  grid-template-columns: repeat(4, 1fr);
}

.topic-card {
  position: relative;
  min-height: 188px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  padding: 22px;
  overflow: hidden;
}

.topic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.topic-card:hover::before {
  opacity: 1;
}

.topic-card > * {
  position: relative;
}

.topic-card span {
  display: block;
  margin-bottom: 42px;
  color: var(--amber);
  font-size: 12px;
}

.topic-card p {
  margin-top: 10px;
  font-size: 12px;
}

.red-accent {
  border-left-color: rgba(255, 85, 136, 0.7);
}

.blue-accent {
  border-left-color: rgba(122, 180, 255, 0.7);
}

.purple-accent {
  border-left-color: rgba(192, 122, 255, 0.7);
}

.agenda-list {
  border-top: 1px solid var(--line);
}

.agenda-list article {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 110px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.agenda-num {
  color: var(--amber);
  font-size: 30px;
  font-weight: 800;
}

.agenda-list p {
  margin-top: 5px;
  font-size: 12px;
}

.agenda-list time {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.tier-list {
  display: grid;
  gap: 10px;
}

.tier-list article {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.tier-list span {
  color: var(--amber);
  font-size: 12px;
}

.tier-list p {
  margin-top: 8px;
  font-size: 12px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.rules-grid article {
  min-height: 116px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px;
  color: #e5e5e9;
  font-weight: 700;
}

.rules-grid article::before {
  content: "▪";
  color: var(--amber);
  margin-right: 8px;
}

.track-strip {
  display: grid;
  grid-auto-columns: minmax(190px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-color: var(--amber) transparent;
}

.track-strip article {
  display: grid;
  min-height: 170px;
  align-content: space-between;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.025);
  background-size: 20px 20px;
  padding: 18px;
}

.track-strip span {
  color: var(--amber);
  font-size: 28px;
  font-weight: 800;
}

.track-strip p {
  margin-top: 12px;
  font-size: 12px;
}

.track-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 180ms ease, transform 160ms ease;
}

.track-link:hover {
  transform: translateY(-2px);
}

.track-link:hover article {
  border-color: var(--amber);
}

.vision-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
}

.vision-band p:not(.kicker) {
  max-width: 620px;
  margin-top: 18px;
}

.vision-graphic {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 28% 50%, rgba(255, 85, 136, 0.2), transparent 5rem),
    radial-gradient(circle at 72% 50%, rgba(122, 180, 255, 0.18), transparent 6rem);
}

.vision-graphic span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.vision-graphic span:nth-child(1) {
  inset: 26% 48% 26% 16%;
  border-color: rgba(255, 85, 136, 0.45);
}

.vision-graphic span:nth-child(2) {
  inset: 18% 18% 18% 48%;
  border-color: rgba(122, 180, 255, 0.42);
}

.vision-graphic span:nth-child(3) {
  inset: 36% 34% 36% 34%;
  border-color: rgba(192, 122, 255, 0.55);
  transform: rotate(45deg);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 90px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer a:last-child {
  color: var(--text);
}

.auth-shell,
.request-shell {
  min-height: calc(100vh - 88px);
  padding: clamp(54px, 8vw, 110px) 0;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.75fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: center;
}

.auth-copy p:not(.kicker) {
  max-width: 560px;
  margin-top: 22px;
  font-size: 15px;
}

.auth-card,
.request-form,
.composer,
.feed-post,
.feed-rail,
.room-panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    rgba(12, 12, 16, 0.78);
  background-size: 24px 24px;
}

.auth-card,
.request-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.form-head,
.composer-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.form-head span,
.composer-head span {
  color: var(--amber);
  font-size: 10px;
  text-transform: uppercase;
}

.form-head strong,
.composer-head strong {
  color: var(--text);
  text-align: right;
}

label {
  display: grid;
  gap: 8px;
  color: #d8d8dd;
  font-size: 12px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
  outline: none;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(240, 154, 33, 0.58);
}

.form-note {
  font-size: 12px;
}

.form-note.is-error {
  color: #ff7a90;
}

.form-note a {
  color: var(--amber);
}

.request-shell .section-heading {
  margin-bottom: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-actions,
.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.composer-actions span {
  color: var(--muted);
  font-size: 11px;
}

.feed-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 18px;
  padding: clamp(34px, 6vw, 72px) 0;
}

.feed-rail,
.room-panel {
  align-self: start;
  padding: 18px;
}

.feed-rail h2 {
  font-size: 24px;
}

.rail-stats {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.rail-stats div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.rail-stats strong {
  display: block;
  color: var(--amber);
  font-size: 22px;
}

.rail-stats span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.feed-main {
  display: grid;
  gap: 16px;
}

.composer,
.feed-post {
  padding: 18px;
}

.composer textarea {
  margin-top: 16px;
}

.feed-post {
  display: grid;
  gap: 14px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}

.post-meta strong {
  color: var(--amber);
}

.artifact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.artifact-tags span {
  border: 1px solid var(--line-strong);
  color: #cfcfd6;
  padding: 5px 8px;
  font-size: 11px;
}

.comment-stack {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.comment-stack div {
  border-left: 2px solid rgba(240, 154, 33, 0.45);
  padding-left: 12px;
}

.comment-stack strong {
  color: var(--text);
  font-size: 12px;
}

.comment-stack p {
  margin-top: 3px;
  font-size: 12px;
}

.room-panel {
  display: grid;
  gap: 10px;
}

.room-panel a {
  border-bottom: 1px solid var(--line);
  color: #d8d8dd;
  padding-bottom: 10px;
  font-size: 12px;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .header-actions {
    margin-left: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .section-grid,
  .split-section,
  .band-grid,
  .section-heading,
  .catalog-section .section-heading,
  .auth-shell,
  .feed-shell,
  .vision-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .intel-panel {
    min-height: 460px;
  }

  .card-grid,
  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .four-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .room-panel {
    order: 2;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .header-cta {
    width: 100%;
    text-align: center;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .header-link,
  .header-actions .header-cta {
    flex: 1;
    text-align: center;
  }

  h1 {
    font-size: 38px;
  }

  .intel-panel {
    min-height: auto;
    padding: 18px;
  }

  .panel-readout,
  .card-grid,
  .four-card-grid,
  .form-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .panel-readout div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }

  .panel-readout div:last-child {
    border-bottom: 0;
  }

  .agenda-list article {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .agenda-list time {
    grid-column: 2;
    text-align: left;
  }

  .btn {
    width: 100%;
  }

  .brief-topline {
    display: grid;
  }

  .brief-topline strong {
    max-width: none;
    text-align: left;
  }

  .artifact-stage {
    display: grid;
    gap: 12px;
    min-height: auto;
    padding: 12px;
  }

  .artifact-thread {
    display: none;
  }

  .case-card,
  .ioc-stack,
  .actor-card,
  .hunt-card,
  .detection-card {
    position: relative;
    inset: auto;
    width: auto;
    min-width: 0;
  }

  .case-card {
    padding: 16px;
  }
}

.member-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(204, 51, 85, 0.11), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(122, 180, 255, 0.12), transparent 28rem),
    var(--bg);
}

.member-app {
  width: min(1440px, calc(100% - 32px));
  margin-inline: auto;
}

.member-topbar {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
}

.member-nav,
.member-account,
.workspace-tabs,
.toolbar-row,
.reaction-row,
.post-card-head,
.meetup-meta {
  display: flex;
  align-items: center;
}

.member-nav {
  justify-content: center;
  gap: 6px;
}

.member-nav a,
.segmented-control a,
.segmented-control button {
  border: 1px solid transparent;
  color: var(--muted);
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
}

.member-nav a.active,
.member-nav a:hover,
.segmented-control .active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.member-account {
  justify-content: end;
  gap: 12px;
}

.member-account span {
  color: var(--muted);
  font-size: 12px;
}

.member-main {
  width: 100%;
  overflow: visible;
  padding-bottom: 64px;
}

.member-hero {
  padding: 28px 0 18px;
}

.member-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(22px, 5vw, 64px);
  align-items: start;
}

.member-hero h1 {
  max-width: 880px;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.04;
}

.member-hero p:not(.kicker),
.member-status-card p {
  max-width: 760px;
  margin-top: 10px;
  font-size: 15px;
}

.member-status-card,
.sh-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    rgba(12, 12, 16, 0.82);
  background-size: 24px 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.member-status-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.member-status-card strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.sh-badge {
  width: max-content;
  border: 1px solid rgba(240, 154, 33, 0.42);
  background: rgba(240, 154, 33, 0.1);
  color: var(--amber);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.workspace-tabs {
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.workspace-tab {
  display: grid;
  min-width: 220px;
  gap: 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
}

.workspace-tab.active {
  border-color: rgba(240, 154, 33, 0.52);
  background: rgba(240, 154, 33, 0.08);
}

.workspace-tab span,
.card-label,
.detail-grid span,
.comment-row span,
.meetup-meta span {
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.workspace-tab strong {
  color: var(--text);
  font-size: 12px;
}

.member-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
}

.member-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.compact-card,
.workspace-card,
.post-card,
.meetup-card,
.detail-card,
.comments-panel {
  padding: 18px;
}

.compact-card {
  display: grid;
  gap: 10px;
}

.compact-card a {
  border-top: 1px solid var(--line);
  color: var(--text);
  padding-top: 10px;
  font-size: 12px;
}

.compact-card p {
  font-size: 12px;
}

.member-content,
.post-list,
.meetup-list {
  display: grid;
  gap: 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workspace-card {
  display: grid;
  gap: 14px;
  min-height: 270px;
  align-content: start;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.workspace-card:hover {
  border-color: rgba(240, 154, 33, 0.5);
  background-color: rgba(240, 154, 33, 0.055);
  transform: translateY(-2px);
}

.workspace-card h2,
.post-card h2,
.meetup-card h2,
.detail-card h2 {
  font-size: clamp(22px, 2.4vw, 34px);
}

.workspace-card strong {
  align-self: end;
  color: var(--amber);
}

.toolbar-row {
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.segmented-control {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  padding: 4px;
}

.segmented-control button {
  background: transparent;
  cursor: pointer;
}

.sh-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.sh-button-primary {
  border-color: rgba(240, 154, 33, 0.65);
  background: var(--amber);
  color: #100c07;
  font-weight: 800;
}

.sh-button-outline {
  border-color: rgba(240, 154, 33, 0.4);
  color: var(--amber);
}

.sh-button-ghost {
  width: max-content;
  min-height: 30px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding-inline: 0;
}

.post-card,
.detail-card {
  display: grid;
  gap: 16px;
}

.post-card-head {
  justify-content: space-between;
  gap: 20px;
}

.post-card-head h2,
.post-card-head h3 {
  margin-top: 6px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  color: #cfcfd6;
  padding: 5px 8px;
  font-size: 11px;
}

.reaction-row {
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.reaction-row span {
  color: var(--muted);
  font-size: 12px;
}

.comments-panel {
  display: grid;
  gap: 16px;
}

.comments-list {
  display: grid;
  gap: 10px;
}

.comment-row {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  padding: 14px;
}

.comment-row strong {
  color: var(--text);
}

.comment-form {
  display: grid;
  gap: 10px;
}

.comment-form textarea {
  min-height: 110px;
}

.meetup-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) 170px;
  gap: 18px;
}

.meetup-card p {
  margin-top: 10px;
}

.meetup-card-image,
.meetup-hero-image {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  object-fit: cover;
  filter: saturate(0.8) contrast(1.08);
}

.meetup-card-image {
  aspect-ratio: 1.2;
  max-height: 128px;
}

.meetup-hero-image {
  aspect-ratio: 16 / 8;
  max-height: 320px;
}

.meetup-topic {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.meetup-location {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.meetup-location span + span::before {
  content: "/";
  margin-right: 8px;
  color: var(--amber);
}

.meetup-meta {
  align-items: end;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.meetup-meta strong {
  color: var(--text);
  line-height: 1.35;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-grid div,
.material-list div {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  padding: 12px;
}

.detail-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

.material-list {
  display: grid;
  gap: 10px;
}

.meetup-session-list,
.session-admin-list {
  display: grid;
  gap: 10px;
}

.session-card,
.session-admin-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
}

.session-card span,
.session-admin-card legend {
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.session-card h4 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 15px;
}

.session-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.session-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 12px;
}

.rsvp-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.rsvp-action span,
.rsvp-note {
  color: var(--muted);
  font-size: 12px;
}

.rsvp-action .sh-button.active {
  color: var(--amber);
}

.profile-view {
  max-width: 680px;
  margin: 0 auto;
}

.profile-shell {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.profile-avatar-large {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(240, 154, 33, 0.5);
  border-radius: 999px;
  background: rgba(240, 154, 33, 0.1);
  color: var(--amber);
  font-size: 16px;
  font-weight: 800;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity {
  min-width: 0;
}

.profile-identity h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
}

.profile-identity p {
  margin: 4px 0 0;
  color: var(--muted);
}

.profile-upload {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.profile-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-upload span {
  color: var(--muted);
  font-size: 12px;
}

.profile-upload span.is-error {
  color: #ff7a90;
}

.profile-detail-list div,
.profile-list a {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 0;
}

.profile-detail-list div:first-child,
.profile-list a:first-child {
  border-top: 0;
}

.profile-detail-list span,
.profile-list span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.profile-detail-list strong,
.profile-list strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.profile-summary-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-summary-row span {
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
}

.profile-summary-row span + span::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted);
  font-weight: 400;
}

.profile-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.profile-section-head h3 {
  margin-top: 6px;
  font-size: 17px;
}

.profile-detail-list {
  display: grid;
}

.profile-list {
  display: grid;
}

.admin-view {
  max-width: 920px;
  margin: 0 auto;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-summary div,
.admin-row {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
}

.admin-summary strong {
  display: block;
  color: var(--amber);
  font-size: 22px;
}

.admin-summary span,
.admin-row span,
.admin-row p {
  color: var(--muted);
  font-size: 12px;
}

.admin-panel {
  display: grid;
  gap: 12px;
}

.admin-tabs {
  width: fit-content;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.admin-row.compact {
  align-items: center;
}

.admin-row strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.admin-row p {
  margin-top: 8px;
}

.admin-row code {
  display: inline-block;
  margin-top: 8px;
  color: var(--amber);
}

.admin-actions,
.admin-inline-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-actions select,
.admin-inline-form select,
.admin-inline-form input {
  width: auto;
  min-height: 34px;
  padding: 7px 9px;
  font-size: 12px;
}

.admin-inline-form input[name="profileLink"] {
  min-width: 220px;
}

.admin-rsvp-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-meetup-list {
  display: grid;
  gap: 8px;
}

.admin-meetup-link {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
}

.admin-meetup-link.active {
  border-color: rgba(240, 154, 33, 0.55);
  background: rgba(240, 154, 33, 0.09);
}

.admin-meetup-link strong {
  color: var(--text);
  font-size: 13px;
}

.admin-meetup-link span,
.admin-rsvp-heading p {
  color: var(--muted);
  font-size: 12px;
}

.admin-rsvp-detail {
  display: grid;
  gap: 12px;
}

.admin-rsvp-heading {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
}

.admin-rsvp-heading h3 {
  margin-top: 6px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.018);
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--text);
  font-size: 13px;
}

.admin-table td span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.admin-table td code {
  color: var(--amber);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.session-admin-card {
  display: grid;
  gap: 10px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.empty-note {
  color: var(--muted);
}

@media (max-width: 980px) {
  .member-topbar,
  .member-hero-grid,
  .member-layout,
  .choice-grid,
  .meetup-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .member-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .member-account,
  .meetup-meta {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .workspace-tabs {
    overflow-x: auto;
  }

  .member-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-summary,
  .admin-row,
  .admin-rsvp-layout {
    grid-template-columns: 1fr;
  }

  .admin-actions,
  .admin-inline-form {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .member-app {
    width: min(100% - 24px, var(--max));
  }

  .member-sidebar {
    grid-template-columns: 1fr;
  }

  .post-card-head,
  .reaction-row,
  .toolbar-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented-control {
    width: 100%;
    overflow-x: auto;
  }

  .workspace-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workspace-tab {
    min-width: 0;
  }
}

/* Member app: standard shadcn-style dashboard layout */
.member-body {
  background: var(--bg);
}

.member-body::before {
  mask-image: linear-gradient(to bottom, black, transparent 100%);
  opacity: 0.65;
}

.member-app {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
}

.member-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(8, 8, 9, 0.88);
  padding: 18px;
}

.member-sidebar .brand {
  padding-bottom: 12px;
}

.member-sidebar .brand-logo {
  width: 168px;
  height: auto;
}

.member-nav {
  display: grid;
  justify-content: stretch;
  gap: 6px;
}

.member-nav a {
  border: 1px solid transparent;
  color: var(--muted);
  padding: 10px 12px;
  font-size: 13px;
}

.member-nav a.active,
.member-nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.member-nav a.active {
  border-color: rgba(240, 154, 33, 0.42);
  background: rgba(240, 154, 33, 0.08);
}

.member-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.member-profile-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(240, 154, 33, 0.42);
  border-radius: 999px;
  background: rgba(240, 154, 33, 0.1);
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.member-profile-avatar:hover {
  border-color: rgba(240, 154, 33, 0.8);
  background: rgba(240, 154, 33, 0.16);
  color: var(--text);
}

.member-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 5px;
}

.member-account .sh-button {
  width: auto;
  min-height: 34px;
}

.member-main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 32px 64px;
}

.member-content,
.post-list,
.meetup-list {
  gap: 12px;
}

.research-view {
  max-width: 680px;
  margin: 0 auto;
}

.post-detail-view,
.meetups-view {
  max-width: 680px;
  margin: 0 auto;
}

.meetups-view {
  max-width: 680px;
  margin: 0 auto;
}

.choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sh-card {
  background: rgba(12, 12, 16, 0.72);
  background-image: none;
  box-shadow: none;
}

.workspace-card {
  min-height: 188px;
}

.workspace-card,
.post-card,
.meetup-card,
.detail-card,
.comments-panel {
  padding: 18px;
}

.workspace-card h2,
.post-card h2,
.meetup-card h2,
.detail-card h2 {
  font-size: 20px;
  line-height: 1.22;
}

.post-card,
.detail-card {
  gap: 12px;
}

.post-card-head {
  align-items: flex-start;
}

.post-card p,
.meetup-card p,
.detail-card p {
  font-size: 13px;
  line-height: 1.55;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  padding: 4px 7px;
  font-size: 11px;
}

.toolbar-row {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 10px;
}

.segmented-control {
  border: 0;
  background: transparent;
  padding: 0;
}

.sh-button,
.segmented-control a,
.segmented-control button {
  border-radius: 0;
}

.meetup-card {
  grid-template-columns: 138px minmax(0, 1fr) 170px;
}

.comments-panel h3 {
  font-size: 18px;
}

.comment-row {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 860px) {
  .member-app {
    grid-template-columns: 1fr;
  }

  .member-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .member-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .member-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
  }

  .member-account .sh-button {
    width: auto;
  }

  .member-main {
    padding: 22px 16px 52px;
  }

  .toolbar-row,
  .post-card-head,
  .reaction-row {
    align-items: stretch;
    flex-direction: column;
  }

  .choice-grid,
  .meetup-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .meetup-meta {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .member-sidebar {
    padding: 14px 12px;
  }

  .member-nav {
    grid-template-columns: 1fr;
  }

  .workspace-card h2,
  .post-card h2,
  .meetup-card h2,
  .detail-card h2 {
    font-size: 18px;
  }
}

.social-composer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.range-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.range-filter a {
  border: 1px solid transparent;
  color: var(--muted);
  padding: 7px 9px;
  font-size: 12px;
}

.range-filter a.active,
.range-filter a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.feed-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.feed-search input[type="search"] {
  min-height: 36px;
  padding: 8px 10px;
}

.feed-search > a {
  color: var(--muted);
  font-size: 12px;
}

.feed-search > a:hover {
  color: var(--amber);
}

.pagination-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.page-size,
.page-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.page-size a,
.page-nav a,
.page-nav span {
  border: 1px solid transparent;
  color: var(--muted);
  padding: 6px 8px;
}

.page-size a.active,
.page-size a:hover,
.page-nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.page-nav strong {
  color: var(--text);
  font-size: 12px;
}

.empty-feed {
  padding: 18px;
  color: var(--muted);
}

.new-post-form,
.meetup-admin-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.form-label {
  display: block;
  color: #d8d8dd;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-status.is-error {
  color: #ff7a90;
}

.new-post-preview {
  display: grid;
  gap: 8px;
}

.new-post-preview > span {
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.post-preview-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
}

.preview-rich-body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.preview-rich-body img {
  display: block;
  max-width: 100%;
  margin: 10px 0;
}

.jodit-container:not(.jodit_inline) {
  border-color: var(--line-strong) !important;
  background: rgba(0, 0, 0, 0.28) !important;
}

.jodit-toolbar__box,
.jodit-status-bar {
  border-color: var(--line) !important;
  background: #101014 !important;
}

.jodit-workplace,
.jodit-wysiwyg {
  background: #080809 !important;
  color: var(--text) !important;
}

.jodit-ui-button,
.jodit-toolbar-button,
.jodit-toolbar-button__button {
  color: var(--text) !important;
}

.back-link {
  width: max-content;
  color: var(--muted);
  font-size: 12px;
}

.back-link::before {
  content: "< ";
  color: var(--amber);
}

.back-link:hover {
  color: var(--text);
}

.is-hidden {
  display: none !important;
}

.social-composer textarea {
  min-height: 86px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.social-composer input[type="url"] {
  min-height: 36px;
  margin-top: 8px;
  padding: 8px 10px;
}

.composer-preview {
  display: grid;
  min-height: 120px;
  place-items: center;
  margin-top: 8px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12px;
}

.composer-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.social-feed {
  max-width: none;
}

.social-post {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.social-post-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.social-post-head strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.social-post-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(240, 154, 33, 0.42);
  background: rgba(240, 154, 33, 0.1);
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.avatar.small {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.social-post h2 {
  font-size: 16px;
  line-height: 1.35;
}

.link-preview {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.post-media {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(0.75) contrast(1.1);
  border-bottom: 1px solid var(--line);
}

.preview-copy {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.preview-copy > span {
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-copy strong {
  color: var(--text);
  font-size: 13px;
}

.preview-copy p {
  font-size: 12px;
}

.social-actions {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 8px 0 0;
}

.social-actions button,
.social-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.social-actions button:hover,
.social-actions a:hover {
  color: var(--amber);
}

.social-actions button.active {
  color: var(--amber);
}

.social-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.comment-action::before {
  content: "";
  width: 12px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  box-shadow: 3px 3px 0 -2px currentColor;
}

@media (max-width: 860px) {
  .social-feed {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .social-composer,
  .social-post-head {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .avatar {
    width: 34px;
    height: 34px;
  }

  .avatar.small {
    width: 26px;
    height: 26px;
  }

  .composer-tools {
    justify-content: stretch;
  }

  .composer-tools .sh-button {
    flex: 1;
  }

  .social-actions {
    justify-content: space-between;
  }

  .feed-search,
  .pagination-bar,
  .form-grid.two-col {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 1fr;
  }

  .feed-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .feed-search .sh-button {
    width: 100%;
  }

  .page-status {
    order: -1;
  }
}

/* Compact social comments on research detail pages */
.post-detail-view .comments-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.post-detail-view .comments-panel h3 {
  font-size: 15px;
}

.post-detail-view .comments-list {
  display: grid;
  gap: 8px;
}

.post-detail-view .comment-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 0;
  background: transparent;
  padding: 0;
}

.post-detail-view .comment-bubble {
  width: fit-content;
  max-width: min(100%, 560px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 8px 10px;
}

.post-detail-view .comment-bubble > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.post-detail-view .comment-bubble strong {
  color: var(--text);
  font-size: 12px;
}

.post-detail-view .comment-bubble span {
  color: var(--muted);
  font-size: 11px;
}

.post-detail-view .comment-bubble p {
  margin-top: 3px;
  font-size: 12px;
}

.post-detail-view .comment-delete {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  margin-top: 5px;
  padding: 0;
  cursor: pointer;
}

.post-detail-view .comment-delete:hover {
  color: var(--amber);
}

.post-detail-view .comment-form {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.post-detail-view .comment-form input {
  min-height: 34px;
  padding: 8px 10px;
}

.post-detail-view .comment-form .sh-button {
  min-height: 34px;
  padding: 7px 12px;
}

@media (max-width: 520px) {
  .post-detail-view .comment-form {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .post-detail-view .comment-form .sh-button {
    grid-column: 2;
    width: max-content;
  }
}
