/* /pump/ - Yotsuba B + Yotsuba theme for the memecoin board */
:root, [data-theme="yotsuba-b"] {
  --bg: #eef2ff;
  --post-bg: #d6daf0;
  --border: #b7c5d9;
  --hr: #b7C5d9;
  --text: #000000;
  --link: #34345c;
  --link-visited: #0f0c5d;
  --subject: #0f0c5d;
  --name: #117743;
  --quote: #789922;
  --title: #af0a0f;
  --board-title: #af0a0f;
  --page-shadow: #98e;
  --thumb-border: #000;
  --input-bg: #fff;
  --input-border: #aaa;
  --button-bg: #d6daf0;
  --warn-bg: #f0e0d6;
  --warn-border: #d00;
  --demo-bg: #e00;
  --demo-fg: #fff;
  --local-bg: #0f0c5d;
  --bar-bg: #b7c5d9;
  --bar-fill: #117743;
  --omitted: #707070;
  --posteruid-fg: #fff;
  --footer: #34345c;
  --banner-bg: #d6daf0;
  --highlight: #d6bad0;
}

[data-theme="yotsuba"] {
  --bg: #ffffee;
  --post-bg: #f0e0d6;
  --border: #d9bfb7;
  --hr: #d9bfb7;
  --text: #800000;
  --link: #00e;
  --link-visited: #80c;
  --subject: #cc1105;
  --name: #117743;
  --quote: #789922;
  --title: #800000;
  --board-title: #af0a0f;
  --page-shadow: #ea8;
  --thumb-border: #800000;
  --input-bg: #fff;
  --input-border: #aaa;
  --button-bg: #f0e0d6;
  --warn-bg: #ffe;
  --warn-border: #800000;
  --demo-bg: #c00;
  --demo-fg: #fff;
  --local-bg: #800000;
  --bar-bg: #d9bfb7;
  --bar-fill: #117743;
  --omitted: #707070;
  --posteruid-fg: #fff;
  --footer: #800000;
  --banner-bg: #f0e0d6;
  --highlight: #f0c0b0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 10pt;
  line-height: 1.4;
}

a { color: var(--link); text-decoration: none; }
a:visited { color: var(--link-visited); }
a:hover { color: var(--title); text-decoration: underline; }

/* Top board nav, 4chan-style */
.board-nav {
  background: var(--post-bg);
  border-bottom: 1px solid var(--border);
  padding: 3px 8px;
  font-size: 9pt;
  overflow-x: auto;
  white-space: nowrap;
}
.board-nav .nav-left, .board-nav .nav-right { display: inline; }
.board-nav .nav-right { float: right; }
.board-nav a { padding: 0 2px; }
.board-nav .sep { opacity: 0.5; }
.board-nav a.active { font-weight: bold; text-decoration: underline; }

