:root,
.theme-menu__option[data-theme-option="light"] {
  color-scheme: light;
  --page-bg: #ffffff;
  --body-background: var(--page-bg);
  --ink: #0b3ea8;
  --ink-soft: #315fb9;
  --line: #b7c9ef;
  --panel: #f7faff;
  --input-bg: #ffffff;
  --button-bg: #f7faff;
  --button-alt-bg: #eef5ff;
  --feedback-ok-bg: #eef5ff;
  --feedback-error-bg: #fff3f3;
  --status-error: #8f1f1f;
  --status-ok: #1f5e2e;
  --status-warning: #9a6400;
  --active-bg: #dce8ff;
  --active-ink: #082f7f;
  --active-line: #4d79d8;
  --active-ring: rgba(11, 62, 168, 0.14);
  --body-font: Georgia, "Times New Roman", serif;
  --ui-font: "Trebuchet MS", "Segoe UI", sans-serif;
  --code-font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"],
.theme-menu__option[data-theme-option="dark"] {
  color-scheme: dark;
  --body-background: var(--page-bg);
  --page-bg: #0b1220;
  --ink: #d9e7ff;
  --ink-soft: #9fb8e8;
  --line: #344a73;
  --panel: #111b31;
  --input-bg: #0f1729;
  --button-bg: #16233d;
  --button-alt-bg: #1b2b49;
  --feedback-ok-bg: #13263f;
  --feedback-error-bg: #3a1a23;
  --status-error: #ffb7c3;
  --status-ok: #a7efb8;
  --status-warning: #f2c66d;
  --active-bg: #263858;
  --active-ink: #f3f8ff;
  --active-line: #86a9e8;
  --active-ring: rgba(134, 169, 232, 0.18);
}

:root[data-theme="console"],
.theme-menu__option[data-theme-option="console"] {
  color-scheme: dark;
  --page-bg: #08110a;
  --body-background:
    linear-gradient(180deg, rgba(20, 48, 24, 0.18) 0%, rgba(8, 17, 10, 0.92) 100%),
    #08110a;
  --ink: #9bff8a;
  --ink-soft: #69c96a;
  --line: #245128;
  --panel: rgba(8, 18, 10, 0.94);
  --input-bg: #09140b;
  --button-bg: #0d1a0f;
  --button-alt-bg: #112214;
  --feedback-ok-bg: #0d1c10;
  --feedback-error-bg: #251114;
  --status-error: #ff9fa6;
  --status-ok: #b8ff9b;
  --status-warning: #ffd76a;
  --active-bg: #17341b;
  --active-ink: #c5ffba;
  --active-line: #6fdc6b;
  --active-ring: rgba(155, 255, 138, 0.2);
  --body-font: "Lucida Console", "Courier New", monospace;
  --ui-font: "Lucida Console", "Courier New", monospace;
  --code-font: "Lucida Console", "Courier New", monospace;
}

:root[data-theme="lcd"],
.theme-menu__option[data-theme-option="lcd"] {
  color-scheme: light;
  --page-bg: #c5d1a4;
  --body-background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(108, 125, 80, 0.08) 100%),
    #c5d1a4;
  --ink: #273220;
  --ink-soft: #56634a;
  --line: #6e7f59;
  --panel: rgba(215, 225, 181, 0.92);
  --input-bg: #dfe8bc;
  --button-bg: #d4ddb0;
  --button-alt-bg: #c9d5a1;
  --feedback-ok-bg: #dce7b8;
  --feedback-error-bg: #e4d3b1;
  --status-error: #5f3d1c;
  --status-ok: #284d28;
  --status-warning: #745110;
  --active-bg: #b6c38f;
  --active-ink: #1f2919;
  --active-line: #4f6040;
  --active-ring: rgba(39, 50, 32, 0.16);
  --body-font: "Verdana", "Geneva", sans-serif;
  --ui-font: "Verdana", "Geneva", sans-serif;
  --code-font: "Lucida Console", "Courier New", monospace;
}

:root[data-theme="chicago"],
.theme-menu__option[data-theme-option="chicago"] {
  color-scheme: light;
  --page-bg: #008080;
  --body-background: linear-gradient(180deg, #008080 0%, #0a6d6d 100%);
  --ink: #111111;
  --ink-soft: #333333;
  --line: #7b7b7b;
  --panel: #c0c0c0;
  --input-bg: #ffffff;
  --button-bg: #c0c0c0;
  --button-alt-bg: #d4d0c8;
  --feedback-ok-bg: #d9f0f0;
  --feedback-error-bg: #f8dcdc;
  --status-error: #7a0000;
  --status-ok: #0d5f31;
  --status-warning: #8a5f00;
  --body-font: "MS Sans Serif", Tahoma, "Geneva", sans-serif;
  --ui-font: "MS Sans Serif", Tahoma, "Geneva", sans-serif;
  --code-font: "Courier New", monospace;
}

:root[data-theme="vapor"],
.theme-menu__option[data-theme-option="vapor"] {
  color-scheme: dark;
  --page-bg: #120021;
  --body-background:
    radial-gradient(circle at top, rgba(50, 246, 255, 0.2), transparent 38%),
    linear-gradient(180deg, #2b0b59 0%, #120021 38%, #090314 100%);
  --ink: #7afcff;
  --ink-soft: #ff9de2;
  --line: #ff71ce;
  --panel: rgba(33, 9, 63, 0.78);
  --input-bg: rgba(19, 4, 38, 0.9);
  --button-bg: rgba(255, 113, 206, 0.16);
  --button-alt-bg: rgba(122, 252, 255, 0.16);
  --feedback-ok-bg: rgba(122, 252, 255, 0.12);
  --feedback-error-bg: rgba(255, 113, 206, 0.12);
  --status-error: #ffb3de;
  --status-ok: #9bffeb;
  --status-warning: #ffd67a;
  --active-bg: rgba(122, 252, 255, 0.22);
  --active-ink: #d8ffff;
  --active-line: #7afcff;
  --active-ring: rgba(122, 252, 255, 0.18);
  --body-font: "Trebuchet MS", "Century Gothic", "Segoe UI", sans-serif;
  --ui-font: "Trebuchet MS", "Century Gothic", "Segoe UI", sans-serif;
  --code-font: "Courier New", monospace;
}

:root[data-theme="forge"],
.theme-menu__option[data-theme-option="forge"] {
  color-scheme: dark;
  --page-bg: #0f0e0d;
  --body-background:
    linear-gradient(
      160deg,
      rgba(255, 120, 30, 0.04) 0%,
      #0f0e0d 40%
    );
  --ink: #f0ece6;
  --ink-soft: #9c9080;
  --line: #2e2b28;
  --panel: #181614;
  --input-bg: #141210;
  --button-bg: #252220;
  --button-alt-bg: #2e2b28;
  --feedback-ok-bg: #1a2015;
  --feedback-error-bg: #221410;
  --status-error: #ff8c6b;
  --status-ok: #7ecf8e;
  --status-warning: #f5c842;
  --active-bg: rgba(255, 110, 30, 0.14);
  --active-ink: #ffd9b0;
  --active-line: #e06820;
  --active-ring: rgba(224, 104, 32, 0.20);
  --body-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --code-font: ui-monospace, "Cascadia Code", "SF Mono", "Consolas",
               "Liberation Mono", monospace;
}

@media (max-width: 520px) {
  :root[data-theme="forge"] {
    --body-background: #0f0e0d;
  }
}

:root[data-theme="sticker"],
.theme-menu__option[data-theme-option="sticker"] {
  color-scheme: light;
  --page-bg: #e0493a;
  --body-background: #e0493a;
  --ink: #0a0a0a;
  --ink-soft: #333333;
  --line: #0a0a0a;
  --panel: #ffffff;
  --input-bg: #ffffff;
  --button-bg: #ffffff;
  --button-alt-bg: #f0f0f0;
  --feedback-ok-bg: #e8ffe8;
  --feedback-error-bg: #fff0f0;
  --status-error: #cc0000;
  --status-ok: #006600;
  --status-warning: #885500;
  --active-bg: #0a0a0a;
  --active-ink: #ffffff;
  --active-line: #0a0a0a;
  --active-ring: rgba(10, 10, 10, 0.3);
  --body-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --code-font: ui-monospace, "Cascadia Code", "SF Mono", "Consolas",
               "Liberation Mono", monospace;
}

:root[data-theme="arena"],
.theme-menu__option[data-theme-option="arena"] {
  color-scheme: dark;
  --page-bg: #000000;
  --body-background: #000000;
  --ink: #ffffff;
  --ink-soft: #666666;
  --line: rgba(255, 255, 255, 0.18);
  --panel: transparent;
  --input-bg: rgba(255, 255, 255, 0.04);
  --button-bg: rgba(255, 255, 255, 0.04);
  --button-alt-bg: rgba(255, 255, 255, 0.07);
  --feedback-ok-bg: rgba(255, 255, 255, 0.04);
  --feedback-error-bg: rgba(255, 255, 255, 0.04);
  --status-error: #ff6b6b;
  --status-ok: #aaaaaa;
  --status-warning: #aaaaaa;
  --active-bg: #ffffff;
  --active-ink: #000000;
  --active-line: #ffffff;
  --active-ring: rgba(255, 255, 255, 0.2);
  --body-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --code-font: ui-monospace, "Cascadia Code", "SF Mono", "Consolas",
               "Liberation Mono", monospace;
}

:root[data-theme="thermal"],
.theme-menu__option[data-theme-option="thermal"] {
  color-scheme: dark;
  --page-bg: #090909;
  --body-background:
    repeating-linear-gradient(
      180deg,
      rgba(232, 228, 240, 0.02) 0 1px,
      transparent 1px 4px
    ),
    #090909;
  --ink: #e8e4f0;
  --ink-soft: #9d93b0;
  --line: #2a2438;
  --panel: #131020;
  --input-bg: #0d0a16;
  --button-bg: #1b1528;
  --button-alt-bg: #241c34;
  --feedback-ok-bg: #04312a;
  --feedback-error-bg: #2d0a04;
  --status-error: #ff9e8a;
  --status-ok: #7de8b0;
  --status-warning: #e8d06a;
  --active-bg: #2d1a04;
  --active-ink: #ffd9a8;
  --active-line: #a86a2a;
  --active-ring: rgba(240, 200, 158, 0.18);
  --body-font: ui-monospace, "Cascadia Code", "SF Mono", "Consolas",
               "Liberation Mono", monospace;
  --ui-font: ui-monospace, "Cascadia Code", "SF Mono", "Consolas",
             "Liberation Mono", monospace;
  --code-font: ui-monospace, "Cascadia Code", "SF Mono", "Consolas",
               "Liberation Mono", monospace;
}

:root[data-theme="word97"],
.theme-menu__option[data-theme-option="word97"] {
  color-scheme: light;
  --page-bg: #808080;
  --body-background: #808080;
  --ink: #000000;
  --ink-soft: #404040;
  --line: #808080;
  --panel: #c0c0c0;
  --input-bg: #ffffff;
  --button-bg: #c0c0c0;
  --button-alt-bg: #c0c0c0;
  --feedback-ok-bg: #c0c0c0;
  --feedback-error-bg: #c0c0c0;
  --status-error: #800000;
  --status-ok: #005f00;
  --status-warning: #806000;
  --active-bg: #000080;
  --active-ink: #ffffff;
  --active-line: #000080;
  --active-ring: rgba(0, 0, 128, 0.25);
  --body-font: "Times New Roman", Times, serif;
  --ui-font: Tahoma, "MS Sans Serif", Geneva, sans-serif;
  --code-font: "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: var(--page-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  font-family: var(--body-font);
  background: transparent;
  color: var(--ink);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--body-background);
  background-repeat: no-repeat;
  background-size: cover;
}

a {
  color: var(--ink);
}

label {
  display: block;
  font-family: var(--ui-font);
  font-weight: 600;
}

input,
textarea,
button {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.65rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: var(--input-bg);
}

button {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: var(--button-bg);
  font-family: var(--ui-font);
}

button[type="button"] {
  background: var(--button-alt-bg);
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: var(--code-font);
}

[data-role="public-key-field"] {
  min-height: 18rem;
  resize: vertical;
  font-family: var(--code-font);
  font-size: 0.92rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--panel) 55%, var(--input-bg) 45%), var(--input-bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 55%, transparent 45%);
}

