:root {
  color-scheme: light;
  --ink: #101126;
  --deep: #080b12;
  --cream: #fff8d9;
  --pink: #ee79c5;
  --blue: #78b7ff;
  --cyan: #55eee6;
  --yellow: #ffe86e;
  --orange: #ff6b2c;
  --green: #86ee9f;
  --line: 6px;
  --shadow: 12px 12px 0 #173a86;
}

* {
  box-sizing: border-box;
}

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

html {
  min-width: 320px;
  background: var(--pink);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Courier New", Courier, ui-monospace, monospace;
  font-weight: 700;
  background-color: var(--pink);
  background-image:
    linear-gradient(rgba(16, 17, 38, 0.1) 2px, transparent 2px),
    linear-gradient(90deg, rgba(16, 17, 38, 0.1) 2px, transparent 2px);
  background-size: 44px 44px;
}

a {
  color: inherit;
}

.site-header {
  width: min(1480px, calc(100% - 40px));
  min-height: 96px;
  margin: 20px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--cream);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.identity-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: 5px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(16, 17, 38, 0.18);
  font-size: 1.2rem;
}

.identity strong,
.identity small {
  display: block;
  letter-spacing: 0;
}

.identity strong {
  font-size: 1.15rem;
}

.identity small {
  margin-top: 4px;
  color: #343752;
  font-size: 0.78rem;
}

.header-link {
  padding: 14px 16px;
  text-decoration: none;
  border: 5px solid var(--ink);
  background: var(--green);
  box-shadow: 6px 6px 0 rgba(16, 17, 38, 0.18);
}

main {
  width: min(1480px, calc(100% - 40px));
  margin: 42px auto 0;
}

.manual-intro {
  min-height: calc(100vh - 220px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.68fr);
  align-items: center;
  gap: clamp(36px, 6vw, 100px);
  padding: clamp(34px, 5vw, 76px);
  overflow: hidden;
  background: var(--deep);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
  color: var(--cream);
}

.manual-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--cyan);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

h1 {
  max-width: 920px;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4rem, 9vw, 9.6rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 10px 10px 0 #173a86;
}

.lead {
  max-width: 720px;
  margin: 38px 0 0;
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  line-height: 1.55;
}

.manual-facts {
  max-width: 820px;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 4px solid #454a58;
}

.manual-facts div {
  min-width: 0;
  padding: 15px 18px;
}

.manual-facts div + div {
  border-left: 4px solid #454a58;
}

.manual-facts dt {
  color: var(--orange);
  font-size: 0.78rem;
}

.manual-facts dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.manual-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.release-badges {
  margin: 22px 0 -14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.m5burner-note,
.firmware-public-count {
  width: fit-content;
  margin: 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 4px solid #454a58;
  color: var(--green);
  font-size: 0.82rem;
  line-height: 1.3;
}

.firmware-public-count {
  gap: 10px;
  color: var(--cream);
}

.firmware-public-count strong {
  min-width: 3ch;
  color: var(--yellow);
  font-size: 1.16rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.firmware-public-count strong[data-counting="true"] {
  color: var(--cyan);
}

.firmware-public-count small {
  color: #adb3bd;
  font-size: 0.62rem;
}

.m5burner-note span {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(134, 238, 159, 0.16);
}

.button {
  min-height: 70px;
  padding: 18px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border: 5px solid var(--ink);
  box-shadow: 8px 8px 0 #173a86;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 #173a86;
}

.button:focus-visible {
  outline: 4px solid var(--cyan);
  outline-offset: 5px;
}

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

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

.button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
  box-shadow: 8px 8px 0 #173a86;
}

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

.after-download {
  max-width: 650px;
  margin: 28px 0 0;
  color: #adb3bd;
  font-size: 0.85rem;
  line-height: 1.5;
}

.manual-cover {
  width: min(100%, 530px);
  margin: 0 auto;
  align-self: center;
}

.manual-cover img {
  width: 100%;
  height: auto;
  display: block;
  border: 5px solid var(--cream);
  box-shadow:
    14px 14px 0 var(--orange),
    28px 28px 0 #173a86;
}

.manual-cover figcaption {
  margin-top: 40px;
  color: var(--green);
  font-size: 0.82rem;
  text-align: right;
}

.product-deck {
  margin-top: 42px;
  overflow: hidden;
  color: var(--ink);
  background: var(--cream);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
}

.product-band {
  padding: clamp(34px, 5vw, 72px);
}

.product-band + .product-band {
  border-top: var(--line) solid var(--ink);
}

.product-kicker {
  margin: 0 0 20px;
  color: #173a86;
  font-size: 0.82rem;
}

.product-band h2 {
  max-width: 1120px;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 7px 7px 0 var(--pink);
}

.product-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px 64px;
  background: var(--cream);
}

.product-overview-copy {
  align-self: end;
  font-size: 1.08rem;
  line-height: 1.65;
}

.product-overview-copy p {
  margin: 0;
}

.product-overview-copy p + p {
  margin-top: 20px;
}

.product-stats {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 5px solid var(--ink);
}

.product-stats div {
  min-width: 0;
  padding: 18px 20px;
}

.product-stats div + div {
  border-left: 4px solid var(--ink);
}

.product-stats dt {
  color: #173a86;
  font-size: 0.7rem;
}

.product-stats dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  font-size: 1.55rem;
}

.product-screens {
  color: var(--cream);
  background: var(--deep);
}

.screen-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 48px;
}

.product-screens .product-kicker {
  color: var(--cyan);
}

