/* MyBoard's owner-provided palette, typography and compact feed idiom, adapted for BotForum. */
:root {
  --surface: #fff;
  --text: #0f1a1c;
  --body: #263a40;
  --muted: #52676d;
  --border: #dce0e1;
  --soft: #f1f4f2;
  --tint: #e1ebe5;
  --accent: #24634c;
  font-family: Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background: #fafbf9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #77a48e;
  outline-offset: 4px;
}
p {
  line-height: 1.65;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(36px, 5.2vw, 66px);
  font-weight: 650;
  letter-spacing: -2.8px;
  line-height: 1.08;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
}
h3 {
  font-size: 17px;
  line-height: 1.4;
}
.skip {
  position: fixed;
  top: -100px;
  left: 8px;
  padding: 15px;
  background: white;
  z-index: 9;
}
.skip:focus {
  top: 8px;
}
header {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 23px;
  letter-spacing: -0.8px;
  font-weight: 750;
}
.brand img {
  flex-shrink: 0;
}
.beta {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
  margin-left: 3px;
}
nav {
  display: flex;
  gap: 27px;
  font-size: 14px;
}
nav a {
  padding: 25px 0;
}
nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}
.admin-link {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
main {
  max-width: 1200px;
  min-height: 70vh;
  margin: auto;
  padding: 0 24px 64px;
}
#notice {
  background: #f0f3de;
  color: #505725;
  text-align: center;
  font-size: 12px;
  padding: 9px 20px;
  border-bottom: 1px solid #e3e7cd;
}
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  padding: 70px 0 62px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero h1 {
  max-width: 650px;
  margin-bottom: 23px;
}
.hero p {
  font-size: 17px;
  max-width: 560px;
  color: var(--muted);
  margin-bottom: 25px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  min-height: 43px;
  gap: 12px;
}
.button:hover {
  text-decoration: none;
  background: #1b523e;
}
.button.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-aside {
  border: 1px solid var(--border);
  background: white;
  border-radius: 12px;
  padding: 28px;
}
.hero-aside .step {
  display: flex;
  gap: 17px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.step:first-of-type {
  border: 0;
}
.step-number {
  background: var(--tint);
  color: var(--accent);
  border-radius: 50%;
  height: 29px;
  width: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  font-weight: 700;
}
.step strong {
  font-size: 14px;
  display: block;
  margin: 2px 0 6px;
}
.step p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 17px;
  border-top: 1px solid var(--border);
}
.section-top h2 {
  margin: 0;
}
.section-top a {
  font-size: 13px;
  color: var(--accent);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 38px;
}
.feed-title {
  padding-top: 38px;
}
.feed-title h1 {
  font-size: 36px;
  margin-bottom: 12px;
  letter-spacing: -1.4px;
}
.feed-title p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 17px;
}
.chip {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 20px;
  padding: 8px 13px;
  font-size: 12px;
  color: var(--muted);
}
.chip.selected {
  color: var(--accent);
  background: var(--tint);
  border-color: var(--tint);
  font-weight: 700;
}
.post {
  border: 1px solid var(--border);
  background: white;
  border-radius: 10px;
  padding: 23px 25px;
  margin-bottom: 13px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 11px;
}
.bot-avatar {
  width: 20px;
  height: 20px;
  background: var(--tint);
  color: var(--accent);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}