.page-top {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 720px) minmax(190px, 1fr);
  align-items: stretch;
  column-gap: 10px;
  padding: 8px 10px 0;
  justify-content: center;
}
#main-coin-slot {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  z-index: 2;
  min-width: 0;
}
.page-top-center {
  grid-column: 2;
  min-width: 0;
}
#header-links-slot {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  z-index: 2;
  min-width: 0;
}
.header-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.header-socials .hs-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 84px;
  color: var(--text);
  text-decoration: none;
}
.header-socials .hs-icon {
  width: 84px;
  height: 84px;
  border: 1px solid var(--thumb-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
.header-socials .hs-icon svg {
  display: block;
  width: 52px;
  height: 52px;
  color: var(--text);
}
.header-socials .hs-icon img {
  display: block;
  width: 72px;
  height: 72px;
}
.header-socials .hs-label {
  margin-top: 6px;
  font-size: 10pt;
  font-weight: bold;
  color: var(--subject);
}
.header-socials .hs-link:hover,
.header-socials .hs-link:hover .hs-label {
  color: var(--title);
  text-decoration: none;
}
.header-socials .hs-link:hover .hs-label { text-decoration: underline; }
.header-socials .hs-link:hover .hs-icon {
  background: rgba(0, 0, 0, 0.06);
}
[data-theme="yotsuba-b"] .header-socials .hs-link:hover .hs-icon { background: rgba(175, 10, 15, 0.10); }
[data-theme="yotsuba"] .header-socials .hs-link:hover .hs-icon { background: rgba(128, 0, 0, 0.10); }
.main-coin-card {
  width: 180px;
  max-width: 100%;
  text-align: center;
  font-size: 12pt;
  line-height: 1.3;
}
.main-coin-card .mc-logo-link { display: inline-block; }
.main-coin-card .mc-logo,
.main-coin-card .mc-placeholder-logo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--thumb-border);
  background: #fff;
  display: block;
  margin: 0 auto;
}
.main-coin-card .mc-placeholder-logo {
  border: 2px dashed var(--border);
  background: var(--post-bg);
  color: var(--omitted);
  font-size: 72px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-coin-card .mc-meta { margin-top: 8px; }
.main-coin-card .mc-name {
  display: block;
  font-size: 13pt;
  font-weight: bold;
  color: var(--subject);
  word-wrap: break-word;
}
.main-coin-card .mc-name:hover { color: var(--title); }
.main-coin-card .mc-ticker { color: var(--title); }
.main-coin-card .mc-ca {
  margin-top: 5px;
  font-size: 10pt;
  color: var(--text);
}
.main-coin-card .mc-ca code {
  font-family: Consolas, "Liberation Mono", Menlo, Monaco, monospace;
  font-size: 10pt;
}
.main-coin-card .mc-ca-short { display: none; }
.main-coin-card .mc-copy {
  margin-left: 4px;
  font-size: 10pt;
  padding: 2px 8px;
  line-height: 1.5;
  cursor: pointer;
  vertical-align: middle;
}

.intro-box {
  margin: 0 auto 10px;
  max-width: 720px;
  background: var(--post-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px 8px;
  text-align: left;
  font-size: 10pt;
  line-height: 1.45;
}
.intro-box .intro-title {
  margin: 0 0 6px;
  font-size: 13pt;
  font-weight: bold;
  color: var(--subject);
  letter-spacing: 0;
  font-family: Tahoma, Arial, sans-serif;
}
.intro-points {
  margin: 0;
  padding: 0 0 0 1.15em;
}
.intro-points li { margin: 0 0 5px; }
.intro-points li:last-child { margin-bottom: 0; }
.intro-launch {
  display: inline-block;
  vertical-align: baseline;
  margin: 0 1px 0 0;
  padding: 1px 8px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.3;
}
a.intro-launch:hover { color: var(--text); text-decoration: none; }
.intro-note {
  margin: 8px 0 0;
  font-size: 8.5pt;
  color: var(--omitted);
  line-height: 1.35;
}
/* Keep this box calm: no green word-highlights or quote/name colors inside it. */
.intro-box .name,
.intro-box .quote,
.intro-box mark,
.intro-box .hl-launch {
  color: inherit !important;
  background: none !important;
  -webkit-text-fill-color: unset;
}

/* Header */
#board-header {
  text-align: center;
  margin: 10px 0 8px;
  clear: both;
}
#board-header .banner-wrap {
  display: inline-block;
  margin-bottom: 4px;
  max-width: 100%;
}
#board-header .banner-wrap svg,
#board-header .banner-wrap img {
  width: 400px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--thumb-border);
  background: var(--banner-bg);
  display: block;
}
.board-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--board-title);
  margin: 0;
  letter-spacing: -1px;
  font-family: Tahoma, Arial, sans-serif;
}
.board-subtitle {
  margin: 0 0 4px;
  font-size: 10pt;
}
.header-buttons {
  margin-top: 6px;
}
.header-buttons button,
.btn, input[type="submit"], input[type="button"], button.btn {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 10pt;
  background: var(--button-bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 2px 8px;
  cursor: pointer;
}
.header-buttons button:hover,
.btn:hover, input[type="submit"]:hover {
  border-color: var(--title);
}
button:disabled, .btn:disabled, input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-wallet {
  margin-left: 8px;
  font-style: italic;
}

hr.desktop {
  clear: both;
  border: none;
  border-top: 1px solid var(--hr);
  height: 0;
  margin: 8px 0;
}

/* Forms */
.post-form-wrap {
  width: 100%;
  max-width: 520px;
  margin: 12px auto 16px;
}
.post-form-wrap h3, .form-title {
  text-align: center;
  margin: 0 0 8px;
  color: var(--title);
  font-size: 11pt;
}
.postForm {
  border-spacing: 1px;
  margin: 0 auto;
  width: 100%;
}
.postForm td {
  padding: 0;
  vertical-align: top;
}
.postForm .label {
  background: var(--post-bg);
  border: 1px solid var(--border);
  font-weight: bold;
  padding: 2px 6px;
  width: 110px;
  white-space: nowrap;
}
.postForm .field {
  padding-left: 2px;
}
.postForm input[type="text"],
.postForm input[type="url"],
.postForm input[type="file"],
.postForm textarea {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 10pt;
  background: var(--input-bg);
  color: #000;
  border: 1px solid var(--input-border);
  padding: 2px 4px;
}
.postForm input[type="text"],
.postForm input[type="url"] {
  width: 220px;
  max-width: calc(100% - 70px);
}
.postForm textarea {
  width: 340px;
  max-width: 100%;
  height: 90px;
  resize: vertical;
}
.postForm input[type="file"] { max-width: 100%; }
.postForm input[type="submit"] { margin-left: 4px; vertical-align: middle; }
.postForm .hint { font-size: 8pt; opacity: 0.8; display: block; }
.form-disclaimer {
  font-size: 9pt;
  color: var(--title);
  text-align: center;
  margin: 8px auto;
  max-width: 520px;
  font-weight: bold;
}
#img-preview, .img-preview {
  margin-top: 4px;
  max-width: 250px;
  max-height: 250px;
  border: 1px solid var(--thumb-border);
  display: none;
}
#img-preview[src], .img-preview[src] { display: inline-block; }

