:root {
  --bg: #050505;
  --bg-soft: #0d0e0c;
  --ink: #f1f1e6;
  --muted: #a8aaa1;
  --line: #5d665f;
  --green: #8cff9a;
  --salmon: #ff8e7f;
  --amber: #f3c95c;
  --blue-dark: #24485d;
  --blue-mid: #9eb5c4;
  --blue-pale: #dce6ec;
  --paper: #f4f3e9;
  --paper-dark: #1a1c18;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #000 0%, var(--bg) 45%, #10110e 100%);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:visited {
  color: var(--salmon);
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 30px;
}

.site-header,
.board-panel,
.reader-panel,
.gallery-panel,
.guestbook-panel,
.links-panel,
.resources-panel,
.archive-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(6, 7, 6, 0.94);
  box-shadow: 0 16px 48px var(--shadow);
}

.site-header {
  margin-bottom: 12px;
}

.signal-line,
.nav-strip,
.reader-toolbar,
.bar-title,
.bbs-footer,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signal-line {
  min-height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.brand-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 30px 26px 26px;
}

.ascii-mark {
  margin: 0;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.04;
  white-space: pre;
}

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

.kicker {
  margin: 0 0 4px;
  color: var(--green);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.brand-copy p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 560px;
}

.nav-strip {
  min-height: 38px;
  padding: 0 8px;
  border-top: 1px solid var(--line);
  background: #11130f;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.nav-strip a,
.action-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #020302;
  cursor: pointer;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.nav-strip a:hover,
.action-link:hover,
button:hover {
  border-color: var(--green);
  text-decoration: none;
}

.action-link:visited {
  color: var(--ink);
}

.action-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.nav-strip a[aria-current="page"] {
  border-color: var(--green);
  color: #061006;
  background: var(--green);
}

.nav-divider {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
}

.nav-icon-link {
  gap: 6px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 3px;
  border: 1px solid #4d564f;
  color: var(--green);
  background: #090b08;
  font-size: 10px;
  line-height: 1;
}

.btc-icon {
  color: #1d1300;
  background: var(--amber);
  border-color: var(--amber);
  font-size: 13px;
  font-weight: 700;
}

.nav-lightsaber {
  display: inline-flex;
  align-items: center;
  width: 28px;
  height: 18px;
}

.lightsaber-blade {
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 6px rgba(140, 255, 154, 0.8);
}

.lightsaber-hilt {
  width: 7px;
  height: 7px;
  border: 1px solid #4d564f;
  background: var(--blue-pale);
  box-shadow: inset 0 -2px 0 var(--blue-mid);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.35fr);
  gap: 12px;
  align-items: start;
}

.workspace > * {
  min-width: 0;
}

.bar-title {
  min-height: 34px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  color: #07100c;
  background: linear-gradient(180deg, var(--blue-pale), var(--blue-mid));
}

.bar-title h2 {
  color: #081319;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.bar-title span {
  color: #263a46;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.search-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.search-row label {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #747d73;
  border-radius: 0;
  color: #0a0c09;
  background: var(--paper);
  outline: none;
}

input,
select {
  min-height: 28px;
  padding: 4px 7px;
}

textarea {
  min-height: 230px;
  padding: 10px;
  resize: vertical;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(140, 255, 154, 0.18);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--paper);
  color: #111;
}

.post-table th {
  padding: 7px 8px;
  color: #fff;
  background: var(--blue-dark);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  text-align: left;
}

.post-table th:nth-child(2),
.post-table td:nth-child(2) {
  width: 78px;
  text-align: center;
}

.post-table th:nth-child(3),
.post-table td:nth-child(3) {
  width: 112px;
  text-align: center;
  white-space: nowrap;
  word-break: normal;
}

.post-table td {
  min-height: 58px;
  padding: 9px 8px;
  border: 1px solid #c6d2d9;
  background: #edf2ef;
  vertical-align: middle;
  word-break: break-word;
}

.post-table tr:nth-child(even) td {
  background: var(--blue-pale);
}

.post-table tr {
  cursor: pointer;
}

.post-table tr:hover td,
.post-table tr.is-active td {
  background: #fff7d8;
}

.entry-title,
.entry-summary {
  display: block;
}

.entry-title {
  color: #12354a;
  font-size: 13px;
  font-weight: 700;
}

.entry-summary {
  margin-top: 3px;
  color: #44515a;
  font-size: 11px;
}