[data-role="public-key-field"]:focus {
  outline: 2px solid color-mix(in srgb, var(--ink) 35%, transparent 65%);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--ink) 45%, var(--line) 55%);
}

.shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 1rem;
}

.site-header {
  padding: 0.5rem 0 1rem;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.site-status-bar {
  display: none;
}

.app-version-banner {
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-version-banner__inner {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0.75rem 1rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.app-version-banner__text,
.app-version-banner__reload {
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--ui-font);
}

.app-version-banner__text {
  display: inline-block;
  padding: 0.55rem 0.7rem;
}

.app-version-banner__reload {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--ui-font);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.nav-link {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  text-decoration: none;
  background: var(--input-bg);
  font-family: var(--ui-font);
}

.nav-link.is-active {
  background: var(--panel);
}

.board-controls-nav > *:last-child {
  margin-left: auto;
}

.theme-toggle {
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-top: 0;
  flex: 0 0 auto;
}

.theme-swatch {
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  box-shadow: inset 0 0 0 0.22rem var(--page-bg);
}

.theme-swatch[data-theme-mode="auto"] {
  background:
    linear-gradient(135deg, #fff59a 0 50%, #17233f 50% 100%);
}

.theme-swatch[data-theme="light"] {
  background: #ffffff;
  border-color: #b7c9ef;
  box-shadow: inset 0 0 0 0.22rem #eef5ff;
}

.theme-swatch[data-theme="dark"] {
  background: #d9e7ff;
  border-color: #344a73;
  box-shadow: inset 0 0 0 0.22rem #0b1220;
}

.theme-swatch[data-theme="console"] {
  background:
    radial-gradient(circle at 50% 50%, #9bff8a 0 28%, #0e2810 29% 100%);
  border-color: #2f6a33;
  box-shadow: inset 0 0 0 0.22rem #08110a;
}

.theme-swatch[data-theme="lcd"] {
  background:
    repeating-linear-gradient(
      180deg,
      #dce6b8 0 3px,
      #ced9ac 3px 6px
    );
  border-color: #59684b;
  box-shadow: inset 0 0 0 0.22rem #bcc99a;
}

.theme-swatch[data-theme="chicago"] {
  background:
    linear-gradient(180deg, #ffffff 0 8%, #c0c0c0 8% 100%);
  border-color: #4f4f4f;
  box-shadow:
    inset -1px -1px 0 0 #7b7b7b,
    inset 1px 1px 0 0 #ffffff;
}

.theme-swatch[data-theme="vapor"] {
  background:
    radial-gradient(circle at 30% 30%, #7afcff 0 25%, transparent 26%),
    linear-gradient(135deg, #ff71ce 0%, #7a5cff 45%, #01cdfe 100%);
  border-color: #ff71ce;
  box-shadow: inset 0 0 0 0.18rem rgba(9, 3, 20, 0.9);
}

.theme-swatch[data-theme="forge"] {
  background: radial-gradient(
    circle at 35% 35%,
    #ff9945 0 30%,
    #1a1410 31% 100%
  );
  border-color: #e06820;
  box-shadow: inset 0 0 0 0.22rem #0f0e0d;
}

.theme-swatch[data-theme="sticker"] {
  background: #e0493a;
  border: 2.5px solid #0a0a0a;
  box-shadow: 2px 2px 0 #0a0a0a;
}

.theme-swatch[data-theme="arena"] {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 0.22rem #000000;
}

.theme-swatch[data-theme="thermal"] {
  background:
    linear-gradient(
      90deg,
      #2a0a4d 0%,
      #0a2d8a 25%,
      #0a6e5c 50%,
      #8a4d0a 75%,
      #8a1c0a 100%
    );
  border-color: #4a3a66;
  box-shadow: inset 0 0 0 0.14rem #090909;
}

.theme-swatch[data-theme="word97"] {
  background:
    linear-gradient(180deg, #000080 0 28%, #c0c0c0 28% 52%, #ffffff 52% 100%);
  border-color: #404040;
  box-shadow:
    inset -1px -1px 0 0 #808080,
    inset 1px 1px 0 0 #ffffff;
}

.theme-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.15rem 0 0.15rem 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--input-bg);
  flex: 0 0 auto;
}

.theme-menu__trigger {
  width: auto;
  min-width: 0;
  height: 1.5rem;
  margin-top: 0;
  padding: 0 0.4rem 0 0.3rem;
  border: none;
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--ui-font);
  font-size: 0.7rem;
  line-height: 1;
  flex: 0 0 auto;
}

.theme-menu__trigger:hover,
.theme-menu__trigger[aria-expanded="true"] {
  color: var(--ink);
  background: var(--button-alt-bg);
}

.theme-menu__popover {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 30;
  min-width: 11rem;
  border: 1px solid var(--line);
  background-color: var(--page-bg);
  background-image: linear-gradient(var(--panel), var(--panel));
  padding: 0.3rem;
  display: grid;
  gap: 4px;
}

.theme-menu__popover[hidden] {
  display: none;
}

.theme-menu__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0;
  padding: 0.4rem 0.55rem;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--ui-font);
  font-size: 0.78rem;
  min-height: 2rem;
  text-align: left;
  cursor: pointer;
}

.theme-menu__option:not([data-theme-option="auto"]) {
  background: var(--body-background);
  background-color: var(--page-bg);
  color: var(--ink);
  border: 1px solid var(--line);
}

.theme-menu__option[data-theme-option="console"] {
  text-shadow: 0 0 6px rgba(155, 255, 138, 0.55);
}

.theme-menu__option[data-theme-option="vapor"] {
  text-shadow: 0 0 8px rgba(122, 252, 255, 0.6);
}

.theme-menu__option[data-theme-option="chicago"] {
  background: #c0c0c0;
  box-shadow: inset -1px -1px 0 #7b7b7b, inset 1px 1px 0 #ffffff;
}

.theme-menu__option[data-theme-option="sticker"] {
  border: 2px solid #0a0a0a;
  box-shadow: 2px 2px 0 #0a0a0a;
}

.theme-menu__option[data-theme-option="thermal"] {
  background-image:
    linear-gradient(
      90deg,
      #160428 0%,
      #090e3d 18%,
      #061c3d 34%,
      #042d3d 48%,
      #04312a 60%,
      #1a2504 72%,
      #2d1a04 86%,
      #2d0a04 100%
    );
}

.theme-menu__option[data-theme-option="word97"] {
  background: #c0c0c0;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #ffffff;
}

.theme-menu__option:hover {
  border-color: var(--ink-soft);
}

.theme-menu__option:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.theme-menu__option[aria-checked="true"] {
  border-color: var(--ink);
}

.theme-menu__option[aria-checked="true"]::after {
  content: "✓";
  margin-left: auto;
}

.theme-menu__swatch {
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.main {
  display: block;
}

.stack > * + * {
  margin-top: 1rem;
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.9rem;
  overflow-wrap: anywhere;
}

.post-card {
  position: relative;
  padding-bottom: 2.25rem;
  scroll-margin-top: 1rem;
}

.post-card:target {
  border-color: var(--active-line);
}

.pending-reply-card {
  border-style: dashed;
}

.pending-thread-shell {
  border-style: dashed;
}

.pending-reply-card .body {
  white-space: pre-wrap;
}

.pending-thread-shell .body {
  white-space: pre-wrap;
}

.pending-reply-status {
  color: var(--ink-soft);
}

.pending-thread-status {
  color: var(--ink-soft);
}

.post-card-permalink {
  position: absolute;
  right: 0.9rem;
  bottom: 0.65rem;
  font-family: var(--ui-font);
  font-size: 0.95rem;
  line-height: 1;
}

.tags-section-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent 8%) 0%, var(--panel) 100%);
}

.board-subsection {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent 28%);
}