/* Threads / posts */
#content {
  padding: 0 10px 40px;
  min-height: 50vh;
}
.thread {
  margin: 4px 0 0;
  clear: both;
  position: relative;
}
.thread + hr, .thread-sep {
  clear: both;
  border: none;
  border-top: 1px solid var(--hr);
  margin: 10px 0 8px;
}

.post {
  margin: 4px 0;
}
.reply {
  background: var(--post-bg);
  border: 1px solid var(--border);
  display: table;
  padding: 2px 4px 4px 2px;
  margin: 4px 16px;
  max-width: 90%;
}
.reply.highlight { background: var(--highlight); }

.file { margin: 0 0 2px 4px; font-size: 9pt; }
.file .file-info { margin-left: 0; }
.fileThumb {
  float: left;
  margin: 3px 20px 8px 4px;
}
.fileThumb img, .fileThumb svg {
  display: block;
  max-width: 250px;
  max-height: 250px;
  width: auto;
  height: auto;
  border: 1px solid var(--thumb-border);
  background: #fff;
}
.reply .fileThumb { margin-left: 8px; }
.reply .fileThumb img, .reply .fileThumb svg {
  max-width: 125px;
  max-height: 125px;
}

.postInfo {
  overflow: hidden;
  padding: 2px 4px;
}
.subject { color: var(--subject); font-weight: bold; }
.name { color: var(--name); font-weight: bold; }
.posteruid {
  display: inline-block;
  font-size: 8pt;
  font-weight: bold;
  padding: 0 3px;
  border-radius: 2px;
  color: var(--posteruid-fg);
  margin-left: 2px;
  letter-spacing: 0.3px;
}
.date { margin-left: 2px; }
.postNum a { text-decoration: none; }
.postMenu { margin-left: 6px; font-size: 9pt; }
.badge {
  display: inline-block;
  font-size: 8pt;
  font-weight: bold;
  letter-spacing: 0.4px;
  padding: 0 4px;
  margin-left: 6px;
  vertical-align: middle;
  color: var(--demo-fg);
  background: var(--demo-bg);
  border-radius: 1px;
}
.badge.local { background: var(--local-bg); }
.ticker-tag {
  font-weight: bold;
  margin-left: 4px;
}