.product-screens h2 {
  text-shadow: 7px 7px 0 #173a86;
}

.screen-heading > p {
  max-width: 620px;
  margin: 0 0 4px;
  color: #c4c8d0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.screen-selector {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.screen-selector a {
  min-width: 0;
  padding: 8px;
  color: var(--cream);
  background: #111624;
  border: 4px solid #414b5b;
  text-decoration: none;
  transition:
    border-color 120ms ease,
    transform 120ms ease;
}

.screen-selector a:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.screen-selector a:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

.screen-selector img {
  width: 100%;
  height: auto;
  aspect-ratio: 481 / 314;
  display: block;
  object-fit: cover;
  background: #050809;
}

.screen-selector span {
  display: block;
  padding: 10px 6px 4px;
  overflow-wrap: anywhere;
  font-size: 0.72rem;
}

.screen-lightbox {
  width: min(880px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  color: var(--cream);
  background: var(--deep);
  border: 5px solid var(--cream);
  box-shadow:
    9px 9px 0 var(--orange),
    18px 18px 0 #173a86;
}

.screen-lightbox::backdrop {
  background: rgb(3 4 13 / 88%);
}

.screen-lightbox-panel {
  padding: 12px;
}

.screen-lightbox header {
  min-height: 48px;
  padding: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.screen-lightbox header strong {
  color: var(--cyan);
  font-size: 0.82rem;
}

.screen-lightbox-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--cream);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  background: transparent;
  border: 3px solid #5c6875;
  cursor: pointer;
}

.screen-lightbox-close:hover,
.screen-lightbox-close:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.screen-lightbox-close:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.screen-lightbox img {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 128px);
  aspect-ratio: 481 / 314;
  display: block;
  object-fit: contain;
  background: #050809;
  border: 4px solid #5c6875;
}

.product-features {
  background: var(--pink);
}

.product-features h2 {
  max-width: 980px;
  text-shadow: 7px 7px 0 var(--cream);
}

.feature-system {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-system article {
  min-width: 0;
  padding: 26px;
  background: var(--cream);
  border: 5px solid var(--ink);
  box-shadow: 7px 7px 0 #173a86;
}

.feature-system article > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--cyan);
  border: 4px solid var(--ink);
}

.feature-system h3 {
  margin: 24px 0 0;
  font-size: 1.08rem;
}

.feature-system p {
  margin: 16px 0 0;
  color: #343752;
  font-size: 0.9rem;
  line-height: 1.55;
}

.product-changelog {
  background: var(--green);
}

.product-changelog h2 {
  max-width: 900px;
  text-shadow: 7px 7px 0 var(--cream);
}

.changelog-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  align-items: end;
  gap: 48px;
}

.changelog-heading > p {
  max-width: 620px;
  margin: 0 0 4px;
  color: #343752;
  font-size: 0.95rem;
  line-height: 1.6;
}

.changelog-list {
  margin-top: 46px;
  display: grid;
  gap: 18px;
}

.changelog-release {
  background: var(--cream);
  border: 5px solid var(--ink);
  box-shadow: 7px 7px 0 #173a86;
}

.changelog-release summary {
  min-height: 82px;
  padding: 16px 74px 16px 20px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(130px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.changelog-release summary::-webkit-details-marker {
  display: none;
}

.changelog-release summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--ink);
  transform: translateY(-50%);
  font-size: 1.35rem;
}

.changelog-release[open] summary::after {
  content: "-";
  color: var(--ink);
  background: var(--yellow);
}

.changelog-release summary:focus-visible {
  outline: 4px solid #173a86;
  outline-offset: 5px;
}

.changelog-release.is-current summary {
  color: var(--cream);
  background: var(--deep);
}

.changelog-version {
  color: #173a86;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2rem;
  font-weight: 900;
}

.is-current .changelog-version {
  color: var(--cyan);
}

.changelog-date {
  color: #666a78;
  font-size: 0.78rem;
}

.is-current .changelog-date {
  color: #adb3bd;
}

.changelog-state {
  justify-self: start;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--pink);
  border: 3px solid var(--ink);
  font-size: 0.72rem;
}

.is-current .changelog-state {
  background: var(--green);
}

.changelog-release-body {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 40px;
  border-top: 5px solid var(--ink);
}

.changelog-release-body section {
  min-width: 0;
  padding-left: 18px;
  border-left: 6px solid var(--orange);
}

.changelog-release-body section:nth-child(even) {
  border-left-color: var(--cyan);
}

.changelog-release-body h3 {
  margin: 0;
  font-size: 1rem;
}

.changelog-release-body ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.changelog-release-body li {
  position: relative;
  padding-left: 18px;
  color: #343752;
  font-size: 0.86rem;
  line-height: 1.55;
}

.changelog-release-body li + li {
  margin-top: 9px;
}

.changelog-release-body li::before {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  top: 0.57em;
  left: 0;
  background: #173a86;
}

.changelog-release-body-baseline {
  grid-template-columns: 1fr;
}

.changelog-safety-note {
  margin: 32px 0 0;
  padding: 18px 20px;
  color: var(--cream);
  background: var(--deep);
  border: 5px solid var(--ink);
  box-shadow: 7px 7px 0 var(--orange);
  font-size: 0.85rem;
  line-height: 1.5;
}

.changelog-safety-note strong {
  color: var(--yellow);
}

.product-community {
  background: var(--cyan);
}

.product-community h2 {
  max-width: 880px;
  text-shadow: 7px 7px 0 var(--cream);
}