.board-subsection-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
}

.tags-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tags-section-heading > div > .eyebrow {
  margin-bottom: 0.3rem;
}

.tags-section-heading h2,
.tag-group h3 {
  margin: 0;
}

.tag-groups {
  display: grid;
  gap: 0.9rem;
}

.tag-group {
  padding: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent 18%);
  background: color-mix(in srgb, var(--input-bg) 55%, var(--panel) 45%);
}

.tag-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.tag-thread-list {
  margin: 0;
  padding-left: 1.1rem;
}

.tag-thread-list li + li {
  margin-top: 0.45rem;
}

.tag-thread-list .meta {
  display: inline-block;
  margin-left: 0.35rem;
}

.tag-group-footer {
  margin: 0.75rem 0 0;
}

.inline-reply-composer {
  padding: 0;
}

.inline-reply-details {
  display: block;
}

.inline-reply-summary {
  padding: 0.8rem 0.9rem;
  cursor: pointer;
}

.inline-reply-summary::marker {
  content: "";
}

.inline-reply-summary::-webkit-details-marker {
  display: none;
}

.inline-reply-prompt {
  min-height: 4.75rem;
  margin: 0;
  resize: none;
  cursor: text;
}

.inline-reply-summary[hidden],
.inline-reply-details[open] .inline-reply-summary {
  display: none;
}

.inline-reply-expanded {
  padding: 1rem 0.9rem;
}

.inline-reply-expanded [data-compose-form] > :first-child {
  margin-top: 0;
}

.inline-reply-expanded [data-compose-form] textarea {
  display: block;
}

.inline-reply-expanded h2 {
  margin-top: 0;
}

.inline-reply-identity-status {
  display: none;
}

.inline-reply-identity-status[data-kind]:not([data-kind=""]) {
  display: block;
  margin-bottom: 1rem;
}

:root[data-theme="chicago"] .shell {
  width: min(100%, 860px);
}

:root[data-theme="chicago"] .site-header,
:root[data-theme="chicago"] .card,
:root[data-theme="chicago"] .feedback,
:root[data-theme="chicago"] .nav-link,
:root[data-theme="chicago"] input,
:root[data-theme="chicago"] textarea,
:root[data-theme="chicago"] button:not(.theme-menu__option),
:root[data-theme="chicago"] [data-role="public-key-viewer"],
:root[data-theme="chicago"] [data-role="private-key-viewer"] {
  border-color: #7b7b7b;
  box-shadow:
    inset 1px 1px 0 0 #ffffff,
    inset -1px -1px 0 0 #7b7b7b;
}

:root[data-theme="chicago"] .site-header {
  padding: 0.45rem 0.6rem 0.75rem;
  background: #c0c0c0;
}

:root[data-theme="chicago"] .eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.12rem 0.35rem;
  color: #ffffff;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  letter-spacing: 0.04em;
}

:root[data-theme="chicago"] button:not(.theme-menu__option):active,
:root[data-theme="chicago"] .nav-link.is-active {
  box-shadow:
    inset -1px -1px 0 0 #ffffff,
    inset 1px 1px 0 0 #7b7b7b;
}

:root[data-theme="console"] body {
  text-shadow: 0 0 6px rgba(155, 255, 138, 0.12);
}

:root[data-theme="console"] .site-header::after {
  content: "";
  display: block;
  margin-top: 0.7rem;
  height: 1px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(155, 255, 138, 0.7) 0 8px,
      transparent 8px 16px
    );
}

:root[data-theme="console"] .card,
:root[data-theme="console"] .feedback,
:root[data-theme="console"] .nav-link,
:root[data-theme="console"] [data-role="public-key-viewer"],
:root[data-theme="console"] [data-role="private-key-viewer"],
:root[data-theme="console"] input,
:root[data-theme="console"] textarea,
:root[data-theme="console"] button:not(.theme-swatch):not(.theme-menu__trigger):not(.theme-menu__option) {
  border-style: solid;
  box-shadow: inset 0 0 0 1px rgba(155, 255, 138, 0.08);
}

:root[data-theme="console"] .eyebrow {
  letter-spacing: 0.18em;
}

:root[data-theme="console"] .nav-link.is-active,
:root[data-theme="console"] button:not(.theme-swatch):not(.theme-menu__trigger):not(.theme-menu__option):hover {
  background: #132917;
}

:root[data-theme="lcd"] body {
  letter-spacing: 0.01em;
}

:root[data-theme="lcd"] .shell {
  width: min(100%, 820px);
}

:root[data-theme="lcd"] .site-header,
:root[data-theme="lcd"] .card,
:root[data-theme="lcd"] .feedback,
:root[data-theme="lcd"] .nav-link,
:root[data-theme="lcd"] [data-role="public-key-viewer"],
:root[data-theme="lcd"] [data-role="private-key-viewer"],
:root[data-theme="lcd"] input,
:root[data-theme="lcd"] textarea,
:root[data-theme="lcd"] button:not(.theme-swatch):not(.theme-menu__trigger):not(.theme-menu__option) {
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(39, 50, 32, 0.08);
}

:root[data-theme="lcd"] .site-header {
  padding: 0.6rem 0.7rem 1rem;
  border: 1px solid rgba(39, 50, 32, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(197, 209, 164, 0.1) 100%);
}

:root[data-theme="lcd"] .eyebrow {
  letter-spacing: 0.12em;
}

:root[data-theme="lcd"] a {
  text-decoration-thickness: 1px;
}

:root[data-theme="vapor"] .site-header {
  position: relative;
}

:root[data-theme="vapor"] .site-header::after {
  content: "";
  display: block;
  margin-top: 0.7rem;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #7afcff 22%, #ff71ce 78%, transparent 100%);
}

:root[data-theme="vapor"] .card,
:root[data-theme="vapor"] .feedback,
:root[data-theme="vapor"] .nav-link,
:root[data-theme="vapor"] [data-role="public-key-viewer"],
:root[data-theme="vapor"] [data-role="private-key-viewer"],
:root[data-theme="vapor"] input,
:root[data-theme="vapor"] textarea,
:root[data-theme="vapor"] button:not(.theme-swatch):not(.theme-menu__trigger):not(.theme-menu__option) {
  border-color: color-mix(in srgb, var(--line) 78%, #7afcff 22%);
  box-shadow:
    0 0 0 1px rgba(122, 252, 255, 0.08),
    0 0 18px rgba(255, 113, 206, 0.12);
}

:root[data-theme="vapor"] .eyebrow {
  color: #fff3a3;
  letter-spacing: 0.18em;
}

:root[data-theme="vapor"] a {
  text-shadow: 0 0 10px rgba(122, 252, 255, 0.24);
}

:root:not([data-theme="chicago"]) .nav-link.is-active {
  color: var(--active-ink);
  background: var(--active-bg);
  border-color: var(--active-line);
  box-shadow:
    0 0 0 1px var(--active-ring),
    inset 0 -2px 0 color-mix(in srgb, var(--active-line) 68%, transparent 32%);
  font-weight: 600;
}

:root[data-theme="forge"] body {
  font-weight: 420;
}

:root[data-theme="forge"] .site-header::after {
  content: "";
  display: block;
  margin-top: 0.7rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(224, 104, 32, 0.6) 30%,
    rgba(255, 190, 80, 0.4) 70%,
    transparent 100%
  );
}