blockquote.postMessage {
  display: block;
  margin: 4px 0 8px 2.2em;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
.quote { color: var(--quote); }
.quotelink { color: var(--link); text-decoration: underline; }
.quotelink:hover { color: var(--title); }

.mcap-line, .stats-line {
  margin: 2px 0 0;
  font-size: 9pt;
}
.mcap-line strong { color: var(--subject); }
.omitted {
  color: var(--omitted);
  margin: 4px 0 4px 2.2em;
  font-size: 9pt;
}
.sideArrows {
  float: left;
  margin-right: 2px;
  margin-top: 2px;
  color: var(--omitted);
  font-weight: bold;
}

/* Thread page extras */
.thread-tools {
  margin: 6px 0 10px;
  font-size: 9pt;
}
.curve-box {
  background: var(--post-bg);
  border: 1px solid var(--border);
  display: table;
  padding: 8px 12px;
  margin: 8px 0 12px 4px;
  min-width: 280px;
  max-width: 520px;
}
.curve-box h4 {
  margin: 0 0 6px;
  color: var(--subject);
  font-size: 10pt;
}
.curve-bar {
  height: 20px;
  background: #fff;
  border: 1px solid var(--text);
  position: relative;
  margin: 6px 0;
  overflow: hidden;
}
.curve-bar .fill {
  height: 100%;
  background: var(--bar-fill);
  width: 0%;
}
.curve-bar .curve-pct {
  position: absolute;
  inset: 0;
  text-align: center;
  font-size: 9pt;
  font-weight: bold;
  line-height: 20px;
  color: #000;
  pointer-events: none;
  text-shadow: 0 0 3px #fff;
}
.curve-meta { font-size: 9pt; }
.socials a { margin-right: 10px; }

.reply-form-anchor { margin-top: 16px; }

/* Catalog */
.catalog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 8px 4px 12px;
  font-size: 9pt;
}
.catalog-bar input[type="search"] {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 10pt;
  padding: 2px 6px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  min-width: 180px;
}
.catalog-bar .sorts a, .catalog-bar .sorts span {
  margin-right: 6px;
}
.catalog-bar .sorts a.active, .sort-link.active {
  font-weight: bold;
  text-decoration: underline;
}

#catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px 10px;
  padding: 4px;
}
.cat-thread {
  text-align: center;
  vertical-align: top;
  font-size: 9pt;
}
.cat-thread a.thumb-link {
  display: inline-block;
}
.cat-thread img, .cat-thread svg.thumb, .cat-thread .thumb-link img {
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
  border: 1px solid var(--thumb-border);
  background: #fff;
}
.cat-meta { margin: 3px 0 2px; }
.cat-teaser {
  margin: 0 auto;
  max-width: 160px;
  overflow: hidden;
  word-wrap: break-word;
  text-align: left;
  font-size: 9pt;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
.cat-teaser .subject { display: inline; }

/* Footer */
#board-footer {
  clear: both;
  text-align: center;
  padding: 18px 10px 30px;
  color: var(--footer);
  font-size: 9pt;
  border-top: 1px solid var(--hr);
  margin-top: 12px;
}
#board-footer .style-switcher { margin-bottom: 6px; }
#board-footer .style-switcher a.active { font-weight: bold; text-decoration: underline; }

.empty-state {
  text-align: center;
  padding: 30px 10px;
  color: var(--omitted);
}