.community-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  align-items: end;
  gap: 48px;
}

.community-heading > p {
  max-width: 620px;
  margin: 0 0 4px;
  color: #343752;
  font-size: 0.95rem;
  line-height: 1.6;
}

.community-gate {
  min-height: 104px;
  margin-top: 44px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(260px, 1fr) minmax(250px, 0.8fr);
  align-items: center;
  gap: 24px;
  color: var(--cream);
  background: var(--deep);
  border: 5px solid var(--ink);
  box-shadow: 7px 7px 0 #173a86;
}

.community-gate-readout span,
.community-gate-readout strong {
  display: block;
}

.community-gate-readout span {
  color: var(--orange);
  font-size: 0.72rem;
}

.community-gate-readout strong {
  margin-top: 8px;
  color: var(--cream);
  font-size: 0.9rem;
}

.community-gate-readout b {
  color: var(--yellow);
  font-size: 1.18rem;
}

.community-gate input[type="range"] {
  width: 100%;
  accent-color: var(--orange);
  cursor: ew-resize;
}

.community-gate.is-matched input[type="range"],
.community-gate.is-verified input[type="range"] {
  accent-color: var(--green);
}

.community-gate p {
  min-height: 2.5em;
  margin: 0;
  color: var(--yellow);
  font-size: 0.74rem;
  line-height: 1.35;
}

.community-gate p[data-state="success"] {
  color: var(--green);
}

.community-gate p[data-state="error"] {
  color: #ff8b8b;
}

.community-workbench {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 24px;
}

.community-panel {
  min-width: 0;
  background: var(--cream);
  border: 5px solid var(--ink);
  box-shadow: 8px 8px 0 #173a86;
}

.chat-panel {
  color: var(--cream);
  background: var(--deep);
}

.community-panel-header {
  min-height: 102px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 5px solid var(--ink);
}

.request-panel .community-panel-header {
  background: var(--pink);
}

.chat-panel .community-panel-header {
  border-color: #454a58;
}

.community-panel-header span {
  color: #173a86;
  font-size: 0.68rem;
}

.chat-panel .community-panel-header span {
  color: var(--cyan);
}

.community-panel-header h3 {
  margin: 8px 0 0;
  font-size: 1.28rem;
}

.community-panel-header > strong {
  min-width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border: 4px solid var(--ink);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.community-panel form {
  padding: 22px;
}

.community-panel fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  transition: opacity 140ms ease;
}

.community-panel fieldset:disabled {
  opacity: 0.42;
}

.community-panel label {
  display: block;
}

.community-panel label + label,
.community-field-grid + label,
.request-type + .community-field-grid {
  margin-top: 16px;
}

.community-panel label > span {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #173a86;
  font-size: 0.7rem;
}

.chat-panel label > span {
  color: var(--cyan);
}

.community-panel label small {
  color: #666a78;
  font-size: 0.6rem;
}

.chat-panel label small {
  color: #adb3bd;
}

.community-panel input,
.community-panel select,
.community-panel textarea {
  width: 100%;
  min-height: 58px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 0;
  font: inherit;
  font-size: 0.88rem;
}

.community-panel textarea {
  min-height: 126px;
  resize: vertical;
  line-height: 1.45;
}

.community-panel input:focus,
.community-panel select:focus,
.community-panel textarea:focus {
  outline: 4px solid var(--orange);
  outline-offset: 3px;
}

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

.community-field-grid label + label {
  margin-top: 0;
}

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

.request-type label {
  min-width: 0;
  margin: 0;
}

.request-type input {
  width: 1px;
  height: 1px;
  min-height: 0;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.request-type span {
  min-height: 58px;
  margin: 0;
  padding: 12px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border: 4px solid var(--ink);
  cursor: pointer;
  text-align: center;
}

.request-type input:checked + span {
  background: var(--yellow);
  box-shadow: inset 0 -7px 0 var(--orange);
}

.request-type input:focus-visible + span {
  outline: 4px solid #173a86;
  outline-offset: 3px;
}

.community-submit {
  width: 100%;
  min-height: 64px;
  margin-top: 18px;
  padding: 15px;
  color: var(--ink);
  background: var(--yellow);
  border: 5px solid var(--ink);
  box-shadow: 6px 6px 0 #173a86;
  font: inherit;
  cursor: pointer;
}

.chat-panel .community-submit {
  background: var(--green);
}

.community-submit:hover,
.community-submit:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 #173a86;
}

.community-submit:focus-visible {
  outline: 4px solid var(--orange);
  outline-offset: 4px;
}

.community-submit:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.community-form-status {
  min-height: 2.6em;
  margin: 16px 0 0;
  color: #173a86;
  font-size: 0.72rem;
  line-height: 1.35;
}

.chat-panel .community-form-status {
  color: var(--yellow);
}

.community-form-status[data-state="success"] {
  color: #17752e;
}

.chat-panel .community-form-status[data-state="success"] {
  color: var(--green);
}

.community-form-status[data-state="error"] {
  color: #a11132;
}

.chat-panel .community-form-status[data-state="error"] {
  color: #ff8b8b;
}

.community-honeypot {
  width: 1px;
  height: 1px;
  position: fixed;
  left: -10000px;
  overflow: hidden;
}

.community-messages {
  min-height: 160px;
  max-height: 408px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--cyan) #161b28;
  border-bottom: 5px solid #454a58;
}

.community-empty {
  min-height: 100%;
  margin: 0;
  padding: 28px;
  display: grid;
  place-items: center;
  color: #7d8490;
  text-align: center;
  font-size: 0.78rem;
}

