/* Visual source: gsnv-shop.css and gsnv-paint/src/shared/theme.css. Same Luna chrome and pixel fonts. */
@font-face {
  font-family: "Pixel Tahoma";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/pixel-tahoma.woff2") format("woff2");
}
@font-face {
  font-family: "Pixel Tahoma";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/pixel-tahoma-bold.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --face: #ece9d8;
  --edge: #7f9db9;
  --ui: "Pixel Tahoma", Tahoma, Verdana, sans-serif;
  --paper: #fff;
  --link: #0033a0;
  --blue: #316ac5;
  --control-height: 28px;
  --action-gap: 4px;
  --toolbar-gap: 8px;
  --sidebar-inset: 8px;
}
* {
  box-sizing: border-box;
}
html {
  cursor:
    url("/assets/gsnv-cursor-arrow.svg") 2 2,
    default;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--face);
  color: #000;
  font:
    16px/1.35 "Times New Roman",
    Times,
    serif;
}
a {
  color: var(--link);
  text-underline-offset: 1px;
  cursor:
    url("/assets/gsnv-cursor-hand.svg") 11 2,
    pointer;
}
a:visited {
  color: #59338b;
}
a:hover {
  text-decoration: underline;
}
h1 {
  font-size: 24px;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 17px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}
p {
  margin: 0 0 12px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 4px 10px;
  color: #000 !important;
  border: 1px solid #003c74;
  border-radius: 3px;
  background: linear-gradient(#fff, #f3f3ef 45%, #e6e5dc 85%, #d6d0c5);
  box-shadow: inset 0 -1px 0 #c9c4b5;
  font: 11px/1.3 var(--ui);
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.button:hover {
  box-shadow:
    inset 0 0 0 2px #ffe7a2,
    inset 0 -1px 0 #f8b330;
  text-decoration: none;
}
button:active,
.button:active {
  background: #e3e2da;
  box-shadow: inset 1px 1px 0 #b9b6a8;
}
button:disabled {
  color: #59584f !important;
  background: #f5f4ea;
  border-color: #9b998b;
  cursor: wait;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 0;
  color: #000;
  padding: 5px;
  min-width: 0;
}
input:not([type="checkbox"]),
select {
  min-height: var(--control-height);
}
input,
textarea {
  cursor:
    url("/assets/gsnv-cursor-text.svg") 16 16,
    text;
}
input[type="checkbox"] {
  cursor: pointer;
}
textarea {
  resize: vertical;
  line-height: 1.35;
}
input[type="file"] {
  padding: 2px;
  max-width: 100%;
  font: 11px var(--ui);
}
:focus-visible {
  outline: 2px dotted #000;
  outline-offset: 2px;
}
::selection {
  background: #316ac5;
  color: #fff;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: 8px;
  top: -100px;
  z-index: 99;
  background: white;
  padding: 8px;
}
.skip:focus {
  top: 8px;
}
.titlebar {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  border-bottom: 1px solid #0831a8;
  background: linear-gradient(#2c80f7, #0a5ae6 18%, #0a5ae6 72%, #0848d4);
}
.brand,
.brand:visited {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font: 700 11px/1 var(--ui);
  text-shadow: 1px 1px 0 #0a1f7a;
  min-height: 28px;
  white-space: nowrap;
}
.brand img {
  image-rendering: pixelated;
}
.shortcuts {
  margin-left: auto;
  display: flex;
  gap: 3px;
  padding: 3px 0;
}
.shortcut-divider {
  align-self: center;
  height: 18px;
  margin-inline: 2px;
  border-left: 1px solid #a0c4ff;
}
.shortcuts a,
.shortcuts a:visited {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 2px 7px;
  color: #fff;
  border: 1px solid #0c2f86;
  border-radius: 3px;
  background: linear-gradient(#5b9bfa, #3a81f3 12%, #1f5fd8 88%, #1a4fc0);
  box-shadow: inset 1px 1px 0 #8fbcff;
  font: 11px/1.2 var(--ui);
  text-decoration: none;
  text-shadow: 1px 1px 0 #0a1f7a;
}
.shortcuts img {
  image-rendering: pixelated;
}
.titlebar :focus-visible {
  outline-color: #fff;
}
.window {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  width: calc(100% - 12px);
  max-width: 1320px;
  margin: 6px auto;
  flex: 1;
  border: 1px solid;
  border-color: #716f64 #fff #fff #716f64;
  background: #fff;
}
.sidebar {
  padding: var(--sidebar-inset) var(--sidebar-inset) 12px;
  background: linear-gradient(#7ba2e7, #6375d6);
  border-right: 1px solid #4a6ec4;
  font: 11px/1.45 var(--ui);
}
.page-history {
  display: flex;
  gap: var(--action-gap);
  margin-bottom: var(--toolbar-gap);
}
.nav-pair { display: flex; flex: 1; gap: var(--action-gap); min-width: 0; }
.page-history .button, .page-history button {
  flex: 1;
  min-width: 0;
  image-rendering: pixelated;
  padding: 0;
}
.page-history span {
  width: 12px;
  height: 12px;
  background: #245493;
  clip-path: polygon(0 50%, 50% 0, 50% 33%, 100% 33%, 100% 67%, 50% 67%, 50% 100%);
}
#page-forward span {
  transform: scaleX(-1);
}
.page-history button:disabled {
  cursor: default;
}
.page-history button:disabled span {
  background: #908e84;
}
.task h2 {
  font: 700 11px/1.4 var(--ui);
  color: #174999;
  margin: 0;
  padding: 4px 10px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #fff, #c6d3f7);
}
.task-body {
  padding: 5px 9px 7px;
  background: #d6dff7;
  border: 1px solid #fff;
  border-top: 0;
}
.task-body a {
  display: block;
  padding: 4px 0;
  overflow-wrap: anywhere;
}
.task-body a[aria-current],
.utility-links a[aria-current] {
  font-weight: 700;
  color: #000;
}
.utility-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2px 6px;
  border-top: 1px solid #aca899;
  font: 11px/1.5 var(--ui);
}
.utility-links a {
  padding: 6px 9px;
}
main {
  min-width: 0;
  padding: 16px 18px 32px;
  overflow-wrap: anywhere;
}
#status:not(:empty) {
  padding: 5px 10px;
  border-top: 1px solid #aca899;
  font: 11px/1.5 var(--ui);
}
.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #aca899;
  margin-bottom: 16px;
  padding-bottom: 12px;
}
.page-title h1 {
  margin: 0 0 4px;
}
.canvas-preview {
  position: relative;
  display: grid;
  margin: 12px 0;
  padding: 4px;
  gap: 4px;
  background: #d6dff7;
  border: 1px solid white;
  text-align: center;
}
.canvas-preview iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 144 / 100;
  border: 0;
  background: white;
  pointer-events: none;
}
.canvas-preview a::after {
  position: absolute;
  inset: 0;
  content: "";
}
@media (min-width: 521px) {
  main:has(> .feed-controls) { padding-top: var(--sidebar-inset); }
}
.feed-compose > summary.new-thread-button { display: flex; }
.controls.feed-controls {
  margin: 0;
  padding-top: 0;
  border-top: 0;
}
.controls.feed-controls form { margin-left: auto; }
.new-thread-button { gap: 4px; }
.new-thread-button span { font-size: 15px; line-height: .8; }
.feed-compose { position: relative; }
.feed-compose nav {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 0;
  min-width: 155px;
  background: var(--face);
  border: 1px solid #716f64;
  box-shadow: 2px 2px 0 #aaa;
  padding: 3px;
  font: 11px/1.5 var(--ui);
}
.feed-compose nav a {
  display: block;
  padding: 5px 6px;
}
.feed-thread {
  display: grid;
  grid-template-columns: var(--thumb-width, 88px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #ccc;
}
.feed-thumb {
  width: 100%;
  height: 72px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #aaa;
  background: #f6f5ee;
}
.feed-thumb img {
  max-width: 100%;
  max-height: 70px;
}
.feed-spoiler, .feed-meta {
  font: 11px/1.5 var(--ui);
}
.feed-text {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.feed-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}
.feed-footer .votes { margin-left: auto; }
.post-counts, .feed-author {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 6px;
}
.post-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.post-metrics, .post-counts { font: 11px/1.4 var(--ui); color: #444; }
.post-counts:empty { display: none; }
.post-counts > * { white-space: nowrap; }
.post-flag { flex: none; object-fit: contain; }
.feed-author { max-width: 100%; }
#flag-preview img { max-width: 64px; max-height: 48px; vertical-align: middle; margin-right: 6px; }
.catalog .feed-footer { margin-top: 8px; }

.feed-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 10px;
  color: #444;
}
.feed-thread h2 {
  font-size: 18px;
  margin: 4px 0;
}
.feed-thread p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  white-space: pre-line;
}
.notice {
  padding: 10px 12px;
  border: 1px solid #aca899;
  background: #f6f5ee;
  max-width: 780px;
}
.notice p:last-child {
  margin: 0;
}
.empty {
  padding: 8px 0;
  color: #444;
}
.muted {
  color: #4d4d4d;
}
.tiny,
.meta {
  font: 11px/1.5 var(--ui);
}
.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  padding: 8px 0;
  border-block: 1px solid #aca899;
  font: 11px/1.4 var(--ui);
}
.controls form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.controls input {
  width: 180px;
  padding-block: 2px;
  font: 11px/1.3 var(--ui);
}
.controls select {
  appearance: none;
  min-height: var(--control-height);
  padding-inline: 8px 24px;
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #364e69 50%),
    linear-gradient(135deg, #364e69 50%, transparent 50%);
  background-size: 4px 4px;
  background-position: right 11px center, right 7px center;
  background-repeat: no-repeat;
  font: 11px/1.3 var(--ui);
}
@media (forced-colors: active) {
  .controls select { appearance: auto; padding-inline: 5px; }
}
.view-links {
  display: flex;
  gap: 10px;
}
.view-links a[aria-current="page"] {
  color: #000;
  font-weight: 700;
  text-decoration: none;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  margin: 20px 0 0;
  padding: 7px 9px;
  border: 1px solid #aca899;
  background: #f1efe5;
  font: 11px var(--ui);
}
.page-buttons,
.page-jump {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-buttons [aria-label="First page"],
.page-buttons [aria-label="Last page"] {
  font: bold 16px/1 var(--ui);
}
.page-buttons button:disabled {
  cursor: default;
}
.page-jump input[name="page"] {
  inline-size: 11ch;
  padding-inline: 5px;
  font-variant-numeric: tabular-nums;
}
.composer {
  width: min(610px, 100%);
  margin: 12px auto 20px;
  border: 1px solid #aca899;
  background: #ece9d8;
}
.composer > summary:not(.new-thread-button) {
  padding: 7px 10px;
  font: 700 11px/1.5 var(--ui);
  cursor: pointer;
  background: linear-gradient(#fff, #e6e5dc);
  border-bottom: 1px solid #aca899;
}
.thread-composer {
  margin-inline: 0;
  border: 0;
  background: none;
}
.thread-composer > form {
  margin-top: 8px;
  border: 1px solid #aca899;
  background: var(--face);
}
.post-form {
  padding: 12px;
}
.field-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}
.field-row > label {
  font: 700 11px/1.4 var(--ui);
  padding-top: 6px;
}
.field-row input,
.field-row textarea {
  width: 100%;
}
.field-row textarea {
  min-height: 100px;
}
.post-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px 88px;
  font: 11px var(--ui);
}
.post-options label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-end {
  margin-left: 88px;
}
.identity-options summary {
  width: fit-content;
  margin: 4px 0 10px;
  padding: 4px 0;
  font: 11px/1.5 var(--ui);
  cursor: pointer;
}
#password-note {
  display: block;
  margin: 8px 0 0;
  font: 11px/1.5 var(--ui);
}
.post-preview {
  margin: 8px 0 8px 88px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-preview img {
  max-width: 100px;
  max-height: 90px;
}
.error {
  color: #a40000;
  font:
    13px/1.4 Tahoma,
    Arial,
    sans-serif;
}
.error:empty {
  display: none;
}
.error-box {
  padding: 16px;
  border: 1px solid #a40000;
  background: #fff8f6;
}
.success {
  color: #245800;
}
.thread {
  padding: 16px 0 20px;
  border-bottom: 1px solid #aaa;
  display: flow-root;
}
.post {
  position: relative;
  display: flow-root;
  padding: 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
  scroll-margin-top: 12px;
}
.post:target {
  outline: 2px solid #316ac5;
  background: #fffbe8;
}
.post-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 8px;
  font: 11px/1.6 var(--ui);
}
.post-header .subject {
  font-weight: 700;
  color: #000;
}
.post-name {
  color: #154b18;
  font-weight: 700;
}
.trip {
  color: #154b18;
}
.post-number { white-space: nowrap; }
.post-header time {
  color: #4d4d4d;
}
.text-button {
  border: 0;
  box-shadow: none !important;
  background: none !important;
  padding: 0 2px;
  min-height: 20px;
  display: inline;
  color: #0033a0 !important;
  text-decoration: underline;
}
.reply {
  background: #e8edf7;
  border: 1px solid #c2cde0;
  border-left: 3px solid #a8bce3;
  margin: 8px 0 0 24px;
  max-width: 900px;
}
.post-body {
  white-space: pre-wrap;
  font:
    16px/1.4 "Times New Roman",
    Times,
    serif;
  margin: 4px 0 10px;
  min-height: 22px;
}
.greentext {
  color: #4c6c16;
}
.quote {
  color: #a40000;
}
.media {
  float: left;
  margin: 0 16px 10px 0;
  max-width: 240px;
}
.media figcaption {
  font: 11px/1.5 var(--ui);
  margin-bottom: 4px;
  max-width: 220px;
  overflow-wrap: anywhere;
}
.image-toggle {
  display: block;
  border: 1px solid #7f9db9;
  border-radius: 0;
  background: #fff !important;
  box-shadow: none !important;
  padding: 3px;
  min-width: 100px;
  max-width: 100%;
}
.image-toggle img {
  display: block;
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
}
.image-toggle.expanded img {
  max-width: 100%;
  max-height: none;
}
.media:has(.expanded) {
  float: none;
  max-width: 100%;
  width: fit-content;
}
.image-toggle.spoiler {
  min-width: 140px;
  min-height: 100px;
  color: #444 !important;
}
.image-toggle.spoiler img {
  display: none;
}
.votes { display: inline-flex; justify-content: flex-end; flex-wrap: wrap; max-width: 100%; gap: var(--action-gap); }
.votes button { gap: 4px; padding: 3px 6px; }
.save-control { position: relative; display: inline-flex; }
.votes > button, .save-control > button { min-width: var(--control-height); }
.save-options {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  width: min(202px, calc(100vw - 16px));
  padding: 4px;
  text-align: left;
  border: 1px solid #59769d;
  background: white;
  box-shadow: 2px 3px 0 #26395430;
}
.save-options.opens-up { top: auto; bottom: calc(100% + 4px); }
.save-heading {
  display: block;
  padding: 5px 8px;
  background: #eaf0fb;
  color: #183d78;
  font: bold 12px/1.4 var(--ui);
}
.votes .save-options button {
  display: flex;
  width: 100%;
  gap: 12px;
  min-height: 45px;
  padding: 6px 9px;
  justify-content: flex-start;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: white;
  box-shadow: none;
  color: #17233a;
}
.votes .save-options button[aria-disabled="true"] { opacity: .6; cursor: progress; }
.votes .save-options button + button { border-top: 1px solid #dde4ee; }
.save-options strong, .save-options small { display: block; }
.save-options small { font: 11px/1.5 var(--ui); }
.save-format {
  flex: 0 0 22px;
  height: 22px;
  border: 1px solid #436496;
  background: linear-gradient(to bottom, #2455a3 0 5px, #fff 5px 100%);
  box-shadow: inset 0 -3px #d7e3f5;
}
[data-save="thread"] .save-format {
  flex-basis: 16px;
  margin-inline: 3px;
  height: 25px;
  background: repeating-linear-gradient(to bottom, transparent 0 5px, #c3cfe0 5px 6px),
    linear-gradient(to bottom, #2455a3 0 5px, white 5px);
}
.votes .save-options button:is(:hover, :focus-visible) { background: #e4edfc; color: #102e60; }
.save-feedback:not(:empty) {
  display: block;
  padding: 6px 8px;
  border-top: 1px solid #c7d4e7;
  font: 12px/1.45 var(--ui);
}
.votes [data-copied] img { visibility: hidden; }
.votes [data-copied] { position: relative; }
.votes [data-copied]::after { position: absolute; content: "✓"; color: #216632; font: bold 16px Arial, sans-serif; }
.votes img { image-rendering: pixelated; }
.votes button[aria-pressed="true"] {
  background: #d3e3ff;
  font-weight: bold;
  box-shadow: inset 1px 1px 2px #7790b1;
}
.post-actions,
.post-tools {
  align-items: center;
  flex-wrap: wrap;
  font: 11px/1.6 var(--ui);
  display: flex;
  gap: 10px;
}
.post-actions { clear: both; }
.post-tools { max-width: 100%; }
.post-details {
  margin-left: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.post-details .post-metrics { align-items: flex-end; }
.post-details .post-counts, .post-details .post-tools { justify-content: flex-end; }
.post-details .post-tools { flex-wrap: nowrap; gap: 8px; }
.omitted {
  margin: 10px 0 0 8px;
  font: 11px/1.5 var(--ui);
  color: #555;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px 14px;
}
.catalog-item {
  min-width: 0;
  border-bottom: 1px solid #c0c0c0;
  padding-bottom: 12px;
  text-align: center;
  overflow-wrap: anywhere;
}
.catalog-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #7f9db9;
  padding: 5px;
  margin-bottom: 6px;
  background: #fff;
}
.catalog-image img {
  max-width: 100%;
  max-height: 148px;
}
.catalog-item h2 {
  font-size: 16px;
  margin: 7px 0;
}
.catalog-item p {
  font-size: 16px;
  white-space: pre-wrap;
  margin: 6px 0;
  max-height: 105px;
  overflow: hidden;
}
.backlinks {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font: 11px var(--ui);
  margin-top: 6px;
}
.prose {
  max-width: 760px;
}
.prose h2 {
  margin-top: 24px;
}
.prose li {
  margin: 8px 0;
}
.prose code {
  font-size: 14px;
}
.report-row {
  padding: 12px;
  border: 1px solid #aca899;
  margin: 12px 0;
}
.report-row .post {
  background: #f3f5fa;
  margin: 10px 0;
}
.moderator-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.token-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}
.token-form input {
  width: min(420px, 100%);
}
dialog {
  width: min(480px, calc(100% - 24px));
  padding: 0;
  border: 3px solid #0848d4;
  background: #ece9d8;
  color: #000;
}
dialog::backdrop {
  background: #0005;
}
dialog h2 {
  background: linear-gradient(#2c80f7, #0a5ae6);
  color: #fff;
  font: 700 11px var(--ui);
  padding: 10px;
  margin: 0 0 14px;
}
#dialog-body,
#dialog-error,
.dialog-actions {
  margin: 12px 16px;
}
#dialog-body label {
  display: block;
  margin-bottom: 6px;
}
#dialog-body input,
#dialog-body textarea {
  width: 100%;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
#share-dialog input {
  flex: 1;
}
.task h2 a {
  color: inherit;
}
.thread-tools {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.thread-tools,
#image-note {
  font: 11px/1.5 var(--ui);
}
.private-image {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin-top: 12px;
}
#image-note {
  display: block;
  margin-top: 4px;
}
@media (max-width: 700px) {
  .window {
    grid-template-columns: 132px minmax(0, 1fr);
  }
  main {
    padding: 12px;
  }
  :root { --sidebar-inset: 6px; }
  .sidebar {
    padding: var(--sidebar-inset);
  }
  .controls form {
    margin-left: 0;
  }
  .media {
    max-width: 180px;
  }
  .image-toggle img {
    max-width: 160px;
    max-height: 160px;
  }
  .page-title {
    flex-wrap: wrap;
  }
}
@media (max-width: 520px) {
  :root { --control-height: 40px; }
  .pagination {
    justify-content: center;
    padding: 8px;
  }
  .page-jump input[name="page"] {
    min-height: var(--control-height);
    font-size: 16px;
  }
  .titlebar {
    flex-wrap: wrap;
    padding: 3px 6px;
  }
  .brand {
    flex: 1;
  }
  .shortcuts {
    margin: 0;
  }
  .shortcuts a {
    min-height: 32px;
  }
  .window {
    display: block;
    width: calc(100% - 8px);
    margin: 4px auto;
  }
  .sidebar {
    display: flex;
    align-items: center;
    padding: 0;
    background: #d6dff7;
    border-right: 0;
    border-bottom: 1px solid #7f9db9;
  }
  .page-history {
    flex: none;
    flex-direction: column;
    margin: 4px 0 4px 4px;
  }
  .page-history .button, .page-history button {
    flex: none;
    width: 36px;
    min-height: 36px;
  }
  #board-nav {
    flex: 1;
    min-width: 0;
  }
  .sidebar .canvas-preview,
  .sidebar h2 {
    display: none;
  }
  .sidebar .task-body {
    display: flex;
    flex-wrap: wrap;
    border: 0;
    padding: 3px 2px;
  }
  .sidebar .task-body a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 27px;
    padding: 2px 3px;
    white-space: nowrap;
  }
  .field-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 6px;
  }
  .post-options,
  .form-end,
  .post-preview {
    margin-left: 70px;
  }
  .post-form {
    padding: 8px;
  }
  .post-form input:not([type="checkbox"]),
  .post-form textarea {
    font-size: 16px;
  }
  .post-options {
    line-height: 1.7;
  }
  .post-options label {
    min-height: 36px;
  }
  .text-button {
    min-height: 28px;
  }
  .controls input {
    width: 125px;
  }
  .controls select {
    max-width: 100%;
  }
  .controls.feed-controls {
    gap: var(--action-gap);
    padding-bottom: 8px;
  }
  .feed-controls .new-thread-button { padding-inline: 7px; white-space: nowrap; }
  .feed-controls select { padding-inline: 6px 20px; }
  .controls form[role="search"] { flex: 1 1 auto; }
  .controls input[type="search"] { flex: 1 1 7em; }
  .reply {
    margin-left: 6px;
  }
  .post {
    padding: 7px;
  }
  .post-header {
    gap: 4px 6px;
  }
  .media {
    max-width: 135px;
    margin-right: 10px;
  }
  .image-toggle img {
    max-width: 120px;
    max-height: 150px;
  }
  .media figcaption {
    max-width: 130px;
  }
  .board-name { display: none; }
  .utility-links a { padding: 10px 9px; }
  .post-actions { flex-wrap: nowrap; gap: 6px; }
  .post-actions .votes { min-width: 0; justify-content: flex-start; }
  .post-actions .post-details { min-width: min-content; }
  .post-actions .post-tools { gap: 4px; white-space: nowrap; }
  .post-actions .post-tools > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
  }
  .post-actions .post-tools .text-button { min-height: 24px; padding-inline: 0; }
  .feed-thread .feed-footer { flex-wrap: nowrap; }
  .feed-thread .votes, .post-actions .votes { gap: 3px; }
  .feed-thread .votes > button, .feed-thread .save-control > button,
  .post-actions .votes > button, .post-actions .save-control > button {
    min-width: 29px;
    padding-inline: 4px;
  }
  .feed-thumb { height: 58px; }
  .feed-thumb img { max-height: 56px; }
  .feed-thread { --thumb-width: 64px; gap: 8px; padding: 12px 0; }
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }
  .catalog .votes { justify-content: center; gap: 2px; }
  .catalog .votes > button, .catalog .save-control > button { min-width: 26px; padding-inline: 2px; gap: 2px; }
  .catalog-image {
    height: 135px;
  }
  .catalog-image img {
    max-height: 125px;
  }
  .post-body {
    font-size: 16px;
  }
  .composer {
    margin-top: 12px;
  }
  .composer > summary:not(.new-thread-button) {
    min-height: 38px;
    padding: 10px;
  }
  .page-title h1 {
    font-size: 24px;
  }
}
@media (max-width: 390px) {
  .titlebar, .brand { gap: 3px; }
  .shortcuts { gap: 2px; }
  .shortcuts a { padding-inline: 3px; gap: 2px; }
}
@media (max-width: 365px) {
  main { padding-inline: 8px; }
  .feed-thread { --thumb-width: 52px; }
}
.save-control button[aria-busy="true"] { cursor: progress; opacity: .6; }