:root[data-theme="forge"] .card,
:root[data-theme="forge"] .feedback,
:root[data-theme="forge"] .nav-link,
:root[data-theme="forge"] [data-role="public-key-viewer"],
:root[data-theme="forge"] [data-role="private-key-viewer"],
:root[data-theme="forge"] input,
:root[data-theme="forge"] textarea,
:root[data-theme="forge"] button:not(.theme-swatch):not(.theme-menu__trigger):not(.theme-menu__option) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="forge"] .eyebrow {
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

:root[data-theme="forge"] .nav-link.is-active {
  color: var(--active-ink);
  background: var(--active-bg);
  border-color: var(--active-line);
  box-shadow:
    0 0 0 1px var(--active-ring),
    inset 0 -2px 0 var(--active-line);
  font-weight: 600;
}

:root[data-theme="sticker"] .shell {
  width: min(100%, 680px);
}

:root[data-theme="sticker"] .card {
  border: none;
  outline: 2.5px solid #0a0a0a;
  box-shadow: 5px 5px 0 #0a0a0a;
  position: relative;
}

:root[data-theme="sticker"] .stack > * + * {
  margin-top: 1.5rem;
}

:root[data-theme="sticker"] .pending-reply-card,
:root[data-theme="sticker"] .pending-thread-shell {
  outline-style: dashed;
}

:root[data-theme="sticker"] .post-card:target {
  outline-color: #ffe800;
}

:root[data-theme="sticker"] .nav-link {
  border: none;
  outline: 2px solid #0a0a0a;
  box-shadow: 3px 3px 0 #0a0a0a;
  background: #ffffff;
}

:root[data-theme="sticker"] .nav-link.is-active {
  background: #0a0a0a;
  color: #ffffff;
  outline: 2px solid #0a0a0a;
  box-shadow: none;
  font-weight: 700;
}

:root[data-theme="sticker"] input,
:root[data-theme="sticker"] textarea {
  border: none;
  outline: 2px solid #0a0a0a;
  box-shadow: 3px 3px 0 #0a0a0a;
  background: #ffffff;
}

:root[data-theme="sticker"] button:not(.theme-swatch):not(.theme-menu__trigger):not(.theme-menu__option) {
  border: none;
  outline: 2px solid #0a0a0a;
  box-shadow: 3px 3px 0 #0a0a0a;
  background: #ffffff;
  font-weight: 700;
}

:root[data-theme="sticker"] button:not(.theme-swatch):not(.theme-menu__trigger):not(.theme-menu__option):active {
  box-shadow: 1px 1px 0 #0a0a0a;
  transform: translate(2px, 2px);
}

:root[data-theme="sticker"] .thread-reaction-button {
  padding: 0.3rem 0.55rem;
}

:root[data-theme="sticker"] .thread-reaction-button[disabled] {
  outline: none;
  box-shadow: none;
  background: transparent;
  font-weight: 400;
}

:root[data-theme="sticker"] button:not(.theme-menu__option):focus-visible,
:root[data-theme="sticker"] input:focus-visible,
:root[data-theme="sticker"] textarea:focus-visible,
:root[data-theme="sticker"] .nav-link:focus-visible {
  outline-offset: 2px;
}

:root[data-theme="sticker"] .eyebrow {
  display: inline-block;
  background: #ffe800;
  padding: 0.1rem 0.35rem;
  margin-bottom: 0.6rem;
  color: #0a0a0a;
  letter-spacing: 0.1em;
  outline: 1.5px solid #0a0a0a;
}

:root[data-theme="sticker"] .pinned-thread-marker {
  background: #ffe800;
  border: 1.5px solid #0a0a0a;
  color: #0a0a0a;
  font-weight: 700;
}

:root[data-theme="sticker"] .site-header {
  padding-bottom: 1.25rem;
}

:root[data-theme="sticker"] .site-header::after {
  content: "";
  display: block;
  margin-top: 0.9rem;
  height: 3px;
  background: #0a0a0a;
}

:root[data-theme="sticker"] .feedback {
  border: none;
  outline: 2px solid #0a0a0a;
  box-shadow: 3px 3px 0 #0a0a0a;
}

:root[data-theme="sticker"] [data-role="public-key-viewer"],
:root[data-theme="sticker"] [data-role="private-key-viewer"] {
  border: none;
  outline: 2px solid #0a0a0a;
  box-shadow: 3px 3px 0 #0a0a0a;
}

@media (max-width: 480px) {
  :root[data-theme="sticker"] .card {
    box-shadow: 3px 3px 0 #0a0a0a;
  }
}

:root[data-theme="arena"] body {
  line-height: 1.65;
  letter-spacing: 0.01em;
}

:root[data-theme="arena"] .card {
  padding: 1.2rem;
}

:root[data-theme="arena"] .stack > * + * {
  margin-top: 1.25rem;
}

:root[data-theme="arena"] .site-header::after {
  content: "";
  display: block;
  margin-top: 0.9rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="arena"] .nav-link {
  background: transparent;
}

:root[data-theme="arena"] .nav-link.is-active {
  box-shadow: none;
}

:root[data-theme="arena"] input::placeholder,
:root[data-theme="arena"] textarea::placeholder {
  color: #777777;
}

:root[data-theme="arena"] button:not(.theme-swatch):not(.theme-menu__trigger):not(.theme-menu__option):hover {
  background: rgba(255, 255, 255, 0.09);
}

:root[data-theme="arena"] .eyebrow {
  color: var(--ink-soft);
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

:root[data-theme="arena"] .pinned-thread-marker {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
}

:root[data-theme="arena"] a {
  text-decoration: none;
}

:root[data-theme="arena"] a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* The sticky version banner floats over scrolled content, so it cannot
   inherit the theme's transparent panel. */
:root[data-theme="arena"] .app-version-banner__text,
:root[data-theme="arena"] .app-version-banner__reload {
  background: #000000;
}

:root[data-theme="thermal"] .eyebrow {
  color: var(--ink-soft);
  letter-spacing: 0.2em;
}

:root[data-theme="thermal"] .site-header > .eyebrow {
  background:
    linear-gradient(
      90deg,
      #8a5cf0 0%,
      #388ae8 30%,
      #1cc98f 55%,
      #e89b2e 80%,
      #e85038 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:root[data-theme="thermal"] .site-header::after {
  content: "";
  display: block;
  margin-top: 0.7rem;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      #160428 0%,
      #090e3d 14%,
      #061c3d 28%,
      #042d3d 42%,
      #04312a 56%,
      #1a2504 70%,
      #2d1a04 84%,
      #2d0a04 100%
    );
}

:root[data-theme="thermal"] .meta {
  font-size: 0.82rem;
}

/* Cards carry data-heat (1 coldest .. 8 hottest) derived from how recently
   their content saw activity; the thermal spectrum makes recency visible.
   Cards without data-heat stay on the neutral --panel. */
:root[data-theme="thermal"] .card[data-heat="1"] {
  background: #160428;
  border-color: #33125c;
}

:root[data-theme="thermal"] .card[data-heat="2"] {
  background: #090e3d;
  border-color: #182173;
}

:root[data-theme="thermal"] .card[data-heat="3"] {
  background: #061c3d;
  border-color: #123c73;
}

:root[data-theme="thermal"] .card[data-heat="4"] {
  background: #042d3d;
  border-color: #0d5873;
}

:root[data-theme="thermal"] .card[data-heat="5"] {
  background: #04312a;
  border-color: #0d6154;
}

:root[data-theme="thermal"] .card[data-heat="6"] {
  background: #1a2504;
  border-color: #3d520e;
}

:root[data-theme="thermal"] .card[data-heat="7"] {
  background: #2d1a04;
  border-color: #66390e;
}

:root[data-theme="thermal"] .card[data-heat="8"] {
  background: #2d0a04;
  border-color: #661a0e;
}

/* Ambient spectrum: cards without heat data cycle spectrum hues by position
   as an edge stripe. Backgrounds stay reserved for the heat readout, so
   edge color never reads as a temperature. */
:root[data-theme="thermal"] .card:not([data-heat]):nth-child(8n+1),
:root[data-theme="thermal"] .tag-group:nth-child(8n+1) {
  box-shadow: inset 3px 0 0 #8a5cf0;
}

:root[data-theme="thermal"] .card:not([data-heat]):nth-child(8n+2),
:root[data-theme="thermal"] .tag-group:nth-child(8n+2) {
  box-shadow: inset 3px 0 0 #5c6ef0;
}

:root[data-theme="thermal"] .card:not([data-heat]):nth-child(8n+3),
:root[data-theme="thermal"] .tag-group:nth-child(8n+3) {
  box-shadow: inset 3px 0 0 #388ae8;
}

:root[data-theme="thermal"] .card:not([data-heat]):nth-child(8n+4),
:root[data-theme="thermal"] .tag-group:nth-child(8n+4) {
  box-shadow: inset 3px 0 0 #1cb4d4;
}

:root[data-theme="thermal"] .card:not([data-heat]):nth-child(8n+5),
:root[data-theme="thermal"] .tag-group:nth-child(8n+5) {
  box-shadow: inset 3px 0 0 #1cc98f;
}

:root[data-theme="thermal"] .card:not([data-heat]):nth-child(8n+6),
:root[data-theme="thermal"] .tag-group:nth-child(8n+6) {
  box-shadow: inset 3px 0 0 #a3c422;
}

:root[data-theme="thermal"] .card:not([data-heat]):nth-child(8n+7),
:root[data-theme="thermal"] .tag-group:nth-child(8n+7) {
  box-shadow: inset 3px 0 0 #e89b2e;
}

:root[data-theme="thermal"] .card:not([data-heat]):nth-child(8n+8),
:root[data-theme="thermal"] .tag-group:nth-child(8n+8) {
  box-shadow: inset 3px 0 0 #e85038;
}

:root[data-theme="thermal"] .nav-link:not(.is-active):nth-child(8n+1) {
  box-shadow: inset 0 -2px 0 #8a5cf0;
}

:root[data-theme="thermal"] .nav-link:not(.is-active):nth-child(8n+2) {
  box-shadow: inset 0 -2px 0 #5c6ef0;
}

:root[data-theme="thermal"] .nav-link:not(.is-active):nth-child(8n+3) {
  box-shadow: inset 0 -2px 0 #388ae8;
}

:root[data-theme="thermal"] .nav-link:not(.is-active):nth-child(8n+4) {
  box-shadow: inset 0 -2px 0 #1cb4d4;
}

:root[data-theme="thermal"] .nav-link:not(.is-active):nth-child(8n+5) {
  box-shadow: inset 0 -2px 0 #1cc98f;
}

:root[data-theme="thermal"] .nav-link:not(.is-active):nth-child(8n+6) {
  box-shadow: inset 0 -2px 0 #a3c422;
}

:root[data-theme="thermal"] .nav-link:not(.is-active):nth-child(8n+7) {
  box-shadow: inset 0 -2px 0 #e89b2e;
}

:root[data-theme="thermal"] .nav-link:not(.is-active):nth-child(8n+8) {
  box-shadow: inset 0 -2px 0 #e85038;
}

:root[data-theme="word97"] .shell {
  width: min(100%, 860px);
}

:root[data-theme="word97"] .site-header {
  padding: 0.45rem 0.6rem 0.6rem;
  border: 1px solid #808080;
  background: #c0c0c0;
  box-shadow:
    0 0 0 3px #c0c0c0,
    0 0 0 4px #404040,
    7px 7px 0 4px #404040;
}

:root[data-theme="word97"] .site-header::after {
  content: "";
  display: block;
  margin-top: 0.65rem;
  height: 0.9rem;
  border: 1px solid #808080;
  background:
    repeating-linear-gradient(90deg, #404040 0 1px, transparent 1px 32px)
      4px 50% / calc(100% - 8px) 72% no-repeat,
    repeating-linear-gradient(90deg, #404040 0 1px, transparent 1px 8px)
      4px 50% / calc(100% - 8px) 34% no-repeat,
    linear-gradient(
      90deg,
      #c0c0c0 0 2.25rem,
      #ffffff 2.25rem calc(100% - 2.25rem),
      #c0c0c0 calc(100% - 2.25rem) 100%
    ),
    #ffffff;
  box-shadow: inset -1px -1px 0 0 #dfdfdf;
}

:root[data-theme="word97"] .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: -0.45rem -0.6rem 0.65rem;
  padding: 0.18rem 0.2rem 0.18rem 0.45rem;
  color: #ffffff;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  font-weight: 700;
  letter-spacing: 0.04em;
}

:root[data-theme="word97"] .eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-right: -0.1rem;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='2' y='0' width='12' height='16' fill='%23000000'/><rect x='3' y='1' width='10' height='14' fill='%23ffffff'/><rect x='4' y='3' width='8' height='2' fill='%232b579a'/><rect x='4' y='5' width='2' height='1' fill='%232b579a'/><rect x='9' y='5' width='2' height='1' fill='%232b579a'/><rect x='8' y='6' width='2' height='1' fill='%232b579a'/><rect x='7' y='7' width='2' height='1' fill='%232b579a'/><rect x='6' y='8' width='2' height='1' fill='%232b579a'/><rect x='5' y='9' width='2' height='1' fill='%232b579a'/><rect x='4' y='10' width='2' height='1' fill='%232b579a'/><rect x='10' y='10' width='2' height='1' fill='%232b579a'/><rect x='4' y='11' width='8' height='2' fill='%232b579a'/></svg>")
    no-repeat;
}

:root[data-theme="word97"] .eyebrow::after {
  content: "\2013 \00a0 \274F \00a0 \2715";
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0.06rem 0.3rem;
  border: 1px solid #404040;
  color: #000000;
  background: #c0c0c0;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  box-shadow:
    inset 1px 1px 0 0 #ffffff,
    inset -1px -1px 0 0 #808080;
}

:root[data-theme="word97"] .nav::before {
  content: "";
  flex: 0 0 auto;
  width: 3px;
  align-self: stretch;
  margin-right: 0.15rem;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #808080;
}

:root[data-theme="word97"] .card,
:root[data-theme="word97"] .feedback {
  border: 1px solid #808080;
  background: #c0c0c0;
  box-shadow:
    0 0 0 3px #c0c0c0,
    0 0 0 4px #404040,
    7px 7px 0 4px #404040;
}

:root[data-theme="word97"] .card {
  padding: 1.5rem;
}

:root[data-theme="word97"] .post-card {
  padding-bottom: 2.25rem;
}

:root[data-theme="word97"] .inline-reply-composer {
  padding: 0;
}

:root[data-theme="word97"] .stack > * + * {
  margin-top: 1.5rem;
}

:root[data-theme="word97"] .card > h1:first-child,
:root[data-theme="word97"] .card > h2:first-child,
:root[data-theme="word97"] .post-card > .meta:first-child {
  display: block;
  margin: -1.5rem -1.5rem 1.1rem;
  padding: 0.22rem 0.55rem;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
  font-family: var(--ui-font);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

:root[data-theme="word97"] .card > h1:first-child a,
:root[data-theme="word97"] .card > h2:first-child a,
:root[data-theme="word97"] .post-card > .meta:first-child a {
  color: #ffffff;
  text-decoration: none;
}

:root[data-theme="word97"] .tags-section-card {
  background: #c0c0c0;
}

:root[data-theme="word97"] .compact-thread-compose {
  position: relative;
}

:root[data-theme="word97"] .compact-thread-compose::before {
  content: "New Thread";
  display: block;
  padding: 0.22rem 0.55rem;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
  font-family: var(--ui-font);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

:root[data-theme="word97"] .compact-thread-compose::after {
  content: "\2715";
  position: absolute;
  top: 0.3rem;
  right: 0.32rem;
  padding: 0.05rem 0.3rem;
  border: 1px solid #404040;
  color: #000000;
  background: #c0c0c0;
  font-family: var(--ui-font);
  font-size: 0.62rem;
  line-height: 1.35;
  box-shadow:
    inset 1px 1px 0 0 #ffffff,
    inset -1px -1px 0 0 #808080;
}

:root[data-theme="word97"] .card > .body,
:root[data-theme="word97"] .card > p:not([class]) {
  margin: 0.9rem 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid #949494;
  background: #e3e3e3;
}

:root[data-theme="word97"] .card > p:not([class]) + p:not([class]) {
  margin-top: 0.9rem;
}

:root[data-theme="word97"] .tool-launcher-button {
  border: 1px solid #404040;
  background: #c0c0c0;
  color: #000000;
  font-weight: 600;
  box-shadow:
    inset 1px 1px 0 0 #ffffff,
    inset -1px -1px 0 0 #808080;
}

:root[data-theme="word97"] .tool-launcher-button:active {
  box-shadow:
    inset -1px -1px 0 0 #ffffff,
    inset 1px 1px 0 0 #808080;
}

:root[data-theme="word97"] .tool-launcher-button::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
}

:root[data-theme="word97"] .tool-launcher-button[href="/activity/"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='1' y='8' width='3' height='1' fill='%23008000'/><rect x='4' y='4' width='1' height='5' fill='%23008000'/><rect x='5' y='4' width='1' height='1' fill='%23008000'/><rect x='6' y='4' width='1' height='8' fill='%23008000'/><rect x='7' y='11' width='1' height='1' fill='%23008000'/><rect x='8' y='6' width='1' height='6' fill='%23008000'/><rect x='9' y='6' width='1' height='1' fill='%23008000'/><rect x='10' y='6' width='1' height='3' fill='%23008000'/><rect x='11' y='8' width='4' height='1' fill='%23008000'/></svg>");
}

:root[data-theme="word97"] .tool-launcher-button[href="/tools/bookmarklets/"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='7' y='1' width='2' height='3' fill='%23c8a000'/><rect x='6' y='4' width='4' height='2' fill='%23c8a000'/><rect x='1' y='6' width='14' height='2' fill='%23c8a000'/><rect x='3' y='8' width='10' height='2' fill='%23c8a000'/><rect x='4' y='10' width='8' height='1' fill='%23c8a000'/><rect x='3' y='11' width='4' height='2' fill='%23c8a000'/><rect x='9' y='11' width='4' height='2' fill='%23c8a000'/><rect x='2' y='13' width='3' height='2' fill='%23c8a000'/><rect x='11' y='13' width='3' height='2' fill='%23c8a000'/></svg>");
}

:root[data-theme="word97"] .tool-launcher-button[href="/tools/backup/"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='1' y='1' width='14' height='14' fill='%23000080'/><rect x='2' y='2' width='12' height='12' fill='%23000080'/><rect x='4' y='1' width='8' height='6' fill='%23ffffff'/><rect x='9' y='2' width='2' height='4' fill='%23000080'/><rect x='3' y='9' width='10' height='6' fill='%23ffffff'/><rect x='4' y='10' width='8' height='1' fill='%23808080'/><rect x='4' y='12' width='8' height='1' fill='%23808080'/><rect x='14' y='1' width='1' height='1' fill='%23c0c0c0'/></svg>");
}

:root[data-theme="word97"] .tool-launcher-button[href="/tools/codebase/"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='1' y='1' width='14' height='10' fill='%23000000'/><rect x='2' y='2' width='12' height='8' fill='%23008080'/><rect x='3' y='3' width='6' height='1' fill='%23ffffff'/><rect x='3' y='5' width='8' height='1' fill='%23ffffff'/><rect x='3' y='7' width='5' height='1' fill='%23ffffff'/><rect x='6' y='11' width='4' height='2' fill='%23808080'/><rect x='3' y='13' width='10' height='2' fill='%23c0c0c0'/><rect x='3' y='13' width='10' height='1' fill='%23ffffff'/></svg>");
}

:root[data-theme="word97"] .tool-launcher-button[href="/tools/feature-flags/"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='3' y='1' width='2' height='14' fill='%23404040'/><rect x='5' y='2' width='9' height='7' fill='%23cc0000'/><rect x='12' y='3' width='3' height='5' fill='%23cc0000'/></svg>");
}

:root[data-theme="word97"] .tool-launcher-button[href="/account/key/"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='2' y='5' width='5' height='2' fill='%23c8a000'/><rect x='2' y='9' width='5' height='2' fill='%23c8a000'/><rect x='2' y='7' width='2' height='2' fill='%23c8a000'/><rect x='5' y='7' width='2' height='2' fill='%23c8a000'/><rect x='7' y='7' width='7' height='2' fill='%23c8a000'/><rect x='11' y='9' width='1' height='2' fill='%23c8a000'/><rect x='13' y='9' width='1' height='3' fill='%23c8a000'/></svg>");
}

:root[data-theme="word97"] .tool-launcher-button[data-bookmarklet-kind="url"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='3' y='2' width='8' height='1' fill='%23000080'/><rect x='2' y='3' width='10' height='1' fill='%23000080'/><rect x='1' y='4' width='12' height='6' fill='%23008080'/><rect x='2' y='10' width='10' height='1' fill='%23000080'/><rect x='3' y='11' width='8' height='1' fill='%23000080'/><rect x='6' y='2' width='2' height='10' fill='%23ffffff'/><rect x='1' y='6' width='12' height='2' fill='%23ffffff'/><rect x='11' y='9' width='2' height='6' fill='%23c8a000'/><rect x='9' y='11' width='6' height='2' fill='%23c8a000'/></svg>");
}

:root[data-theme="word97"] .tool-launcher-button[data-bookmarklet-kind="clip"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='3' y='1' width='2' height='6' fill='%23404040'/><rect x='11' y='1' width='2' height='6' fill='%23404040'/><rect x='5' y='6' width='2' height='2' fill='%23404040'/><rect x='9' y='6' width='2' height='2' fill='%23404040'/><rect x='7' y='8' width='2' height='2' fill='%23000000'/><rect x='5' y='10' width='2' height='2' fill='%23808080'/><rect x='9' y='10' width='2' height='2' fill='%23808080'/><rect x='3' y='11' width='2' height='4' fill='%23808080'/><rect x='11' y='11' width='2' height='4' fill='%23808080'/></svg>");
}

:root[data-theme="word97"] .tool-launcher-button[data-bookmarklet-kind="selection"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='3' y='1' width='10' height='11' fill='%23000000'/><rect x='4' y='2' width='8' height='10' fill='%23ffffff'/><rect x='5' y='4' width='6' height='1' fill='%23808080'/><rect x='5' y='6' width='6' height='1' fill='%23808080'/><rect x='5' y='8' width='4' height='1' fill='%23808080'/><rect x='4' y='12' width='2' height='2' fill='%23ffffff'/><rect x='7' y='12' width='2' height='1' fill='%23ffffff'/><rect x='10' y='12' width='2' height='2' fill='%23ffffff'/><rect x='5' y='14' width='1' height='1' fill='%23ffffff'/><rect x='8' y='13' width='1' height='1' fill='%23ffffff'/></svg>");
}

:root[data-theme="word97"] a {
  color: #0000ff;
}

:root[data-theme="word97"] button:not(.theme-swatch):not(.theme-menu__trigger):not(.theme-menu__option) {
  border: 1px solid #404040;
  background: #c0c0c0;
  color: #000000;
  box-shadow:
    inset 1px 1px 0 0 #ffffff,
    inset -1px -1px 0 0 #808080;
}

:root[data-theme="word97"] button:not(.theme-swatch):not(.theme-menu__trigger):not(.theme-menu__option):active {
  box-shadow:
    inset -1px -1px 0 0 #ffffff,
    inset 1px 1px 0 0 #808080;
}

:root[data-theme="word97"] .nav-link {
  border: 1px solid transparent;
  background: transparent;
  color: #000000;
  text-decoration: none;
}

:root[data-theme="word97"] .nav-link:hover {
  border-color: #ffffff #808080 #808080 #ffffff;
}

:root[data-theme="word97"] .nav-link.is-active {
  color: #000000;
  background: #dfdfdf;
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: none;
  font-weight: 700;
}

:root[data-theme="word97"] .nav-link[href="/"]::before,
:root[data-theme="word97"] .nav-link[href="/about/"]::before,
:root[data-theme="word97"] .nav-link[href="/users/"]::before,
:root[data-theme="word97"] .nav-link[href="/tools/"]::before,
:root[data-theme="word97"] .nav-link[href="/account/key/"]::before,
:root[data-theme="word97"] .nav-link[href="/compose/thread"]::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.3rem;
  vertical-align: -3px;
  background-repeat: no-repeat;
}

:root[data-theme="word97"] .nav-link[href="/"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'><rect x='1' y='2' width='14' height='12' fill='%23000000'/><rect x='2' y='3' width='12' height='10' fill='%23ffffff'/><rect x='2' y='3' width='12' height='2' fill='%23000080'/><rect x='2' y='7' width='12' height='1' fill='%23808080'/><rect x='2' y='10' width='12' height='1' fill='%23808080'/><rect x='7' y='5' width='1' height='8' fill='%23808080'/></svg>");
}

:root[data-theme="word97"] .nav-link[href="/about/"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'><rect x='3' y='1' width='10' height='14' fill='%23000000'/><rect x='4' y='2' width='8' height='12' fill='%23ffffff'/><rect x='6' y='4' width='3' height='1' fill='%23000080'/><rect x='5' y='5' width='1' height='1' fill='%23000080'/><rect x='9' y='5' width='1' height='2' fill='%23000080'/><rect x='8' y='7' width='1' height='1' fill='%23000080'/><rect x='7' y='8' width='1' height='2' fill='%23000080'/><rect x='7' y='11' width='1' height='1' fill='%23000080'/></svg>");
}

:root[data-theme="word97"] .nav-link[href="/users/"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'><rect x='9' y='2' width='3' height='3' fill='%23808080'/><rect x='8' y='6' width='5' height='4' fill='%23808080'/><rect x='4' y='4' width='3' height='3' fill='%23000080'/><rect x='2' y='8' width='7' height='5' fill='%23000080'/></svg>");
}

:root[data-theme="word97"] .nav-link[href="/tools/"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'><rect x='2' y='2' width='2' height='3' fill='%23808080'/><rect x='5' y='2' width='2' height='3' fill='%23808080'/><rect x='2' y='4' width='5' height='2' fill='%23808080'/><rect x='5' y='6' width='2' height='2' fill='%23808080'/><rect x='6' y='7' width='2' height='2' fill='%23808080'/><rect x='7' y='8' width='2' height='2' fill='%23808080'/><rect x='8' y='9' width='2' height='2' fill='%23808080'/><rect x='9' y='10' width='2' height='2' fill='%23808080'/><rect x='10' y='11' width='3' height='3' fill='%23404040'/></svg>");
}

:root[data-theme="word97"] .nav-link[href="/account/key/"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'><rect x='2' y='5' width='5' height='2' fill='%23c8a000'/><rect x='2' y='9' width='5' height='2' fill='%23c8a000'/><rect x='2' y='7' width='2' height='2' fill='%23c8a000'/><rect x='5' y='7' width='2' height='2' fill='%23c8a000'/><rect x='7' y='7' width='7' height='2' fill='%23c8a000'/><rect x='11' y='9' width='1' height='2' fill='%23c8a000'/><rect x='13' y='9' width='1' height='3' fill='%23c8a000'/></svg>");
}

:root[data-theme="word97"] .nav-link[href="/compose/thread"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'><rect x='3' y='2' width='9' height='13' fill='%23000000'/><rect x='4' y='3' width='7' height='11' fill='%23ffffff'/><rect x='5' y='6' width='5' height='1' fill='%23808080'/><rect x='5' y='8' width='5' height='1' fill='%23808080'/><rect x='5' y='10' width='5' height='1' fill='%23808080'/><rect x='12' y='1' width='1' height='5' fill='%23ffd700'/><rect x='10' y='3' width='5' height='1' fill='%23ffd700'/></svg>");
}

:root[data-theme="word97"] input,
:root[data-theme="word97"] textarea,
:root[data-theme="word97"] [data-role="public-key-viewer"],
:root[data-theme="word97"] [data-role="private-key-viewer"] {
  border: 1px solid #808080;
  background: #ffffff;
  box-shadow:
    inset 1px 1px 0 0 #404040,
    inset -1px -1px 0 0 #dfdfdf;
}

:root[data-theme="word97"] .theme-menu {
  gap: 2px;
  padding: 2px;
  border: 1px solid #808080;
  border-radius: 0;
  background: #ffffff;
  box-shadow:
    inset 1px 1px 0 0 #404040,
    inset -1px -1px 0 0 #dfdfdf;
}

:root[data-theme="word97"] .theme-menu > .theme-toggle {
  border-radius: 0;
}

:root[data-theme="word97"] .theme-menu__trigger {
  width: 17px;
  min-width: 17px;
  padding: 0;
  border: 1px solid #404040;
  border-radius: 0;
  color: transparent;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='4' y='6' width='7' height='1' fill='%23000000'/><rect x='5' y='7' width='5' height='1' fill='%23000000'/><rect x='6' y='8' width='3' height='1' fill='%23000000'/><rect x='7' y='9' width='1' height='1' fill='%23000000'/></svg>")
    center no-repeat #c0c0c0;
  box-shadow:
    inset 1px 1px 0 0 #ffffff,
    inset -1px -1px 0 0 #808080;
}

:root[data-theme="word97"] .theme-menu__trigger:hover {
  color: transparent;
}

:root[data-theme="word97"] .theme-menu__trigger:active,
:root[data-theme="word97"] .theme-menu__trigger[aria-expanded="true"] {
  color: transparent;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='4' y='6' width='7' height='1' fill='%23000000'/><rect x='5' y='7' width='5' height='1' fill='%23000000'/><rect x='6' y='8' width='3' height='1' fill='%23000000'/><rect x='7' y='9' width='1' height='1' fill='%23000000'/></svg>")
    center no-repeat #c0c0c0;
  box-shadow:
    inset -1px -1px 0 0 #ffffff,
    inset 1px 1px 0 0 #808080;
}

:root[data-theme="word97"] .post-card:target {
  border-color: #000080;
  box-shadow:
    0 0 0 3px #c0c0c0,
    0 0 0 4px #000080,
    7px 7px 0 4px #404040;
}

:root[data-theme="word97"] body {
  padding-bottom: 2.2rem;
}

:root[data-theme="word97"] .site-status-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 2px;
  align-items: stretch;
  padding: 2px 3px 3px;
  overflow: hidden;
  border-top: 1px solid #ffffff;
  background: #c0c0c0;
  color: #000000;
  font-family: var(--ui-font);
  font-size: 0.72rem;
  line-height: 1.35;
}

:root[data-theme="word97"] .site-status-bar__panel {
  padding: 0.08rem 0.5rem;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  white-space: nowrap;
}

:root[data-theme="word97"] .site-status-bar__panel--wide {
  min-width: 12rem;
}

:root[data-theme="word97"] .site-status-bar__panel--dim {
  color: #808080;
  text-shadow: 1px 1px 0 #ffffff;
}

:root[data-theme="word97"] ::selection {
  background: #000080;
  color: #ffffff;
}

:root[data-theme="word97"] a:focus-visible {
  outline: 1px dotted #000000;
  outline-offset: 1px;
}

:root[data-theme="word97"] button:not(.theme-menu__option):focus-visible,
:root[data-theme="word97"] .nav-link:focus-visible {
  outline: 1px dotted #000000;
  outline-offset: -4px;
}

:root[data-theme="word97"] button[disabled]:not(.theme-menu__option) {
  color: #808080;
  text-shadow: 1px 1px 0 #ffffff;
}

:root[data-theme="word97"] .theme-menu__popover {
  padding: 4px;
  border: 1px solid #404040;
  background-color: #c0c0c0;
  background-image: none;
  box-shadow:
    inset 1px 1px 0 0 #ffffff,
    inset -1px -1px 0 0 #808080,
    3px 3px 0 0 #404040;
}

html[data-theme="word97"]::-webkit-scrollbar,
html[data-theme="word97"] ::-webkit-scrollbar {
  width: 16px;
  height: 16px;
  background:
    conic-gradient(#ffffff 25%, #c0c0c0 0 50%, #ffffff 0 75%, #c0c0c0 0)
    0 0 / 2px 2px;
}

html[data-theme="word97"]::-webkit-scrollbar-thumb,
html[data-theme="word97"] ::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 1px solid #404040;
  box-shadow:
    inset 1px 1px 0 0 #ffffff,
    inset -1px -1px 0 0 #808080;
}

html[data-theme="word97"]::-webkit-scrollbar-button,
html[data-theme="word97"] ::-webkit-scrollbar-button {
  display: block;
  width: 16px;
  height: 16px;
  background-color: #c0c0c0;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid #404040;
  box-shadow:
    inset 1px 1px 0 0 #ffffff,
    inset -1px -1px 0 0 #808080;
}

html[data-theme="word97"]::-webkit-scrollbar-button:vertical:start:increment,
html[data-theme="word97"] ::-webkit-scrollbar-button:vertical:start:increment,
html[data-theme="word97"]::-webkit-scrollbar-button:vertical:end:decrement,
html[data-theme="word97"] ::-webkit-scrollbar-button:vertical:end:decrement,
html[data-theme="word97"]::-webkit-scrollbar-button:horizontal:start:increment,
html[data-theme="word97"] ::-webkit-scrollbar-button:horizontal:start:increment,
html[data-theme="word97"]::-webkit-scrollbar-button:horizontal:end:decrement,
html[data-theme="word97"] ::-webkit-scrollbar-button:horizontal:end:decrement {
  display: none;
}

html[data-theme="word97"]::-webkit-scrollbar-button:vertical:decrement,
html[data-theme="word97"] ::-webkit-scrollbar-button:vertical:decrement {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='7' y='6' width='1' height='1' fill='%23000000'/><rect x='6' y='7' width='3' height='1' fill='%23000000'/><rect x='5' y='8' width='5' height='1' fill='%23000000'/><rect x='4' y='9' width='7' height='1' fill='%23000000'/></svg>");
}

html[data-theme="word97"]::-webkit-scrollbar-button:vertical:increment,
html[data-theme="word97"] ::-webkit-scrollbar-button:vertical:increment {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='4' y='6' width='7' height='1' fill='%23000000'/><rect x='5' y='7' width='5' height='1' fill='%23000000'/><rect x='6' y='8' width='3' height='1' fill='%23000000'/><rect x='7' y='9' width='1' height='1' fill='%23000000'/></svg>");
}

html[data-theme="word97"]::-webkit-scrollbar-button:horizontal:decrement,
html[data-theme="word97"] ::-webkit-scrollbar-button:horizontal:decrement {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='6' y='7' width='1' height='1' fill='%23000000'/><rect x='7' y='6' width='1' height='3' fill='%23000000'/><rect x='8' y='5' width='1' height='5' fill='%23000000'/><rect x='9' y='4' width='1' height='7' fill='%23000000'/></svg>");
}

html[data-theme="word97"]::-webkit-scrollbar-button:horizontal:increment,
html[data-theme="word97"] ::-webkit-scrollbar-button:horizontal:increment {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' shape-rendering='crispEdges'><rect x='6' y='4' width='1' height='7' fill='%23000000'/><rect x='7' y='5' width='1' height='5' fill='%23000000'/><rect x='8' y='6' width='1' height='3' fill='%23000000'/><rect x='9' y='7' width='1' height='1' fill='%23000000'/></svg>");
}

html[data-theme="word97"]::-webkit-scrollbar-corner,
html[data-theme="word97"] ::-webkit-scrollbar-corner {
  background: #c0c0c0;
}

@supports not selector(::-webkit-scrollbar) {
  :root[data-theme="word97"] {
    scrollbar-color: #c0c0c0 #dfdfdf;
  }
}

:root[data-theme="word97"] .pinned-thread-marker {
  color: #000000;
  background: #ffff00;
  border-color: #000000;
}

.tool-launcher-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.tool-launcher-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tool-launcher-button {
  flex: 0 0 11rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--button-bg);
  font-family: var(--ui-font);
  text-decoration: none;
}

