/* 4coin, early-2000s desktop edition: every page is a window (clover-green title bar) on our own sky-and-hills
   wallpaper, with a taskbar and a start menu at the bottom. Inside the windows the posts keep 4chan's habits
   (greentext, green names, post boxes), in our own colours. Our own name, logo and wallpaper; no 4chan or
   Microsoft marks. Bigger type and more air than the real thing, so it stays easy to read. */
:root {
  --win-frame: #1d8a34;   /* window border = the title bar's colour */
  --face: #ece9d8;        /* dialog beige */
  --face-line: #aca899;
  --paper: #fff;
  --post: #f3f7ea;
  --post-line: #cfdcb8;
  --text: #1b1b1b;
  --muted: #5d5d55;
  --title: #c81414;       /* the red of the 4 */
  --subject: #0b3d91;
  --name: #117743;        /* names, tripcodes, "paid" */
  --link: #0b4fb3;
  --link-hover: #e05a00;
  --green: #789922;       /* greentext */
  --red: #c81414;
  --label: #dcebd0;       /* the post form's label cells */
  --label-text: #154d22;
  --label-line: #9cbf8a;
  --field: #fff;
  --field-line: #7f9db9;
  --sel: #316ac5;         /* selection blue */
  --sans: Tahoma, Verdana, "Segoe UI", Geneva, sans-serif;
  --title-font: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  --mono: ui-monospace, Consolas, "Lucida Console", "Courier New", monospace;
  --wrap: 1080px;
  --taskbar: 42px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #4c93e8; }
body {
  margin: 0; color: var(--text); font: 15px/1.5 var(--sans); min-height: 100vh;
  background: #4c93e8 url("/wallpaper.svg?v=d76e4f4cfe") center bottom / cover no-repeat fixed;
  padding-bottom: calc(var(--taskbar) + 24px);
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px dotted var(--text); outline-offset: 2px; }
[hidden] { display: none !important; }
p { margin: 0 0 10px; }
h1, h2, h3 { margin: 0; font-family: var(--title-font); text-wrap: balance; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
hr { border: 0; border-top: 1px solid var(--post-line); margin: 14px 0; }

.wrap { width: min(var(--wrap), 100% - 24px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.muted { color: var(--muted); }
.lbl { font-size: 12px; color: var(--muted); }
.center { text-align: center; }
.hand { font-weight: bold; color: var(--name); }

/* [bracketed links], 4chan style */
.bl { white-space: nowrap; }
.bl::before { content: "["; color: var(--muted); margin-right: 1px; }
.bl::after { content: "]"; color: var(--muted); margin-left: 1px; }
.bl a { text-decoration: none; }
.bl a:hover { text-decoration: underline; }

/* ---------- the desktop header: logo, name, one line, the CA ---------- */
.deskHead { text-align: center; padding: 26px 0 22px; color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand img { width: 74px; height: 74px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); }
.brand .word { font: bold italic 60px/1 var(--title-font); letter-spacing: -2px; text-shadow: 0 2px 0 #0d3a8a, 0 4px 12px rgba(0, 0, 0, 0.35); }
.brand .word i { color: #b6f27a; font-style: italic; }
.tagline { font: bold 19px/1.35 var(--title-font); margin: 10px auto 0; max-width: 640px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 14px rgba(8, 38, 110, 0.75), 0 0 4px rgba(8, 38, 110, 0.6); }
.globalMessage { color: #fff; background: var(--red); display: inline-block; font-weight: bold; font-size: 13px; margin-top: 10px; padding: 3px 10px; border-radius: 3px; }
.xLine { margin-top: 12px; }
.xBtn { display: inline-flex; align-items: center; gap: 7px; background: #000; color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: bold; text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.xBtn:hover { background: #333; color: #fff; text-decoration: none; }
.xBtn svg { width: 14px; height: 14px; fill: currentColor; }

/* the CA, as an address bar */
.caBar { display: flex; align-items: stretch; max-width: 720px; margin: 16px auto 0; background: var(--face); border: 1px solid #fff; border-radius: 4px; padding: 4px; gap: 4px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); color: var(--text); text-align: left; }
.caBar .caLbl { flex: none; display: flex; align-items: center; padding: 0 10px; font: bold 13px var(--sans); color: #444; }
.caBar .caField { flex: 1; min-width: 0; display: flex; align-items: center; background: #fff; border: 1px solid var(--field-line); padding: 6px 9px; font-size: 14px; }
.caAddr { font-family: var(--mono); user-select: all; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caSoon { color: var(--muted); font-size: 13px; }
.caBar .btn { padding: 5px 14px; }

/* ---------- windows ---------- */
.win { background: var(--paper); border: 3px solid var(--win-frame); border-top: 0; border-radius: 8px 8px 0 0; box-shadow: 3px 5px 18px rgba(0, 0, 0, 0.32); margin: 0 auto 20px; min-width: 0; }
.win.page { width: min(var(--wrap), 100% - 24px); }
.win.face { background: var(--face); }
.titlebar {
  display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 4px 0 8px; margin: 0 -3px;
  border-radius: 8px 8px 0 0; color: #fff; font: bold 14px/1 var(--title-font); text-shadow: 1px 1px 0 #0b4a17;
  background: linear-gradient(180deg, #7be087 0%, #36b24b 9%, #26a03e 30%, #1f9136 70%, #1d8a34 88%, #157127 100%);
  user-select: none;
}
.titlebar img { width: 18px; height: 18px; flex: none; }
.titlebar .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tbBtns { margin-left: auto; display: flex; gap: 2px; flex: none; }
.tbBtns i { width: 22px; height: 22px; border: 1px solid #fff; border-radius: 3px; display: grid; place-items: center; font: bold 13px/1 var(--sans); font-style: normal; color: #fff; background: linear-gradient(180deg, #67cf76, #239b3b); }
.tbBtns i.x { background: linear-gradient(180deg, #f1916d, #d8471f); }
.winBody { padding: 18px 20px 20px; }
.win.page > main.wrap { width: auto; margin: 0 auto; padding: 20px 22px 24px; }

/* ---------- the taskbar and start menu ---------- */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--taskbar); display: flex; align-items: center; gap: 4px;
  background: linear-gradient(180deg, #3d84ef 0%, #2b6be0 8%, #245edb 45%, #2259d6 85%, #1941a5 100%); border-top: 1px solid #0c2d8a;
  font: 13px var(--sans); color: #fff;
}
.startBtn {
  height: 100%; display: flex; align-items: center; gap: 7px; padding: 0 20px 0 10px; border: 0; cursor: pointer; flex: none;
  border-radius: 0 12px 12px 0; color: #fff; font: bold italic 19px/1 var(--title-font); text-shadow: 1px 1px 1px #1a4a12;
  background: linear-gradient(180deg, #6fcf5e 0%, #3ea735 12%, #34a02b 50%, #2b8d22 88%, #23781c 100%); box-shadow: inset -2px 0 3px rgba(0, 0, 0, 0.25);
}
.startBtn img { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4)); }
.startBtn:hover, .startBtn[aria-expanded="true"] { filter: brightness(1.08); }
.tasks { display: flex; gap: 4px; min-width: 0; overflow: hidden; padding-left: 6px; flex: 1; }
.task {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 3px; color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #5c9cf5 0%, #3c81f3 15%, #2f73ea 85%, #2a63d0 100%); border: 1px solid #1a4fbe; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.task:hover { color: #fff; filter: brightness(1.1); }
.task[aria-current] { background: linear-gradient(180deg, #1c4cc0, #1e52b7 20%, #2259c9); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.4); font-weight: bold; }
.tray { height: 100%; display: flex; align-items: center; gap: 10px; padding: 0 14px; flex: none; background: linear-gradient(180deg, #19a8f3 0%, #0f97ec 10%, #0d8ce4 85%, #0b72c9 100%); border-left: 1px solid #0b3c9c; box-shadow: inset 1px 0 0 #2ec0ff; }
.tray a { color: #fff; display: flex; }
.tray svg { width: 15px; height: 15px; fill: currentColor; }
.clock { font-size: 13px; }
.startMenu {
  position: fixed; left: 0; bottom: var(--taskbar); z-index: 60; width: min(380px, 100vw); background: #fff; border: 2px solid #1d61d8; border-bottom: 0;
  border-radius: 8px 8px 0 0; box-shadow: 4px -2px 16px rgba(0, 0, 0, 0.4); overflow: hidden; font: 14px var(--sans);
}
.smHead { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #fff; font: bold 16px var(--title-font); text-shadow: 1px 1px 1px #0b4a17;
  background: linear-gradient(180deg, #47bb57, #23963a 60%, #1d8a34); }
.smHead img { width: 44px; height: 44px; background: #fff; border: 2px solid #e9f7e4; border-radius: 4px; padding: 2px; }
.smCols { display: grid; grid-template-columns: 1.15fr 1fr; }
.smCols > div { padding: 8px 6px; display: grid; align-content: start; gap: 2px; }
.smCols > div + div { background: #d3e5fa; border-left: 1px solid #95bdee; }
.smCols a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 2px; color: var(--text); text-decoration: none; }
.smCols a:hover { background: var(--sel); color: #fff; }
.smCols .main a { font-weight: bold; }
.smCols .ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; }
.smCols .ico img { width: 26px; height: 26px; }
.smCols .ico svg { width: 22px; height: 22px; }
.smFoot { display: flex; justify-content: flex-end; padding: 8px 10px; background: linear-gradient(180deg, #4282d6, #3b7ad1 50%, #2c63bd); }
.smFoot a { color: #fff; text-decoration: none; font-size: 13px; padding: 4px 8px; border-radius: 2px; }
.smFoot a:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- footer ---------- */
.foot { margin-top: 26px; font-size: 12px; color: var(--muted); }
.foot .wrap { background: rgba(255, 255, 255, 0.88); border-radius: 6px; padding: 12px 16px 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
.foot .bar { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.foot .links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.foot .fine { text-align: center; max-width: 820px; margin: 10px auto 0; line-height: 1.5; }

/* ---------- the home page ---------- */
.desk { width: min(var(--wrap), 100% - 24px); margin-inline: auto; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.hero h1 { font: bold 40px/1.1 var(--title-font); letter-spacing: -1px; color: #0b2c6b; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--name); }
.hero .lead { font-size: 17px; line-height: 1.5; margin-bottom: 18px; }
.hero .acts { gap: 10px; }
.hero .small { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.demoPic { position: relative; display: grid; gap: 14px; padding: 28px 18px 18px; background: var(--face); border: 1px solid var(--face-line); border-radius: 4px; }
.demoPic .exTag { position: absolute; top: 8px; right: 10px; font-size: 11px; color: var(--muted); }
.demoPic .post { border: 1px solid var(--post-line); }
.demoPic .arrow { justify-self: center; font: bold 15px var(--title-font); color: var(--name); display: flex; align-items: center; gap: 8px; }
.demoPic .arrow::before, .demoPic .arrow::after { content: ""; width: 34px; height: 2px; background: var(--name); }
.miniCoin { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--face-line); padding: 10px 12px; }
.miniCoin .thumb { width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: var(--post); border: 1px solid var(--post-line); font: bold 15px var(--title-font); color: var(--subject); }
.miniCoin b { color: var(--subject); }
.miniCoin .mc { margin-left: auto; text-align: right; font-size: 13px; }
.balloon { position: relative; justify-self: end; background: #ffffe1; border: 1px solid #000; border-radius: 8px; padding: 8px 12px; font-size: 14px; box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25); }
.balloon b { color: var(--name); }
.balloon::after { content: ""; position: absolute; right: 26px; bottom: -9px; width: 14px; height: 14px; background: #ffffe1; border-right: 1px solid #000; border-bottom: 1px solid #000; transform: rotate(45deg) skew(10deg, 10deg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--face-line); border-radius: 4px; padding: 16px 16px 14px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 10px;
  color: #fff; font: bold 18px var(--title-font); background: radial-gradient(circle at 35% 30%, #7be087, #1d8a34 70%); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.step h3 { font-size: 17px; margin-bottom: 6px; color: #0b2c6b; }
.step p { margin: 0; font-size: 14px; color: #333; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

/* ---------- posts ---------- */
.thread { margin: 0 0 8px; }
.op { padding: 2px 0 6px; overflow: hidden; }
.replyContainer { display: flex; gap: 4px; margin: 4px 0; align-items: flex-start; }
.sideArrows { color: #b8c6a0; font-size: 13px; padding-top: 6px; flex: none; user-select: none; }
.post { background: var(--post); border: 1px solid var(--post-line); border-left: 0; border-top: 0; padding: 8px 16px 12px; min-width: 0; max-width: 100%; }
.post.wide { flex: 1; }
.postInfo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; }
.subject { color: var(--subject); font-weight: bold; }
.name { color: var(--name); font-weight: bold; }
.trip { color: var(--name); font-weight: normal; }
.dateTime, .postNum { color: var(--text); }
.postNum a { text-decoration: none; color: inherit; }
.stickyTag { color: var(--red); font-weight: bold; font-size: 12px; }
.postMessage { margin-top: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.postMessage p:last-child { margin-bottom: 0; }
.quote { color: var(--green); }
.quotelink { color: var(--red); }
.file { font-size: 13px; margin: 2px 0 4px; }
.fileThumb { float: left; margin: 4px 20px 10px 0; }
.fileThumb img, .fileThumb .noimg { width: 160px; height: 160px; object-fit: cover; }
.noimg { display: grid; place-items: center; background: var(--post); border: 1px solid var(--post-line); font: bold 22px var(--title-font); color: var(--subject); }
.clear { clear: both; }

/* ---------- the post form ---------- */
.postForm { border-collapse: separate; border-spacing: 2px; margin: 0 auto; width: min(580px, 100%); }
.postForm th { background: var(--label); color: var(--label-text); border: 1px solid var(--label-line); font-weight: bold; font-size: 14px; text-align: left; padding: 6px 10px; vertical-align: top; white-space: nowrap; width: 1%; }
.postForm td { padding: 0; vertical-align: top; }
.postForm .note { font-size: 12px; color: var(--muted); padding: 4px 2px 6px; display: block; }
.input, .postForm input[type="text"], .postForm textarea {
  width: 100%; font: 15px/1.35 var(--sans); color: var(--text); background: var(--field);
  border: 1px solid var(--field-line); border-radius: 0; padding: 7px 9px;
}
textarea.input, .postForm textarea { min-height: 96px; resize: vertical; }
.input:focus, .postForm input:focus, .postForm textarea:focus { outline: 0; border-color: var(--sel); box-shadow: 0 0 0 1px var(--sel); }
.inline { display: flex; gap: 6px; align-items: stretch; }
.inline .input { flex: 1; min-width: 0; }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field > label { font-weight: bold; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); }
.error { color: var(--red); font-weight: bold; font-size: 14px; margin: 8px 0 0; }
.ok { color: var(--name); font-weight: bold; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* buttons: the rounded, glossy kind */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 14px/1.2 var(--sans); color: #000; text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 6px 16px; border: 1px solid #003c74; border-radius: 3px;
  background: linear-gradient(180deg, #fff 0%, #f4f3ee 40%, #ecebe6 85%, #d6d0c5 100%);
}
.btn:hover { color: #000; box-shadow: inset 0 2px 0 #ffe7a2, inset 0 -2px 0 #f9b236, inset 2px 0 0 #fdd889, inset -2px 0 0 #fdd889; }
.btn:active { background: linear-gradient(180deg, #e3e2da, #f0efe9); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn.big { font-size: 16px; font-weight: bold; padding: 10px 24px; }
.btn-sm { padding: 3px 10px; font-size: 13px; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--red); }
.btn-go { color: #fff; font-weight: bold; text-shadow: 0 1px 0 #145a20; border-color: #145a20; background: linear-gradient(180deg, #7be087 0%, #3fb553 15%, #2a9d40 70%, #1f8634 100%); }
.btn-go:hover { color: #fff; filter: brightness(1.07); }

/* the big link at the top of a board */
.startLink { text-align: center; font: bold 24px var(--title-font); margin: 6px 0 14px; }
.startLink a { text-decoration: none; }
.startLink a:hover { text-decoration: underline; }

/* ---------- catalog: big icons, like a folder ---------- */
.catalogBar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--face-line); }
.catalogBar h2 { font-size: 18px; }
.catalogBar button { font: inherit; background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; }
.catalogBar button[aria-pressed="true"] { font-weight: bold; color: var(--text); }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 22px 12px; }
.cthread { text-align: center; font-size: 13px; color: var(--text); padding: 8px 6px; display: grid; justify-items: center; gap: 6px; align-content: start; border: 1px solid transparent; border-radius: 3px; }
.cthread:hover { background: #e8eff9; border-color: #bcd0ee; }
.cthread .cmain { color: var(--text); text-decoration: none; display: grid; justify-items: center; gap: 4px; }
.cthread .cmain:hover { color: var(--text); }
.cthread:hover .teaser b { background: var(--sel); color: #fff; }
/* the Claim button: green like a poster's name, so it stands out from the grey buttons */
.btn-claim { color: #fff; font-weight: bold; text-shadow: 0 1px 0 #145a20; border-color: #145a20; background: linear-gradient(180deg, #7be087 0%, #3fb553 15%, #2a9d40 70%, #1f8634 100%); }
.btn-claim:hover { color: #fff; filter: brightness(1.07); }
.claimRow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; }
.cthread .thumb { width: 150px; height: 150px; object-fit: cover; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); display: grid; place-items: center; background: var(--post); border: 1px solid var(--post-line); font: bold 22px var(--title-font); color: var(--subject); overflow: hidden; }
.cthread .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cthread .meta { font-size: 12px; }
.cthread .teaser { line-height: 1.4; overflow-wrap: anywhere; }
.cthread .teaser b { color: var(--subject); padding: 0 2px; }
.cthread .who { color: var(--name); }

/* ---------- boxes: side panels ---------- */
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.box { background: #eef5e8; border: 1px solid #fff; border-radius: 5px 5px 0 0; box-shadow: 0 0 0 1px var(--post-line); }
.box > h2 { background: linear-gradient(90deg, #fff, #cfe8c6); color: #1e6b2a; border-radius: 5px 5px 0 0; margin: 0; padding: 6px 12px; font-size: 15px; }
.box .in { padding: 10px 12px 12px; font-size: 14px; }
.box ul { list-style: none; margin: 0; padding: 0; }
.box li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted var(--post-line); }
.box li:last-child { border-bottom: 0; }
.box ol > li { display: list-item; } /* numbered lists (the rules) are sentences, not label/value rows */

/* ---------- the fee check: who the money is held for and how much ---------- */
.check { position: relative; display: grid; grid-template-columns: 136px 1fr; background: var(--paper); border: 1px dashed var(--face-line); color: var(--text); margin-top: 10px; max-width: 760px; }
.check-stub { border-right: 1px dashed var(--face-line); padding: 14px; display: grid; align-content: start; gap: 2px; font-size: 13px; }
.check-stub b { font-size: 14px; }
.check-stub .gap { height: 8px; }
.check-face { position: relative; padding: 14px 18px 12px; display: grid; gap: 12px; min-width: 0; }
.check-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.check-top .bank { font: bold 15px var(--title-font); color: var(--title); letter-spacing: -1px; }
.check-top .date { margin-left: auto; }
.check-line { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 10px; }
.check-line .lbl { font-size: 11px; line-height: 1.2; }
.check-line .fill { border-bottom: 1px solid var(--face-line); min-width: 0; padding: 0 2px 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check .payee { font-size: clamp(20px, 3.6vw, 32px); color: var(--name); font-weight: bold; }
.check .amount { font-size: clamp(18px, 2.8vw, 24px); font-weight: bold; color: var(--text); }
.check-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; font-size: 14px; }
.micr { color: var(--muted); font: 11px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check.small { grid-template-columns: 1fr; }
.check.small .check-stub { display: none; }
.check.small .check-bottom { grid-template-columns: 1fr; gap: 8px; }
.stamp { position: absolute; right: 16px; top: 40px; font: bold 13px var(--sans); color: var(--red); border: 2px solid var(--red); padding: 3px 8px; transform: rotate(-4deg); pointer-events: none; background: var(--paper); }
.stamp.is-paid { color: var(--name); border-color: var(--name); }
.stamp.is-demo { color: var(--muted); border-color: var(--muted); }

/* statuses, inline: [Unclaimed] [Claimed] [Demo] */
.tag { font-size: 12px; font-weight: bold; color: var(--red); white-space: nowrap; }
.tag::before { content: "["; }
.tag::after { content: "]"; }
.tag.is-paid { color: var(--name); }
.tag.is-demo { color: var(--muted); }

/* where each fee goes */
.split { display: flex; height: 12px; overflow: hidden; gap: 2px; max-width: 520px; border-radius: 2px; }
.split span { display: block; }
.split .s-owner, .legend .s-owner { background: var(--name); }
.split .s-treasury, .legend .s-treasury { background: #a7b6c9; }
.split .s-buyback, .legend .s-buyback { background: var(--title); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }

/* ---------- the rest ---------- */
.panel { background: var(--post); border: 1px solid var(--post-line); border-left: 0; border-top: 0; padding: 12px 16px; margin: 8px 0; }
details.panel summary { cursor: pointer; font-weight: bold; }
.item { padding: 10px 0; border-top: 1px dotted var(--post-line); display: grid; gap: 6px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.empty { border: 1px dashed var(--face-line); padding: 22px; text-align: center; color: var(--muted); }
.empty b { color: var(--text); display: block; font-size: 16px; margin-bottom: 4px; }
.skeleton { background: var(--post); min-height: 120px; animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: 0.5; } }
.addr { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; }
.code { font: bold 22px/1 var(--mono); background: var(--paper); border: 1px dashed var(--face-line); padding: 14px; text-align: center; user-select: all; margin: 10px 0; color: var(--text); }
ol.plain { margin: 0 0 10px; padding-left: 22px; }
ol.plain li { margin-bottom: 6px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--post-line); font-size: 14px; flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th { background: var(--label); color: var(--label-text); text-align: left; padding: 5px 8px; border: 1px solid var(--label-line); }
.ledger td { padding: 6px 8px; border-bottom: 1px solid var(--post-line); }
.ledger tr:nth-child(even) td { background: var(--post); }
.table-scroll { overflow-x: auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.fact .v { font-weight: bold; font-size: 18px; font-variant-numeric: tabular-nums; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--post-line); border-top-color: var(--text); animation: spin 0.8s linear infinite; display: inline-block; vertical-align: -1px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.rules ol { padding-left: 24px; }
.rules li { margin-bottom: 8px; }
.rules h2 { margin: 18px 0 8px; font-size: 17px; color: var(--subject); }
.draftNote { background: var(--paper); border: 1px dashed var(--red); padding: 8px 12px; font-size: 13px; margin: 10px 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cols2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --taskbar: 44px; }
  .row { grid-template-columns: 1fr; }
  .postForm, .postForm tbody, .postForm tr, .postForm th, .postForm td { display: block; width: 100%; }
  .postForm th { margin-top: 6px; }
  .check { grid-template-columns: 1fr; }
  .check-stub { display: none; }
  .check-bottom { grid-template-columns: 1fr; }
  .fileThumb { float: none; margin: 6px 0 8px; }
  .sideArrows { display: none; }
  .post { padding: 8px 12px 12px; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 6px; }
  .cthread .thumb { width: 128px; height: 128px; }
  .deskHead { padding: 18px 0 16px; }
  .brand img { width: 56px; height: 56px; }
  .brand .word { font-size: 46px; }
  .tagline { font-size: 16px; padding: 0 12px; }
  .caBar { margin-inline: 12px; flex-wrap: wrap; }
  .caBar .caLbl { padding: 2px 4px; }
  .caBar .caField { flex-basis: 100%; order: 3; }
  .hero h1 { font-size: 30px; }
  .winBody, .win.page > main.wrap { padding: 14px 14px 18px; }
  .task.opt { display: none; }
  .titlebar .tbBtns i:not(.x) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton, .spin { animation: none; }
}
