
:root {
  color-scheme: dark;
  --background: #060708;
  --surface: #0f1113;
  --surface-2: #14171a;
  --field: #0b0d0f;
  --foreground: #c6ccd3;
  --muted: #8c939b;
  --line: #262b31;
  --line-strong: #373e46;
  --chrome: #aeb5bd;
  --chrome-soft: #8e959d;
  --measure: 760px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--background); }
body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.03), transparent 38%),
    linear-gradient(180deg, #08090a 0%, #060708 100%);
  color: var(--foreground);
  line-height: 1.65;
}
main { width: min(calc(100% - 40px), var(--measure)); margin: 56px auto 88px; }
header {
  white-space: pre-wrap;
  margin: 0 0 32px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.28;
  font-weight: 650;
  letter-spacing: -.025em;
  margin: 0 0 20px;
  overflow-wrap: anywhere;
  color: #d2d8df;
}
h2 { font-size: .95rem; font-weight: 650; margin: 0; color: #b9c0c7; }
label { display: block; font-size: .85rem; font-weight: 550; color: var(--muted); margin: 15px 0 6px; }
input, textarea, select, button { font: inherit; color: inherit; }
input, textarea, select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: linear-gradient(180deg, #0d1012, #0b0d0f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
input::placeholder, textarea::placeholder { color: #788089; opacity: 1; }
textarea { resize: vertical; min-height: 120px; display: block; }
button {
  cursor: pointer;
  border: 1px solid #757d86;
  background: linear-gradient(180deg, #aeb5bc, #8a9198);
  color: #0d1013;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: .875rem;
  font-weight: 650;
  min-height: 40px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
button:hover:not(:disabled) { background: linear-gradient(180deg, #bcc3ca, #949ca4); }
button:active:not(:disabled) { background: linear-gradient(180deg, #8f969d, #7e858d); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.plain {
  padding: 6px 0;
  background: none;
  color: #9ca3ab;
  border: 0;
  min-height: 32px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}
button.plain:hover:not(:disabled), button.plain:active:not(:disabled) {
  background: none;
  color: #d0d6dc;
  text-decoration: underline;
  text-underline-offset: 3px;
}
:focus-visible { outline: 2px solid #bcc3ca; outline-offset: 3px; }
::selection { background: #afb6be; color: #090b0d; }
#composer {
  padding: 20px;
  background: linear-gradient(180deg, rgba(20,23,26,.94), rgba(14,16,18,.98));
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.025);
}
#composer > label:first-of-type { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
#submit-status, #load-status, .muted, #reply-context { color: var(--muted); font-size: .85rem; }
#load-status:empty { display: none; }
#reply-context {
  border-left: 2px solid #5d646d;
  padding-left: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  overflow-wrap: anywhere;
}
#thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--line);
}
#thread > .muted {
  padding: 14px 16px;
  margin: 12px 0;
  background: linear-gradient(180deg, #101316, #0e1012);
  border: 1px solid var(--line);
  border-radius: 7px;
}
article {
  padding: 16px 18px 12px;
  margin-top: 10px;
  background: linear-gradient(180deg, rgba(18,20,23,.96), rgba(13,15,17,.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
article .meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
article strong { font-size: .875rem; font-weight: 650; color: #d0d6dd; }
article time { font-size: .75rem; color: var(--muted); }
article p { white-space: pre-wrap; margin: 8px 0 5px; font-size: .95rem; }
article.reply {
  margin-left: calc(var(--depth, 1) * 20px);
  border-left: 2px solid #4e555d;
  padding-left: 16px;
  background: linear-gradient(180deg, rgba(15,17,19,.98), rgba(11,13,15,.98));
}
.topic-picker { margin-bottom: 22px; }
#captcha { margin-top: 16px; max-width: 100%; }
@media (max-width: 480px) {
  main { width: calc(100% - 28px); margin: 28px auto 56px; }
  header { margin-bottom: 24px; padding-bottom: 24px; }
  #composer { padding: 14px; }
  #thread-header { margin-top: 28px; }
  article { padding: 13px 12px 10px; }
  article.reply { margin-left: calc(var(--depth, 1) * 10px); padding-left: 10px; }
  button.plain { min-height: 40px; }
}

.masthead { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:24px; }
.wordmark { font-size:clamp(1.8rem,5vw,2.4rem); font-weight:650; letter-spacing:-.045em; color:#c5cbd2; line-height:1.15; }
.languages { display:flex; gap:4px; padding:3px; background:#0c0e10; border:1px solid #363c43; border-radius:6px; flex-shrink:0; }
.languages button { background:transparent; border:1px solid transparent; box-shadow:none; color:#a0a8b0; min-height:36px; min-width:42px; padding:4px 9px; }
.languages button[aria-pressed="true"] { background:#aeb5bd; color:#0b0d0f; border-color:#858d96; }
.languages button:hover:not(:disabled) { background:#24282d; color:#d2d8df; }
.languages button[aria-pressed="true"]:hover:not(:disabled) { background:#bec5cc; color:#0b0d0f; }
#intro { font-size:.97rem; line-height:1.75; color:#c6ccd3; }
.message-actions { display:flex; flex-wrap:wrap; gap:4px 18px; align-items:center; }
.translation { border-left:2px solid #626a73; padding:5px 12px; margin:10px 0; font-size:.9rem; color:#c6ccd3; }
.translation p { margin:4px 0; }
.translation-note { font-size:.78rem; color:#a0a8b0; }
#topic-translation { margin:-10px 0 15px; }