.community-message {
  min-height: 104px;
  padding: 18px 82px 18px 20px;
  position: relative;
  border-bottom: 3px solid #343b49;
}

.community-message header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.community-message header strong {
  color: var(--cyan);
  font-size: 0.82rem;
}

.community-message time {
  color: #7d8490;
  font-size: 0.62rem;
  white-space: nowrap;
}

.community-message p {
  margin: 10px 0 0;
  color: #d9dbe0;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.community-flag {
  min-width: 54px;
  min-height: 34px;
  padding: 5px 7px;
  position: absolute;
  top: 17px;
  right: 16px;
  color: #adb3bd;
  background: transparent;
  border: 3px solid #454a58;
  font: inherit;
  font-size: 0.58rem;
  cursor: pointer;
}

.community-flag:hover,
.community-flag:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.community-chat-form {
  border-bottom: 5px solid #454a58;
}

.community-safety {
  margin: 0;
  padding: 15px 20px;
  color: #7d8490;
  font-size: 0.62rem;
  line-height: 1.45;
}

.product-workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 58px;
  color: var(--cream);
  background: var(--deep);
}

.product-workflow .product-kicker {
  color: var(--cyan);
}

.product-workflow h2 {
  font-size: 4.3rem;
  text-shadow: 7px 7px 0 #173a86;
}

.product-workflow ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.product-workflow li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  padding: 19px 0;
  border-top: 3px solid #454a58;
  counter-increment: workflow;
}

.product-workflow li:last-child {
  border-bottom: 3px solid #454a58;
}

.product-workflow strong::before {
  content: "0" counter(workflow) " / ";
  color: var(--orange);
}

.product-workflow span {
  color: #c4c8d0;
  line-height: 1.45;
}

.product-specs {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: 58px;
  background: var(--cyan);
}

.product-specs h2 {
  font-size: 4rem;
  text-shadow: 7px 7px 0 var(--cream);
}

.spec-table {
  border: 5px solid var(--ink);
  background: var(--cream);
}

.spec-table > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
}

.spec-table > div + div {
  border-top: 4px solid var(--ink);
}

.spec-table span,
.spec-table strong {
  min-width: 0;
  padding: 14px 16px;
  overflow-wrap: anywhere;
}

.spec-table span {
  color: #173a86;
  font-size: 0.74rem;
}

.spec-table strong {
  border-left: 4px solid var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.product-faq {
  background: var(--cream);
}

.product-faq h2 {
  text-shadow: 7px 7px 0 var(--yellow);
}

.faq-list {
  margin-top: 44px;
  border-top: 5px solid var(--ink);
}

.faq-list details {
  border-bottom: 5px solid var(--ink);
}

.faq-list summary {
  padding: 22px 58px 22px 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--ink);
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "-";
  background: #173a86;
}

.faq-list summary:focus-visible {
  outline: 4px solid var(--cyan);
  outline-offset: 5px;
}

.faq-list p {
  max-width: 920px;
  margin: 0;
  padding: 0 58px 24px 0;
  color: #343752;
  line-height: 1.6;
}

.product-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 54px;
  background: var(--orange);
}

.product-cta h2 {
  max-width: 780px;
  text-shadow: 7px 7px 0 var(--cream);
}

.product-cta p:not(.product-kicker) {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: 1rem;
  line-height: 1.55;
}

.product-cta-actions {
  min-width: 280px;
  display: grid;
  gap: 18px;
}

.product-cta-actions .button-firmware {
  background: var(--cyan);
}

.firmware-gate {
  width: min(580px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--cream);
  border: var(--line) solid var(--ink);
  box-shadow: 14px 14px 0 #173a86;
}

.firmware-gate::backdrop {
  background: rgba(8, 11, 18, 0.9);
}

.firmware-gate-panel {
  position: relative;
  padding: clamp(26px, 5vw, 44px);
}

.firmware-gate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--cream);
  background: var(--ink);
  border: 4px solid var(--ink);
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.firmware-gate-close:focus-visible {
  outline: 4px solid var(--cyan);
  outline-offset: 3px;
}

.firmware-gate-eyebrow {
  margin: 0 60px 16px 0;
  color: #173a86;
  font-size: 0.75rem;
}

.firmware-gate h2 {
  max-width: 440px;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.8rem, 11vw, 5rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 6px 6px 0 var(--pink);
}

.firmware-gate-copy {
  margin: 26px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.firmware-tuner {
  margin-top: 26px;
  padding: 20px;
  color: var(--cream);
  background: var(--deep);
  border: 5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--orange);
}

.firmware-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.firmware-readout span {
  min-width: 0;
  padding: 12px;
  border: 3px solid #454a58;
}

.firmware-readout small,
.firmware-readout strong {
  display: block;
}

.firmware-readout small {
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 0.68rem;
}

.firmware-readout strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 5vw, 1.5rem);
}

.firmware-tuner label {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.72rem;
}

.firmware-tuner input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
  cursor: ew-resize;
}

.firmware-tuner input[type="range"][data-locked="true"] {
  accent-color: var(--green);
}

.firmware-status {
  min-height: 2.6em;
  margin: 14px 0 0;
  color: var(--yellow);
  font-size: 0.78rem;
  line-height: 1.3;
}

.firmware-status[data-state="locked"] {
  color: var(--green);
}

.firmware-status[data-state="error"] {
  color: #ff7474;
}