.tool-launcher-description {
  margin: 0;
}

.tool-launcher-description .meta {
  display: block;
}

.about-section + .about-section {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent 28%);
}

.about-section h1,
.about-section h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.about-section h1::before,
.about-section h2::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask: var(--about-glyph) center / contain no-repeat;
  mask: var(--about-glyph) center / contain no-repeat;
}

.about-section[data-about-section="zenmemes"] h1::before {
  --about-glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M3 3.5h14a1 1 0 0 1 1 1V13a1 1 0 0 1-1 1H9.5L5 18.2V14H3a1 1 0 0 1-1-1V4.5a1 1 0 0 1 1-1z' fill='black'/><path d='M5.5 7h9M5.5 10h6' stroke='white' stroke-width='1.4'/></svg>");
}

.about-section[data-about-section="community"] h2::before {
  --about-glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='13.5' cy='6' r='2.3' fill='black' opacity='0.5'/><path d='M10.5 16v-1.4c0-2 1.6-3.6 3.6-3.6 1.9 0 3.4 1.5 3.4 3.4V16z' fill='black' opacity='0.5'/><circle cx='7' cy='5.5' r='2.8' fill='black'/><path d='M2.5 16v-1.6c0-2.4 2-4.3 4.5-4.3s4.5 1.9 4.5 4.3V16z' fill='black'/></svg>");
}

