/* ============================================================
   tell me more — stylesheet
   plain text aesthetic. three colors. nothing else.
   ============================================================ */

/* --- Reset & base ------------------------------------------ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font: 'Courier New', Courier, monospace;
  --font-size: 15px;
  --line-height: 1.65;

  --bg:        #f9f9f7;
  --surface:   #ffffff;
  --border:    #d4d4d0;
  --text:      #1a1a18;
  --muted:     #6b6b65;
  --link:      #1a1a18;
  --link-hover:#444440;

  /* R color — rose tint */
  --color-r-bg:     #fff0ee;
  --color-r-border: #f0c0bb;
  --color-r-text:   #8b2020;

  /* G color — sage tint */
  --color-g-bg:     #eff7f0;
  --color-g-border: #b8d8bc;
  --color-g-text:   #1e5c28;

  /* B color — sky tint */
  --color-b-bg:     #eff4ff;
  --color-b-border: #b8ccf0;
  --color-b-text:   #1a3a8b;

  --max-width: 680px;
  --gap: 1.5rem;
}

html {
  font-size: var(--font-size);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: var(--line-height);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:hover {
  color: var(--link-hover);
}

/* --- Layout ------------------------------------------------- */

header {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  background: var(--surface);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  font-weight: bold;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-title:hover {
  text-decoration: underline;
}

.nav-links {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-left: auto;
  font-size: 0.9rem;
}

.nav-identity {
  font-weight: bold;
  text-decoration: none;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

.nav-identity:hover {
  text-decoration: underline;
}

main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--gap) 1.5rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
}

/* --- Flash messages ----------------------------------------- */

.flash-messages {
  margin-bottom: var(--gap);
}

.flash {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.flash-error {
  border-color: var(--color-r-border);
  background: var(--color-r-bg);
  color: var(--color-r-text);
}

.flash-info {
  border-color: var(--color-b-border);
  background: var(--color-b-bg);
  color: var(--color-b-text);
}

/* --- Color system ------------------------------------------- */

/* Text/badge colors */
.color-r { color: var(--color-r-text); }
.color-g { color: var(--color-g-text); }
.color-b { color: var(--color-b-text); }

/* Generic color backgrounds — for elements other than post cards
   (e.g. signup color-swatches). Lower specificity than the
   .post-card combo below, so post cards still win there. */
.color-bg-r { background: var(--color-r-bg); border-color: var(--color-r-border); }
.color-bg-g { background: var(--color-g-bg); border-color: var(--color-g-border); }
.color-bg-b { background: var(--color-b-bg); border-color: var(--color-b-border); }

/* Post card background tints — combined selector beats .post-card alone
   regardless of source order, so the color always wins. */
.post-card.color-bg-r {
  background: var(--color-r-bg);
  border-color: var(--color-r-border);
}
.post-card.color-bg-g {
  background: var(--color-g-bg);
  border-color: var(--color-g-border);
}
.post-card.color-bg-b {
  background: var(--color-b-bg);
  border-color: var(--color-b-border);
}

/* --- Feed --------------------------------------------------- */

.feed-header {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.sort-controls a {
  color: var(--muted);
}

.sort-controls a.active {
  color: var(--text);
  font-weight: bold;
  text-decoration: none;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- Post cards --------------------------------------------- */

.post-card {
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  background: var(--surface);
}

/* color-bg-* overrides background above when set */

.post-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: baseline;
}

.author-tag {
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
}

.author-tag:hover {
  text-decoration: underline;
}

.author-tmm-badge {
  font-size: 0.8rem;
  color: var(--muted);
}

.sequence-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.post-date {
  margin-left: auto;
  font-size: 0.8rem;
}

.post-content {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.7rem;
  word-break: break-word;
}

.thread-link {
  color: var(--text);
  text-decoration: none;
}

.thread-link:hover {
  text-decoration: underline;
}

.post-footer {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.thread-depth {
  font-size: 0.8rem;
}

.read-thread {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

/* --- Thread view -------------------------------------------- */

.thread-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.thread-total-tmm {
  font-size: 0.85rem;
}

.thread {
  display: flex;
  flex-direction: column;
}

.thread-connector {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  padding: 0.15rem 0;
  line-height: 1;
}

/* TMM button */
.tmm-button {
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text);
  background: none;
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  line-height: 1.4;
}

.tmm-button:hover:not(:disabled) {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.tmm-button:disabled,
.tmm-button.tmm-done {
  opacity: 0.55;
  cursor: default;
}

.tmm-display {
  font-size: 0.85rem;
  color: var(--muted);
}

.tmm-login-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Reply section */
.reply-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.reply-section h3 {
  font-size: 0.95rem;
  font-weight: normal;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.locked-message {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* --- Forms -------------------------------------------------- */

.form-page {
  max-width: 420px;
}

.form-page h2 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.form-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.field input {
  font-family: var(--font);
  font-size: 0.95rem;
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  line-height: 1.4;
}

.field input:focus {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

button[type="submit"],
.button-link {
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  padding: 0.4rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
  margin-top: 0.4rem;
}

button[type="submit"]:hover:not(:disabled),
.button-link:hover {
  background: var(--bg);
  color: var(--text);
}

button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: default;
}

.form-footer {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Inline form (logout button in nav) */
.inline-form {
  display: inline;
}

.link-button {
  font-family: var(--font);
  font-size: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  color: var(--link);
}

.link-button:hover {
  color: var(--link-hover);
}

/* --- Textarea & word counter -------------------------------- */

.word-counter-wrap {
  position: relative;
  margin-bottom: 0.6rem;
}

textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  line-height: 1.55;
}

textarea:focus {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

.word-count {
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.word-count.over-limit {
  color: var(--color-r-text);
  font-weight: bold;
}

/* --- Profile ------------------------------------------------ */

.profile-header {
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.profile-identity {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.profile-badge {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.profile-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Signup success ----------------------------------------- */

.identity-reveal {
  border: 1px solid var(--border);
  padding: 1.1rem 1.2rem;
  margin: 1rem 0;
  font-size: 1.05rem;
}

.identity-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.4rem;
  align-items: baseline;
}

.identity-row:last-child {
  margin-bottom: 0;
}

.identity-label {
  color: var(--muted);
  font-size: 0.88rem;
  min-width: 6rem;
}

.identity-value {
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

.identity-warning {
  border: 1px solid var(--color-r-border);
  background: var(--color-r-bg);
  color: var(--color-r-text);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.identity-warning p + p {
  margin-top: 0.4rem;
}

/* --- Support page ------------------------------------------- */

.support-button {
  margin: 1.25rem 0;
  font-size: 1rem;
  padding: 0.55rem 1.2rem;
}

.form-page p + p {
  margin-top: 0.75rem;
}

/* --- Empty state -------------------------------------------- */

.empty-state {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2rem 0;
}

.empty-state p + p {
  margin-top: 0.5rem;
}

/* --- Responsive --------------------------------------------- */

@media (max-width: 600px) {
  /* Bump the base size — everything using rem scales up proportionally,
     so badges, meta text, and buttons all become easier to read and tap. */
  :root {
    --font-size: 17px;
    --line-height: 1.7;
  }

  header, main, footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-links {
    gap: 0.6rem;
    font-size: 0.9rem;
  }

  .post-date {
    display: none;
  }

  /* The actual post text is what people are here to read —
     give it a bit more room than the base bump alone provides. */
  .post-content {
    font-size: 1.08rem;
    line-height: 1.65;
  }

  /* Larger tap targets for the main interactive buttons. */
  .tmm-button,
  .flag-button,
  .flag-reason-btn,
  .flag-cancel,
  button[type="submit"],
  .button-link {
    padding: 0.45rem 0.85rem;
    font-size: 0.95rem;
  }

  /* iOS Safari zooms in on focus if a form field is under 16px.
     Force 16px regardless of the base size above to prevent that. */
  textarea,
  input,
  select {
    font-size: 16px;
  }

  /* Nav badges (tmm / tokens) can wrap awkwardly at narrow widths —
     let them shrink slightly and wrap onto their own line if needed. */
  .nav-badge {
    font-size: 0.8rem;
  }

  /* Footer explanation text is long — keep it readable but compact. */
  .footer-explanation {
    font-size: 0.82rem;
    line-height: 1.5;
  }
}



/* --- Color picker (signup) ---------------------------------- */

.form-page-wide {
  max-width: 520px;
}

.field-group {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  margin-bottom: 0.9rem;
}

.field-group legend {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0 0.3rem;
}

.color-choices {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.color-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.color-choice input[type="radio"] {
  cursor: pointer;
}

.color-choice-sample {
  display: inline-block;
  width: 1.8rem;
  height: 1rem;
  border: 1px solid var(--border);
}

/* --- Radio labels ------------------------------------------ */

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

/* --- Recovery section (signup) ----------------------------- */

.recovery-section {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.recovery-section summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  list-style: none;
}

.recovery-section summary::-webkit-details-marker { display: none; }

.recovery-section summary::before {
  content: '+ ';
}

.recovery-section[open] summary::before {
  content: '- ';
}

.recovery-section .form-hint {
  margin-top: 0.75rem;
}

.recovery-section .field {
  margin-top: 0.6rem;
}

.recovery-section select {
  font-family: var(--font);
  font-size: 0.9rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.muted {
  color: var(--muted);
}

/* --- Rules page -------------------------------------------- */

.rules-page {
  max-width: 560px;
}

.rules-page h2 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.rule-block {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.1rem;
  align-items: flex-start;
}

.rule-number {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--muted);
  min-width: 1.5rem;
  line-height: 1.4;
}

.rule-body {
  font-size: 0.95rem;
  line-height: 1.65;
}

.rule-body strong {
  display: block;
  margin-bottom: 0.2rem;
}

.rules-cta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}


/* --- Nav search bar ---------------------------------------- */

.nav-top {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-form {
  display: flex;
  gap: 0.3rem;
  flex: 1;
  min-width: 160px;
  max-width: 280px;
}

.search-form input[type="search"] {
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.search-form button {
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  cursor: pointer;
  white-space: nowrap;
}

/* --- Nav badges: tmm (reputation) vs tokens (spendable) ----- */

.nav-badge {
  font-size: 0.85rem;
  cursor: default;
  border: 1px solid var(--border);
  padding: 0.1rem 0.35rem;
}

.nav-tmm {
  color: var(--muted);
}

.nav-tokens {
  color: var(--text);
  font-weight: bold;
}

.nav-tokens-low {
  color: var(--color-r-text);
  border-color: var(--color-r-border);
  background: var(--color-r-bg);
}

.nav-tokens-empty {
  color: var(--color-r-text);
  border-color: var(--color-r-border);
  background: var(--color-r-bg);
  font-weight: bold;
}

/* --- Balance hint (new post / thread) ---------------------- */

.balance-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* --- Flag button & menu ------------------------------------ */

.flag-button {
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  cursor: pointer;
  line-height: 1.4;
}

.flag-button:hover:not(:disabled) {
  color: var(--color-r-text);
  border-color: var(--color-r-border);
}

.flag-button.flag-done {
  opacity: 0.5;
  cursor: default;
}

.flag-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.3rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-r-border);
  background: var(--color-r-bg);
  font-size: 0.82rem;
}

.flag-menu-label {
  color: var(--muted);
  margin-right: 0.2rem;
}

.flag-reason-btn {
  font-family: var(--font);
  font-size: 0.8rem;
  background: none;
  border: 1px solid var(--color-r-border);
  color: var(--color-r-text);
  padding: 0.15rem 0.4rem;
  cursor: pointer;
}

.flag-reason-btn:hover {
  background: var(--color-r-text);
  color: var(--bg);
}

.flag-cancel {
  font-family: var(--font);
  font-size: 0.8rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  margin-left: 0.3rem;
}

/* --- Search page ------------------------------------------- */

.search-page h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.search-form-page {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  max-width: 480px;
}

.search-form-page input[type="search"] {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  flex: 1;
}

.search-form-page input:focus {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

.search-form-page button {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  cursor: pointer;
}

.search-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

/* --- Privacy / policy pages -------------------------------- */

.policy-block {
  margin-bottom: 1.4rem;
}

.policy-block h3 {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.policy-block p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 0.4rem;
}

/* --- Footer links ------------------------------------------ */

footer {
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.footer-links {
  font-size: 0.82rem;
}

/* --- Admin page -------------------------------------------- */

.admin-page h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.admin-flag-count {
  font-size: 0.85rem;
  color: var(--color-r-text);
  font-weight: bold;
}


/* --- Pagination -------------------------------------------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.pagination a {
  color: var(--text);
}

.page-info {
  color: var(--muted);
  font-size: 0.85rem;
}

/* --- Admin stats ------------------------------------------- */

.admin-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4rem;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: bold;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-page h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

/* --- Danger button ----------------------------------------- */

.button-danger {
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--color-r-text);
  color: #fff;
  border: 1px solid var(--color-r-text);
  padding: 0.4rem 1rem;
  cursor: pointer;
  display: inline-block;
  line-height: 1.4;
  margin-top: 0.4rem;
  text-decoration: none;
}

.button-danger:hover {
  background: #6a0f0f;
  border-color: #6a0f0f;
  color: #fff;
}

.danger-link {
  color: var(--color-r-text) !important;
}

/* --- Footer fix -------------------------------------------- */

footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-explanation {
  font-size: 0.85rem;
}

.footer-links {
  font-size: 0.82rem;
}

.footer-links a {
  color: var(--muted);
}


/* --- Admin action buttons ---------------------------------- */

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  align-items: center;
}

.admin-btn {
  font-family: var(--font);
  font-size: 0.82rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.5;
  background: none;
  color: var(--text);
}

.admin-btn-view {
  color: var(--muted);
  border-color: var(--border);
}

.admin-btn-view:hover {
  color: var(--text);
}

.admin-btn-dismiss {
  color: var(--color-g-text);
  border-color: var(--color-g-border);
  background: var(--color-g-bg);
}

.admin-btn-dismiss:hover {
  background: var(--color-g-text);
  color: #fff;
  border-color: var(--color-g-text);
}

.admin-btn-delete {
  color: var(--color-r-text);
  border-color: var(--color-r-border);
  background: var(--color-r-bg);
}

.admin-btn-delete:hover {
  background: var(--color-r-text);
  color: #fff;
  border-color: var(--color-r-text);
}


/* --- Draft posts (write-ahead feature) ---------------------- */

.draft-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.draft-section h3 {
  font-size: 0.95rem;
  font-weight: normal;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.draft-card {
  opacity: 0.75;
  border-style: dashed;
  margin-bottom: 0.6rem;
}

.draft-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* --- Newly revealed post (instant unlock via AJAX) ---------- */

.newly-revealed {
  animation: reveal-flash 1.4s ease-out;
}

@keyframes reveal-flash {
  0%   { box-shadow: 0 0 0 3px var(--color-g-border); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.newly-revealed-tag {
  font-size: 0.78rem;
  color: var(--color-g-text);
  font-style: italic;
  margin-left: auto;
}

/* --- Analytics page ----------------------------------------- */

.analytics-page h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.analytics-page h3 {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.5rem 0 0.6rem;
}

.analytics-totals {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.analytics-bar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.analytics-bar-label {
  min-width: 6rem;
  color: var(--muted);
  text-align: right;
}

.analytics-bar-track {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  height: 0.9rem;
  position: relative;
}

.analytics-bar-fill {
  background: var(--text);
  height: 100%;
}

.analytics-bar-fill.fill-threads { background: var(--color-b-text); }
.analytics-bar-fill.fill-replies { background: var(--color-g-text); }

.analytics-bar-value {
  min-width: 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.analytics-legend {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.legend-swatch {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.3rem;
  vertical-align: middle;
}