.account-byline, .account-byline:visited {
  color: #154b18;
  font-weight: bold;
  overflow-wrap: anywhere;
}

.account-byline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}
.byline-avatar {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
  overflow: hidden;
  border: 1px solid #8998ae;
  background: white;
}

.poll-fields, #thread-poll {
  max-width: 34rem;
  min-width: 0;
  border: 1px solid #a6b3c7;
  background: #f5f7fb;
  padding: 10px 12px;
}
.poll-fields { margin: 0 0 10px; }
.poll-fields > :is(label, small) { display: block; margin: 4px 0; }
.poll-fields textarea { width: 100%; }
#thread-poll { margin: 8px 0 14px; overflow-wrap: anywhere; }
#thread-poll header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
#thread-poll h2 { margin: 0; font-size: 1.1rem; }
#thread-poll fieldset { border: 0; padding: 0; margin: 8px 0; min-width: 0; }
#thread-poll label { display: flex; gap: 6px; align-items: center; min-height: 30px; }
#thread-poll .error:empty { display: none; }
.poll-results { list-style: none; padding: 0; }
.poll-results li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; margin: 8px 0; }
.poll-results progress { grid-column: 1 / -1; width: 100%; height: 8px; }

.composer-flag { display: flex; align-items: center; gap: 4px; max-width: 100%; }
.composer-flag button, .flag-choices button { gap: 6px; }
.composer-flag button::after { content: "▾"; font-size: 10px; }
.composer-flag img, .flag-choices img { flex: none; object-fit: contain; image-rendering: pixelated; }
.flag-library[open] { display: flex; flex-direction: column; max-height: min(560px, 85dvh); }
.flag-library h2 { margin: 0; }
.flag-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; }
.flag-filters input, .flag-filters select { min-width: 0; flex: 1 1 130px; }
.flag-results { overflow: auto; overscroll-behavior: contain; margin: 0 8px; padding: 6px; background: white; border: 1px inset #aaa; }
.flag-results h3 { margin: 12px 2px 4px; font: bold 12px var(--ui); color: #214670; }
.flag-results h3:first-child { margin-top: 0; }
.flag-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 2px; }
.flag-choices button { justify-content: flex-start; padding: 5px; text-align: left; background: white; box-shadow: none; border: 1px solid transparent; }
.flag-choices button:is(:hover, :focus-visible, [aria-pressed="true"]) { background: #e1ebff; border-color: #82a2c7; }
.flag-library .dialog-actions { margin: 8px; }
.flag-library { width: min(620px, calc(100% - 24px)); }
.flag-library .flag-filters select:last-child { flex-basis: 100%; }
.flag-library .flag-choices { grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr)); }
.flag-choices button { min-height: 42px; }
.flag-choices img { width: 36px; height: 24px; }
.flag-library output { margin-right: auto; align-self: center; font: 11px var(--ui); }