.about-section[data-about-section="graph"] h2::before {
  --about-glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 4.5L4.5 15M10 4.5L15.5 15M4.5 15h11' stroke='black' stroke-width='1.4' fill='none'/><circle cx='10' cy='4.5' r='2.4' fill='black'/><circle cx='4.5' cy='15' r='2.4' fill='black'/><circle cx='15.5' cy='15' r='2.4' fill='black'/></svg>");
}

.about-section[data-about-section="participation"] h2::before {
  --about-glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='6.2' cy='10' r='3.4' fill='none' stroke='black' stroke-width='1.9'/><path d='M9.6 10h8M13.8 10v3.2M17 10v3.8' stroke='black' stroke-width='1.9' fill='none'/></svg>");
}

.about-section[data-about-section="portable"] h2::before {
  --about-glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M3 3h10.5L17 6.5V17H3z' fill='none' stroke='black' stroke-width='1.6'/><rect x='6.5' y='3.8' width='5' height='3.6' fill='black'/><rect x='5.5' y='11' width='9' height='5' fill='black'/></svg>");
}

@media (max-width: 560px) {
  .tool-launcher-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .tool-launcher-button {
    flex: 1 1 auto;
  }
}

.feedback {
  padding: 0.75rem;
  border: 1px solid var(--line);
}

