:root {
  color-scheme: dark;
  --canvas: #32163b;
  --sky: #170c22;
  --rail: #1d092e;
  --frame: #0b0710;
  --black: #0e0c13;
  --mid: #1c131d;
  --row: #2b1b1a;
  --row-alt: #261817;
  --line: #8d6a31;
  --dash: #716174;
  --ink: #c5bcf5;
  --muted: #b9a7c5;
  --heading: #f9edf9;
  --link: #ffdf50;
  --link-hover: #fff0b0;
  --sky-link: #b8f1eb;
  --bar: #331562;
  --bar-light: #422479;
  --bar-deep: #1a103e;
  --strip-ink: #ffc18a;
  --strip-weave: url("/assets/category-weave.svg");
  --field: #1d1728;
  --field-border: #8d779a;
  --button: #483353;
  --button-border: #af92b7;
  --focus: #a7e1ef;
  --sub-board: #86e3eb;
  --sub-ink: #192235;
  --rail-rule: #ba7843;
  --rail-highlight: #c5963f;
  --rail-width: 190px;
  --body-gutter: 20px;
  font: 16px/1.18 "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
body {
  --garland: url("/assets/garland.svg");
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--garland) repeat-x 0 0, url("/assets/weave.svg") repeat 12px 0,
    radial-gradient(ellipse at 2% 5%, #352143 0, transparent 31rem),
    linear-gradient(180deg, var(--sky) 0 74vh, var(--canvas) 124vh);
  background-size: auto, 416px 312px, auto, auto;
  background-color: var(--canvas);
}
body.has-animated-sky { --garland: none; }
.forum-sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  image-rendering: pixelated;
}
@media (prefers-reduced-motion: reduce) {
  body.has-animated-sky { --garland: url("/assets/garland.svg"); }
  .forum-sky { display: none; }
}
a { color: var(--link); text-decoration: underline; text-underline-offset: .08em; }
a:hover, .link-button:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
img { max-width: 100%; }
code { font-size: .9em; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; }
input, select, textarea {
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 0;
  padding: 3px 5px;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="radio"], input[type="checkbox"] { accent-color: #a681ce; }
button, .forum-button, input::file-selector-button {
  display: inline-block;
  color: var(--heading);
  background: var(--button);
  border: 1px outset var(--button-border);
  border-radius: 0;
  padding: 3px 8px;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .forum-button:hover { background-color: var(--bar); color: var(--heading); border-color: var(--focus); }
button:active, .forum-button:active { border-style: inset; }
button:disabled { opacity: .6; cursor: default; }
.link-button {
  color: var(--link);
  background: none;
  padding: 0;
  border: 0;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: .08em;
}
.link-button:hover { background: none; }
.small, small { font-size: .87em; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 5; top: 4px; left: 4px; padding: 7px; background: var(--frame); }
.pixel-icon { display: inline-block; width: 1.1em; height: 1.1em; flex: none; vertical-align: -.22em; shape-rendering: crispEdges; }
.brand img, .rail-mark img, img.avatar { image-rendering: pixelated; }
.page-shell { padding-top: 45px; margin: 0 calc(var(--rail-width) + var(--body-gutter)) 0 var(--body-gutter); }
.icon-menu { display: flex; justify-content: center; gap: 5px; margin: 0 0 19px; min-height: 67px; }
.icon-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 63px;
  gap: 4px;
  font-size: 1.13em;
  color: var(--heading);
  text-align: center;
  text-decoration: none;
}
.icon-menu a > span:last-child { display: block; width: 100%; padding: 0 6px; background: #100a15; white-space: nowrap; }
.icon-menu a:hover > span:last-child { color: #fff3ac; text-decoration: underline; }
.icon-frame {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px outset #d8cde3;
  outline: 1px solid #463456;
  background: #756884;
  box-shadow: inset 0 0 0 2px #413552, inset 0 0 0 4px #c4b0d0;
}
.icon-menu a:hover .icon-frame { border-style: inset; outline-color: #f2caa4; }
.icon-frame .pixel-icon { width: 30px; height: 30px; }
.header-box, .super-news, .main-frame, .footer-row { border: 1px dashed var(--dash); }
.header-box { margin-bottom: 10px; }
.masthead { display: grid; grid-template-columns: 1fr 1fr; min-height: 69px; align-items: center; background: var(--black); }
.brand-block { padding: 3px 11px 5px 7px; }
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  text-decoration: none;
  color: #c8e9f4;
  font: bold clamp(24px, 2.5vw, 36px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  text-shadow: 2px 2px 0 #624688, -1px 0 #697a9d;
}
.brand:hover { color: #ece8ff; }
.brand img { width: 77px; height: 44px; object-fit: contain; }
.brand-subtitle { display: block; color: var(--ink); font-size: .88em; padding-left: 5px; }
.account-line { position: relative; padding: 5px 10px 5px 2px; min-width: 0; }
.account-line > .link-button { margin-left: 6px; }
.account-line .pixel-icon, .rail-highlight .pixel-icon { margin-right: 3px; }
.masthead-meta { font-size: .92em; }
.wallet-short { display: inline-block; color: var(--muted); font: .8em monospace; }
.account-menu { display: inline-block; margin-left: 8px; }
.account-menu summary { cursor: pointer; color: var(--link); }
.account-menu > div {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  min-width: 130px;
  background: var(--row);
  border: 1px solid var(--line);
}
.account-menu > div > * { display: block; padding: 2px 0; }
.header-row { display: flex; align-items: center; min-height: 28px; border-top: 1px dashed var(--dash); }
.header-row > div { min-width: 0; padding: 3px 9px 4px; }
.header-row > div:first-child { width: 50%; }
.header-row.activity { color: var(--ink); background: var(--row); font-size: .91em; }
.header-row.activity > div:first-child .pixel-icon { color: var(--link); margin: 0 3px; }
.header-row.news { justify-content: space-between; background: var(--mid); min-height: 42px; }
.header-row.news > div:last-child { text-align: right; }
.header-row a { font-weight: bold; }
.super-news { margin-bottom: 10px; padding: 7px 8px 8px; text-align: center; min-height: 35px; background: var(--mid); }
.super-news strong { margin-right: 15px; }
.super-news.with-start-here { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 24px; }
.start-here { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.start-here b { color: var(--strip-ink); }
.main-frame { min-width: 0; background: var(--frame); padding: 10px 10px 27px; }
.category-strip {
  color: var(--strip-ink);
  background-color: var(--bar);
  background-image:
    var(--strip-weave),
    repeating-linear-gradient(90deg, var(--bar-deep) 0, var(--bar) 39px, var(--bar-light) 83px, var(--bar-deep) 144px);
  background-position: left center;
  background-repeat: repeat;
}
.category-strip a { color: var(--link); }
.category-glyph { float: right; float: inline-end; margin-inline: 6px 3px; color: var(--strip-ink); font-size: .84em; opacity: .75; }
.cafe { border: 1px solid var(--line); border-bottom: 0; }
.cafe > summary { display: flex; align-items: center; gap: 5px; min-height: 33px; padding: 0 9px; list-style: none; cursor: pointer; }
.cafe > summary::-webkit-details-marker { display: none; }
.collapse-mark { margin-left: auto; width: 13px; height: 13px; border: 1px outset #a48bb5; background: #241635; text-align: center; font: 12px/11px monospace; color: #eadcff; }
.collapse-mark::after { content: "+"; }
.cafe[open] .collapse-mark::after { content: "−"; }
.cafe-body {
  min-height: 64px;
  padding: 6px 8px 7px;
  border-top: 1px solid var(--line);
  background: var(--mid);
  font-size: .93em;
}
.cafe-body nav { display: flex; gap: 3px 13px; flex-wrap: wrap; margin-top: 5px; }
.cafe-body nav a { text-decoration-style: dotted; }
.table-viewport { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; color: var(--ink); }
th, td { border: 1px solid var(--line); text-align: start; padding: 5px 6px; }
.table-title { background: var(--black); color: var(--heading); font-weight: bold; }
.table-title th { height: 29px; padding: 3px 10px; }
.table-title th a { color: var(--heading); }
.board-table, .topic-table, .token-table { table-layout: fixed; }
.board-table .status-col { width: 70px; }
.board-table .art-col { width: 59px; }
.board-table .count-col { width: 5.9%; }
.board-table .last-col { width: 20.9%; }
.board-table thead th:not(:first-child) { text-align: center; padding-inline: 2px; }
.board-table tr.category-strip th { height: 28px; padding: 3px 9px; }
.board-row { background: var(--row); }
[data-theme="dusk"] .board-row {
  --row-overlay: color-mix(in srgb, var(--row) 87%, transparent);
  background-image: linear-gradient(var(--row-overlay), var(--row-overlay)), url("/assets/weave.svg");
}
.board-row td { height: 65px; }
.board-row .row-status, .board-row .counter { background: var(--mid); }
.board-row .row-status, .board-picture { text-align: center; }
.status-icon { width: 39px; height: 39px; vertical-align: middle; }
.board-icon { width: 32px; height: 32px; vertical-align: middle; }
.board-name { font-weight: 700; }
.board-feed { margin-left: 5px; font-size: .72em; display: inline-block; vertical-align: .06em; }
.board-feed .pixel-icon { width: .95em; height: .95em; }
.sub-boards { margin-top: 3px; font-size: .87em; line-height: 1.33; }
.sub-boards a { background: var(--sub-board); color: var(--sub-ink); padding: 0 4px; border: 1px outset #bceff1; }
.sub-boards a:hover { background: #d9eff5; }
.last-post { font-size: .88em; overflow-wrap: anywhere; }
.last-subject { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.counter { text-align: center; font-variant-numeric: tabular-nums; }
.info-center > .table-title th { text-align: center; }
.info-row { background: var(--row); font-size: .93em; }
.info-grid, .online-row { display: grid; grid-template-columns: 37px 1fr; align-items: center; gap: 5px; }
.info-grid { grid-template-columns: 37px 2.25fr 1fr; }
.info-icon { width: 29px; height: 29px; }
.footer-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 8px;
  margin: 17px 0 0;
  padding: 6px 9px;
  background-color: color-mix(in srgb, var(--canvas), transparent 16%);
}
.footer-row > div:nth-child(2) { text-align: center; }
.footer-row > div:last-child { text-align: right; }
.footer-row select { padding: 1px 3px; font-size: .9em; }
.badge-footer { text-align: center; padding: 34px 0 49px; }
.badge-footer .badge-row { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 14px; }
.badge-footer .badge-row + .badge-row { margin-top: 5px; }
.web-badge, .web-badge picture, .web-badge img { display: block; width: 88px; height: 31px; }
.web-badge img { image-rendering: pixelated; }
.web-badge:hover { outline: 1px dotted var(--link); outline-offset: 1px; }
.site-badge {
  display: inline-flex;
  width: 88px;
  height: 31px;
  padding: 2px;
  text-decoration: none;
  font: bold 10px/1.02 "Courier New", monospace;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 3px double #e2d7ef;
  background: #55315a;
  color: #ffdf9f;
}
.site-badge:hover { border-color: #ffd88f; color: #fff4ce; }
.site-badge .pixel-icon { width: 19px; height: 19px; }
.badge-mints { background: #47304d; color: #ffdf94; }
.badge-cafe { background: #4d2949; color: #fbc6df; }
.badge-dev { background: #24404c; color: #d4f3fc; }

.side-rail {
  position: fixed;
  inset: 0 0 0 auto;
  width: var(--rail-width);
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 32px 9px 19px;
  font: 12px/1.25 Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: url("/assets/weave.svg") repeat 38px 65px, color-mix(in srgb, var(--rail) 90%, transparent);
}
.rail-mark {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  height: 104px;
  margin-bottom: 20px;
  text-decoration: none;
  color: #d2bafa;
  font: bold 24px/.89 Georgia, serif;
  letter-spacing: -.045em;
  text-shadow: 1px 1px 0 #4b3f83, 2px 3px 0 #160921;
}
.rail-mark img { width: 61px; align-self: center; margin-right: 1px; }
.rail-mark span { display: block; transform: rotate(8deg); }
.rail-tiles { display: grid; justify-content: center; grid-template-columns: repeat(2, 63px); gap: 8px; }
.rail-tiles .site-badge {
  width: 63px;
  height: 38px;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--stamp-border, #f3dfed);
  outline: 1px dotted var(--stamp-border, #f3dfed);
  outline-offset: 1px;
  box-shadow: inset 0 0 0 1px #806388;
  background-color: var(--stamp-paper, #592a77);
  color: var(--stamp-ink, #fff1a0);
  font-size: 9px;
}
.rail-tiles .site-badge:hover { box-shadow: inset 0 0 0 2px #775696; text-decoration: underline; }
.rail-tiles .site-badge:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.rail-tiles .site-badge > span { max-width: 37px; }
.rail-tiles .badge-mints { --stamp-paper: #ffe8a4; --stamp-ink: #392344; }
.rail-tiles .badge-cafe { --stamp-paper: #f4cee9; --stamp-ink: #432253; }
.rail-tiles .badge-dev { --stamp-paper: #a6eaeb; --stamp-ink: #24234f; }
.rail-tiles .pixel-icon { height: 21px; width: 21px; }
.rail-section { margin-top: 19px; }
.rail-section h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px;
  color: var(--strip-ink);
  font: bold 10px/1.25 "Courier New", monospace;
  white-space: nowrap;
  letter-spacing: .025em;
}
.rail-section h2::after { content: ""; flex: 1; height: 1px; background: var(--rail-rule); }
.rail-section ul { list-style: none; margin: 0; padding: 0 3px; }
.rail-section li { margin: 0 0 6px; padding: 2px; }
.rail-section li .pixel-icon { margin-right: 4px; }
.rail-icons { display: grid; grid-template-columns: repeat(2, 1fr); justify-items: center; gap: 5px 4px; text-align: center; }
.rail-icons a { font-size: 10px; }
.rail-icons .pixel-icon { display: block; width: 29px; height: 29px; margin: 0 auto 2px; }
.rail-icons a:last-child { display: inline-flex; grid-column: 1 / -1; align-items: center; gap: 3px; }
.rail-icons a:last-child .pixel-icon { width: 15px; height: 15px; margin: 0; }
.rail-highlight { display: block; width: 100%; margin-top: 9px; padding: 6px 3px; border: 3px double var(--rail-highlight); text-align: center; }
.rail-highlight.network-badge { color: var(--sky-link); font: 10px/1.17 "Courier New", monospace; }
.rail-search select { width: 100%; height: 19px; padding: 0 2px; }
.rail-search div { display: flex; gap: 3px; margin-top: 3px; }
.rail-search input { width: 100%; min-width: 0; padding: 1px 3px; }
.rail-search button { padding: 0 4px; }
[data-theme="dusk"] .rail-search :is(select, input) { background: #bbeef2; color: #251739; border-color: #6d8eac; }
[data-theme="dusk"] .rail-search input::placeholder { color: #4c515f; }
[data-theme="dusk"] .rail-search button { background: #9e421f; border-color: #df9f5c; color: #fff4bd; }
.rail-badges { display: grid; gap: 4px; justify-content: center; margin-top: 7px; }
.theme-picker { display: flex; align-items: center; justify-content: space-around; gap: 3px; }
.theme-picker button { border: 0; padding: 3px; background: transparent; }
.theme-picker button span { display: block; width: 15px; height: 15px; border: 1px solid #a392ad; border-radius: 50%; background: #ab67da; box-shadow: inset 2px 2px 0 #d799f8, inset -2px -2px 0 #512a78; }
.theme-picker [data-theme-option="daylight"] span { background: #80d8d6; box-shadow: inset 2px 2px 0 #bdfff5, inset -2px -2px 0 #4b8196; }
.theme-picker [data-theme-option="newspaper"] span { background: #e6ab76; box-shadow: inset 2px 2px 0 #fde1b3, inset -2px -2px 0 #8f633c; }
.theme-picker [data-theme-option="basic"] span { background: #8e97a2; box-shadow: inset 2px 2px 0 #c1c6d1, inset -2px -2px 0 #424853; }
.theme-picker [aria-pressed="true"] span { outline: 1px solid var(--link); outline-offset: 2px; }

.crumbs { margin: 2px 0 20px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; font-weight: bold; }
.crumbs li { margin-bottom: 2px; }
.crumbs li:nth-child(n+2) { margin-left: 13px; }
.crumbs li:nth-child(n+3) { margin-left: 26px; }
.crumbs .pixel-icon { margin-right: 5px; }
.list-bar, .section-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 10px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-weight: bold;
}
.list-bar > a { white-space: nowrap; }
.inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; }
.topic-table td, .token-table td { background: var(--row); overflow-wrap: anywhere; }
.topic-table td.topic-subject, .topic-table td.counter, .token-table td.counter { background: var(--mid); }
.topic-table td, .topic-table th, .token-table th, .token-table td { padding: 5px; }
.topic-table th, .token-table th { padding-inline: 8px; }
.topic-icon-col { width: 47px; text-align: center; }
.topic-icon-col .pixel-icon { width: 26px; height: 26px; vertical-align: middle; }
.topic-author { width: 16%; }
.topic-count { width: 6.25%; text-align: center; }
.topic-last { width: 21%; }
td.topic-last { font-size: .87em; }
.thread-status { color: var(--muted); font-size: .88em; white-space: normal; }
.mobile-topic-meta { display: none; }
.empty-row td { padding: 12px 8px; }
.empty-links { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-top: 8px; }
.token-table th:first-child { width: 23%; }
.token-table th:nth-child(2) { width: 23%; }
.token-list-name { display: flex; gap: 6px; align-items: center; min-width: 0; }
.token-list-name .token-image { width: 34px; height: 34px; object-fit: cover; }
.board-bottom { display: flex; justify-content: end; padding-top: 8px; }
.search-form div, .compact-form { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.search-form select, .compact-form select { max-width: 100%; }
.boxed-panel { margin-bottom: 11px; background: var(--row); }
.panel-body { border: 1px solid var(--line); border-top: 0; padding: 8px 10px; }
.panel-body > p:first-child { margin-top: 0; }
.panel-body > p:last-child { margin-bottom: 0; }
.forum-links { margin: 2px 0; padding-left: 20px; }
.forum-links li { padding: 3px 0; }
.classic-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-field {
  display: grid;
  gap: 6px 12px;
  grid-template-columns: minmax(100px, 150px) minmax(0, 1fr);
  align-items: start;
  padding: 6px 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 56%, transparent);
}
.form-field > span:first-child, .form-field > label { padding-top: 3px; font-weight: bold; }
.field-control { min-width: 0; }
.field-control :is(textarea, input:not([type="file"], [type="radio"], [type="checkbox"]), select) { width: min(100%, 580px); }
.field-control textarea { resize: vertical; }
.field-control input[type="file"] { max-width: 100%; font-size: .91em; border: 0; padding: 0; background: none; }
.radio-group { display: flex; flex-wrap: wrap; gap: 3px 15px; }
.form-actions { display: flex; gap: 4px 7px; flex-wrap: wrap; margin-top: 10px; }
.classic-form fieldset.token-fields { border: 1px solid var(--line); padding: 5px 8px; margin-top: 10px; }
.classic-form legend { color: var(--strip-ink); font-weight: bold; }
.upload-preview { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.upload-preview:empty { display: none; }
.upload-preview img { width: 68px; height: 40px; object-fit: contain; background: var(--field); border: 1px solid var(--line); }
.notice { background: var(--mid); border: 1px solid var(--line); padding: 8px 9px; margin: 7px 0; }
.notice-text { margin-top: 7px; color: var(--strip-ink); }
.notice a, .notice button { margin-left: 5px; }
.post { margin: 8px 0; border: 1px solid var(--line); background: var(--row); }
.post-caption { display: flex; justify-content: space-between; gap: 6px; padding: 5px 8px; border-bottom: 1px solid var(--line); font-weight: bold; }
.post-main { display: grid; grid-template-columns: 151px minmax(0, 1fr); }
.post-author { background: var(--row-alt); border-right: 1px solid var(--line); padding: 8px; font-weight: bold; }
.post-author .avatar { display: block; width: 81px; height: 69px; object-fit: contain; background: var(--mid); border: 1px solid var(--line); margin: 7px 0; }
.member-badge {
  display: inline-block;
  font: 10px/1.2 "Courier New", monospace;
  padding: 1px 3px;
  border: 1px solid var(--line);
  background: var(--bar);
  color: var(--heading);
  margin: 0 2px 4px 0;
}
.post-content { padding: 8px 10px; overflow-wrap: anywhere; }
.post-content header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 5px; padding-bottom: 4px; border-bottom: 1px dashed var(--dash); }
.post-content header small { color: var(--muted); }
.post-message { line-height: 1.38; }
.post-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 3px 8px; margin-top: 7px; }
.signature, .tag-list { color: var(--muted); font-size: .87em; }
.signature { margin-top: 10px; border-top: 1px dashed var(--dash); }
.signature p { margin: 4px 0 0; }
.post blockquote, .classic-form blockquote { margin: 6px 0; padding: 6px 8px; border-left: 3px solid var(--line); background: var(--mid); color: var(--ink); }
.post blockquote p, .classic-form blockquote p { margin: 3px 0 0; }
.attachments { display: flex; flex-wrap: wrap; gap: 6px; }
.attachments .token-image { display: block; width: auto; height: auto; max-width: 260px; max-height: 180px; object-fit: contain; border: 1px solid var(--line); }
.inline-form { display: inline-block; margin: 0; }
.moderation-tools, .moderation-entry { padding-top: 3px; }
.moderation-entry { padding-bottom: 6px; }
.report-list > li { padding: 3px 0 8px; }
.token-details { border: 1px solid var(--line); margin: 9px 0; }
.token-details > .section-title { border-width: 0 0 1px; }
.token-overview { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 10px; padding: 8px; }
.token-overview > img { width: 85px; height: 85px; object-fit: contain; border: 1px solid var(--line); background: var(--mid); }
.token-overview p:first-child { margin-top: 0; }
.token-grid, .profile-fields { margin: 0; }
.token-grid { display: grid; grid-template-columns: 1fr 1fr; }
.token-grid div, .profile-fields div { border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); padding: 3px 6px; }
.token-grid dt, .profile-fields dt { color: var(--muted); font-size: .86em; }
.token-grid dd, .profile-fields dd { margin: 2px 0; }
.post-token-actions, .token-details > .muted { padding: 4px 8px; }
.trade-form { padding: 4px 8px; border-top: 1px solid var(--line); }
.trade-form > summary, .moderation-entry > summary { color: var(--link); cursor: pointer; }
.trade-form .panel-body { padding: 4px 0; border: 0; }
.transaction-review { padding-top: 5px; }
.transaction-review:not(:empty) { margin-top: 5px; border-top: 1px dashed var(--dash); }
.transaction-review dl { margin: 5px 0; }
.transaction-review dt { color: var(--muted); }
.transaction-review dd { margin: 0 0 6px; overflow-wrap: anywhere; }
.profile-summary { display: grid; grid-template-columns: 102px minmax(0, 1fr); gap: 10px; overflow-wrap: anywhere; }
.profile-summary > .avatar { width: 96px; height: 78px; object-fit: contain; background: var(--mid); border: 1px solid var(--line); }
.member-table .avatar { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; }
.text-section h2 { font-size: 1.12em; margin-bottom: 4px; color: var(--strip-ink); }
.text-section p { margin: 3px 0 11px; line-height: 1.35; }
.thread-card { display: block; width: min(680px, 100%); margin: 2px 0 8px; border: 1px solid var(--line); }
.forum-dialog { width: min(430px, calc(100% - 22px)); color: var(--ink); border: 1px solid var(--line); padding: 0; background: var(--row); }
.forum-dialog::backdrop { background: #100819d4; }
.forum-dialog .section-title { border-width: 0 0 1px; }
.dialog-body { padding: 10px; }
.dialog-body p { margin: 0 0 8px; }
.dialog-body .notice-text { margin: 0 0 8px; }
.dialog-body .notice-text:empty { margin: 0; }
.wallet-options { display: grid; gap: 4px; }
.wallet-options button { text-align: start; }
.wallet-options img { width: 24px; height: 24px; margin-right: 8px; vertical-align: middle; }
.square-button { padding: 0 5px; }
.live-status {
  position: fixed;
  z-index: 3;
  padding: 7px 10px;
  right: 10px;
  bottom: 10px;
  background: var(--mid);
  border: 1px solid var(--line);
}

:root[data-theme="daylight"] {
  color-scheme: light;
  --canvas: #ded9ec; --sky: #d3c9e6; --rail: #dad0e5; --frame: #eae4f0; --black: #513964;
  --mid: #e9dfec; --row: #f7eff8; --row-alt: #efe4f6; --line: #a77a80; --dash: #856d92;
  --ink: #302146; --muted: #5c4c69; --heading: #fff5ff; --link: #502a76; --link-hover: #854169;
  --sky-link: #4f3163; --bar: #695082; --bar-light: #765584; --bar-deep: #624676; --strip-ink: #fff3ce;
  --field: #fff9ff; --field-border: #a484a4; --button: #614c75; --button-border: #926d9a; --focus: #bc4f28;
  --strip-weave: none; --rail-rule: var(--line); --rail-highlight: var(--line);
}
:root[data-theme="newspaper"] {
  color-scheme: light;
  --canvas: #e0dcd2; --sky: #e0dcd2; --rail: #f1eee6; --frame: #f9f7f0; --black: #38352e;
  --mid: #f2eee4; --row: #fbf9f2; --row-alt: #f9f5e8; --line: #9b917f; --dash: #827864;
  --ink: #2b251f; --muted: #655947; --heading: #fff9ed; --link: #643726; --link-hover: #854729;
  --sky-link: #544435; --bar: #d6c7a9; --bar-light: #e3d6bd; --bar-deep: #cabf9f; --strip-ink: #362c1b;
  --field: #fffcf4; --field-border: #9d8a72; --button: #5c5042; --button-border: #8d7760; --focus: #883822;
  --rail-rule: var(--line); --rail-highlight: var(--line);
}
:root[data-theme="basic"] {
  --canvas: #211f26; --sky: #211f26; --rail: #1b1a21; --frame: #15141b; --black: #111016;
  --mid: #1f1d26; --row: #282630; --row-alt: #23212a; --line: #665f72; --dash: #6a6376;
  --ink: #e0dae8; --muted: #b6acbf; --heading: #f0eaf4; --link: #dfd4a5; --link-hover: #fff0a7;
  --sky-link: #d2e4f0; --bar: #3d3747; --bar-light: #3d3747; --bar-deep: #3d3747; --strip-ink: #f3d9b8;
  --rail-rule: var(--line); --rail-highlight: var(--line);
}
[data-theme="daylight"] body {
  background-image: var(--garland), url("/assets/weave.svg"), linear-gradient(180deg, var(--sky), var(--canvas));
  background-size: auto, 416px 312px, auto;
}
[data-theme="newspaper"] body, [data-theme="basic"] body, [data-theme="basic"] .side-rail, [data-theme="newspaper"] .side-rail {
  background-image: none;
}
[data-theme="newspaper"] .category-strip, [data-theme="basic"] .category-strip { background-image: none; }
[data-theme="daylight"] .masthead { background: #e9dff2; }
[data-theme="daylight"] .brand { color: #5e347c; text-shadow: 1px 1px #d8aedc; }
[data-theme="daylight"] .list-bar > a, [data-theme="daylight"] .list-bar :is(a, .link-button), [data-theme="daylight"] .post-caption a { color: #fff1c6; }
[data-theme="newspaper"] .masthead { background: #e9dfcf; }
[data-theme="newspaper"] .brand { color: #4d322b; text-shadow: none; }
[data-theme="daylight"] .rail-mark, [data-theme="newspaper"] .rail-mark { color: var(--link); text-shadow: none; }

@media (max-width: 1130px) {
  :root { --body-gutter: 14px; --rail-width: 168px; }
  .board-table .status-col { width: 53px; }
  .board-table .art-col { width: 45px; }
  .icon-menu a { min-width: 48px; font-size: 1em; }
  .icon-menu a > span:last-child { padding-inline: 4px; }
  .brand img { width: 58px; height: 37px; }
  .table-title th { padding-inline: 5px; }
  .footer-row { font-size: .89em; }
  .last-post, td.topic-last { font-size: .81em; }
}
@media (max-width: 850px) {
  :root { --rail-width: 144px; --body-gutter: 9px; font-size: 15px; }
  .side-rail { padding-inline: 6px; }
  .rail-tiles { grid-template-columns: repeat(2, 55px); gap: 5px; }
  .rail-tiles .site-badge { width: 55px; }
  .status-icon { width: 30px; height: 30px; }
  .board-icon { width: 26px; height: 26px; }
  .board-table .status-col { width: 40px; }
  .board-table .art-col { width: 35px; }
  .board-table .count-col { width: 7%; }
  .board-table .last-col { width: 22%; }
  .topic-count { width: 8.5%; }
  .board-row td { height: 60px; }
  .brand { font-size: 27px; }
  .masthead { grid-template-columns: 1fr 1fr; }
  .icon-menu { gap: 3px; }
  .icon-menu a { font-size: .94em; }
  .main-frame { padding: 8px 7px 18px; }
}
@media (max-width: 670px) {
  :root { --body-gutter: 6px; font-size: 14px; }
  .page-shell { margin: 0 var(--body-gutter); padding-top: 30px; }
  .side-rail { position: static; width: auto; padding: 10px; margin: 0 6px 11px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; border: 1px dashed var(--dash); }
  .rail-mark { height: 64px; margin: 0; }
  .rail-tiles { align-content: center; }
  .rail-section { margin: 6px 0 0; }
  .icon-menu { margin-bottom: 11px; min-height: 48px; align-items: start; }
  .icon-menu a { flex: 1 1 0; min-width: 0; font-size: .86em; gap: 2px; }
  .icon-menu a > span:last-child { white-space: normal; padding: 0 1px; min-height: 17px; }
  .icon-frame { width: 30px; height: 30px; }
  .icon-frame .pixel-icon { width: 22px; height: 22px; }
  .masthead { grid-template-columns: 1fr; }
  .brand { font-size: clamp(25px, 7vw, 32px); }
  .brand img { width: 57px; }
  .account-line { border-top: 1px dotted var(--dash); padding-left: 8px; }
  .guest-break { display: none; }
  .guest-break + span { margin-left: 5px; }
  .header-row > div { padding-inline: 5px; }
  .header-row > div:first-child { width: 45%; }
  .header-row.activity, .header-row.news { font-size: .91em; }
  .header-row.news { min-height: 35px; }
  .super-news { font-size: .97em; }
  .super-news strong { margin-right: 5px; }
  .board-table .status-col { width: 27px; }
  .board-table .art-col { width: 25px; }
  .board-table .count-col { width: 9.25%; }
  .board-table .last-col { width: 24%; }
  .status-icon { width: 21px; height: 21px; }
  .board-icon { width: 19px; height: 19px; }
  .board-row td { padding: 3px 3px; min-height: 63px; }
  .board-description, .board-table .counter { font-size: .91em; }
  .board-table .last-post { font-size: .77em; }
  .board-table .table-title th { font-size: .82em; padding-inline: 0; }
  .board-table .table-title th:first-child { padding-left: 5px; }
  .cafe-body nav { gap: 3px 7px; }
  .main-frame { padding: 5px 4px 13px; }
  .info-grid { grid-template-columns: 25px 1.45fr 1fr; }
  .online-row { grid-template-columns: 25px 1fr; }
  .info-icon { width: 22px; height: 22px; }
  .footer-row { grid-template-columns: 1fr auto; }
  .footer-row > div:nth-child(2) { grid-row: 2; grid-column: 1 / -1; text-align: start; }
  .badge-footer { padding: 22px 0; }
  .list-bar, .section-title { padding: 5px; }
  .topic-table th, .topic-table td, .token-table th, .token-table td { padding-inline: 3px; }
  .topic-icon-col { width: 28px; }
  .topic-icon-col .pixel-icon { width: 19px; height: 19px; }
  .thread-table :is(.topic-author, .topic-count, .topic-last) { display: none; }
  .thread-table td.topic-subject { padding: 7px 6px; }
  .mobile-topic-meta { display: flex; flex-wrap: wrap; gap: 2px 9px; margin-top: 4px; color: var(--muted); font-size: .88em; }
  .topic-table thead, .token-table thead { font-size: .83em; }
  .token-table { min-width: 410px; }
  .post-main { grid-template-columns: 83px minmax(0, 1fr); }
  .post-author, .post-content { padding: 5px; }
  .post-author .avatar { width: 58px; height: 48px; }
  .form-field { grid-template-columns: 90px minmax(0, 1fr); }
  .token-overview { grid-template-columns: 1fr; }
  .token-grid { grid-template-columns: 1fr; }
  .panel-body .search-form input { max-width: 100%; }
}
@media print {
  :root { color-scheme: light; --ink: #222; --link: #222; --heading: #222; --line: #999; --strip-ink: #222; }
  body, .category-strip { background: #fff; }
  .forum-sky, .side-rail, .icon-menu, .header-box, .super-news, .site-footer, .inline-actions, #respond { display: none; }
  .page-shell { margin: 0; padding: 0; }
}