.state-pill {
  display: inline-block;
  min-width: 54px;
  max-width: 100%;
  padding: 2px 5px;
  border: 1px solid #83939d;
  color: #101814;
  background: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bbs-footer {
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  background: #030403;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  flex-wrap: wrap;
}

.reader-toolbar {
  min-height: 48px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #11130f;
}

.reader-toolbar strong {
  display: block;
  max-width: 46ch;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tiny-label {
  display: block;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.reader {
  min-height: 510px;
  padding: 22px;
  color: #11140f;
  background: var(--paper);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.reader h2,
.reader h3,
.reader h4 {
  margin: 24px 0 8px;
  color: #102f3f;
  font-family: "Courier New", Courier, monospace;
}

.reader h2:first-child,
.reader h3:first-child,
.reader h4:first-child {
  margin-top: 0;
}

.reader p {
  margin: 0 0 13px;
}

.reader ul,
.reader ol {
  margin: 0 0 14px 22px;
  padding: 0;
}

.reader li + li {
  margin-top: 4px;
}

.reader blockquote {
  margin: 16px 0;
  padding: 8px 12px;
  border-left: 4px solid var(--blue-dark);
  color: #29312c;
  background: #e5eadf;
}

.reader code {
  padding: 1px 4px;
  color: #04130a;
  background: #dbe6d8;
  font-family: "Courier New", Courier, monospace;
}

.reader pre {
  overflow-x: auto;
  padding: 12px;
  border: 1px solid #9aa79c;
  color: #e8f7e9;
  background: #050705;
}

.reader pre.code-block[data-lang]::before {
  content: attr(data-lang);
  display: block;
  margin: -12px -12px 10px;
  padding: 5px 8px;
  color: #07100c;
  background: var(--blue-mid);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.reader pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.reader hr {
  border: 0;
  border-top: 1px solid #aab5ad;
  margin: 18px 0;
}

.reader .markdown-table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid #9aa79c;
}

.reader table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  color: #11140f;
  background: var(--paper);
  font-size: 12px;
}

.reader th {
  padding: 7px 9px;
  color: #fff;
  background: var(--blue-dark);
  font-size: 11px;
  text-align: left;
}

.reader td {
  padding: 8px 9px;
  border: 1px solid #c6d2d9;
  background: #edf2ef;
  vertical-align: top;
  word-break: break-word;
}

.reader tbody tr:nth-child(even) td {
  background: var(--blue-pale);
}

.reader .align-center {
  text-align: center;
}

.reader .align-right {
  text-align: right;
}

.reader .chart-panel {
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid #9aa79c;
  color: #11140f;
  background: var(--paper);
}

.reader .chart-panel figcaption {
  margin: 0;
  padding: 6px 9px;
  color: #fff;
  background: var(--blue-dark);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.reader .mermaid-chart {
  min-height: 150px;
  padding: 14px;
  overflow-x: auto;
  color: #11140f;
  background: var(--paper);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  white-space: pre;
}

.reader .chart-panel.is-rendered .mermaid-chart {
  white-space: normal;
}

.reader .mermaid-chart svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.reader .chart-panel.is-failed .mermaid-chart {
  color: #e8f7e9;
  background: #050705;
}

.reader .chart-error {
  margin: 0;
  padding: 7px 9px;
  border-top: 1px solid #9aa79c;
  color: #5d211a;
  background: #fff7d8;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.archive-panel {
  margin-top: 12px;
}

.archive-tools {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto minmax(180px, 0.75fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #11130f;
}

.archive-tools label {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.archive-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #030403;
}

.archive-category-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #4d564f;
  color: var(--ink);
  background: #090b08;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.archive-category-nav a:hover {
  border-color: var(--green);
  text-decoration: none;
}

.archive-category-nav span {
  color: var(--green);
}

.archive-category-section {
  border-bottom: 1px solid var(--line);
}

.archive-category-section:last-child {
  border-bottom: 0;
}

.archive-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink);
  background: #151712;
}

.archive-category-heading h3 {
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

.archive-category-heading span {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  white-space: nowrap;
}

.archive-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
}

.links-panel {
  margin-top: 12px;
}

.resources-panel {
  margin-top: 12px;
}

.gallery-shell {
  width: min(1260px, calc(100% - 28px));
}

.gallery-brand {
  align-items: end;
}

.gallery-panel {
  overflow: hidden;
}

.gallery-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.gallery-actions button,
.gallery-actions .action-link {
  min-height: 24px;
  padding: 3px 8px;
}

.wallet-select {
  width: min(160px, 32vw);
  min-height: 24px;
  border: 1px solid #6f838f;
  color: #081319;
  background: #dce7ec;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.wallet-select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.chain-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid #2e4c5d;
  color: #07100c;
  background: #c9e3f0;
}

.gallery-actions span {
  white-space: nowrap;
}

.gallery-manifest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  color: #11140f;
  background: var(--paper);
  border-bottom: 1px solid #c6d2d9;
}

.gallery-manifest p {
  margin: 0;
  padding: 11px 12px;
  border-right: 1px solid #c6d2d9;
  font-size: 12px;
}

.gallery-manifest p:last-child {
  border-right: 0;
}

.gallery-categories {
  display: grid;
  gap: 0;
  background: #070807;
}

.gallery-category {
  border-top: 1px solid var(--line);
}

.gallery-category:first-child {
  border-top: 0;
}

.category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--ink);
  background: #0f110e;
  border-bottom: 1px solid var(--line);
}

