:root {
  color-scheme: light;
  font-family: "Segoe UI", Tahoma, "Trebuchet MS", Arial, sans-serif;
  font-size: 100%;
  color: #18334b;
  background: #0760a5;
  font-synthesis: none;
  --ink: #18334b;
  --muted: #4a6378;
  --blue: #075a9f;
  --line: #a9bed0;
  --soft-line: #d0dce6;
  --bar: linear-gradient(#64b9f4 0%, #2585cf 47%, #0e66b2 48%, #155e9d 100%);
  --silver: linear-gradient(#fff 0%, #f0f5f9 47%, #e0e9f1 48%, #eef4f9 100%);
}

* { box-sizing: border-box; border-radius: 0; }
:root[data-theme="dark"] { background: #071427; color-scheme: dark; }
body { display: flow-root; margin: 0; min-width: 280px; min-height: 100dvh; }
body, dialog { color: var(--ink); }
body {
  background:
    linear-gradient(126deg, transparent 0 16%, #c9f4ff20 16.1% 18.5%, #e2faff5e 18.6%, transparent 18.8% 61%, #65d9ff24 61.1% 67%, transparent 67.2%),
    linear-gradient(126deg, transparent 0 42%, #8cddff36 42.2% 47%, transparent 47.2% 82%, #d6f8ff29 82.2% 85%, transparent 85.2%),
    radial-gradient(ellipse at 23% 10%, #7cd9ff 0%, #37b6ef 22%, transparent 58%),
    radial-gradient(ellipse at 95% 90%, #0799cb 0%, transparent 56%),
    linear-gradient(140deg, #1489ca 5%, #0877bb 45%, #084a89 100%);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: #075a9f; text-underline-offset: .15em; }
a:hover { color: #003f7d; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #075b9e;
  outline-offset: 3px;
}
.masthead :focus-visible, .dialog-bar :focus-visible { outline-color: #fff; }
button:disabled { cursor: default; opacity: .65; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 4; padding: .65rem; background: #fff; }

.desktop { width: min(94%, 1320px); margin: clamp(1rem, 3.4vw, 3rem) auto; }
.frame, .dialog-frame {
  padding: 6px;
  border: 1px solid #123d68;
  background:
    linear-gradient(128deg, #f4fcff7d 0%, #ecfbff1c 27%, #004b9b1c 27.2% 60%, #d7f5ff68 60.2% 73%, #005c9e36 73.2%),
    linear-gradient(#91ddffbb, #54b4ecbb 43%, #4e9fd4e8);
  box-shadow: inset 0 0 0 1px #e2f8ffcc, 0 0 0 1px #d9f5ff7d, 0 17px 54px #00345373, 0 3px 8px #00375d7a;
}
.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2rem;
  padding: 0 .45rem .35rem;
  color: #072f51;
  font-size: .875rem;
  text-shadow: 0 0 5px #fff, 0 1px #e0faff;
}
.window-caption { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.window-mark {
  flex: none;
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}
.window-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-note { font-size: .8125rem; white-space: nowrap; }
.masthead, .dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background:
    linear-gradient(128deg, transparent 0 44%, #e0f8ff4d 44.1% 49%, transparent 49.2% 66%, #a8deff24 66.1% 72%, transparent 72.2%),
    linear-gradient(#4bacef 0%, #2385d0 47%, #0762ae 48%, #075590 100%);
  border: 1px solid #155a94;
  box-shadow: inset 0 1px #e3f7ffb3, inset 0 -1px #7fc4f18c;
}
.masthead { min-height: 5.6rem; flex-wrap: wrap; gap: 1rem; padding: .95rem 1.3rem; }
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: .7rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -.045em;
  text-shadow: 0 2px 2px #00508b;
}
.brand:hover { color: #fff; }
.brand > span:last-child { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.brand-icon { display: block; flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; object-fit: contain; filter: drop-shadow(0 1px 2px #14508b); }
.header-right, .header-actions { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.header-right, .header-actions { flex-wrap: wrap; }
.header-actions { gap: .35rem; border-inline-start: 1px solid #b9e1ff99; padding-inline-start: .75rem; }
.header-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: .35rem .65rem;
  border: 1px solid #00477f;
  color: #fff;
  background: linear-gradient(#6ec1f67a 0%, #4e9fd847 48%, #004e924d 49%, #0060a940 100%);
  box-shadow: inset 0 0 0 1px #b9e4ff6b, 0 1px #8dccf533;
  text-decoration: none;
  font-size: .875rem;
  text-shadow: 0 1px #064f89;
  white-space: nowrap;
}
.header-button:hover { color: #fff; background: linear-gradient(#a6e0ff80, #2a83cb61 49%, #075da571 50%); }
.header-name { max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: .875rem; padding: .25rem; }
.search { display: flex; align-items: stretch; position: relative; width: clamp(10rem, 25vw, 20rem); }
.search input {
  width: 100%;
  min-width: 0;
  min-height: 2.25rem;
  padding: .45rem 2.35rem .45rem .65rem;
  color: var(--ink);
  background: linear-gradient(#fff, #f1f9ff);
  border: 1px solid #0a578e;
  box-shadow: inset 0 1px 3px #235b7d40, 0 1px #acdfff;
  font-size: .875rem;
}
.search input::-webkit-search-cancel-button { display: none; }
.search-button { display: grid; place-items: center; width: 2.25rem; position: absolute; inset-block: 0; right: 0; background: transparent; border: 1px solid transparent; color: #28557b; }
.search-button:hover { border-color: #67a6d3; background: #a7d8f857; }
.commandbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  min-height: 2.65rem;
  padding: .3rem .65rem;
  background: var(--silver);
  border: 1px solid #94b0c5;
  border-top: 0;
  box-shadow: inset 0 1px #fff, inset 0 -1px #fff8;
}
.commandbar:empty { display: none; }
.commandbar a, .commandbar button {
  display: inline-flex;
  align-items: center;
  min-height: 1.95rem;
  padding: .3rem .65rem;
  color: #224a68;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: .875rem;
}
.commandbar a:hover, .commandbar button:hover { background: linear-gradient(#f8fdff, #d0eafd); border-color: #91b9d6; }
.commandbar [aria-current="page"] { background: linear-gradient(#e8f6ff, #bcddf6); border-color: #79a7ca; box-shadow: inset 0 0 0 1px #fff9; color: #073c6c; }
.crumbs { display: flex; align-items: center; gap: .65rem; min-height: 2.25rem; padding: .4rem 1rem; background: #f8fbfd; border: 1px solid #b3c5d3; border-top: 0; font-size: .875rem; }
.crumbs:empty { display: none; }
main { background: #f0f5f9; outline: none; }
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: 1.2rem 1.2rem 1.1rem;
  background: linear-gradient(105deg, #fff 0%, #e9f4fc 55%, #d8ebf8 100%);
  border: 1px solid #a7bfd0;
  border-top: 0;
  box-shadow: inset 0 1px #fff;
}
.page-heading h1 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 1.95rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; overflow-wrap: anywhere; }
.page-heading p { margin: .4rem 0 0; color: #426079; line-height: 1.4; font-size: .9375rem; }
.page-heading.thread-heading h1 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); }
.heading-controls { display: flex; flex-wrap: wrap; gap: .45rem; flex-shrink: 0; }
.button {
  appearance: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  min-height: 2.35rem;
  padding: .42rem .85rem;
  border: 1px solid #04508a;
  box-shadow: inset 0 0 0 1px #caedff8c, 0 1px #fff;
  background: linear-gradient(#61b9f2 0%, #2b8cd3 47%, #1069b5 48%, #1463a3 100%);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px #12548b;
  white-space: nowrap;
}
.button:hover { color: #fff; border-color: #003f72; background: linear-gradient(#8cd3fb, #3c9de2 47%, #1878c4 48%, #1a6eb2); }
.button:active { background: linear-gradient(#1262a3, #3596db); box-shadow: inset 0 1px 3px #073a6766; }
.button.secondary {
  color: #244964;
  background: linear-gradient(#fff 0%, #f2f6fa 47%, #dfe8ef 48%, #edf4f8 100%);
  border-color: #8ca7bc;
  box-shadow: inset 0 0 0 1px #fff, 0 1px #fff;
  text-shadow: none;
}
.button.secondary:hover { color: #0c497a; border-color: #5b99c7; background: linear-gradient(#fff, #e8f5ff 47%, #cce5f8 48%, #e2f2fd); }
.link-button { appearance: none; display: inline; padding: 0; border: 0; background: transparent; color: #075a9f; text-decoration: underline; text-underline-offset: .17em; font-weight: 600; }
.link-button:hover { color: #003a6d; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14.25rem, 24%); align-items: start; gap: 1rem; min-height: 28rem; padding: 1rem 1.1rem 1.25rem; border-inline: 1px solid #a7bfd0; }
#primary, #sidebar { min-width: 0; }
#primary > .panel + .panel { margin-top: 1rem; }
#sidebar, .thread-stack { display: grid; align-content: start; gap: .9rem; }
.panel { min-width: 0; background: #fff; border: 1px solid #90acc3; box-shadow: 0 1px #fff, 0 2px 3px #1e56810c; }
.panel-bar { margin: 0; min-height: 2.35rem; padding: .55rem .8rem; color: #fff; background: var(--bar); border-block-end: 1px solid #095795; box-shadow: inset 0 1px #c5eaffb3; text-shadow: 0 1px #17558b; font-size: 1rem; font-weight: 600; line-height: 1.25; }
.panel-body { padding: .9rem .85rem; margin: 0; }
.panel-body p { margin: 0 0 .85rem; line-height: 1.5; }
.panel-body p:last-child { margin-bottom: 0; }
.category-list, .owner-nav { display: grid; padding: .4rem; }
.category-link, .owner-nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.5rem;
  padding: .45rem .55rem;
  color: #224d70;
  background: transparent;
  border: 1px solid transparent;
  border-bottom-color: #e0e9f0;
  font-size: .9375rem;
  text-decoration: none;
}
.category-link:last-child, .owner-nav a:last-child { border-bottom-color: transparent; }
.category-link:hover, .category-link[aria-current="page"], .owner-nav a:hover, .owner-nav [aria-current="page"] { color: #083f73; background: linear-gradient(#eaf7ff, #c7e4fa); border-color: #91b9d7; box-shadow: inset 0 0 0 1px #fff9; }
.access-actions { display: grid; gap: .5rem; }
.info-strip { display: flex; align-items: center; gap: .55rem; margin-top: .85rem; padding: .65rem .6rem; color: #32536c; background: #eef7fd; border: 1px solid #bdd6e8; font-size: .875rem; line-height: 1.4; }
.info-square { display: inline-grid; place-items: center; flex: 0 0 1.1rem; height: 1.1rem; color: #fff; font: bold .875rem Georgia, serif; background: linear-gradient(#66b4eb, #1c6bb0); border: 1px solid #357ba9; }
.topic-table, .owner-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 1rem; }
.topic-table { table-layout: fixed; }
.topic-table thead th, .owner-table thead th { padding: .55rem .75rem; color: #34516b; background: var(--silver); border-bottom: 1px solid #adc1d0; border-inline-end: 1px solid #d3dfe7; font-size: .875rem; font-weight: 600; }
.topic-table thead th:last-child, .owner-table thead th:last-child { border-inline-end: 0; }
.topic-table th:first-child { padding-left: .95rem; }
.topic-table th:nth-child(2) { width: 5rem; text-align: center; }
.topic-table th:nth-child(3) { width: 10.7rem; }
.topic-table td, .owner-table td { padding: .9rem .75rem; border-bottom: 1px solid var(--soft-line); vertical-align: middle; }
.topic-table tr:last-child td, .owner-table tr:last-child td { border-bottom: 0; }
.topic-table tbody tr:nth-child(even), .owner-table tbody tr:nth-child(even) { background: #f4f8fb; }
.topic-table tbody tr:hover, .owner-table tbody tr:hover { background: #e8f4fd; }
.topic-table td:first-child { padding-left: .95rem; }
.topic-table td:nth-child(2) { text-align: center; color: #284b68; }
.topic-cell { display: grid; grid-template-columns: 1.65rem minmax(0, 1fr); align-items: center; gap: .8rem; }
.topic-name, .owner-post-title { color: #075596; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.topic-name:hover, .owner-post-title:hover { text-decoration: underline; }
.topic-meta, .activity-meta { color: var(--muted); font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.topic-meta { margin-top: .3rem; }
.activity-meta { display: block; margin-top: .15rem; }
.topic-icon { position: relative; width: 1.55rem; height: 1.7rem; border: 1px solid #3878a8; background: linear-gradient(#9ad9ff, #4aa5e3 47%, #257bc3 48%, #398fcf); box-shadow: inset 0 0 0 1px #d1f0ff, 1px 1px #d0dee8; }
.topic-icon::after { content: ""; position: absolute; inset: .35rem .3rem; background: repeating-linear-gradient(to bottom, #f2fbff 0 2px, transparent 2px 5px); }
.topic-icon.pinned { border-color: #b18a31; background: linear-gradient(#ffe7a0, #eebd54 47%, #d7972b 48%, #e8ad47); box-shadow: inset 0 0 0 1px #fff1bd, 1px 1px #d3c7ae; }
.icon { display: inline-block; flex: none; position: relative; color: inherit; }
.icon-search { border: 2px solid currentColor; width: .8rem; height: .8rem; margin: -.18rem .2rem 0 0; }
.icon-search::after { content: ""; position: absolute; width: .45rem; height: 2px; background: currentColor; transform: rotate(45deg); right: -.35rem; bottom: -.15rem; }
.icon-topic { width: .85rem; height: 1rem; border: 1px solid #5c91ba; box-shadow: inset 0 0 0 1px #fff; background: linear-gradient(#e2f4ff, #b4d6ed); }
.icon-topic::after { content: ""; position: absolute; inset: .22rem .15rem; background: repeating-linear-gradient(#5487ab 0 1px, transparent 1px 3px); }
.label-chip { display: inline-block; vertical-align: .06em; margin-inline-start: .45rem; padding: .08rem .35rem; color: #6f4a11; background: linear-gradient(#fff9e8, #ffe6a9); border: 1px solid #d7bc75; font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.label-chip.cool { color: #2c5b7e; background: linear-gradient(#f7fcff, #d9ecfa); border-color: #afccdf; }
.table-empty { padding: 2.6rem 1rem; color: var(--muted); text-align: center; }
.table-empty strong { color: var(--ink); }
.table-scroll { overflow-x: auto; }
.owner-table { min-width: 38rem; }
.owner-table th:first-child { width: 43%; }
.owner-table th:last-child { min-width: 11rem; }
.owner-table .label-chip { margin-top: .35rem; }
.table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.table-actions .button { min-height: 2rem; padding: .3rem .55rem; }
.table-actions .link-button { font-size: .875rem; }
.owner-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.summary-tile { display: flex; flex-direction: column; justify-content: center; gap: .35rem; padding: 1rem; background: linear-gradient(#fff, #edf6fc); border: 1px solid #a6c0d3; box-shadow: inset 0 1px #fff, 0 1px #fff; }
.summary-tile strong { color: #145e96; font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.summary-tile span { color: #426078; font-size: .875rem; }
body[data-view="owner"] .page-heading { background: linear-gradient(105deg, #fff, #dfedf8 60%, #c7e1f3); }
body[data-view="owner"] .summary-tile:first-child { border-color: #7aafd2; background: linear-gradient(#f8fdff, #d8edfc); }
.paging { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .75rem; color: #47647b; background: var(--silver); border-top: 1px solid var(--line); font-size: .875rem; }
.paging .button { min-height: 2rem; }
.statusbar { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .7rem; min-height: 2.3rem; padding: .5rem .85rem; color: #47627a; background: var(--silver); border: 1px solid #94afc4; box-shadow: inset 0 1px #fff; font-size: .8125rem; }
.statusbar strong { padding-inline-end: .7rem; color: #294e6b; border-inline-end: 1px solid #b8c9d7; font-weight: 600; }
.statusbar .owner-link { margin-inline-start: auto; }
.message-card { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .85rem; padding: 1rem; background: #fff; border: 1px solid var(--line); box-shadow: inset 0 1px #fff; }
.avatar { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: #fff; background: linear-gradient(#78c5f4, #388dd0 48%, #1e72b9 49%, #347fc0); border: 1px solid #3c7fae; box-shadow: inset 0 0 0 1px #b9e5ff; font-size: 1.35rem; font-weight: 600; text-shadow: 0 1px #16558b; }
.avatar { overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.header-avatar { width: 1.85rem; height: 1.85rem; font-size: 1rem; }
.commandbar .write-post-button { gap: .55rem; padding-inline-end: .45rem; border-color: #92b3ce; background: linear-gradient(#f7fcff, #d7eafa); box-shadow: inset 0 0 0 1px #fff9; }
.write-post-question { display: inline-grid; place-items: center; min-width: 1.35rem; min-height: 1.35rem; padding-inline-start: .45rem; border-inline-start: 1px solid #a3bfd5; font-weight: 700; }
.button.danger { color: #fff; border-color: #8d3129; background: linear-gradient(#dd8675, #bb5141 47%, #9a352d 48%, #b24636); text-shadow: 0 1px #72251f; }
.button.danger:hover { color: #fff; background: linear-gradient(#ed9d88, #cf6352 47%, #ad4539 48%, #c65a45); }
.profile-preview { display: grid; justify-items: center; gap: .6rem; }
.profile-avatar { display: grid; place-items: center; width: 6rem; height: 6rem; overflow: hidden; object-fit: cover; border: 1px solid #4b86b4; color: #fff; background: linear-gradient(#70c1f6, #1e6db2); box-shadow: inset 0 0 0 1px #c0e7ff; font-size: 2.5rem; }
.profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-picture-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.profile-file { max-width: 100%; }
.profile-help { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.message-head { display: flex; align-items: start; justify-content: space-between; gap: .6rem; }
.message-head strong { color: #21435f; }
.message-head time { display: block; margin-top: .2rem; color: var(--muted); font-size: .8125rem; }
.message-body { margin: .7rem 0 0; line-height: 1.6; overflow-wrap: anywhere; }
p.message-body, .message-body p, .message-body li { white-space: pre-wrap; }
.message-body > p { margin: 0 0 .7rem; }
.message-body > p:last-child { margin-bottom: 0; }
.message-body ul { margin: .45rem 0 .7rem; padding-inline-start: 1.4rem; }
.message-body li + li { margin-top: .2rem; }
.message-body a { color: #075a9f; }
.reply-list { display: grid; gap: .55rem; padding: .55rem; background: #edf3f8; }
.reply-list .message-card { box-shadow: none; }
.moderation-buttons { display: flex; justify-content: end; flex-wrap: wrap; gap: .5rem; font-size: .875rem; }
.reply-form, .auth-form, .post-form { display: grid; gap: 1rem; padding: 1rem; }
.reply-form textarea, .post-form textarea { width: 100%; min-height: 6rem; resize: vertical; }
textarea, .field input, select { padding: .55rem .65rem; color: #18334b; background: linear-gradient(#f5f9fc, #fff .9rem); border: 1px solid #8aa8bd; box-shadow: inset 0 1px 2px #1a45651a; }
textarea:focus, .field input:focus, .search input:focus, select:focus { border-color: #2e87c8; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field input, .field select { width: 100%; min-height: 2.5rem; }
.field label { font-size: .9375rem; font-weight: 600; }
.field small { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.field select, .board-toolbar select { appearance: none; padding-inline-end: 2rem; background: linear-gradient(45deg, transparent 50%, #426984 50%) calc(100% - 13px) 50% / 5px 5px no-repeat, linear-gradient(135deg, #426984 50%, transparent 50%) calc(100% - 8px) 50% / 5px 5px no-repeat, #f8fbfd; }
.check-field { display: inline-flex; align-items: center; gap: .45rem; font-size: .9375rem; }
.check-field input { accent-color: #1976b9; }
.form-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: .65rem; }
.form-actions .form-status { margin-inline-end: auto; color: var(--muted); font-size: .875rem; }
.form-error { margin: 0; padding: .6rem .7rem; color: #872d21; background: #fff2ee; border: 1px solid #d8aea4; font-size: .875rem; line-height: 1.45; }
.inline-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.dialog-frame { width: min(29rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); overflow: auto; margin: auto; }
.dialog-frame.wide-dialog { width: min(41rem, calc(100% - 1.5rem)); }
.dialog-frame::backdrop { background: #07335775; }
.dialog-bar { gap: .5rem; min-height: 2.55rem; padding: .35rem .35rem .35rem .75rem; }
.dialog-bar h2 { margin: 0; font-size: 1rem; font-weight: 600; text-shadow: 0 1px #15548b; }
.dialog-bar form { margin: 0; }
.close-button { width: 2.35rem; height: 1.65rem; padding: 0; color: #fff; background: linear-gradient(#efa99d, #d96e5e 47%, #b84032 48%, #bf493b); border: 1px solid #903f36; box-shadow: inset 0 0 0 1px #ffcebf9c; font-size: 1.25rem; line-height: 1; text-shadow: 0 1px #8d332c; }
.close-button:hover { background: linear-gradient(#ffd0b8, #ef8c6b 47%, #d1563c 48%, #e06a47); box-shadow: inset 0 0 0 1px #ffe0c8, 0 0 8px #ffbb817d; }
.auth-form, .post-form { padding: 1.2rem; background: linear-gradient(#fff, #f5f9fc); }
.form-intro, .post-form p { margin: 0; line-height: 1.5; }
.password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.password-field .button { min-width: 3.6rem; border-inline-start: 0; }
.auth-submit { min-height: 2.55rem; margin-top: .15rem; }
.dialog-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem; padding: .85rem 1rem; background: var(--silver); border-top: 1px solid #b6cbd9; font-size: .875rem; }
.auth-owner-entry { display: flex; justify-content: end; align-items: center; gap: .4rem; padding: .6rem .85rem; color: #5b7286; background: #eef4f8; border-top: 1px solid #d2dfe8; font-size: .875rem; }
.owner-account-link { color: #48677f; font-size: .875rem; text-decoration: none; }
.owner-account-link:hover { color: #075a9f; text-decoration: underline; }
.post-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 30%); gap: .8rem; }
.notice-toast { position: fixed; z-index: 2; right: 1rem; bottom: 1rem; max-width: min(27rem, calc(100vw - 2rem)); padding: .8rem 1rem; color: #234763; background: linear-gradient(#fff, #e1f1fc); border: 1px solid #619bc2; box-shadow: inset 0 0 0 1px #fff, 0 4px 20px #073b6361; font-size: .9375rem; line-height: 1.45; }
.no-script { position: fixed; inset: auto 1rem 1rem; margin: 0; padding: .75rem; background: #f6fbff; color: #18334b; }

@media (max-width: 950px) {
  .desktop { width: calc(100% - 1.75rem); margin-block: 1.25rem; }
  .masthead { padding-inline: 1rem; }
  .header-right { gap: .55rem; }
  .header-actions { padding-inline-start: .55rem; }
  .board-grid { grid-template-columns: minmax(0, 1fr) 14rem; gap: .8rem; padding-inline: .85rem; }
  .topic-table th:nth-child(3) { width: 9rem; }
  .owner-summary { gap: .6rem; }
  .summary-tile { padding: .9rem .75rem; }
}

@media (max-width: 700px) {
  .desktop { width: calc(100% - 1rem); margin-block: .75rem; }
  .frame { padding: 4px; }
  .window-titlebar { padding-inline: .25rem; }
  .window-note { display: none; }
  .masthead { align-items: stretch; flex-direction: column; gap: .8rem; padding: .8rem; }
  .header-right { width: 100%; justify-content: space-between; }
  .search { flex: 1; width: auto; }
  .header-name { max-width: 6.5rem; }
  .header-button { padding-inline: .5rem; }
  .commandbar { padding-inline: .35rem; }
  .commandbar a, .commandbar button { padding-inline: .5rem; }
  .page-heading { align-items: start; flex-wrap: wrap; padding: 1rem .85rem; }
  .page-heading h1, .page-heading.thread-heading h1 { font-size: 1.55rem; }
  .heading-controls { flex-shrink: 1; }
  .board-grid { grid-template-columns: minmax(0, 1fr); min-height: 24rem; padding: .85rem; }
  #sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-summary { gap: .5rem; }
  .summary-tile { padding: .85rem .65rem; }
  .summary-tile strong { font-size: 1.7rem; }
  .topic-table th:nth-child(3), .topic-table td:nth-child(3) { display: none; }
  .topic-table th:nth-child(2) { width: 4.5rem; }
  .message-head { flex-wrap: wrap; }
  .moderation-buttons { justify-content: start; }
}

@media (max-width: 430px) {
  .desktop { width: calc(100% - .65rem); margin-block: .4rem; }
  .brand { font-size: 1.8rem; }
  .header-actions { border-inline-start: 0; padding-inline-start: 0; }
  .header-name { max-width: 4.8rem; }
  .header-right { flex-wrap: wrap; }
  .search { min-width: 9rem; }
  .board-grid { padding: .65rem; }
  #sidebar { grid-template-columns: minmax(0, 1fr); }
  .owner-summary { grid-template-columns: minmax(0, 1fr); }
  .summary-tile { flex-direction: row; align-items: center; justify-content: start; gap: .8rem; padding: .75rem; }
  .summary-tile strong { min-width: 2rem; }
  .message-card { grid-template-columns: 2.25rem minmax(0, 1fr); gap: .65rem; padding: .75rem; }
  .avatar { width: 2.25rem; height: 2.25rem; font-size: 1.1rem; }
  .post-fields { grid-template-columns: minmax(0, 1fr); }
  .dialog-frame { padding: 4px; }
  .auth-form, .post-form { padding: 1rem; }
  .paging { padding-inline: .5rem; }
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  padding: .45rem;
  background: var(--silver);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px #fff;
}
.admin-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: .4rem .75rem;
  color: #294f6d;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: .875rem;
}
.admin-tabs a:hover { background: #e4f2fc; border-color: #a1c4de; }
.admin-tabs [aria-current="page"] {
  color: #063d6c;
  background: linear-gradient(#f4fbff, #d5eafa 47%, #c3dff4 48%, #d7eafa);
  border-color: #81a9c6;
  box-shadow: inset 0 0 0 1px #fff;
}
.admin-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  padding: .85rem;
  background: #f5f9fc;
  border-bottom: 1px solid var(--soft-line);
}
.admin-toolbar .field { flex: 1 1 14rem; }
.admin-toolbar p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.admin-list { display: grid; gap: .85rem; padding: .85rem; }
.admin-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #aec3d3;
  box-shadow: inset 0 1px #fff;
}
.admin-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem;
  padding: .85rem;
  background: linear-gradient(#f9fcff, #eaf3fa);
  border-bottom: 1px solid #d1dfe9;
}
.admin-card-header h3 { margin: 0; color: #164e78; font-size: 1.0625rem; font-weight: 600; overflow-wrap: anywhere; }
.admin-card-header p { margin: .3rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.admin-card-body { padding: .85rem; }
.admin-card-body p { margin: 0; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-card-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
  gap: .55rem;
  padding: .8rem .85rem;
  background: #f3f8fb;
  border-top: 1px solid #d1dfe9;
}
.admin-card-actions .check-field { margin-inline-end: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9375rem; }
table.admin-table, .admin-table table { min-width: 42rem; width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: .6rem .75rem;
  color: #34516b;
  background: var(--silver);
  border-bottom: 1px solid #adc1d0;
  border-inline-end: 1px solid #d3dfe7;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}
.admin-table th:last-child { border-inline-end: 0; }
.admin-table td { padding: .85rem .75rem; border-bottom: 1px solid var(--soft-line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:nth-child(even) { background: #f4f8fb; }
.admin-table tbody tr:hover { background: #e8f4fd; }
.admin-table td > small { display: block; margin-top: .3rem; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.admin-table .table-actions { min-width: 12rem; }
.admin-empty { margin: 0; padding: 2.5rem 1rem; color: var(--muted); text-align: center; line-height: 1.5; }
.category-create {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1rem;
  background: #f3f8fc;
  border-bottom: 1px solid var(--soft-line);
}
.category-create .field { flex: 1 1 15rem; }
.category-create .form-error { flex-basis: 100%; }
.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .9rem;
  background: #fff;
  border: 1px solid #b8ccd9;
}
.category-row > div { min-width: 0; }
.category-row strong { display: block; color: #214b6d; font-weight: 600; overflow-wrap: anywhere; }
.category-row small, .category-row p { display: block; margin: .3rem 0 0; color: var(--muted); font-size: .875rem; }
.category-row button { flex: none; }
.reply-context {
  display: block;
  margin: .7rem 0 0;
  padding: .65rem .8rem;
  color: #456079;
  background: #edf5fc;
  border: 1px solid #c6dbea;
  border-inline-start: 3px solid #5f9cc7;
  font-size: .875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.reply-context strong { color: #24547a; font-weight: 600; }
.reply-context p { margin: .25rem 0 0; white-space: pre-wrap; }
.reply-context > span { display: block; margin-top: .25rem; white-space: pre-wrap; }
.reply-context a { text-decoration: none; }
.reply-context a:hover { text-decoration: underline; }
.reply-to-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .65rem .75rem;
  color: #254f70;
  background: linear-gradient(#f3faff, #dfeef9);
  border: 1px solid #a7c7df;
  font-size: .875rem;
  line-height: 1.4;
}
.reply-to-bar span { min-width: 0; overflow-wrap: anywhere; }
.reply-to-bar button { flex: none; }
.reply-action { margin-top: .7rem; font-size: .875rem; }
.submission-review { display: grid; gap: .75rem; }
.submission-review .form-error { margin: .75rem .85rem 0; }
.form-help { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
#theme-toggle { margin-inline-start: auto; }

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem;
  padding: .65rem .8rem;
  color: #36566f;
  background: var(--silver);
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
}
.board-toolbar label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.board-toolbar .field { display: flex; align-items: center; gap: .55rem; }
.board-toolbar select { min-width: 11.5rem; min-height: 2.25rem; }
.editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .4rem;
  background: var(--silver);
  border: 1px solid #a6bdcf;
  box-shadow: inset 0 1px #fff;
}
.editor-toolbar button { min-height: 2rem; padding: .28rem .65rem; font-size: .875rem; }
.post-images { display: grid; gap: .65rem; min-width: 0; }
.image-picker-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.image-picker-actions p, .image-picker-actions small { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.image-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .65rem; }
.image-preview { min-width: 0; margin: 0; overflow: hidden; background: #edf5fb; border: 1px solid #a7c0d3; box-shadow: inset 0 1px #fff; }
.image-preview img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #dfeaf3; }
.image-preview figcaption, .image-preview > span, .image-preview > p { display: block; overflow: hidden; margin: 0; padding: .4rem .5rem; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
.image-preview button { width: 100%; min-height: 2rem; border-inline: 0; border-bottom: 0; font-size: .875rem; }
.image-upload-error { margin: 0; padding: .6rem .7rem; color: #872d21; background: #fff2ee; border: 1px solid #d8aea4; font-size: .875rem; line-height: 1.45; }
.draft-status { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.form-actions .draft-status { margin-inline-end: auto; }
.member-list { display: grid; gap: .85rem; padding: .85rem; }
.member-card { min-width: 0; padding: .9rem; background: #fff; border: 1px solid #aec3d3; box-shadow: inset 0 1px #fff; }
.member-card-head { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.member-card-head h3 { margin: 0; color: #164e78; font-size: 1.0625rem; font-weight: 600; overflow-wrap: anywhere; }
.member-card-head p { margin: .3rem 0 0; }
.member-card > .message-body { margin-block: .7rem; }
.member-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; padding-top: .75rem; border-top: 1px solid var(--soft-line); }
.member-card.unread-notification { border-inline-start: 3px solid #2685c8; background: linear-gradient(110deg, #e7f5ff, #f8fcff); }
.profile-overview { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: start; gap: 1rem; padding: 1rem; }
.profile-overview .avatar { width: 5rem; height: 5rem; font-size: 2.3rem; }
.profile-overview h2, .profile-overview h3 { margin: 0; color: #164e78; font-size: 1.4rem; font-weight: 600; overflow-wrap: anywhere; }
.profile-overview .topic-meta { margin-top: .4rem; }
.profile-stats { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .75rem; color: #426078; font-size: .875rem; line-height: 1.4; }
.profile-stats strong { color: #155f98; font-weight: 600; }
.profile-bio { margin: .75rem 0 0; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-block: .55rem; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.status-line .label-chip { margin-inline-start: 0; }
.post-attachments, .post-pictures { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; margin-top: .8rem; }
.post-attachments > a, .post-attachments figure, .post-pictures > a { display: block; min-width: 0; margin: 0; overflow: hidden; background: #eef4f8; border: 1px solid #b5cad9; }
.post-attachments img, .post-pictures img { display: block; width: 100%; height: auto; max-height: 32rem; object-fit: contain; }
.post-attachments figcaption { padding: .45rem .55rem; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.submission-note { margin-top: .8rem; padding: .7rem .8rem; color: #35556f; background: #eef7fd; border: 1px solid #c2d9e9; border-inline-start: 3px solid #6ca5cd; }
.submission-note > strong { font-size: .875rem; font-weight: 600; }
.submission-note > .message-body { margin-top: .3rem; }
.member-card-head .notification-message { flex: 1 1 16rem; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }

body[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e0edf7;
  --muted: #aac1d3;
  --blue: #8bcaff;
  --line: #3a5771;
  --soft-line: #2e455c;
  --bar: linear-gradient(#3f87bd 0%, #266997 47%, #164e7e 48%, #1c5480 100%);
  --silver: linear-gradient(#344c63 0%, #2b4158 47%, #20364d 48%, #293e55 100%);
  background:
    linear-gradient(126deg, transparent 0 16%, #a0deff0c 16.1% 18.5%, #bdeaff22 18.6%, transparent 18.8% 61%, #2a91d015 61.1% 67%, transparent 67.2%),
    linear-gradient(126deg, transparent 0 42%, #4a9ccd17 42.2% 47%, transparent 47.2% 82%, #92ccff0f 82.2% 85%, transparent 85.2%),
    radial-gradient(ellipse at 22% 10%, #1a4d77 0%, #122f52 24%, transparent 60%),
    radial-gradient(ellipse at 95% 90%, #0c3550 0%, transparent 58%),
    linear-gradient(140deg, #0a1d32, #071427 52%, #050e1b);
  background-attachment: fixed;
}
body[data-theme="dark"] a { color: #8dcaff; }
body[data-theme="dark"] a:hover { color: #b4ddff; }
body[data-theme="dark"] button:focus-visible,
body[data-theme="dark"] a:focus-visible,
body[data-theme="dark"] input:focus-visible,
body[data-theme="dark"] select:focus-visible,
body[data-theme="dark"] textarea:focus-visible { outline-color: #82c9ff; }
body[data-theme="dark"] .frame,
body[data-theme="dark"] .dialog-frame {
  border-color: #15324d;
  background:
    linear-gradient(128deg, #a5d6ff30 0%, #c0e5ff08 27%, #05294740 27.2% 60%, #8cc6ec30 60.2% 73%, #0b31504d 73.2%),
    linear-gradient(#345f7fd9, #224c70ee 43%, #203e5bf2);
  box-shadow: inset 0 0 0 1px #81b8df77, 0 0 0 1px #071422, 0 17px 54px #0009, 0 3px 8px #0009;
}
body[data-theme="dark"] .window-titlebar { color: #e0f0ff; text-shadow: 0 1px 2px #061320; }
body[data-theme="dark"] .masthead,
body[data-theme="dark"] .dialog-bar {
  background:
    linear-gradient(128deg, transparent 0 44%, #a5d9ff1f 44.1% 49%, transparent 49.2% 66%, #9cc8ef12 66.1% 72%, transparent 72.2%),
    linear-gradient(#3b80b5 0%, #236393 47%, #164a79 48%, #173f65 100%);
  border-color: #163d60;
  box-shadow: inset 0 1px #a9d6f577, inset 0 -1px #5884a855;
}
body[data-theme="dark"] .brand,
body[data-theme="dark"] .brand:hover,
body[data-theme="dark"] .header-button,
body[data-theme="dark"] .header-button:hover { color: #fff; }
body[data-theme="dark"] .brand { text-shadow: 0 2px 2px #071f35; }
body[data-theme="dark"] .header-actions { border-inline-start-color: #789ebc66; }
body[data-theme="dark"] .header-button { border-color: #113b5d; background: linear-gradient(#5d96c25c, #316a9647 48%, #0c385d70 49%, #15456c70); box-shadow: inset 0 0 0 1px #9bc6e64d; }
body[data-theme="dark"] .header-button:hover { background: linear-gradient(#7ab4dc80, #356f9b61 49%, #164d7e99 50%); }
body[data-theme="dark"] .search input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] .field input,
body[data-theme="dark"] select {
  color: #e2edf7;
  background: linear-gradient(#101d2b, #152738 .9rem);
  border-color: #536f87;
  box-shadow: inset 0 1px 3px #0007;
}
body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder { color: #8fa7ba; opacity: 1; }
body[data-theme="dark"] .field select,
body[data-theme="dark"] .board-toolbar select {
  background: linear-gradient(45deg, transparent 50%, #a7c8e0 50%) calc(100% - 13px) 50% / 5px 5px no-repeat,
    linear-gradient(135deg, #a7c8e0 50%, transparent 50%) calc(100% - 8px) 50% / 5px 5px no-repeat, #142536;
}
body[data-theme="dark"] .search-button { color: #a9c9e0; }
body[data-theme="dark"] .search-button:hover { border-color: #567e9d; background: #5f9fca22; }
body[data-theme="dark"] .commandbar,
body[data-theme="dark"] .admin-tabs { border-color: #435e75; box-shadow: inset 0 1px #8ba9c033; }
body[data-theme="dark"] .commandbar a,
body[data-theme="dark"] .commandbar button,
body[data-theme="dark"] .admin-tabs a { color: #d4e5f2; }
body[data-theme="dark"] .commandbar a:hover,
body[data-theme="dark"] .commandbar button:hover,
body[data-theme="dark"] .admin-tabs a:hover { background: linear-gradient(#3a5c79, #284967); border-color: #6485a2; }
body[data-theme="dark"] .commandbar [aria-current="page"],
body[data-theme="dark"] .admin-tabs [aria-current="page"] { color: #f1f8ff; background: linear-gradient(#47769a, #315c80 47%, #234767 48%, #315c7e); border-color: #729aba; box-shadow: inset 0 0 0 1px #b8d5ec33; }
body[data-theme="dark"] .crumbs { background: #1a2b3d; border-color: #3b556d; color: #adc6db; }
body[data-theme="dark"] main { background: #132334; }
body[data-theme="dark"] .page-heading,
body[data-theme="dark"][data-view="owner"] .page-heading { background: linear-gradient(105deg, #20384d, #1b3046 60%, #233e58); border-color: #405e76; box-shadow: inset 0 1px #93b5cd22; }
body[data-theme="dark"] .page-heading p,
body[data-theme="dark"] .summary-tile span { color: #b3cbdc; }
body[data-theme="dark"] .board-grid { border-color: #405e76; }
body[data-theme="dark"] .panel { background: #182b3d; border-color: #4c6b85; box-shadow: 0 1px #08121c, 0 2px 3px #0002; }
body[data-theme="dark"] .panel-bar { border-color: #123b5e; box-shadow: inset 0 1px #a1cde54d; }
body[data-theme="dark"] .button { color: #fff; background: linear-gradient(#4a98d3, #2978b5 47%, #1a5b94 48%, #205d91); border-color: #123a5e; box-shadow: inset 0 0 0 1px #a1cde55c, 0 1px #7ca0ba22; }
body[data-theme="dark"] .button:hover { color: #fff; background: linear-gradient(#67b4eb, #348dcc 47%, #226da9 48%, #2e79b3); }
body[data-theme="dark"] .button.secondary { color: #d8e8f5; background: linear-gradient(#4d657a, #3a5268 47%, #2b4157 48%, #354e65); border-color: #70889b; box-shadow: inset 0 0 0 1px #b7d0e433; text-shadow: 0 1px #142b3f; }
body[data-theme="dark"] .button.secondary:hover { color: #eff8ff; background: linear-gradient(#60829c, #496c88 47%, #355b7b 48%, #416c8e); border-color: #8fb1cb; }
body[data-theme="dark"] .link-button { color: #8dcaff; }
body[data-theme="dark"] .link-button:hover { color: #b4ddff; }
body[data-theme="dark"] .category-link,
body[data-theme="dark"] .owner-nav a { color: #c7dce9; border-bottom-color: #334d63; }
body[data-theme="dark"] .category-link:hover,
body[data-theme="dark"] .category-link[aria-current="page"],
body[data-theme="dark"] .owner-nav a:hover,
body[data-theme="dark"] .owner-nav [aria-current="page"] { color: #edf7ff; background: linear-gradient(#2d526f, #24425e); border-color: #5d86a5; box-shadow: inset 0 0 0 1px #99bcd333; }
body[data-theme="dark"] .info-strip { color: #bdd5e6; background: #1c3a50; border-color: #41627a; }
body[data-theme="dark"] .topic-table thead th,
body[data-theme="dark"] .owner-table thead th,
body[data-theme="dark"] .admin-table th { color: #c8ddeb; border-color: #486278; }
body[data-theme="dark"] .topic-table tbody tr:nth-child(even),
body[data-theme="dark"] .owner-table tbody tr:nth-child(even),
body[data-theme="dark"] .admin-table tbody tr:nth-child(even) { background: #1b3043; }
body[data-theme="dark"] .topic-table tbody tr:hover,
body[data-theme="dark"] .owner-table tbody tr:hover,
body[data-theme="dark"] .admin-table tbody tr:hover { background: #274963; }
body[data-theme="dark"] .topic-table td:nth-child(2) { color: #cbdfed; }
body[data-theme="dark"] .topic-name,
body[data-theme="dark"] .owner-post-title { color: #8dcbfb; }
body[data-theme="dark"] .label-chip { color: #ffe1a3; background: linear-gradient(#5b4a25, #47391c); border-color: #8a7447; }
body[data-theme="dark"] .label-chip.cool { color: #c3e0f4; background: linear-gradient(#31546d, #24445e); border-color: #5b809a; }
body[data-theme="dark"] .summary-tile,
body[data-theme="dark"][data-view="owner"] .summary-tile:first-child { border-color: #52748e; background: linear-gradient(#27445b, #1d354c); box-shadow: inset 0 1px #9dbed533; }
body[data-theme="dark"] .summary-tile strong { color: #a0d5ff; }
body[data-theme="dark"] .paging,
body[data-theme="dark"] .statusbar { color: #b9cede; border-color: #4c687e; box-shadow: inset 0 1px #99b8ce22; }
body[data-theme="dark"] .statusbar strong { color: #d7e8f3; border-color: #5e7a90; }
body[data-theme="dark"] .message-card,
body[data-theme="dark"] .admin-card,
body[data-theme="dark"] .category-row { background: #182b3d; border-color: #45627b; box-shadow: inset 0 1px #9abbd519; }
body[data-theme="dark"] .message-head strong,
body[data-theme="dark"] .category-row strong { color: #dcecf8; }
body[data-theme="dark"] .message-body a { color: #8dcaff; }
body[data-theme="dark"] .reply-list { background: #101f2e; }
body[data-theme="dark"] .reply-context { color: #b8cede; background: #203c52; border-color: #3d607a; border-inline-start-color: #76afd7; }
body[data-theme="dark"] .reply-context strong { color: #d2e9f9; }
body[data-theme="dark"] .reply-to-bar { color: #cce1f0; background: linear-gradient(#28465e, #203a51); border-color: #537b99; }
body[data-theme="dark"] .admin-toolbar,
body[data-theme="dark"] .category-create { background: #1c3246; border-color: #3a566e; }
body[data-theme="dark"] .admin-card-header { background: linear-gradient(#28455d, #20394f); border-color: #3e5b72; }
body[data-theme="dark"] .admin-card-header h3 { color: #a9d7fa; }
body[data-theme="dark"] .admin-card-actions { background: #1c3347; border-color: #3e5b72; }
body[data-theme="dark"] .form-error { color: #ffd8ce; background: #4f2c2b; border-color: #9e6258; }
body[data-theme="dark"] .dialog-frame::backdrop { background: #020811b3; }
body[data-theme="dark"] .auth-form,
body[data-theme="dark"] .post-form { background: linear-gradient(#203649, #192c3e); }
body[data-theme="dark"] .dialog-footer { border-color: #4c687e; }
body[data-theme="dark"] .auth-owner-entry { color: #a9c0d1; background: #20364a; border-color: #3c586e; }
body[data-theme="dark"] .owner-account-link { color: #b0cce0; }
body[data-theme="dark"] .owner-account-link:hover { color: #d1eaff; }
body[data-theme="dark"] .notice-toast { color: #dcecf7; background: linear-gradient(#304f68, #223b50); border-color: #729bb7; box-shadow: inset 0 0 0 1px #b9d3e333, 0 4px 20px #0009; }
body[data-theme="dark"] .skip-link:focus,
body[data-theme="dark"] .no-script { color: #e0edf7; background: #203a51; }
body[data-theme="dark"] .button.danger { color: #fff0ec; border-color: #9c625a; background: linear-gradient(#9e645c, #7d423e 47%, #642e2d 48%, #7e413a); }
body[data-theme="dark"] .commandbar .write-post-button { border-color: #6485a2; background: linear-gradient(#365e7f, #264763); box-shadow: inset 0 0 0 1px #b8d5ec22; }
body[data-theme="dark"] .write-post-question { border-inline-start-color: #6688a4; }
body[data-theme="dark"] .button.danger:hover { background: linear-gradient(#b67b70, #93534b 47%, #7d3a34 48%, #97554a); }
body[data-theme="dark"] .profile-avatar { border-color: #6e9aba; background: linear-gradient(#3c739b, #234d72); box-shadow: inset 0 0 0 1px #9bc4df55; }
body[data-theme="dark"] .board-toolbar { color: #bfd5e5; }
body[data-theme="dark"] .editor-toolbar { border-color: #4c6b85; box-shadow: inset 0 1px #9cbed433; }
body[data-theme="dark"] .image-preview { background: #20384d; border-color: #4c6b85; box-shadow: inset 0 1px #9cbed422; }
body[data-theme="dark"] .image-preview img { background: #112234; }
body[data-theme="dark"] .image-upload-error { color: #ffd8ce; background: #4f2c2b; border-color: #9e6258; }
body[data-theme="dark"] .member-card { background: #182b3d; border-color: #45627b; box-shadow: inset 0 1px #9abbd519; }
body[data-theme="dark"] .member-card-head h3,
body[data-theme="dark"] .profile-overview h2,
body[data-theme="dark"] .profile-overview h3 { color: #abd8fa; }
body[data-theme="dark"] .member-card.unread-notification { border-inline-start-color: #78bce9; background: linear-gradient(110deg, #25465f, #1c3449); }
body[data-theme="dark"] .profile-stats { color: #b3cbdc; }
body[data-theme="dark"] .profile-stats strong { color: #9ad0f7; }
body[data-theme="dark"] .post-attachments > a,
body[data-theme="dark"] .post-attachments figure,
body[data-theme="dark"] .post-pictures > a { background: #102032; border-color: #45627b; }
body[data-theme="dark"] .submission-note { color: #bfd6e7; background: #203b51; border-color: #466680; border-inline-start-color: #79add2; }

@media (max-width: 700px) {
  .admin-tabs { gap: .2rem; padding: .35rem; }
  .admin-tabs a { flex: 1 0 auto; justify-content: center; padding-inline: .55rem; }
  .admin-list { gap: .65rem; padding: .65rem; }
  .admin-card-header, .admin-card-body, .admin-card-actions { padding: .75rem; }
  .admin-toolbar { align-items: stretch; }
  .admin-toolbar .field { flex-basis: 100%; }
  .category-create { padding: .8rem; }
  .category-row { padding: .8rem; }
  .reply-context { padding: .6rem; }
  #theme-toggle { margin-inline-start: 0; }
  .board-toolbar { align-items: start; padding: .65rem; }
  .member-list { gap: .65rem; padding: .65rem; }
  .member-card { padding: .75rem; }
  .profile-overview { padding: .85rem; gap: .8rem; }
  .post-attachments, .post-pictures { gap: .6rem; }
}

@media (max-width: 430px) {
  .admin-tabs a { flex-basis: calc(50% - .2rem); }
  .category-create .field { flex-basis: 100%; }
  .category-create > .button { width: 100%; }
  .category-row { align-items: start; flex-wrap: wrap; }
  .category-row > div { flex: 1 1 9rem; }
  .admin-card-actions { justify-content: start; }
  .admin-card-actions .check-field { flex-basis: 100%; margin-inline-end: 0; }
  .reply-to-bar { align-items: start; }
  .reply-context { margin-inline-start: 0; }
  .board-toolbar > label, .board-toolbar .field { width: 100%; }
  .board-toolbar select { flex: 1; min-width: 0; }
  .image-picker-actions { align-items: start; }
  .image-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .member-card-head { align-items: start; }
  .member-card-actions .button { flex: 1 1 auto; }
  .profile-overview { grid-template-columns: 3.5rem minmax(0, 1fr); gap: .7rem; padding: .75rem; }
  .profile-overview .avatar { width: 3.5rem; height: 3.5rem; font-size: 1.75rem; }
  .profile-overview h2, .profile-overview h3 { font-size: 1.2rem; }
  .profile-stats { gap: .35rem .75rem; }
  .post-attachments, .post-pictures { grid-template-columns: minmax(0, 1fr); }
}

.mobile-menu-toggle { display: none; }
.like-button { min-height: 2.25rem; font-size: .875rem; }
.like-button.is-liked {
  color: #064b7d;
  background: linear-gradient(#e6f7ff, #b6def8 47%, #a1cfee 48%, #c3e5fa);
  border-color: #538fb9;
  box-shadow: inset 0 0 0 1px #f5fcff, 0 1px #fff;
}
.like-button.is-liked:hover { color: #043c66; background: linear-gradient(#f3fcff, #c8ebff 47%, #b2def7 48%, #d2efff); }
.topic-likes { white-space: nowrap; }
.poll-panel {
  min-width: 0;
  margin-top: 1rem;
  padding: .9rem;
  background: linear-gradient(#f8fcff, #edf5fb);
  border: 1px solid #aac5d9;
  box-shadow: inset 0 1px #fff;
}
.poll-question { margin: 0; color: #214d70; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.poll-summary { margin: .35rem 0 .85rem; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.poll-voting { display: grid; gap: .8rem; }
.poll-options { display: grid; gap: .5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.poll-option {
  display: flex;
  align-items: start;
  gap: .6rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: .65rem .7rem;
  background: #fff;
  border: 1px solid #b4c9d8;
  box-shadow: inset 0 1px #fff;
  cursor: pointer;
}
.poll-option:has(input:not(:disabled)):hover { border-color: #6ca4cb; background: #f3faff; }
.poll-option.is-selected { border-color: #5e99c3; background: #e4f3fd; }
.poll-option input { flex: none; margin: .2rem 0 0; accent-color: #1976b9; }
.poll-option input:disabled { cursor: default; }
.poll-option-copy { display: grid; flex: 1; gap: .35rem; min-width: 0; }
.poll-option-text { line-height: 1.4; overflow-wrap: anywhere; }
.poll-option-result { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.poll-result-track { appearance: none; display: block; width: 100%; height: .6rem; overflow: hidden; background: #d8e6ef; border: 1px solid #9dbacd; accent-color: #328bc9; }
.poll-result-track::-webkit-progress-bar { background: #d8e6ef; }
.poll-result-track::-webkit-progress-value { background: linear-gradient(#83d0fb, #3e9bd8 47%, #287fc0 48%, #4ca2dc); box-shadow: inset 0 1px #e4f8ff99; }
.poll-result-track::-moz-progress-bar { background: linear-gradient(#83d0fb, #3e9bd8 47%, #287fc0 48%, #4ca2dc); box-shadow: inset 0 1px #e4f8ff99; }
.poll-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; }
.poll-actions .button { white-space: normal; }
.poll-closed .poll-option { cursor: default; }
.poll-status { margin: .75rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.poll-status:empty { display: none; }
.poll-editor { min-width: 0; margin: 0; padding: .85rem; background: #edf5fb; border: 1px solid #adc6d8; }
.poll-editor > legend { padding-inline: .35rem; font-size: .9375rem; font-weight: 600; }
.poll-editor-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 2rem; font-size: .9375rem; }
.poll-editor-toggle input { accent-color: #1976b9; }
.poll-editor-fields { display: grid; gap: .8rem; margin-top: .65rem; }
.poll-editor-options { display: grid; gap: .6rem; }
.poll-editor-option { display: flex; align-items: end; gap: .55rem; min-width: 0; }
.poll-editor-option > .field { flex: 1; min-width: 0; }
.poll-editor-option > .button { flex: none; min-height: 2.5rem; }
.poll-editor-note { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }

body[data-theme="dark"] .like-button.is-liked { color: #e9f7ff; background: linear-gradient(#4f82a6, #37688d 47%, #285375 48%, #3b6a8e); border-color: #92b8d0; box-shadow: inset 0 0 0 1px #bedff544, 0 1px #0c1b2a; }
body[data-theme="dark"] .like-button.is-liked:hover { color: #fff; background: linear-gradient(#6499be, #497fa6 47%, #356890 48%, #4a83ac); }
body[data-theme="dark"] .poll-panel,
body[data-theme="dark"] .poll-editor { background: linear-gradient(#203b51, #1b3248); border-color: #4d708b; box-shadow: inset 0 1px #b2d8ef22; }
body[data-theme="dark"] .poll-question { color: #c0e2fa; }
body[data-theme="dark"] .poll-option { background: #172b3d; border-color: #4c6b84; box-shadow: inset 0 1px #a2bfd422; }
body[data-theme="dark"] .poll-option:has(input:not(:disabled)):hover { background: #23445e; border-color: #709dbd; }
body[data-theme="dark"] .poll-option.is-selected { background: #284e6b; border-color: #81b3d5; }
body[data-theme="dark"] .poll-result-track { background: #122638; border-color: #567b97; }
body[data-theme="dark"] .poll-result-track::-webkit-progress-bar { background: #122638; }
body[data-theme="dark"] .poll-result-track::-webkit-progress-value { background: linear-gradient(#67b7e8, #388bc4 47%, #28699e 48%, #3c88bf); }
body[data-theme="dark"] .poll-result-track::-moz-progress-bar { background: linear-gradient(#67b7e8, #388bc4 47%, #28699e 48%, #3c88bf); }

@media (max-width: 640px) {
  .header-right { align-items: stretch; gap: .55rem; }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-height: 2.75rem;
    padding-inline: .85rem;
    color: #fff;
    background: linear-gradient(#76c5f380, #378bc747 47%, #065a9c70 48%, #14639f70);
    border: 1px solid #064d82;
    box-shadow: inset 0 0 0 1px #c4eaff80;
    font-size: .9375rem;
    font-weight: 600;
    text-shadow: 0 1px #165389;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle[aria-expanded="true"] { color: #fff; background: linear-gradient(#a7e1ff99, #5aa9df66 47%, #176cac99 48%, #287cbb99); }
  .header-right > .search { flex: 1 1 8rem; min-width: 0; }
  .header-right > .search input { min-height: 2.75rem; font-size: 1rem; }
  .frame[data-mobile-menu="closed"] #header-actions,
  .frame[data-mobile-menu="closed"] #view-navigation,
  .frame[data-mobile-menu="closed"] #owner-navigation { display: none; }
  .frame[data-mobile-menu="open"] #header-actions {
    display: flex;
    flex-basis: 100%;
    gap: .5rem;
    padding: .65rem 0 0;
    border-inline-start: 0;
    border-top: 1px solid #aad8f580;
  }
  .frame[data-mobile-menu="open"] .header-name { flex: 1; max-width: none; min-width: 5rem; }
  .frame[data-mobile-menu="open"] .header-button { min-height: 2.75rem; }
  .frame[data-mobile-menu="open"] #view-navigation,
  .frame[data-mobile-menu="open"] #owner-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; padding: .5rem; }
  .frame[data-mobile-menu="open"] #view-navigation > *,
  .frame[data-mobile-menu="open"] #owner-navigation > * { justify-content: center; min-height: 2.75rem; min-width: 0; margin: 0; padding: .5rem; text-align: center; white-space: normal; }
  .frame[data-mobile-menu="open"] #theme-toggle { margin-inline-start: 0; }
  .poll-panel { padding: .75rem; }
  .poll-actions { align-items: stretch; }
  .poll-actions > .button { min-height: 2.75rem; }
  .poll-option { padding: .65rem; }
  body[data-theme="dark"] .mobile-menu-toggle { background: linear-gradient(#5b92ba80, #346b9647 47%, #143f6370 48%, #1c517970); border-color: #1a4667; box-shadow: inset 0 0 0 1px #a2cbe455; }
  body[data-theme="dark"] .mobile-menu-toggle:hover,
  body[data-theme="dark"] .mobile-menu-toggle[aria-expanded="true"] { background: linear-gradient(#78acd280, #4b82ab66 47%, #285d8799 48%, #3b719a99); }
  body[data-theme="dark"] .frame[data-mobile-menu="open"] #header-actions { border-top-color: #7197b466; }
}

@media (max-width: 360px) {
  .frame[data-mobile-menu="open"] #view-navigation,
  .frame[data-mobile-menu="open"] #owner-navigation { grid-template-columns: minmax(0, 1fr); }
  .poll-editor { padding: .65rem; }
  .poll-editor-option { flex-wrap: wrap; }
  .poll-editor-option > .field { flex-basis: 100%; }
  .poll-editor-option > .button { min-height: 2.5rem; }
}