.firmware-trap {
  position: fixed;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.firmware-unlock {
  width: 100%;
  margin-top: 26px;
  background: var(--yellow);
  color: var(--ink);
}

footer {
  width: min(1480px, calc(100% - 40px));
  min-height: 82px;
  margin: 32px auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--cream);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
}

footer a {
  padding: 10px;
}

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

  .header-link {
    display: none;
  }

  .manual-intro {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 34px 24px 48px;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 7.5rem);
  }

  .manual-cover {
    width: min(88%, 480px);
    margin-top: 18px;
  }

  .product-band h2 {
    font-size: 4rem;
  }

  .product-overview,
  .screen-heading,
  .changelog-heading,
  .community-heading,
  .product-workflow,
  .product-specs,
  .product-cta {
    grid-template-columns: 1fr;
  }

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

  .product-stats div:nth-child(3) {
    border-left: 0;
  }

  .product-stats div:nth-child(n + 3) {
    border-top: 4px solid var(--ink);
  }

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

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

  .changelog-release summary {
    grid-template-columns: minmax(110px, 0.38fr) minmax(120px, 0.44fr) minmax(0, 1fr);
  }

  .community-gate {
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  }

  .community-gate p {
    grid-column: 1 / -1;
  }

  .community-workbench {
    grid-template-columns: 1fr;
  }

  .product-workflow,
  .product-specs {
    gap: 38px;
  }

  .product-cta-actions {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .site-header {
    min-height: 82px;
    padding: 10px;
  }

  .identity {
    gap: 10px;
  }

  .identity-mark {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }

  .identity strong {
    font-size: 0.95rem;
  }

  .identity small {
    font-size: 0.67rem;
  }

  main {
    margin-top: 28px;
  }

  .manual-intro {
    padding: 30px 18px 42px;
    border-width: 5px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(3.8rem, 19vw, 5.6rem);
    text-shadow: 6px 6px 0 #173a86;
  }

  .lead {
    margin-top: 28px;
    font-size: 1rem;
  }

  .manual-facts {
    grid-template-columns: 1fr;
  }

  .manual-facts div + div {
    border-top: 4px solid #454a58;
    border-left: 0;
  }

  .manual-actions {
    display: grid;
  }

  .release-badges {
    align-items: stretch;
    flex-direction: column;
  }

  .m5burner-note,
  .firmware-public-count {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .manual-cover {
    width: calc(100% - 24px);
  }

  .manual-cover img {
    box-shadow:
      8px 8px 0 var(--orange),
      16px 16px 0 #173a86;
  }

  .manual-cover figcaption {
    margin-top: 26px;
  }

  .product-deck {
    margin-top: 28px;
    border-width: 5px;
    box-shadow: 8px 8px 0 #173a86;
  }

  .product-band {
    padding: 34px 18px;
  }

  .product-band h2,
  .product-workflow h2,
  .product-specs h2 {
    font-size: 2.8rem;
    text-shadow: 5px 5px 0 var(--pink);
  }

  .product-features h2,
  .product-cta h2 {
    text-shadow: 5px 5px 0 var(--cream);
  }

  .product-overview {
    gap: 28px;
  }

  .screen-heading {
    gap: 28px;
  }

  .screen-selector {
    margin-top: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .screen-selector a {
    padding: 5px;
  }

  .screen-lightbox {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-width: 4px;
    box-shadow:
      6px 6px 0 var(--orange),
      12px 12px 0 #173a86;
  }

  .screen-lightbox-panel {
    padding: 8px;
  }

  .screen-lightbox header {
    min-height: 42px;
    padding-bottom: 8px;
  }

  .screen-lightbox-close {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .screen-lightbox img {
    max-height: calc(100dvh - 92px);
  }

  .product-overview-copy {
    font-size: 0.95rem;
  }

  .product-stats div {
    padding: 14px 12px;
  }

  .product-stats dd {
    font-size: 1.18rem;
  }

  .feature-system {
    margin-top: 34px;
    grid-template-columns: 1fr;
  }

  .feature-system article {
    padding: 20px;
  }

  .changelog-heading {
    gap: 28px;
  }

  .community-heading {
    gap: 28px;
  }

  .changelog-list {
    margin-top: 34px;
    gap: 14px;
  }

  .changelog-release summary {
    padding: 15px 58px 15px 14px;
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
  }

  .changelog-release summary::after {
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .changelog-version {
    font-size: 1.7rem;
  }

  .changelog-date {
    justify-self: end;
    font-size: 0.68rem;
  }

  .changelog-state {
    grid-column: 1 / -1;
    font-size: 0.65rem;
  }

  .changelog-release-body {
    padding: 20px 16px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .changelog-release-body section {
    padding-left: 14px;
    border-left-width: 5px;
  }

  .changelog-safety-note {
    padding: 16px;
  }

  .community-gate {
    min-height: 0;
    margin-top: 34px;
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .community-gate p {
    grid-column: auto;
  }

  .community-workbench {
    margin-top: 24px;
    gap: 18px;
  }

  .community-panel-header {
    min-height: 88px;
    padding: 16px;
  }

  .community-panel-header h3 {
    font-size: 1.02rem;
  }

  .community-panel-header > strong {
    min-width: 46px;
    height: 46px;
  }

  .community-panel form {
    padding: 16px;
  }

  .community-field-grid {
    grid-template-columns: 1fr;
  }

  .community-field-grid label + label {
    margin-top: 16px;
  }

  .request-type {
    gap: 8px;
  }

  .request-type span {
    min-height: 54px;
    padding: 9px 6px;
    font-size: 0.72rem;
  }

  .community-messages {
    max-height: 350px;
  }

  .community-message {
    padding: 16px 70px 16px 14px;
  }

  .community-flag {
    top: 14px;
    right: 12px;
  }

  .product-workflow li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .spec-table > div {
    grid-template-columns: 1fr;
  }

  .spec-table strong {
    padding-top: 0;
    border-left: 0;
  }

  .faq-list {
    margin-top: 32px;
  }

  .faq-list summary {
    padding-right: 52px;
    font-size: 0.95rem;
  }

  .faq-list p {
    padding-right: 0;
    font-size: 0.9rem;
  }

  .product-cta-actions {
    grid-template-columns: 1fr;
  }

  .firmware-gate {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    box-shadow: 8px 8px 0 #173a86;
  }

  .firmware-gate-panel {
    padding: 24px 16px 28px;
  }

  .firmware-gate h2 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .firmware-tuner {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .screen-selector a {
    transition: none;
  }
}

/* Community terminal */
.community-terminal-band {
  padding: clamp(18px, 4vw, 56px);
  color: #f4f4f2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #111315;
  background-size: 28px 28px;
}

.community-terminal-shell {
  max-width: 1500px;
  margin: 0 auto;
  overflow: hidden;
  background: #070808;
  border: 1px solid #4b4e50;
  border-radius: 18px;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.42);
}

.community-window-bar {
  min-height: 58px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  color: #b8b8b8;
  background: #1b1d1e;
  border-bottom: 1px solid #303335;
  font-size: 0.82rem;
}

.community-window-lights {
  display: flex;
  gap: 10px;
}

.community-window-lights i {
  width: 17px;
  height: 17px;
  display: block;
  background: #4b4c4d;
  border-radius: 50%;
}

.community-window-lights i:first-child {
  background: #ff4d55;
}

.community-window-lights i:nth-child(2) {
  background: #ffc400;
}

.community-online {
  color: #52efdf;
  font-size: 0.68rem;
}

.community-online::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  display: inline-block;
  background: #52efdf;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(82, 239, 223, 0.72);
}

.community-terminal-body {
  padding: clamp(24px, 4vw, 52px);
}

.community-terminal-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  align-items: end;
  gap: 38px;
}

.community-terminal-intro .product-kicker {
  color: #52efdf;
}

.community-terminal-intro h2 {
  max-width: none;
  margin: 12px 0 0;
  color: #f5f5f3;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: none;
}

.community-terminal-line {
  margin: 22px 0 0;
  color: #52efdf;
  font-size: clamp(0.78rem, 1.5vw, 1.02rem);
}

.community-terminal-line i {
  padding: 0 8px;
  color: #ffba43;
  font-style: normal;
}

.community-terminal-status {
  min-height: 122px;
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 8px;
  background: #1a1c1d;
  border: 1px solid #36393b;
  border-radius: 8px;
}

.community-terminal-status span {
  color: #ffba43;
  font-size: 0.64rem;
}

.community-terminal-status strong {
  font-size: 0.94rem;
}

.community-terminal-status small {
  color: #929597;
  font-size: 0.7rem;
}

.community-terminal-copy {
  max-width: 880px;
  margin: 28px 0 0;
  color: #a7aaac;
  font-size: 0.9rem;
  line-height: 1.6;
}

.community-mode-tabs {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 3px solid #52efdf;
  border-bottom: 1px solid #343739;
}

.community-mode-tabs button {
  min-height: 62px;
  padding: 12px 18px;
  color: #888b8d;
  background: #111314;
  border: 0;
  border-right: 1px solid #343739;
  border-radius: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.community-mode-tabs button:last-child {
  border-right: 0;
}

.community-mode-tabs button span {
  margin-right: 12px;
  color: #5b5f61;
  font-size: 0.64rem;
}

.community-mode-tabs button:hover,
.community-mode-tabs button:focus-visible {
  color: #f5f5f3;
  background: #1a1c1d;
}

.community-mode-tabs button:focus-visible {
  outline: 2px solid #52efdf;
  outline-offset: -4px;
}

.community-mode-tabs button[aria-selected="true"] {
  color: #f5f5f3;
  background: #222526;
  box-shadow: inset 0 -4px 0 #52efdf;
}

.community-mode-tabs button[data-community-mode-button="bug"][aria-selected="true"] {
  box-shadow: inset 0 -4px 0 #ff7448;
}

.community-mode-tabs button[data-community-mode-button="feature"][aria-selected="true"] {
  box-shadow: inset 0 -4px 0 #ee79c5;
}

.community-mode-tabs button[aria-selected="true"] span {
  color: #52efdf;
}

.community-terminal-band .community-workbench {
  margin-top: 0;
  display: block;
}

.community-terminal-band .community-panel {
  min-width: 0;
  color: #f4f4f2;
  background: #0b0c0d;
  border: 1px solid #343739;
  border-top: 0;
  box-shadow: none;
}

.community-terminal-band .community-panel[hidden] {
  display: none !important;
}

.community-terminal-band .community-panel-header {
  min-height: 104px;
  padding: 20px 22px;
  background: #17191a;
  border: 0;
  border-bottom: 1px solid #343739;
}

.community-terminal-band .community-panel-header span {
  color: #52efdf;
  font-size: 0.62rem;
}

.community-terminal-band .community-panel-header h3 {
  margin: 8px 0 0;
  color: #f5f5f3;
  font-size: 1.25rem;
}

.community-terminal-band .community-panel-header p {
  margin: 8px 0 0;
  color: #8f9294;
  font-size: 0.76rem;
  font-weight: 400;
}

.community-terminal-band .community-panel-header > strong {
  min-width: 54px;
  height: 54px;
  color: #070808;
  background: #52efdf;
  border: 0;
  border-radius: 6px;
}

.community-terminal-band .request-panel .community-panel-header {
  background: #17191a;
}

.community-terminal-band .community-panel form {
  padding: 22px;
}

.community-terminal-band .community-panel fieldset:disabled {
  opacity: 1;
}

.community-terminal-band .community-panel label > span {
  margin-bottom: 8px;
  color: #aeb1b3;
  font-size: 0.63rem;
}

.community-terminal-band .community-panel label small {
  color: #6f7375;
}

.community-terminal-band .community-panel input,
.community-terminal-band .community-panel select,
.community-terminal-band .community-panel textarea {
  min-height: 50px;
  padding: 12px 14px;
  color: #f5f5f3;
  background: #101213;
  border: 1px solid #3a3e40;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  font-size: 0.82rem;
}

.community-terminal-band .community-panel select {
  color-scheme: dark;
}

.community-terminal-band .community-panel textarea {
  min-height: 112px;
}

.community-terminal-band .community-panel input:focus,
.community-terminal-band .community-panel select:focus,
.community-terminal-band .community-panel textarea:focus {
  border-color: #52efdf;
  outline: 2px solid rgba(82, 239, 223, 0.24);
  outline-offset: 2px;
}

.community-field-grid-three {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.15fr) minmax(150px, 0.48fr);
}

.community-terminal-band .community-form-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: #ffba43;
}

.community-terminal-band .community-empty {
  padding: 30px 22px;
  color: #666a6c;
}

.community-transmit-deck {
  margin-top: 18px;
  overflow: hidden;
  background: #050606;
  border: 1px solid #343739;
  border-top: 3px solid #52efdf;
  border-radius: 0;
}

.community-terminal-band .community-gate {
  min-height: 0;
  margin: 0;
  padding: 20px 22px;
  grid-template-columns: minmax(220px, 0.56fr) minmax(260px, 1fr) minmax(220px, 0.62fr);
  gap: 22px;
  color: #f5f5f3;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.community-terminal-band .community-gate-readout span {
  color: #ffba43;
}

.community-terminal-band .community-gate-readout strong {
  color: #f5f5f3;
}

.community-terminal-band .community-gate p {
  min-height: 0;
  color: #b7babd;
}

.community-terminal-band .community-gate > small {
  grid-column: 1 / -1;
  color: #5f6365;
  font-size: 0.56rem;
}

.community-send-actions {
  padding: 0 22px 22px;
}

.community-terminal-band .community-submit {
  min-height: 58px;
  margin: 0;
  color: #050606;
  background: #52efdf;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  font-size: 0.82rem;
}

.community-terminal-band .community-submit:hover,
.community-terminal-band .community-submit:focus-visible {
  transform: none;
  color: #050606;
  background: #85fff3;
  box-shadow: none;
}

.community-terminal-band .community-submit:focus-visible {
  outline: 2px solid #52efdf;
  outline-offset: 3px;
}

.community-terminal-band .community-submit:disabled {
  color: #55595b;
  background: #17191a;
  cursor: not-allowed;
  opacity: 1;
}

.community-terminal-band[data-community-mode="bug"] .community-submit:not(:disabled) {
  background: #ff7448;
}

.community-terminal-band[data-community-mode="feature"] .community-submit:not(:disabled) {
  background: #ee79c5;
}

.community-board {
  margin-top: 38px;
  background: #080909;
  border: 1px solid #343739;
  border-top: 3px solid #52efdf;
}

.community-board-header {
  min-height: 92px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #17191a;
  border-bottom: 1px solid #343739;
}

.community-board-header span {
  color: #52efdf;
  font-size: 0.62rem;
}

.community-board-header h3 {
  margin: 8px 0 0;
  color: #f5f5f3;
  font-size: 1.2rem;
}

.community-board-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-board-tools > strong {
  min-width: 44px;
  color: #050606;
  background: #52efdf;
  padding: 12px 10px;
  text-align: center;
  font-size: 0.72rem;
}

.community-owner-toggle,
.community-owner-panel button,
.community-owner-controls button {
  min-height: 40px;
  padding: 10px 14px;
  color: #f5f5f3;
  background: #101213;
  border: 1px solid #4b4f51;
  border-radius: 0;
  font: inherit;
  font-size: 0.65rem;
  cursor: pointer;
}

.community-owner-toggle:hover,
.community-owner-toggle:focus-visible,
.community-owner-panel button:hover,
.community-owner-panel button:focus-visible,
.community-owner-controls button:hover,
.community-owner-controls button:focus-visible {
  color: #050606;
  background: #52efdf;
  border-color: #52efdf;
  outline: none;
}

.community-owner-panel {
  padding: 16px 22px;
  background: #0d0f10;
  border-bottom: 1px solid #343739;
}

.community-owner-panel[hidden],
.community-owner-panel [hidden] {
  display: none !important;
}

.community-owner-panel form,
.community-owner-session {
  max-width: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.community-owner-panel label span {
  margin-bottom: 8px;
  display: block;
  color: #aeb1b3;
  font-size: 0.6rem;
}

.community-owner-panel input,
.community-owner-controls select,
.community-owner-controls textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #f5f5f3;
  background: #101213;
  border: 1px solid #3a3e40;
  border-radius: 0;
  font: inherit;
  font-size: 0.72rem;
}

.community-owner-panel > p {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: #ffba43;
  font-size: 0.62rem;
}

.community-owner-session {
  align-items: center;
  color: #52efdf;
  font-size: 0.7rem;
}

.community-board-list {
  min-height: 120px;
}

.community-board-item {
  padding: 22px;
  border-bottom: 1px solid #292c2e;
}

.community-board-item:last-child {
  border-bottom: 0;
}

.community-board-item > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.community-board-item > header span {
  color: #52efdf;
  font-size: 0.58rem;
}

.community-board-item > header h4 {
  margin: 7px 0 0;
  color: #f5f5f3;
  font-size: 1rem;
  line-height: 1.35;
}

.community-status-badge {
  flex: 0 0 auto;
  min-width: 78px;
  padding: 8px 10px;
  color: #050606;
  background: #ffba43;
  text-align: center;
  font-size: 0.58rem;
}

.community-board-item.is-building .community-status-badge {
  background: #52efdf;
}

.community-board-item.is-done .community-status-badge {
  background: #98f7aa;
}

.community-board-item.is-parked .community-status-badge {
  color: #d2d4d5;
  background: #4a4e50;
}

.community-board-meta {
  margin: 12px 0 0;
  color: #737779;
  font-size: 0.6rem;
}

.community-board-details {
  max-width: 1050px;
  margin: 15px 0 0;
  color: #c9cbcc;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.65;
  white-space: pre-wrap;
}

.community-replies {
  margin-top: 18px;
  border-left: 3px solid #52efdf;
}

.community-replies > div {
  padding: 12px 16px;
  background: #111314;
  border-bottom: 1px solid #292c2e;
}

.community-replies > div:last-child {
  border-bottom: 0;
}

.community-replies p {
  margin: 0;
  color: #cfd1d2;
  font-size: 0.7rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.community-replies p:first-child {
  margin-bottom: 6px;
  color: #52efdf;
  font-size: 0.56rem;
}

.community-owner-controls {
  margin-top: 18px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  border-top: 1px dashed #4a4e50;
}

.community-owner-status-control,
.community-owner-reply-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.community-owner-controls textarea {
  min-height: 70px;
  resize: vertical;
}

@media (max-width: 900px) {
  .community-terminal-intro {
    grid-template-columns: 1fr;
  }

  .community-terminal-status {
    min-height: 0;
  }

  .community-field-grid-three {
    grid-template-columns: 1fr;
  }

  .community-owner-controls {
    grid-template-columns: 1fr;
  }

  .community-terminal-band .community-gate {
    grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
  }

  .community-terminal-band .community-gate p,
  .community-terminal-band .community-gate > small {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .community-terminal-band {
    padding: 10px;
  }

  .community-terminal-shell {
    border-radius: 12px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.42);
  }

  .community-window-bar {
    min-height: 48px;
    padding: 0 12px;
    grid-template-columns: auto 1fr;
    gap: 12px;
    font-size: 0.64rem;
  }

  .community-window-lights {
    gap: 6px;
  }

  .community-window-lights i {
    width: 12px;
    height: 12px;
  }

  .community-online {
    display: none;
  }

  .community-terminal-body {
    padding: 18px 14px 20px;
  }

  .community-terminal-intro {
    gap: 20px;
  }

  .community-terminal-intro h2 {
    font-size: clamp(2.55rem, 14vw, 3.7rem);
  }

  .community-terminal-line {
    margin-top: 16px;
    line-height: 1.65;
  }

  .community-terminal-line i {
    padding: 0 3px;
  }

  .community-terminal-copy {
    margin-top: 20px;
    font-size: 0.8rem;
  }

  .community-mode-tabs {
    margin-top: 24px;
  }

  .community-mode-tabs button {
    min-height: 54px;
    padding: 10px 7px;
    text-align: center;
    font-size: 0.7rem;
  }

  .community-mode-tabs button span {
    margin: 0 4px 0 0;
    font-size: 0.54rem;
  }

  .community-terminal-band .community-panel-header {
    min-height: 92px;
    padding: 16px;
  }

  .community-terminal-band .community-panel-header h3 {
    font-size: 1.02rem;
  }

  .community-terminal-band .community-panel-header p {
    max-width: 220px;
    line-height: 1.45;
  }

  .community-terminal-band .community-panel-header > strong {
    min-width: 44px;
    height: 44px;
  }

  .community-terminal-band .community-panel form {
    padding: 16px;
  }

  .community-terminal-band .community-panel label + label,
  .community-terminal-band .community-field-grid + label {
    margin-top: 14px;
  }

  .community-terminal-band .community-gate {
    padding: 18px 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .community-terminal-band .community-gate p,
  .community-terminal-band .community-gate > small {
    grid-column: auto;
  }

  .community-send-actions {
    padding: 0 16px 16px;
  }

  .community-board {
    margin-top: 28px;
  }

  .community-board-header {
    padding: 16px;
    align-items: flex-start;
  }

  .community-board-tools {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }

  .community-owner-toggle {
    min-height: 34px;
    padding: 8px 9px;
    font-size: 0.54rem;
  }

  .community-owner-panel {
    padding: 14px 16px;
  }

  .community-owner-panel form,
  .community-owner-session,
  .community-owner-status-control,
  .community-owner-reply-control {
    grid-template-columns: 1fr;
  }

  .community-board-item {
    padding: 18px 16px;
  }

  .community-board-item > header {
    gap: 12px;
  }

  .community-status-badge {
    min-width: 68px;
  }

}