@media (max-width: 800px) {
  .page-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 8px 0;
  }
  #main-coin-slot, .page-top-center, #header-links-slot { width: 100%; }
  #main-coin-slot { order: 1; }
  #header-links-slot { order: 2; }
  .page-top-center { order: 3; }
  .header-socials { gap: 22px; margin: 0 auto 10px; }
  .header-socials .hs-link { width: 64px; }
  .header-socials .hs-icon { width: 56px; height: 56px; }
  .header-socials .hs-icon svg { width: 34px; height: 34px; }
  .header-socials .hs-icon img { width: 46px; height: 46px; }
  .header-socials .hs-label { font-size: 9pt; margin-top: 4px; }
  .main-coin-card {
    width: auto;
    max-width: 420px;
    margin: 4px auto 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    text-align: left;
    font-size: 11pt;
  }
  .main-coin-card .mc-logo,
  .main-coin-card .mc-placeholder-logo {
    width: 120px;
    height: 120px;
    margin: 0;
  }
  .main-coin-card .mc-placeholder-logo { font-size: 56px; }
  .main-coin-card .mc-name { font-size: 12pt; }
  .main-coin-card .mc-ca, .main-coin-card .mc-ca code { font-size: 10pt; }
  .main-coin-card .mc-meta { margin-top: 0; text-align: left; }
  .main-coin-card .mc-ca-long { display: none; }
  .main-coin-card .mc-ca-short { display: inline; }
}

/* Mobile */
@media (max-width: 600px) {
  .intro-box {
    margin: 0 0 8px;
    padding: 8px 10px 7px;
    font-size: 9.5pt;
  }
  .intro-box .intro-title { font-size: 12pt; }
  .intro-points { padding-left: 1.1em; }
  .intro-note { font-size: 8pt; }
  .board-nav { white-space: normal; }
  .board-nav .nav-right { float: none; display: block; clear: none; margin-top: 2px; }
  .board-title { font-size: 20px; letter-spacing: 0; }
  #board-header .banner-wrap svg,
  #board-header .banner-wrap img { width: 280px; max-width: 100%; height: auto; }
  .fileThumb { margin: 3px 8px 4px 2px; }
  .fileThumb img, .fileThumb svg { max-width: 76px; max-height: 76px; }
  .reply .fileThumb img, .reply .fileThumb svg { max-width: 64px; max-height: 64px; }
  /* comments go full width under the thumb so lines are readable */
  blockquote.postMessage { margin-left: 0.6em; margin-right: 0.4em; clear: both; }
  .omitted { margin-left: 0.6em; }
  .reply { margin-left: 2px; margin-right: 0; max-width: 100%; }
  .post-form-wrap { padding: 0 4px; }
  .postForm { width: 100%; }
  .postForm .label { width: 72px; }
  .postForm input[type="text"],
  .postForm input[type="url"],
  .postForm textarea { width: 100%; max-width: 100%; }
  .postForm input[type="submit"] { display: inline-block; margin: 4px 0 0; }
  #content { padding: 0 4px 30px; }
  .curve-box { width: auto; max-width: 100%; margin-right: 4px; }
  .header-buttons .btn, .header-buttons button { margin: 2px; }
}