.feedback-ok {
  background: var(--feedback-ok-bg);
}

.feedback-error {
  background: var(--feedback-error-bg);
}

.meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.pinned-thread-marker {
  display: inline-block;
  margin-left: 0.4rem;
  border: 1px solid var(--line);
  padding: 0.12rem 0.35rem;
  vertical-align: middle;
  color: var(--ink-soft);
  background: var(--input-bg);
  font-family: var(--ui-font);
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
}

.codebase-status-card h1 {
  margin-bottom: 0.45rem;
}

.codebase-status {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--status-ok);
  font-family: var(--ui-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.codebase-status[data-status="stale"],
.codebase-status[data-status="locked"] {
  color: var(--status-warning);
}

.codebase-status[data-status="configuration issue"] {
  color: var(--status-error);
}

.codebase-facts {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.codebase-facts th,
.codebase-facts td {
  padding: 0.38rem 0;
  text-align: left;
  vertical-align: top;
}

.codebase-facts th {
  width: 38%;
  padding-right: 0.8rem;
  color: var(--ink-soft);
  font-family: var(--ui-font);
  font-weight: 700;
}

.codebase-facts tr + tr th,
.codebase-facts tr + tr td {
  border-top: 1px solid color-mix(in srgb, var(--line) 68%, transparent 32%);
}

.codebase-facts code {
  font-family: var(--code-font);
  overflow-wrap: anywhere;
}

.codebase-source {
  margin-top: 0.18rem;
  color: var(--ink-soft);
  font-family: var(--ui-font);
  font-size: 0.78rem;
}

.codebase-downloads {
  margin-bottom: 0;
}

.body {
  white-space: normal;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-row > * {
  flex: 1 1 12rem;
}

.button-row.button-row-natural > * {
  flex: 0 0 auto;
  width: auto;
}

.button-row.button-row-split {
  justify-content: space-between;
}

.button-row.button-row-split > *:last-child {
  margin-left: auto;
}

.thread-reaction-row {
  margin-top: 0.9rem;
}

.thread-reaction-button {
  width: auto;
  min-width: 0;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  font: inherit;
}

.thread-reaction-button[disabled] {
  cursor: default;
  opacity: 0.72;
  text-decoration: none;
}

.thread-reaction-feedback {
  margin-top: 0.75rem;
}

.post-card-actions .thread-reaction-feedback,
.post-card-actions .agent-reply-feedback {
  margin: 0;
  line-height: inherit;
}

.thread-reaction-feedback[data-kind="ok"] {
  color: var(--status-ok);
}

.thread-reaction-feedback[data-kind="error"] {
  color: var(--status-error);
}

.post-card-actions {
  align-items: baseline;
  margin-top: 1rem;
}

.post-card-actions .post-analysis {
  min-width: 0;
}

.post-card-actions .post-analysis[open] {
  flex-basis: 100%;
}

.post-card-actions .post-analysis > summary {
  cursor: pointer;
}

.possibly-related {
  padding: 0.75rem;
}

.possibly-related-title {
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.possibly-related ul {
  margin: 0;
  padding-left: 1.2rem;
}

.possibly-related li + li {
  margin-top: 0.35rem;
}

.account-key-simple-surface {
  gap: 0.85rem;
}

.account-key-simple-state {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.account-key-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-warning);
  flex: 0 0 auto;
}

.account-key-status-dot[data-state="ready"] {
  background: var(--status-ok);
}

.account-key-status-badge {
  font-family: var(--ui-font);
  font-size: 0.82rem;
  line-height: 1.2;
}

.account-key-label {
  margin: 0 0 0.25rem;
  color: var(--ink-soft);
  font-family: var(--ui-font);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-key-username {
  margin: 0;
  font-family: var(--ui-font);
  font-size: 1.5rem;
  line-height: 1.2;
}

.account-key-simple-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.account-key-simple-actions > button {
  width: auto;
}

.account-key-secondary-button {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.account-key-simple-status {
  margin: 0;
}

.account-key-simple-status[data-kind="error"] {
  color: var(--status-error);
}

.account-key-simple-status[data-kind="ok"] {
  color: var(--status-ok);
}

.compose-normalization-inline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: -0.1rem 0 0;
}

.compose-normalization-inline[hidden] {
  display: none;
}

.compose-normalization-inline-action {
  width: auto;
  margin-top: 0;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
}

.compose-form-actions {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.compose-form-actions > button[type="submit"] {
  flex: 1 1 auto;
  min-width: 0;
}

.compose-clear-button {
  flex: 0 0 auto;
  width: auto;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.compact-thread-compose {
  padding: 0;
}

.compact-thread-compose label {
  font-size: 0.92rem;
}

.compact-thread-compose input,
.compact-thread-compose textarea {
  margin-top: 0.25rem;
}

.compact-thread-compose textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.compact-thread-compose-prompt {
  min-height: 4.75rem;
}

.compact-thread-compose-form {
  gap: 0.65rem;
}

.compact-thread-compose-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: center;
}

.compact-thread-compose-actions > button {
  margin-top: 0;
}

.account-key-advanced {
  padding-top: 0.1rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent 30%);
}

.account-key-advanced summary {
  list-style: none;
  color: var(--ink-soft);
  font-family: var(--ui-font);
  font-size: 0.9rem;
  cursor: pointer;
}

.account-key-advanced summary::-webkit-details-marker {
  display: none;
}

.account-key-advanced summary::before {
  content: "\203A";
  display: inline-block;
  margin-right: 0.35rem;
  transform: rotate(0deg);
  transition: transform 120ms ease;
}

.account-key-advanced[open] summary::before {
  transform: rotate(90deg);
}

.account-key-advanced > div {
  margin-top: 1rem;
}

.account-key-advanced-actions > button,
.account-key-viewer-copy {
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
  background: transparent;
}

.account-key-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-key-viewer-label {
  margin: 0;
}

.account-key-viewer-copy {
  width: auto;
  min-width: 0;
  margin-top: 0;
  flex: 0 0 auto;
}

.pending-approvals-action-cell {
  white-space: nowrap;
  width: 6.75rem;
}

.pending-approvals-user-cell {
  white-space: nowrap;
  width: 30%;
}

.pending-approvals-user-cell a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.pending-approvals-profile-cell {
  min-width: 0;
}

.pending-approvals-profile-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
  font-family: var(--code-font);
  font-size: 0.9em;
}

.pending-approvals-action-button {
  width: auto;
  min-width: 0;
  margin-top: 0;
}

[data-role="pending-approvals-table"] {
  overflow-x: visible;
}

[data-role="pending-approvals-table-element"] {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

[data-role="pending-approvals-table-element"] th,
[data-role="pending-approvals-table-element"] td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

[data-role="pending-approvals-table-element"] th {
  font-family: var(--ui-font);
}

[data-role="pending-approvals-table-element"] tbody tr + tr td {
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent 30%);
}

[data-role="pending-approvals-table-element"] th:first-child,
[data-role="pending-approvals-table-element"] td:first-child {
  padding-left: 0;
}

[data-role="pending-approvals-table-element"] th:last-child,
[data-role="pending-approvals-table-element"] td:last-child {
  padding-right: 0;
}

@media (max-width: 520px) {
  [data-role="pending-approvals-table"] {
    overflow-x: visible;
  }

  [data-role="pending-approvals-table-element"],
  [data-role="pending-approvals-table-element"] tbody,
  [data-role="pending-approvals-table-element"] tr,
  [data-role="pending-approvals-table-element"] td {
    display: block;
    width: 100%;
  }

  [data-role="pending-approvals-table-element"] thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  [data-role="pending-approvals-table-element"] tbody {
    display: grid;
    gap: 0.75rem;
  }

  [data-role="pending-approvals-table-element"] tbody tr {
    padding-top: 0.7rem;
    border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent 24%);
  }

  [data-role="pending-approvals-table-element"] tbody tr:first-child {
    padding-top: 0;
    border-top: 0;
  }

  [data-role="pending-approvals-table-element"] td,
  [data-role="pending-approvals-table-element"] th:first-child,
  [data-role="pending-approvals-table-element"] td:first-child,
  [data-role="pending-approvals-table-element"] th:last-child,
  [data-role="pending-approvals-table-element"] td:last-child {
    padding: 0.2rem 0;
  }

  [data-role="pending-approvals-table-element"] tbody tr + tr td {
    border-top: 0;
  }

  [data-role="pending-approvals-table-element"] td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.08rem;
    color: var(--ink-soft);
    font-family: var(--ui-font);
    font-size: 0.78rem;
    font-weight: 600;
  }

  .pending-approvals-user-cell {
    white-space: normal;
  }

  .pending-approvals-user-cell a {
    overflow-wrap: normal;
    word-break: normal;
  }

  .pending-approvals-profile-link {
    max-width: 100%;
  }

  .pending-approvals-action-cell {
    padding-top: 0.45rem;
    white-space: normal;
  }

  .pending-approvals-action-button {
    width: 100%;
  }
}

.key-material-gap {
  margin-top: 1rem;
}

[data-role="public-key-viewer"],
[data-role="private-key-viewer"] {
  margin-top: 0.45rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--input-bg);
  overflow: auto;
  max-height: 140px;
  font-size: 0.75rem;
  line-height: 1.45;
}

[data-role="browser-key-status"][data-kind="error"] {
  color: var(--status-error);
}

[data-role="browser-key-status"][data-kind="ok"] {
  color: var(--status-ok);
}

.agent-authored-post {
  border-color: color-mix(in srgb, var(--status-ok) 45%, var(--line) 55%);
}

.agent-label {
  display: inline;
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --body-background: var(--page-bg);
    --page-bg: #0b1220;
    --ink: #d9e7ff;
    --ink-soft: #9fb8e8;
    --line: #344a73;
    --panel: #111b31;
    --input-bg: #0f1729;
    --button-bg: #16233d;
    --button-alt-bg: #1b2b49;
    --feedback-ok-bg: #13263f;
    --feedback-error-bg: #3a1a23;
    --status-error: #ffb7c3;
    --status-ok: #a7efb8;
    --status-warning: #f2c66d;
    --active-bg: #263858;
    --active-ink: #f3f8ff;
    --active-line: #86a9e8;
    --active-ring: rgba(134, 169, 232, 0.18);
  }
}

@media (min-width: 640px) {
  .shell {
    padding: 1.5rem;
  }

  .card {
    padding: 1rem 1.1rem;
  }

  .compact-thread-compose-actions {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .tag-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