.category-title h3 {
  color: var(--green);
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
}

.category-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.category-title span {
  flex: 0 0 auto;
  color: var(--amber);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(140, 255, 154, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #070807;
  background-size: 31px 31px, 31px 31px, auto;
}

.empty-category {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed #646b62;
  color: var(--muted);
  background: #0d0e0c;
  font-family: "Courier New", Courier, monospace;
}

.art-card {
  position: relative;
  margin: 0;
  border: 1px solid #646b62;
  background: #0d0e0c;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.art-card.is-tilted {
  transform: rotate(-0.6deg);
}

.art-card.is-raised {
  transform: translateY(-5px) rotate(0.4deg);
}

.art-button {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
}

.art-button img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
}

#rogue-chaos .art-button img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.art-button:hover img,
.art-button:focus-visible img {
  filter: saturate(1.04) contrast(1.08);
}

.art-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.art-card figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 8px;
  color: #11140f;
  background: var(--paper);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.2;
}

.art-index {
  padding: 1px 5px;
  color: var(--paper);
  background: #b32020;
}

.art-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mint-count {
  justify-self: end;
  min-width: 24px;
  color: #12354a;
  text-align: right;
}

.art-lightbox {
  width: min(96vw, 1120px);
  max-height: 96vh;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #050605;
}

.art-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: 96vh;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #11130f;
  font-family: "Courier New", Courier, monospace;
}

.lightbox-image-wrap {
  min-height: 0;
  overflow: auto;
}

.lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(96vh - 188px);
  margin: 0 auto;
  object-fit: contain;
}

.mint-panel {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid var(--line);
  background: #0f110e;
}

.mint-meta,
.mint-actions,
.mint-note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mint-meta,
.mint-actions {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.mint-meta span:first-child {
  min-width: 0;
  overflow: hidden;
  color: var(--green);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mint-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 0.7fr) auto minmax(0, 1.3fr);
  gap: 8px;
  align-items: center;
}

.mint-fields label {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.mint-note-row span {
  flex: 0 0 auto;
  min-width: 44px;
  color: var(--amber);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  text-align: right;
}

#mint-status[data-mode="error"] {
  color: var(--salmon);
}

#mint-status[data-mode="ok"] {
  color: var(--green);
}

.guestbook-panel {
  margin-top: 12px;
}

.guestbook-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #111;
  background: var(--paper);
}

.guestbook-table th {
  padding: 7px 9px;
  color: #fff;
  background: var(--blue-dark);
  font-size: 11px;
  text-align: left;
}

.guestbook-table th:first-child,
.guestbook-table td:first-child {
  width: 74px;
}

.guestbook-table th:nth-child(2),
.guestbook-table td:nth-child(2) {
  width: 170px;
}

.guestbook-table th:nth-child(5),
.guestbook-table td:nth-child(5) {
  width: 145px;
}

.guestbook-table th:nth-child(6),
.guestbook-table td:nth-child(6) {
  width: 86px;
}

.guestbook-table td {
  padding: 9px;
  border: 1px solid #c6d2d9;
  background: #edf2ef;
  vertical-align: top;
  word-break: break-word;
}

.guestbook-table tr:nth-child(even) td {
  background: var(--blue-pale);
}

.guestbook-table strong,
.guestbook-table span {
  display: block;
}

.guestbook-table strong,
.token-id {
  color: #12354a;
  font-family: "Courier New", Courier, monospace;
}

.guestbook-table a {
  color: #075c32;
  font-family: "Courier New", Courier, monospace;
}

.links-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #111;
  background: var(--paper);
}