/* ---------- v2: wallet sign-in, real launches ---------- */
.wallet-slot { display: inline-block; margin-left: 6px; }
.wallet-box { font-size: 9pt; }
.wallet-box.signed-in { background: var(--post-bg); border: 1px solid var(--border); padding: 2px 6px; display: inline-block; }
.btn-signin { background: #ab9ff2 !important; color: #1c1c3a !important; font-weight: bold; border-color: #7a6fd0 !important; }
.btn-danger { background: #c00 !important; color: #fff !important; font-weight: bold; border-color: #800 !important; }
.badge.live { background: #117743; color: #fff !important; text-decoration: none; }
.badge.live:hover { background: #0b5a32; }
code.mint, .mint { font-size: 8.5pt; word-break: break-all; }
.fee-split-note {
  background: var(--post-bg);
  border: 1px solid var(--border);
  color: inherit;
  padding: 6px 10px;
  margin: 0 auto 10px;
  font-size: 9pt;
  line-height: 1.4;
}
.launch-status { margin-top: 6px; font-size: 9pt; max-width: 380px; overflow-wrap: anywhere; }
.launch-status.busy { color: var(--subject); }
.launch-status.err { color: #c00; font-weight: bold; }
.launch-status.ok { color: #117743; }
.hint.warn { color: #a05000; }
.hint.ok { color: #117743; }
.postForm details summary { cursor: pointer; font-size: 9pt; }
.postForm input[type="number"] { font-family: Tahoma, Arial, sans-serif; font-size: 10pt; border: 1px solid var(--input-border); padding: 2px 4px; }
.live-box { border-color: #117743; }
.mine-table { border-collapse: collapse; width: 100%; font-size: 9pt; }
.mine-table th, .mine-table td { border: 1px solid var(--border); padding: 3px 5px; text-align: left; vertical-align: middle; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 10px; }
.modal { background: var(--bg); border: 2px solid #c00; max-width: 560px; width: 100%; max-height: 92vh; overflow: auto; padding: 10px 14px; font-size: 9.5pt; }
.modal h3 { margin: 0 0 8px; color: #c00; }
.confirm-table { border-collapse: collapse; width: 100%; }
.confirm-table th { text-align: left; background: var(--post-bg); border: 1px solid var(--border); padding: 3px 6px; white-space: nowrap; vertical-align: top; }
.confirm-table td { border: 1px solid var(--border); padding: 3px 6px; overflow-wrap: anywhere; }
.confirm-table .small { font-size: 8pt; }
.modal .warn { color: #c00; font-weight: bold; }
.modal .agree { display: block; margin: 8px 0; }
.modal-actions { text-align: right; }

.badge.paired { background: #0f0c5d; color: #fff !important; margin-left: 4px; }
.pair-note { color: var(--subject); font-weight: bold; }
.paired-coin .reply { border-color: #0f0c5d; }

#pair-box { margin: 10px 0 12px; }
#pair-box > p { margin: 6px 0; }
#inline-pair-form { margin-top: 8px; }
#inline-pair-form .post-form-wrap, #inline-pair-form .postForm { margin: 0; }
.postMenu a { font-weight: normal; }

/* offchain coins, chan mints, vanity progress */
.badge.offchain { background: #6b6b6b; color: #fff; border-color: #444; display: inline-flex; align-items: center; gap: 3px; letter-spacing: .5px; }
.badge.offchain .off-logo { vertical-align: -1px; }
.offchain-box { border-left: 4px solid #6b6b6b; background: repeating-linear-gradient(135deg, rgba(0,0,0,.03) 0 8px, transparent 8px 16px); }
.mint b.chan, code b.chan { color: #0a7a2f; font-weight: bold; }
#vanity-status { margin: 2px 0 6px; font-size: 11px; }
#vanity-status code { word-break: break-all; }
label input[type=radio] { vertical-align: -1px; }

/* fee split + paired form toggle + phantom modal */
.fee-disclosure { margin: 4px 0; font-size: 12px; color: var(--title, #af0a0f); }
.wallet-notice { font-size: 8pt; margin-top: 4px; max-width: 260px; line-height: 1.4; }
.wallet-notice.err { color: #c00; }
.wallet-notice.busy { color: var(--subject); }

.fee-ok { color: #117743; }
.fee-missing { border-top: 1px dashed var(--link, #34345c); margin-top: 6px; padding-top: 6px; }
.pair-toggle { font-weight: bold; }
.pair-title { color: var(--title, #af0a0f); }

/* mint copy on thread / pair posts */
.mint-copy {
  margin-left: 4px;
  font-size: 8pt;
  padding: 0 5px;
  line-height: 1.4;
  cursor: pointer;
  vertical-align: middle;
}
.pair-meta { margin-top: 6px; font-size: 9pt; }
.pair-meta .fee-missing, .pair-meta .fee-ok { margin-top: 6px; }
.reply.highlight, .post.highlight { background: var(--highlight); }

a.thread-link, a.ticker-link {
  color: inherit;
  text-decoration: none;
}
a.thread-link .subject { color: var(--subject); }
a.thread-link:hover .subject,
a.ticker-link:hover { text-decoration: underline; }
.fileThumb { cursor: pointer; }
.cat-thread a.ticker-link { font-weight: bold; }

/* comments toggle, usernames, paired coin market cap */
#toggle-comments { font-weight: bold; }
.pair-mcap { font-size: 8.5pt; color: var(--subject, #0f0c5d); margin-left: 4px; }
.postForm #f-username, .postForm #reply-name { width: 160px; }

.thread-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 10px;
}
.thread-tools-left { flex: 1 1 auto; }

/* Desktop: comments + paired launch sit in a right-hand rail beside the thread. */
.thread-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-areas: "main rail";
  align-items: start;
  column-gap: 16px;
}
.thread-col { grid-area: main; min-width: 0; }
.thread-rail {
  grid-area: rail;
  width: 400px;
  position: sticky;
  top: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  z-index: 5;
}
.thread-rail .bar-toggle-btn {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  min-width: 0;
}
.thread-rail-launch { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.pair-rail-note {
  margin: 0;
  font-size: 8.5pt;
  color: var(--subject);
  text-align: center;
  line-height: 1.3;
}
.pair-rail-form {
  background: var(--post-bg);
  border: 1px solid var(--border);
  padding: 8px 10px 10px;
  max-height: calc(100vh - 140px);
  overflow: auto;
}
.thread-rail .postForm { margin: 0; width: 100%; }
.thread-rail .postForm .label { width: 72px; white-space: normal; }
.thread-rail .postForm input[type="text"],
.thread-rail .postForm input[type="url"],
.thread-rail .postForm textarea {
  width: 100%;
  max-width: 100%;
}
.thread-rail .postForm #f-username { width: 100%; }
.thread-rail .fee-split-note { margin: 0 0 8px; max-width: none; }
.thread-rail .launch-status { max-width: none; }
.thread-rail .hint { overflow-wrap: anywhere; }

@media (max-width: 920px) {
  .thread-layout {
    display: flex;
    flex-direction: column;
  }
  .thread-rail {
    order: -1;
    width: 100%;
    max-width: 420px;
    position: static;
    margin: 0 0 10px;
  }
  .pair-rail-form { max-height: none; }
}
.bar-toggle-btn {
  font-family: Tahoma, Arial, sans-serif;
  font-weight: bold;
  font-size: 10pt;
  padding: 6px 14px;
  line-height: 1.2;
  border: 2px solid #2e7d32;
  background: #2e7d32;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 2px;
  text-decoration: none;
}
.bar-toggle-btn:hover { filter: brightness(1.12); color: #fff; text-decoration: none; }
/* Green = the action you can take is "show" (form or comments). Red = currently shown, click to hide. */
.bar-toggle-btn.need-show { background: #2e7d32; border-color: #1b5e20; color: #fff; }
.bar-toggle-btn.need-hide { background: #af0a0f; border-color: #8e0000; color: #fff; }
/* Keep button labels (e.g. the word "launch") from picking up any page-wide green word highlight. */
.bar-toggle-btn, .bar-toggle-btn *, button.bar-toggle-btn span {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background-color: transparent;
}
.comments-toggle { min-width: 180px; }
#reply-status { margin: 6px 0 0 112px; }

/* Big, obvious launch button */
#btn-launch {
  display: block; width: 100%; max-width: 360px; margin: 8px 0;
  padding: 12px 18px; font-size: 17px; font-weight: bold; letter-spacing: .3px;
  color: #fff; background: #2e7d32; border: 2px solid #1b5e20; border-radius: 4px;
  cursor: pointer; box-shadow: 0 2px 0 #1b5e20;
}
#btn-launch:hover:not(:disabled) { background: #388e3c; }
#btn-launch:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #1b5e20; }
#btn-launch:disabled { background: #9e9e9e; border-color: #757575; box-shadow: none; cursor: wait; }