.feed-more {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-block: 12px;
  font: 12px/1.4 var(--ui);
}
.feed-more label { cursor: pointer; }
.feed-more input { vertical-align: middle; }
.votes [data-repost][aria-pressed="true"] {
  background: #d3ecd5;
  box-shadow: inset 1px 1px 2px #83a786;
}
@media (max-width: 440px) {
  .votes [data-reply] span { display: none; }
}

.image-source { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.image-source input[type="file"] { flex: 1 1 12em; width: 0; min-width: min(12em, 100%); }
.image-source button { gap: 5px; }
.painter { width: fit-content; max-width: calc(100% - 12px); max-height: calc(100dvh - 12px); }
.painter h2 { display: flex; gap: 6px; align-items: center; margin: 0; padding: 5px 8px; }
.paint-body {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px;
  padding: 8px; font: 11px/1.3 var(--ui);
}
.paint-tools { display: grid; align-content: start; grid-template-columns: repeat(2, auto); gap: 3px; }
.paint-tools button, .paint-actions button:has(img) { padding: 2px; width: max(32px, var(--control-height)); }
.painter button[aria-pressed="true"] { background: #cedef5; box-shadow: inset 1px 1px 2px #63758a; }
.paint-paper { padding: 2px; background: #fff; border: 2px inset var(--edge); }
.paint-paper canvas {
  display: block; touch-action: none; cursor: crosshair; background: white;
  width: min(512px, 64dvh, calc(100vw - 130px)); height: auto;
}
.paint-options, .paint-actions {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 4px;
}
.paint-options { justify-content: space-between; flex-wrap: wrap; }
.paint-options label { display: flex; align-items: center; gap: 4px; }
.paint-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.paint-colors button, .paint-colors input[type="color"] {
  width: 24px; height: 26px; min-height: 26px; padding: 3px; cursor: pointer;
}
.paint-colors button i { display: block; width: 100%; height: 100%; border: 1px solid #555; }
.paint-actions { padding-top: 6px; border-top: 1px solid #aaa699; }
.paint-actions [data-cancel] { margin-left: auto; }
.paint-actions [data-attach] { font-weight: bold; }
.paint-body > .error { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .paint-body { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .paint-tools { display: flex; flex-wrap: wrap; gap: 3px; }
  .paint-tools button { width: 36px; }
  .paint-paper { justify-self: center; }
  .paint-paper canvas { width: min(calc(100vw - 48px), 55dvh, 512px); }
}