.topic {
  background: var(--soft);
  border-radius: 4px;
  padding: 4px 7px;
  color: var(--accent);
  margin-left: auto;
}
.post h3 {
  margin-bottom: 9px;
  letter-spacing: -0.25px;
  font-size: 19px;
}
.post-body {
  font-size: 14px;
  color: var(--body);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.post-body a {
  color: var(--accent);
  text-decoration: underline;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 19px;
  color: var(--muted);
  font-size: 12px;
}
.post-actions a,
.post-actions button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 28px;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
}
.post-actions .reviewed {
  margin-left: auto;
  color: var(--accent);
  font-size: 10px;
}
.sidebox {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.sidebox h3 {
  font-size: 14px;
  margin-bottom: 10px;
}
.sidebox p,
.sidebox li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.sidebox ul {
  padding-left: 18px;
}
.sidebox .button {
  font-size: 12px;
  width: 100%;
  margin-top: 8px;
}
.limit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.limit-grid div {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.limit-grid strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.5px;
}
.limit-grid span {
  font-size: 10px;
  color: var(--muted);
}
.back {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  margin: 29px 0 20px;
}
.detail .post h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.25;
}
.detail .post-body {
  font-size: 16px;
}
.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 18px;
}
.comments-head h2 {
  font-size: 19px;
  margin: 0;
}
.comment {
  border-left: 2px solid var(--border);
  padding: 5px 0 7px 18px;
  margin: 19px 0 0 7px;
}
.comment .post-meta {
  margin-bottom: 7px;
}
.comment p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.comment .post-actions {
  margin-top: 5px;
  gap: 16px;
}
.comment-children {
  margin-left: 0;
}
.pagination {
  display: block;
  margin: 23px auto;
}
.fine {
  font-size: 12px;
  color: var(--muted);
}
.demo-label {
  color: #6b722e;
  font-size: 11px;
  margin-bottom: 15px;
}
.empty {
  background: white;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 36px;
  text-align: center;
  color: var(--muted);
}
.prose {
  max-width: 780px;
  margin: 50px auto 0;
}
.prose h1 {
  font-size: 42px;
  letter-spacing: -1.5px;
}
.prose h2 {
  margin-top: 36px;
  font-size: 22px;
}
.prose p,
.prose li {
  font-size: 15px;
  color: var(--body);
  line-height: 1.8;
}
.prose li {
  margin-bottom: 7px;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
}
.callout {
  padding: 20px 23px;
  background: var(--tint);
  border-radius: 8px;
  margin: 25px 0;
}
.callout p:last-child {
  margin: 0;
}
pre {
  background: #142620;
  color: #e0ede6;
  padding: 22px;
  border-radius: 9px;
  overflow-x: auto;
  line-height: 1.7;
  font-size: 12px;
}
code {
  font-family: Consolas, monospace;
}
p code,
li code,
td code {
  background: var(--soft);
  font-size: 0.9em;
  padding: 2px 4px;
  border-radius: 3px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 12px 8px;
  vertical-align: top;
}
th {
  font-weight: 600;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 25px 0;
}
.stat {
  padding: 22px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 9px;
}
.stat strong {
  font-size: 25px;
  display: block;
  margin-bottom: 8px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.queue-item {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  margin-bottom: 13px;
}
.queue-item h3 {
  margin-bottom: 8px;
}
.queue-item pre {
  white-space: pre-wrap;
  max-height: 240px;
}
.queue-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.queue-actions button {
  padding: 9px 12px;
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 6px;
  color: var(--accent);
  font-size: 12px;
}
.status-pill {
  display: inline-block;
  border-radius: 5px;
  background: var(--soft);
  padding: 5px 8px;
  font-size: 11px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 490px;
  width: calc(100% - 32px);
  padding: 26px;
  color: var(--text);
}
dialog::backdrop {
  background: #10251c70;
}
.dialog-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.dialog-title h2 {
  margin: 0;
}
.dialog-title button {
  background: none;
  border: 0;
  font-size: 27px;
  color: var(--muted);
}
dialog p {
  font-size: 13px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 12px;
  color: var(--body);
  margin: 17px 0;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px;
  background: white;
  color: var(--text);
}
textarea {
  resize: vertical;
}
.error {
  color: #9d382f !important;
}
.loading {
  margin: 60px;
  color: var(--muted);
}
footer {
  max-width: 1152px;
  margin: 0 auto;
  padding: 25px 0 35px;
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
footer span {
  margin-right: auto;
}
footer > a:first-child {
  font-weight: 700;
  color: var(--accent);
}
@media (max-width: 900px) {
  header {
    gap: 25px;
    padding: 0 24px;
  }
  .hero {
    gap: 35px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 23px;
  }
  .hero-aside {
    padding: 20px;
  }
  footer {
    margin: 0 24px;
  }
  .post {
    padding: 20px;
  }
}
@media (max-width: 650px) {
  header {
    height: 61px;
    padding: 0 16px;
    gap: 20px;
  }
  .brand {
    font-size: 20px;
    gap: 7px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .beta {
    display: none;
  }
  nav {
    gap: 17px;
    font-size: 12px;
  }
  nav a {
    padding: 22px 0;
  }
  .admin-link {
    display: none;
  }
  main {
    padding: 0 16px 40px;
  }
  #notice {
    font-size: 10px;
    padding: 8px 12px;
  }
  .hero {
    display: block;
    padding: 41px 0 32px;
  }
  .hero h1 {
    font-size: 43px;
    letter-spacing: -1.8px;
  }
  .hero p {
    font-size: 15px;
  }
  .hero-aside {
    margin-top: 33px;
    padding: 19px 22px;
  }
  .hero-aside h3 {
    margin-bottom: 5px;
  }
  .hero-aside .step {
    padding: 13px 0;
  }
  .hero-aside .step p {
    font-size: 12px;
  }
  .eyebrow {
    margin-bottom: 17px;
  }
  .layout {
    display: block;
  }
  .layout > aside {
    margin-top: 30px;
  }
  .sidebox {
    padding-top: 20px;
  }
  .post {
    padding: 19px 17px;
    border-radius: 8px;
  }
  .post h3 {
    font-size: 17px;
  }
  .post-body {
    font-size: 13px;
  }
  .post-actions {
    gap: 18px;
  }
  .post-actions .reviewed {
    font-size: 9px;
  }
  .section-top {
    padding-top: 19px;
  }
  .section-top h2 {
    font-size: 21px;
  }
  .feed-title {
    padding-top: 28px;
  }
  .feed-title h1 {
    font-size: 32px;
  }
  .comment {
    padding-left: 12px;
    margin-left: 3px;
  }
  .comment p {
    font-size: 13px;
  }
  .detail .post h1 {
    font-size: 25px;
  }
  .detail .post-body {
    font-size: 14px;
  }
  .prose {
    margin-top: 32px;
  }
  .prose h1 {
    font-size: 34px;
  }
  .prose p,
  .prose li {
    font-size: 14px;
  }
  .stat-cards {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 16px;
  }
  footer {
    gap: 14px;
    margin: 0 16px;
    padding-top: 22px;
  }
  footer span {
    width: 65%;
    margin-right: 0;
  }
  dialog {
    padding: 22px;
  }
}
