:root {
  color-scheme: light;
  --ink: #10100f;
  --paper: #e8deca;
  --paper-light: #f7f0e2;
  --paper-dark: #d6c9b4;
  --red: #e1251b;
  --red-dark: #87180f;
  --blue: #174f98;
  --blue-dark: #0d335f;
  --acid: #eaff45;
  --green: #2d7450;
  --orange: #cf641e;
  --line: rgba(16, 16, 15, 0.28);
  --soft-line: rgba(16, 16, 15, 0.14);
  --shadow: 0.42rem 0.48rem 0 var(--ink);
  --display: "Arial Black", Impact, Haettenschweiler, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 2%, rgba(225, 37, 27, 0.13), transparent 28rem),
    radial-gradient(circle at 8% 18%, rgba(23, 79, 152, 0.11), transparent 31rem),
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(16, 16, 15, 0.025) 6px 7px),
    var(--paper);
  font-family: var(--body);
}

button,
input,
select { font: inherit; }

button,
select,
input[type="checkbox"],
input[type="range"] { cursor: pointer; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 0.25rem solid var(--acid);
  outline-offset: 0.18rem;
  box-shadow: 0 0 0 0.14rem var(--ink);
}

::selection {
  color: white;
  background: var(--red);
}

.shell {
  width: min(93rem, calc(100% - 2rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 3px solid var(--ink);
  background: rgba(232, 222, 202, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 2.1rem;
  aspect-ratio: 1;
  transform: rotate(-8deg);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.18rem);
  left: 0;
  width: 100%;
  height: 0.36rem;
  border: 1px solid var(--red-dark);
  border-radius: 999px;
  background: var(--red);
}

.brand-mark::before { transform: rotate(45deg); }
.brand-mark::after { transform: rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.site-nav a,
.text-link {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-decoration-thickness: 0.14rem;
  text-underline-offset: 0.24rem;
  text-transform: uppercase;
}

.site-nav a:hover,
.text-link:hover { color: var(--red-dark); }

.prototype-stamp {
  padding: 0.48rem 0.65rem;
  border: 2px solid var(--ink);
  background: var(--acid);
  font-family: var(--display);
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transform: rotate(1deg);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.55fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.intro > *,
.model-band-inner > * { min-width: 0; }

.kicker,
.section-kicker,
.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  color: white;
  background: var(--blue);
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.105em;
  line-height: 1;
  text-transform: uppercase;
}

.kicker,
.section-kicker { padding: 0.42rem 0.55rem; }
.eyebrow { padding: 0.32rem 0.4rem; }

h1,
h2,
h3,
p,
figure,
blockquote { margin-top: 0; }

h1,
h2,
h3 { text-wrap: balance; }

h1 {
  max-width: 10ch;
  margin-bottom: 1.4rem;
  font-family: var(--display);
  font-size: clamp(4rem, 8.4vw, 8.6rem);
  line-height: 0.79;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

h1 span {
  display: inline-block;
  color: var(--red);
  text-shadow: 0.055em 0.055em 0 var(--ink);
  transform: rotate(-1.5deg);
}

.intro-copy {
  max-width: 47rem;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 750;
  line-height: 1.5;
}

.demo-note {
  padding: 1.4rem;
  border: 3px solid var(--ink);
  background: var(--paper-light);
  box-shadow: var(--shadow);
  transform: rotate(0.7deg);
}

.demo-note strong {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.demo-note p,
.demo-note li {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.demo-note ul {
  margin: 0;
  padding-left: 1.2rem;
}

.ticker {
  overflow: hidden;
  padding: 0.72rem 1rem;
  border-block: 3px solid var(--ink);
  color: white;
  background: var(--red-dark);
  font-family: var(--display);
  font-size: clamp(0.75rem, 1.5vw, 1.03rem);
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-0.25deg) scale(1.005);
}

.lab { padding-block: clamp(4rem, 8vw, 7rem); }

.lab-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.lab-heading h2,
.model-band h2 {
  max-width: 12ch;
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.84;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.lab-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  text-align: right;
}

.lab-heading-actions p {
  max-width: 23rem;
  margin-bottom: 0;
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.4;
}

.button,
.mini-button,
.reaction-button,
.icon-button,
.toast button {
  min-height: 2.75rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  font-weight: 900;
}

.button {
  padding: 0.7rem 0.9rem;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.button-ink {
  color: white;
  background: var(--ink);
}

.button-paper { background: var(--paper-light); }
.button:hover { transform: translateY(-0.12rem); }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(7.5rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  min-height: 6.2rem;
  padding: 0.9rem;
  border: 2px solid var(--ink);
  background: var(--paper-light);
}

.metric-card:nth-child(2n) { background: #dce6ee; }
.metric-card:nth-child(3n) { background: #f1dfd5; }

.metric-value {
  display: block;
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.065em;
  line-height: 1.2;
  text-transform: uppercase;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(15rem, 0.62fr) minmax(32rem, 1.55fr) minmax(17rem, 0.72fr);
  gap: 1rem;
  align-items: start;
}

.panel,
.thread-column {
  border: 3px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 0.28rem 0.34rem 0 var(--ink);
}

.panel { padding: 1rem; }

.filters-panel {
  position: sticky;
  top: 0.75rem;
  max-height: calc(100vh - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.community-column {
  display: grid;
  gap: 1rem;
}

.panel-heading,
.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--ink);
}

.panel-heading .eyebrow { margin-bottom: 0.45rem; }

.panel-heading h3,
.thread-toolbar h3,
.dialog-heading h2 {
  margin-bottom: 0;
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.panel-heading h3 { font-size: 1.55rem; }

.panel-number {
  color: var(--red);
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: -0.06em;
}

.control,
.toggle-list,
.active-filters {
  display: block;
  margin: 0 0 1rem;
}

.control > span,
.control legend,
.toggle-list legend,
.active-filters > strong,
.range-row span {
  display: block;
  margin-bottom: 0.42rem;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.control input[type="search"],
.control select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: white;
  font-size: 0.82rem;
  font-weight: 700;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.fieldset-control,
.toggle-list {
  padding: 0.8rem;
  border: 2px solid var(--ink);
}

.fieldset-control legend,
.toggle-list legend { padding-inline: 0.35rem; }

.range-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.range-row output {
  font-family: var(--display);
  font-size: 0.76rem;
}

.fieldset-control input[type="range"] {
  width: 100%;
  min-height: 2.75rem;
  accent-color: var(--red);
}

.toggle-row {
  display: flex;
  align-items: start;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

.toggle-row:last-child { margin-bottom: 0; }
.toggle-row input { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; accent-color: var(--red); }

.active-filters {
  margin-bottom: 0;
  padding-top: 0.9rem;
  border-top: 2px dashed var(--ink);
}

#active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.filter-chip,
.trust-badge,
.relationship-badge,
.source-badge,
.score-pill,
.depth-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.24rem 0.4rem;
  border: 1px solid var(--ink);
  background: var(--acid);
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1.1;
  text-transform: uppercase;
}

.filter-chip.is-muted { background: var(--paper-dark); }
.filter-chip.is-hard { color: white; background: var(--red-dark); }

.thread-column { min-width: 0; }

.thread-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 3px solid var(--ink);
  color: white;
  background: var(--ink);
}

.thread-toolbar .eyebrow {
  color: var(--ink);
  background: var(--acid);
}

.thread-toolbar h3 {
  max-width: 31rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.thread { padding: 0.85rem; }
.loading-card { padding: 4rem 1rem; text-align: center; font-weight: 900; }

.root-post,
.comment-card,
.collapsed-shell,
.context-bridge {
  position: relative;
  border: 2px solid var(--ink);
  background: white;
}

.root-post {
  margin-bottom: 1rem;
  box-shadow: 0.26rem 0.3rem 0 var(--ink);
}

.comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-node { position: relative; list-style: none; }

.comment-node::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -0.6rem;
  left: 0.72rem;
  width: 2px;
  background: var(--soft-line);
}

.comment-card,
.collapsed-shell,
.context-bridge {
  margin-bottom: 0.7rem;
  margin-left: min(calc(var(--depth, 0) * 1.25rem), 5rem);
}

.comment-card.is-suggested {
  border-left: 0.5rem solid var(--orange);
  background: #fff8e8;
}

.entity-main { padding: 0.9rem; }
.root-post .entity-main { padding: 1.15rem; }

.entity-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.avatar-button {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-dark);
  box-shadow: 0.13rem 0.16rem 0 var(--ink);
  cursor: crosshair;
}

.root-post .avatar-button {
  width: 4.9rem;
  height: 4.9rem;
}

.avatar-button::before,
.avatar-button::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: calc(50% - 0.14rem);
  left: 9%;
  width: 82%;
  height: 0.28rem;
  border: 1px solid var(--red-dark);
  border-radius: 99px;
  background: var(--red);
  opacity: 0;
  transition: opacity 90ms ease, transform 110ms ease;
}

.avatar-button::before { transform: rotate(45deg) scale(0.65); }
.avatar-button::after { transform: rotate(-45deg) scale(0.65); }
.avatar-button:hover::before { opacity: 0.96; transform: rotate(45deg) scale(1); }
.avatar-button:hover::after { opacity: 0.96; transform: rotate(-45deg) scale(1); }

.avatar-monogram,
.avatar-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
}

.avatar-monogram {
  color: var(--avatar-foreground, white);
  background: var(--avatar-background, var(--blue));
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: -0.04em;
}

.root-post .avatar-monogram { font-size: 1.2rem; }

.avatar-art {
  background-image: var(--avatar-src);
  background-repeat: no-repeat;
  background-position: var(--avatar-position);
  background-size: var(--avatar-size);
}

.author-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.5rem;
}

.author-name {
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: -0.025em;
}

.root-post .author-name { font-size: 1.15rem; }

.username {
  color: #544f46;
  font-size: 0.72rem;
  font-weight: 800;
}

.meta-line,
.entity-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  margin-top: 0.3rem;
  color: #5a544b;
  font-size: 0.63rem;
  font-weight: 800;
  line-height: 1.3;
}

.header-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
}

.trust-badge.is-new { background: #ffd1ad; }
.trust-badge.is-low { background: #f5b5b1; }
.trust-badge.is-bot { color: white; background: var(--ink); }
.relationship-badge { background: #b9d5ef; }
.relationship-badge.is-suggested { background: #ffd39d; }
.depth-badge { background: var(--paper-dark); }

.entity-title {
  margin-bottom: 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.entity-preview {
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-left: 0.35rem solid var(--blue);
  background: #e6edf3;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.markdown {
  overflow-wrap: anywhere;
  font-size: 0.87rem;
  line-height: 1.58;
}

.root-post .markdown { font-size: 0.97rem; }
.markdown p:last-child,
.markdown ul:last-child,
.markdown blockquote:last-child,
.markdown pre:last-child { margin-bottom: 0; }
.markdown ul { padding-left: 1.3rem; }
.markdown blockquote {
  margin-left: 0;
  padding: 0.6rem 0.8rem;
  border-left: 0.35rem solid var(--red);
  background: var(--paper-light);
  font-weight: 800;
}
.markdown code {
  padding: 0.1rem 0.25rem;
  color: white;
  background: var(--ink);
  font-family: Consolas, "Courier New", monospace;
}

.entity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  align-items: center;
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
}

.reaction-button,
.mini-button {
  min-height: 2.75rem;
  padding: 0.43rem 0.58rem;
  background: var(--paper-light);
  font-size: 0.66rem;
}

.reaction-button.is-like[aria-pressed="true"] { color: white; background: var(--green); }
.reaction-button.is-dislike[aria-pressed="true"] { color: white; background: var(--red-dark); }
.mini-button.is-following { background: #b9d5ef; }
.mini-button.is-danger:hover { color: white; background: var(--red-dark); }
.mini-button:hover,
.reaction-button:hover { background: var(--acid); }

.score-pill {
  margin-right: auto;
  background: var(--ink);
  color: white;
}

.entity-signals { margin-top: 0.65rem; }

.entity-signals button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-size: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.context-bridge,
.collapsed-shell {
  padding: 0.7rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.35;
}

.context-bridge {
  border-style: dashed;
  color: #534c43;
  background: #ddd4c3;
}

.collapsed-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #e7e0d3;
}

.collapsed-shell .mini-button { flex: 0 0 auto; }

.empty-thread {
  padding: 3rem 1rem;
  border: 3px dashed var(--ink);
  text-align: center;
}

.empty-thread strong {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
}

.stack-summary {
  margin-bottom: 0.8rem;
  padding: 0.75rem;
  color: white;
  background: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.4;
}

.blocked-person,
.list-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--soft-line);
}

.blocked-person:last-child,
.list-member:last-child { border-bottom: 0; }

.blocked-person-name,
.list-member-name {
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.source-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.source-badge { min-height: 1.25rem; font-size: 0.49rem; background: #ffd5d2; }

.list-card {
  margin-bottom: 0.9rem;
  padding: 0.8rem;
  border: 2px solid var(--ink);
  background: white;
}

.list-card:last-child { margin-bottom: 0; }
.list-card.is-subscribed { box-shadow: 0.22rem 0.25rem 0 var(--blue); }

.list-card h4 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.list-owner,
.list-description,
.list-meta {
  font-size: 0.68rem;
  line-height: 1.4;
}

.list-owner { margin-bottom: 0.3rem; font-weight: 850; }
.list-description { margin-bottom: 0.55rem; }
.list-meta { margin-bottom: 0.65rem; color: #5c554d; font-weight: 800; }

.list-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
}

.list-controls select {
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.35rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper-light);
  font-size: 0.66rem;
  font-weight: 800;
}

.list-card details { margin-top: 0.65rem; }
.list-card summary {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.65rem;
  font-weight: 900;
  cursor: pointer;
}

.own-list-status {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.3rem 0.45rem;
  border: 2px solid var(--red-dark);
  color: var(--red-dark);
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.own-list-status.is-public {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

.own-list-panel p { font-size: 0.73rem; font-weight: 750; line-height: 1.45; }

.model-band {
  padding-block: clamp(4rem, 8vw, 7rem);
  color: white;
  background: var(--ink);
}

.model-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.65fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
}

.model-band h2 { color: var(--acid); }
.model-band p { font-weight: 700; line-height: 1.6; }
.model-band .text-link { color: white; }

footer {
  padding: 1.5rem 0;
  color: white;
  background: var(--red-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-inner p { margin: 0; }

.inspector-dialog {
  width: min(46rem, calc(100% - 2rem));
  max-height: min(48rem, calc(100vh - 2rem));
  padding: 1.1rem;
  border: 4px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: 0.6rem 0.7rem 0 var(--ink);
}

.inspector-dialog::backdrop { background: rgba(16, 16, 15, 0.72); }
.dialog-heading h2 { font-size: 2rem; }
.icon-button { width: 2.75rem; padding: 0; font-size: 1.6rem; background: white; }

.inspector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.inspector-field {
  padding: 0.65rem;
  border: 1px solid var(--ink);
  background: white;
}

.inspector-field dt {
  margin-bottom: 0.25rem;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inspector-field dd {
  margin: 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.inspector-note {
  margin-top: 0.8rem;
  padding: 0.8rem;
  border-left: 0.4rem solid var(--blue);
  background: white;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: min(33rem, calc(100% - 2rem));
  padding: 0.75rem;
  border: 3px solid white;
  color: white;
  background: var(--ink);
  box-shadow: 0.35rem 0.4rem 0 var(--red);
  font-size: 0.77rem;
  font-weight: 800;
}

.toast[hidden] { display: none; }
.toast button { color: var(--ink); background: var(--acid); }

.load-error,
.noscript-warning {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 3px solid var(--red-dark);
  color: white;
  background: var(--red-dark);
  font-weight: 800;
  line-height: 1.45;
}

.noscript-warning { margin: 1rem; }

@media (max-width: 1280px) {
  .workspace { grid-template-columns: minmax(15rem, 0.65fr) minmax(31rem, 1.5fr); }
  .community-column { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .filters-panel { top: 0.5rem; }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding-block: 0.55rem; }
  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--line);
    justify-content: space-between;
  }
  .prototype-stamp { margin-left: auto; }
  .intro,
  .model-band-inner { grid-template-columns: 1fr; }
  .demo-note { max-width: 38rem; }
  .lab-heading { align-items: start; flex-direction: column; }
  .lab-heading-actions { width: 100%; justify-content: space-between; text-align: left; }
  .metric-strip { grid-template-columns: repeat(3, 1fr); }
  .workspace { grid-template-columns: 1fr; }
  .filters-panel { position: static; max-height: none; overflow-y: visible; }
  .community-column { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .own-list-panel { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 1rem, 93rem); }
  .header-inner { gap: 0.7rem; min-height: 4.5rem; }
  .prototype-stamp { font-size: 0.55rem; }
  .site-nav { gap: 0.55rem; }
  .site-nav a { font-size: 0.64rem; }
  h1 { font-size: clamp(2.8rem, 15vw, 5.6rem); }
  .model-band h2 { overflow-wrap: anywhere; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .lab-heading-actions { align-items: stretch; flex-direction: column; }
  .lab-heading-actions .button { width: 100%; }
  .thread-toolbar { align-items: stretch; flex-direction: column; }
  .thread-toolbar .button { width: 100%; }
  .thread { padding: 0.45rem; }
  .comment-card,
  .collapsed-shell,
  .context-bridge { margin-left: min(calc(var(--depth, 0) * 0.58rem), 2.35rem); }
  .comment-node::before { left: 0.18rem; }
  .entity-header { grid-template-columns: auto minmax(0, 1fr); }
  .header-badges { grid-column: 1 / -1; justify-content: flex-start; }
  .root-post .avatar-button { width: 4rem; height: 4rem; }
  .entity-actions { align-items: stretch; }
  .score-pill { width: 100%; margin-right: 0; justify-content: center; }
  .reaction-button,
  .mini-button { flex: 1 1 auto; }
  .community-column { grid-template-columns: 1fr; }
  .own-list-panel { grid-column: auto; }
  .footer-inner { flex-direction: column; }
  .inspector-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media (forced-colors: active) {
  .brand-mark,
  .avatar-button::before,
  .avatar-button::after,
  .ticker { forced-color-adjust: none; }
  .avatar-art { background-image: none; }
  .panel,
  .thread-column,
  .root-post,
  .comment-card,
  .list-card { box-shadow: none; }
}
