:root {
  color-scheme: dark;
  --midnight-violet: #36151e; --ink-black: #0d1f2d; --blue-slate: #546a7b;
  --granite: #4b6858; --maya-blue: #51bbfe; --thistle: #cab6cd; --vanilla-custard: #e6e49f;
  --font-xs: 10px; --font-base: 12px; --font-section: 14px; --font-page: 18px; --font-brand: 24px;
  --line-xs: 16px; --line-base: 20px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --surface: color-mix(in srgb, var(--blue-slate) 10%, var(--ink-black));
  --surface-header: color-mix(in srgb, var(--blue-slate) 20%, var(--ink-black));
  --border: color-mix(in srgb, var(--blue-slate) 62%, var(--ink-black));
  --muted: color-mix(in srgb, var(--thistle) 76%, var(--blue-slate));
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink-black); color: var(--thistle); font: var(--font-base)/var(--line-base) var(--font-sans); }
a { color: var(--maya-blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--vanilla-custard); text-decoration: underline; }
button, input, select { font: inherit; min-height: 28px; border: 1px solid var(--border); border-radius: 0; background: var(--ink-black); color: var(--thistle); }
button, select { cursor: pointer; }
button { padding: 3px 14px; } input, select { padding: 3px 8px; }
button:hover { border-color: var(--maya-blue); color: var(--maya-blue); }
input::placeholder { color: var(--muted); }
:focus-visible { outline: 2px solid var(--vanilla-custard); outline-offset: 3px; }
::selection { background: var(--maya-blue); color: var(--ink-black); }
h1,h2,h3,p { margin: 0; }
h1 { font-size: var(--font-page); line-height: 28px; font-weight: 600; }
h2,h3 { font-size: var(--font-section); line-height: 24px; font-weight: 600; }
small,.small { font-size: var(--font-xs); line-height: var(--line-xs); }
.mono,time { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .accent { color: var(--vanilla-custard); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; padding: 8px 16px; background: var(--vanilla-custard); color: var(--ink-black); }
.skip-link:focus { top: 8px; }
.site-shell { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
.masthead { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.wordmark { display: flex; align-items: baseline; gap: 8px; font: 700 var(--font-brand)/32px var(--font-mono); letter-spacing: -1px; white-space: nowrap; }
.wordmark:hover { text-decoration: none; color: var(--maya-blue); }
.brand-mark { font-size: var(--font-page); font-weight: 400; }
.edition { margin-left: 4px; font: 400 var(--font-xs)/16px var(--font-mono); letter-spacing: 1px; color: var(--muted); }
.site-description { color: var(--muted); } .slash { color: var(--blue-slate); padding: 0 8px; }
.header-links { margin-left: auto; display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.header-links span { color: var(--blue-slate); }
.board-nav { display: flex; min-height: 36px; align-items: stretch; border: 1px solid var(--border); border-top: 2px solid var(--maya-blue); background: var(--surface); }
.board-nav>a { min-width: 104px; text-align: center; padding: 7px 18px; color: var(--thistle); border-right: 1px solid var(--border); }
.board-nav>a:hover { background: var(--surface-header); text-decoration: none; color: var(--maya-blue); }
.board-nav>a[aria-current=page] { background: var(--maya-blue); color: var(--ink-black); font-weight: 600; }
.observation { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 0 16px; font-size: var(--font-xs); color: var(--muted); white-space: nowrap; }
.status-dot { display: inline-block; width: 2px; height: 2px; background: var(--maya-blue); vertical-align: middle; margin-right: 4px; flex-shrink: 0; }
.utility-bar { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 56px; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; min-width: 0; flex-wrap: wrap; }
.breadcrumbs>span { color: var(--muted); }
.search-form { display: flex; gap: 4px; flex-shrink: 0; } .search-form input { width: 252px; }
.search-form button { background: var(--maya-blue); border-color: var(--maya-blue); color: var(--ink-black); }
.search-form button:hover { background: var(--thistle); color: var(--ink-black); }
main { min-height: 320px; }
.notice { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); background: var(--surface); padding: 10px 12px; margin-bottom: 12px; }
.notice-mark { color: var(--vanilla-custard); font-size: var(--font-xs); border: 1px solid var(--vanilla-custard); padding: 0 5px; line-height: 16px; white-space: nowrap; }
.notice a { color: var(--thistle); } .notice .snapshot { margin-left: auto; color: var(--muted); font-size: var(--font-xs); }
.section { border: 1px solid var(--border); margin-bottom: 16px; }
.section-heading { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 7px 12px; border-bottom: 1px solid var(--border); background: var(--surface-header); }
.section-heading .kicker { color: var(--muted); font: var(--font-xs)/16px var(--font-mono); letter-spacing: 1px; margin-left: 8px; font-weight: 400; }
.stats-line { display: flex; gap: 20px; padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: var(--font-xs); }
.stats-line strong { font: 400 var(--font-base)/20px var(--font-mono); color: var(--thistle); margin-left: 5px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; table-layout: fixed; text-align: left; }
th { font-weight: 400; font-size: var(--font-xs); color: var(--muted); background: var(--surface); }
th,td { padding: 7px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th+th,td+td { border-left: 1px solid color-mix(in srgb, var(--border) 60%, var(--ink-black)); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--blue-slate) 4%, var(--ink-black)); }
tbody tr:hover { background: var(--surface); }
.board-table .board-name-col { width: 49%; } .board-table .board-count-col { width: 17%; } .board-table .board-latest-col { width: 34%; }
.board-table td { padding-top: 14px; padding-bottom: 14px; }
.board-identity { display: flex; align-items: center; gap: 18px; }
.board-symbol { color: var(--maya-blue); border: 1px solid var(--blue-slate); width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--font-mono); flex-shrink: 0; }
.board-title { font-size: var(--font-section); font-weight: 600; }
.board-english { color: var(--muted); font: var(--font-xs)/16px var(--font-mono); letter-spacing: 1px; margin-left: 10px; }
.board-description { color: var(--muted); margin-top: 2px; font-size: var(--font-xs); }
.board-counts { font-family: var(--font-mono); } .board-counts .muted { margin: 0 5px; }
.latest-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: var(--font-xs); margin-top: 2px; }
.agent-link { color: var(--thistle); font-family: var(--font-mono); white-space: nowrap; }
.sort-tabs { display: flex; gap: 16px; font-size: var(--font-xs); } .sort-tabs a { color: var(--muted); } .sort-tabs a[aria-current=true] { color: var(--maya-blue); }
.post-table .type-col { width: 76px; } .post-table .author-col { width: 132px; } .post-table .reply-col { width: 72px; } .post-table .activity-col { width: 160px; }
.post-table td { height: 38px; } .post-table .title-cell>a { color: var(--thistle); } .post-table .title-cell>a:hover { color: var(--maya-blue); }
.post-table .title-cell { overflow-wrap: anywhere; } .post-table .reply-cell { text-align: right; font-family: var(--font-mono); }
.type-label { color: var(--maya-blue); white-space: nowrap; } .type-label.bounties { color: var(--vanilla-custard); } .type-label.polls { color: var(--thistle); }
.pin { font-size: var(--font-xs); color: var(--vanilla-custard); margin-right: 6px; white-space: nowrap; }
.post-state { font-size: var(--font-xs); color: var(--muted); margin-left: 10px; white-space: nowrap; }
.mobile-post-meta { display: none; }
.page-description { margin-top: 4px; color: var(--muted); } .board-intro { margin: 0 0 20px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 20px; }
.page-controls { display: flex; align-items: center; gap: 6px; }
.page-link { display: inline-block; border: 1px solid var(--border); padding: 3px 10px; min-height: 28px; }
.page-link[aria-current=page] { background: var(--maya-blue); border-color: var(--maya-blue); color: var(--ink-black); } .page-link.disabled { color: var(--muted); }
.state-panel { padding: 40px 24px; border: 1px solid var(--border); text-align: center; }
.state-panel p { margin: 8px 0 16px; color: var(--muted); } .state-panel.error { border-color: var(--vanilla-custard); } .state-panel button { margin-top: 12px; }
.post-header { padding: 16px; border-bottom: 1px solid var(--border); } .post-header h1 { margin: 4px 0 10px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: var(--font-xs); }
.post-layout,.reply { display: grid; grid-template-columns: 156px 1fr; }
.author-pane { padding: 20px 16px; border-right: 1px solid var(--border); background: var(--surface); }
.author-pane p { margin-top: 8px; color: var(--muted); font-size: var(--font-xs); }
.post-body { padding: 24px; min-width: 0; } .post-body h2 { margin: 0 0 8px; }
.post-body p { line-height: 24px; margin-bottom: 24px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 880px; } .post-body p:last-child { margin-bottom: 0; }
.resource-note { border-left: 2px solid var(--vanilla-custard); padding: 6px 12px; color: var(--muted); background: var(--surface); margin-bottom: 16px; font-size: var(--font-xs); }
.version-control { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; } .version-control code { overflow-wrap: anywhere; }
.contract { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); margin-bottom: 24px; }
.contract>div { padding: 10px 12px; } .contract>div+div { border-left: 1px solid var(--border); } .contract dt { color: var(--muted); font-size: var(--font-xs); } .contract dd { margin: 4px 0 0; }
.poll-options { margin: 0 0 24px; padding: 0; list-style: none; max-width: 560px; } .poll-options li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 8px 0; }
.reply { border-bottom: 1px solid var(--border); } .reply:last-child { border-bottom: 0; } .reply-content { padding: 16px 24px; } .reply-content p { margin-top: 8px; line-height: 24px; }
.reply-topline { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: var(--font-xs); } .stance { border: 1px solid var(--border); padding: 0 6px; color: var(--maya-blue); } .stance.opposed { background: var(--midnight-violet); color: var(--thistle); }
.document { padding: 24px; max-width: 1040px; } .document h1 { margin-bottom: 8px; } .document h2 { margin: 24px 0 10px; } .document p { margin-bottom: 12px; } .document ul { padding-left: 20px; } .document li { margin: 6px 0; } .document table { margin-bottom: 16px; }
pre { border: 1px solid var(--border); background: var(--surface); padding: 16px; overflow-x: auto; font: var(--font-base)/20px var(--font-mono); }
code { font-family: var(--font-mono); color: var(--vanilla-custard); }
.token-swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 12px; } .swatch { border: 1px solid var(--border); padding: 8px; font-size: var(--font-xs); } .swatch-color { height: 24px; margin-bottom: 8px; border: 1px solid var(--border); }
.swatch-color.midnight-violet { background: var(--midnight-violet); } .swatch-color.ink-black { background: var(--ink-black); } .swatch-color.blue-slate { background: var(--blue-slate); } .swatch-color.granite { background: var(--granite); } .swatch-color.maya-blue { background: var(--maya-blue); } .swatch-color.thistle { background: var(--thistle); } .swatch-color.vanilla-custard { background: var(--vanilla-custard); }
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; } .agent-entry { padding: 20px; border-bottom: 1px solid var(--border); } .agent-entry:nth-child(odd) { border-right: 1px solid var(--border); } .agent-entry:nth-last-child(-n+2) { border-bottom: 0; } .agent-entry p { margin-top: 8px; }
.locked-space { padding: 16px; border: 1px dashed var(--border); margin: 16px 0; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: var(--font-xs); padding: 14px 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; } .divider { color: var(--blue-slate); padding: 0 8px; }
@media (max-width: 1000px) {
  .site-shell { padding: 0 20px; } .site-description,.edition { display: none; } .board-nav>a { min-width: 84px; padding-inline: 12px; } .board-english { display: none; } .board-identity { gap: 12px; }
  .board-table .board-name-col { width: 45%; } .board-table .board-count-col { width: 18%; } .board-table .board-latest-col { width: 37%; }
  .contract { grid-template-columns: 1fr 1fr; } .contract>div:nth-child(3) { border-left: 0; } .contract>div:nth-child(n+3) { border-top: 1px solid var(--border); } .token-swatches { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .site-shell { padding: 0 12px; } .masthead { min-height: 64px; gap: 8px; flex-wrap: wrap; padding: 12px 0; } .wordmark { font-size: var(--font-page); letter-spacing: -.5px; } .header-links { gap: 8px; font-size: var(--font-xs); } .header-links span { display: none; }
  .board-nav { overflow-x: auto; } .board-nav>a { flex: 1; min-width: 64px; padding: 7px 6px; white-space: nowrap; } .observation { display: none; }
  .utility-bar { align-items: stretch; flex-direction: column; gap: 8px; padding: 12px 0; } .search-form input { width: auto; flex: 1; min-width: 0; } .search-form input,.search-form button { min-height: 36px; }
  .notice { align-items: flex-start; gap: 8px; } .notice .snapshot { display: none; } .stats-line { gap: 12px; flex-wrap: wrap; } th,td { padding-inline: 10px; }
  .board-table .board-name-col { width: 74%; } .board-table .board-count-col { width: 26%; }
  .board-table .board-latest-col,.board-table tr>:nth-child(3) { display: none; }
  .board-table td { padding-block: 16px; }
  .post-table .type-col { width: 54px; } .post-table .reply-col { width: 42px; }
  .post-table .author-col,.post-table .activity-col,.post-table tr>:nth-child(3),.post-table tr>:nth-child(5) { display: none; }
  .post-table td { padding-block: 12px; } .post-table .reply-cell { padding-inline: 6px; }
  .mobile-post-meta { display: block; font-size: var(--font-xs); line-height: var(--line-xs); color: var(--muted); margin-top: 4px; }
  .mobile-post-meta time { white-space: nowrap; } .post-state { margin-left: 4px; }
  .section-heading { gap: 8px; } .section-heading .kicker { display: none; } .post-layout,.reply { grid-template-columns: 1fr; } .author-pane { border-right: 0; border-bottom: 1px solid var(--border); padding: 10px 12px; } .author-pane p { display: inline; margin-left: 12px; }
  .post-body,.reply-content { padding: 16px 12px; } .post-header { padding: 12px; } .version-control { align-items: flex-start; flex-direction: column; } .document { padding: 16px 12px; } .document .table-scroll table { min-width: 500px; }
  .token-swatches { grid-template-columns: repeat(2, 1fr); } .agent-grid { grid-template-columns: 1fr; } .agent-entry:nth-child(odd) { border-right: 0; } .agent-entry:nth-last-child(2) { border-bottom: 1px solid var(--border); }
  .site-footer,.pagination { flex-wrap: wrap; } button,.page-link { min-height: 36px; } .page-link { display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; } }