.links-table th {
  padding: 7px 9px;
  color: #fff;
  background: var(--blue-dark);
  font-size: 11px;
  text-align: left;
}

.links-table th:first-child,
.links-table td:first-child {
  width: 220px;
}

.links-table td {
  padding: 9px;
  border: 1px solid #c6d2d9;
  background: #edf2ef;
  vertical-align: top;
  word-break: break-word;
}

.links-table tr:nth-child(even) td {
  background: var(--blue-pale);
}

.links-table a {
  color: #075c32;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.books-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #111;
  background: var(--paper);
}

.books-table th {
  padding: 7px 9px;
  color: #fff;
  background: var(--blue-dark);
  font-size: 11px;
  text-align: left;
}

.books-table th:nth-child(1),
.books-table td:nth-child(1) {
  width: 62%;
}

.books-table th:nth-child(2),
.books-table td:nth-child(2) {
  width: 38%;
}

.books-table td {
  padding: 10px;
  border: 1px solid #c6d2d9;
  background: #edf2ef;
  vertical-align: top;
  word-break: break-word;
}

.books-table tr:nth-child(even) td {
  background: var(--blue-pale);
}

.books-table cite {
  color: #12354a;
  font-style: italic;
  font-weight: 700;
}

.books-table .is-tbd {
  color: #5d211a;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
}

.resources-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #111;
  background: var(--paper);
}

.resources-table th {
  padding: 7px 9px;
  color: #fff;
  background: var(--blue-dark);
  font-size: 11px;
  text-align: left;
}

.resources-table th:first-child,
.resources-table td:first-child {
  width: 210px;
}

.resources-table td {
  padding: 9px;
  border: 1px solid #c6d2d9;
  background: #edf2ef;
  vertical-align: top;
  word-break: break-word;
}

.resources-table tr:nth-child(even) td {
  background: var(--blue-pale);
}

.resources-table td:first-child {
  color: #12354a;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  min-height: 52px;
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #030403;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.site-footer div,
.site-footer nav {
  min-width: 0;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--ink);
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a {
  color: var(--green);
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 18px, 680px);
  }

  .workspace,
  .gallery-manifest {
    grid-template-columns: 1fr;
  }

  .brand-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 16px;
  }

  h1 {
    font-size: 24px;
  }

  .ascii-mark {
    font-size: 12px;
  }

  .reader {
    min-height: 360px;
    padding: 16px;
  }

  .links-table th:first-child,
  .links-table td:first-child {
    width: 160px;
  }

  .resources-table th:first-child,
  .resources-table td:first-child {
    width: 170px;
  }

  .art-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .category-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-actions {
    flex-wrap: wrap;
  }

  .wallet-select {
    width: min(100%, 180px);
  }

  .mint-fields {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mint-note-row {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 12px;
  }

  .shell {
    width: calc(100% - 10px);
    padding-top: 6px;
  }

  .signal-line,
  .site-footer {
    align-items: flex-start;
    padding: 7px 8px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .archive-tools {
    grid-template-columns: 1fr;
  }

  .post-table th:nth-child(2),
  .post-table td:nth-child(2) {
    width: 82px;
  }

  .post-table th:nth-child(3),
  .post-table td:nth-child(3) {
    width: 90px;
  }

  .post-table th,
  .post-table td,
  .links-table th,
  .links-table td,
  .books-table th,
  .books-table td,
  .resources-table th,
  .resources-table td {
    padding: 7px 5px;
    font-size: 11px;
  }

  .entry-title {
    font-size: 12px;
  }

  .links-table th:first-child,
  .links-table td:first-child {
    width: 116px;
  }

  .links-table a {
    font-size: 11px;
  }

  .books-table {
    min-width: 720px;
  }

  .resources-table {
    min-width: 680px;
  }

  .guestbook-table {
    min-width: 860px;
  }

  .gallery-shell {
    width: calc(100% - 10px);
  }

  .gallery-manifest p {
    border-right: 0;
    border-bottom: 1px solid #c6d2d9;
  }

  .art-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
  }

  .art-card.is-tilted,
  .art-card.is-raised {
    transform: none;
  }

  .art-card figcaption {
    min-height: 44px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px;
    font-size: 11px;
  }

  .mint-count {
    grid-column: 2;
  }

  .lightbox-frame img {
    max-height: calc(96vh - 238px);
  }

  .mint-meta,
  .mint-actions,
  .mint-note-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .mint-note-row span {
    align-self: flex-end;
  }
}
