:root {
  color-scheme: light;
  --ink: #182938;
  --muted: #526477;
  --nav: #142839;
  --accent: #185a71;
  --line: #dbe5eb;
  --page: #f3f6f8;
  --panel: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #207f9e; outline-offset: 3px; }
.wrap { width: min(1220px, calc(100% - 64px)); margin: 0 auto; }
.skip, .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { z-index: 2; width: auto; height: auto; clip-path: none; top: 8px; left: 8px; padding: 9px 14px; background: white; }
.community-nav { background: var(--nav); border-bottom: 1px solid #30485a; }
.portal-nav-inner, .community-nav nav, .community-brand { display: flex; align-items: center; }
.portal-nav-inner { min-height: 66px; justify-content: space-between; gap: 20px; }
.community-brand { color: white; gap: 11px; font-size: 20px; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; }
.community-brand:hover { text-decoration: none; }
.community-brand small { font-size: 12px; color: #c3d3df; font-weight: 550; margin-left: 8px; letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: #da613b; border-radius: 8px; line-height: 1; }
.community-nav nav { flex-wrap: wrap; gap: 5px; }
.community-nav nav a { display: block; padding: 8px 11px; border-radius: 6px; color: #d9e6ed; font-size: 13px; font-weight: 650; }
.community-nav nav a:hover, .community-nav nav a[aria-current] { color: #fff; background: #283f52; text-decoration: none; }
.community-nav nav a.language { border: 1px solid #516a7c; padding: 5px 9px; margin-left: 6px; }
#main { min-height: calc(100vh - 133px); padding: 35px 0 44px; }
.portal-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 27px; }
.portal-title h1 { margin: 0 0 4px; font-size: clamp(1.8rem, 3.5vw, 2.55rem); line-height: 1.15; letter-spacing: -.045em; }
.portal-title p { margin: 0; color: var(--muted); }
.btn {
  border: 1px solid transparent; border-radius: 7px; padding: 9px 14px;
  font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 2px 4px #16283918; }
.btn.primary:hover { background: #104b61; }
.btn.quiet { background: #fff; border-color: #beced9; color: #294b5e; }
.btn.quiet:hover { background: #ebf3f7; }
.btn:disabled { opacity: .6; cursor: wait; }
#new-topic > span:first-child { font-size: 18px; line-height: 1; vertical-align: -1px; margin-right: 3px; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 280px); gap: 22px; align-items: start; }
.community-panel, .community-post { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 3px #1b384506; }
.list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 17px 19px 11px; }
.list-heading h2, .sidebar-panel h2, .community-post h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.018em; }
#list-status { margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.community-filter {
  display: grid; grid-template-columns: minmax(135px, 1fr) repeat(3, minmax(100px, auto)) auto;
  align-items: center; gap: 8px; padding: 0 19px 16px; border-bottom: 1px solid var(--line);
}
.community input, .community select, .community textarea {
  color: var(--ink); background: #fcfdfe; border: 1px solid #bfced8;
  border-radius: 7px; padding: 9px 10px; font: inherit; font-size: 13px; min-width: 0; width: 100%;
}
.community textarea { resize: vertical; }
.community input::placeholder { color: #637487; }
.search-field { position: relative; }
.search-field input { padding-left: 33px; }
.search-field::before { content: ""; position: absolute; width: 10px; height: 10px; border: 1.5px solid #526b7d; border-radius: 50%; left: 12px; top: 12px; pointer-events: none; }
.search-field::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: #526b7d; transform: rotate(45deg); left: 20px; top: 23px; pointer-events: none; }
.topic-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 75px; gap: 13px; padding: 15px 19px; color: var(--ink); align-items: start; border-bottom: 1px solid #e6edf1; }
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: #f0f6f8; text-decoration: none; }
.topic-row:focus-visible { outline-offset: -3px; }
.topic-avatar {
  width: 38px; height: 38px; display: grid; place-items: center;
  color: #284e66; background: #e3edf4; border-radius: 9px; font-size: 12px; font-weight: 800;
}
.topic-avatar[data-category=bug] { color: #8a351f; background: #f8e9e1; }
.topic-avatar[data-category=request] { color: #534185; background: #eee9f7; }
.topic-avatar[data-category=solution] { color: #175749; background: #e0f1eb; }
.topic-row h3 { margin: 0 0 5px; font-size: 15px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.topic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; min-width: 0; }
.topic-meta, .community-hint { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.topic-tag { display: inline-block; padding: 2px 7px; font-size: 11px; font-weight: 650; border-radius: 5px; background: #ebf1f5; color: #3b5569; }
.topic-tag.solved { background: #dbefe5; color: #215f47; }
.reply-count { justify-self: end; text-align: right; display: grid; font-size: 11px; color: var(--muted); }
.reply-count strong { font-size: 16px; line-height: 1.25; font-variant-numeric: tabular-nums; color: var(--ink); }
.empty-list { padding: 46px 24px 50px; text-align: center; }
.empty-list h3 { margin: 0 0 6px; font-size: 1.2rem; }
.empty-list p { color: var(--muted); margin: 0 auto 18px; max-width: 36ch; }
.empty-icon { display: grid; place-items: center; margin: 0 auto 15px; width: 54px; height: 53px; border-radius: 13px; background: #e9f3f7; color: var(--accent); }
.empty-icon span { width: 23px; height: 16px; border: 2px solid; border-radius: 4px; position: relative; }
.empty-icon span::before { content: ""; position: absolute; left: 3px; bottom: -5px; width: 6px; height: 6px; border-bottom: 2px solid; border-left: 2px solid; background: #e9f3f7; transform: skewY(-35deg); }
.empty-icon span::after { content: ""; width: 10px; border-top: 2px solid; position: absolute; top: 5px; left: 4px; }
.community-sidebar { display: grid; gap: 14px; }
.sidebar-panel { padding: 15px 16px; }
.sidebar-panel h2 { margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; padding: 4px 9px; border-left: 1px solid var(--line); }
.stats div:first-child { padding-left: 0; border: 0; }
.stats dt { font-size: 11px; color: var(--muted); }
.stats dd { margin: 0; font-size: 21px; font-weight: 750; line-height: 1.2; font-variant-numeric: tabular-nums; }
.resource { display: flex; align-items: center; gap: 9px; padding: 8px 0; color: var(--ink); font-size: 13px; }
.resource + .resource { border-top: 1px solid #e6edf1; }
.resource small, #popular small { display: block; color: var(--muted); font-size: 11px; }
.resource-icon { display: grid; place-items: center; background: #e9f3f7; color: var(--accent); border-radius: 6px; width: 30px; height: 30px; flex: 0 0 auto; }
#popular ol { margin: 0; padding-left: 18px; }
#popular li { padding: 5px 0; font-size: 13px; overflow-wrap: anywhere; }
#pagination, .community-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#pagination { padding: 14px 19px; border-top: 1px solid var(--line); }
.community-actions { margin-top: 12px; }
#moderation, .community-post { padding: 16px 19px; }
#moderation { margin-bottom: 16px; }
#moderation summary { cursor: pointer; font-weight: 750; }
#moderator-items, #thread-content { display: grid; gap: 12px; margin-top: 13px; }
#thread { max-width: 880px; }
.back::before { content: "←"; margin-right: 7px; }
#thread-content h2 { margin: 0 0 6px; overflow-wrap: anywhere; letter-spacing: -.025em; }
.community-post.solved { border-left: 4px solid #408a67; }
.community-copy { white-space: pre-wrap; overflow-wrap: anywhere; margin: 11px 0 0; }
.community-feedback { padding: 10px 13px; background: #e2f2e9; color: #1d5741; border-radius: 7px; }
.community-error { color: #9b382d; }
.community-footer { border-top: 1px solid var(--line); padding: 18px 0; background: white; }
.community-footer .wrap { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.community-footer a { color: #355367; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
.community dialog { width: min(545px, calc(100% - 26px)); max-height: 91dvh; padding: 21px; border: 1px solid var(--line); color: var(--ink); border-radius: 12px; box-shadow: 0 22px 60px #172f4750; }
.community dialog::backdrop { background: #1b3349a6; }
.community-form { display: grid; gap: 10px; }
.community-form label { display: grid; gap: 4px; font-weight: 650; font-size: 13px; }
.community-form .community-hint { margin: 0; }
.community-form [data-form-status]:empty { display: none; }
.composer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.composer-head h2 { margin: 0; letter-spacing: -.025em; }
@media (max-width: 1020px) {
  .wrap { width: calc(100% - 42px); }
  .community-filter { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .search-field { grid-column: 1 / -1; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 28px); }
  .portal-nav-inner { flex-wrap: wrap; align-items: center; gap: 4px; padding: 10px 0 8px; }
  .community-nav nav a { padding: 7px 8px; }
  #main { padding: 21px 0 30px; }
  .portal-title { align-items: flex-start; flex-direction: column; margin-bottom: 18px; gap: 13px; }
  .community-layout { grid-template-columns: 1fr; gap: 14px; }
  .community-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-heading, .community-filter, .topic-row { padding-left: 13px; padding-right: 13px; }
  .topic-row { gap: 9px; grid-template-columns: 31px minmax(0, 1fr) 34px; }
  .topic-avatar { width: 31px; height: 31px; }
}

.envelope { display: block; position: relative; width: 16px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; overflow: hidden; }
.envelope::before { content: ""; position: absolute; top: -5px; left: 2px; width: 9px; height: 9px; border-bottom: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg); }
.out-arrow { position: relative; display: block; width: 12px; height: 12px; }
.out-arrow::before { content: ""; position: absolute; top: 0; right: 0; width: 8px; height: 8px; border-top: 1.5px solid; border-right: 1.5px solid; }
.out-arrow::after { content: ""; position: absolute; width: 14px; border-top: 1.5px solid; top: 5px; left: -1px; transform: rotate(-45deg); }
