
.community-notice { padding: 16px 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--muted); line-height: 1.6; margin-top: 18px; }
.community-comments[aria-busy=true] { opacity: .6; pointer-events: none; }
.comment-composer textarea { width: 100%; min-height: 130px; resize: vertical; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--text); line-height: 1.6; }
.comment-composer button:disabled { opacity: .5; cursor: wait; }
.comment-row > div:last-child { min-width: 0; }
.comment-row p { overflow-wrap: anywhere; }
.form-error { color: #e7a3a3; }
.header-inner { gap: 24px; }
.nav { gap: 20px; }
@media (min-width: 901px) and (max-width: 1120px) {
 .nav { display: none; position: fixed; inset: 64px 0 0; height: calc(100dvh - 64px); flex-direction: column; align-items: stretch; padding: 24px; background: #0b0b0c; overflow-y: auto; }
 .nav.open { display: flex; }
 .nav-link { height: auto; min-height: 52px; }
 .menu-btn { display: grid; }
 .mobile-account { display: flex; flex-direction: column; gap: 16px; margin-top: auto; }
}

.product-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.community-admin-item header { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-bottom:16px; }
.community-admin-item p { overflow-wrap:anywhere; line-height:1.7; }
.community-admin-actions { display:flex; gap:10px; margin-top:18px; }
.translation-editor { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; margin-top:20px; }
.translation-editor label { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.translation-editor textarea,.translation-editor input { width:100%; padding:12px; border:1px solid var(--line); border-radius:6px; background:var(--canvas); color:var(--text); font:inherit; line-height:1.6; }
.translation-editor textarea { resize:vertical; }
.translation-editor > .form-error,.translation-editor > button { grid-column:1/-1; }
.full-review-form textarea { width:100%; }
.rating-picker input { accent-color:#fff; }
.rating-picker label:has(input:checked) span { color:#fff; }
@media(max-width:660px) { .translation-editor { grid-template-columns:1fr; } }

.account-popover a,.account-popover button {display:block;width:100%;padding:10px 12px;text-align:left;font:inherit;font-size:14px;border-radius:5px}
.account-popover a:hover,.account-popover button:hover {background:var(--raised)}
.auth-notice-dialog {max-width:540px;color:var(--text);background:var(--panel);border:1px solid var(--line)}
.auth-notice-dialog p {margin:20px 0 28px;line-height:1.7;color:var(--muted)}
.community-admin-list {margin-top:20px}
.dashboard-page .admin-page-title {display:block;text-align:left;border:0;padding:0;margin:0 0 24px}
.dashboard-page .admin-page-title h1 {margin:8px 0 0}
.feed-filters {display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.feed-filters a {padding:9px 14px;border:1px solid var(--line);border-radius:6px;font-size:14px;color:var(--muted)}
.feed-filters a.active {background:var(--raised);color:var(--text)}
.feed-filters a:hover {border-color:#666}
.checkout-success {color:#b2d5bc!important}
.full-review-content>p,.review>p,.comment-row p,.news-row-copy>p {font-size:16px;line-height:1.7}
.rating-picker {display:flex;gap:7px}
.rating-picker label {position:relative;cursor:pointer}
.rating-picker input {position:absolute;inset:0;opacity:0;cursor:pointer}
.rating-picker label>span[aria-hidden] {display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:6px;color:var(--dim);font-size:22px}
.rating-picker label:has(input:checked)>span[aria-hidden],.rating-picker label:hover>span[aria-hidden] {color:var(--text);border-color:#888;background:var(--raised)}
.rating-picker label:has(input:focus-visible) {outline:2px solid #fff;outline-offset:3px;border-radius:6px}
.header-events {display:grid;max-height:380px;overflow-y:auto;margin-top:12px}
.header-events a {display:flex;flex-direction:column;gap:5px;padding:12px 4px;border-top:1px solid var(--line);font-size:14px;line-height:1.4}
.header-events a:hover {background:var(--raised)}
.header-events strong {font-weight:500;color:var(--text)}
.header-events span {color:var(--muted)}
.header-events time {font-size:12px;color:var(--dim)}

:root {
  --page-gutter: clamp(16px, 3.25vw, 72px);
}

.header-inner,
.home-shell,
.app-content .page-shell,
.dashboard-page .app-content > .main,
.footer-main,
.footer-bottom {
  width: 100%;
  max-width: none;
  padding-inline: var(--page-gutter);
}

.article-version-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.article-version-nav a { gap: 14px; }
.article-version-nav a span { color: var(--muted); }
.article-version-nav a strong { font-weight: 500; }
/* Native controls share the site's palette, including the opened select list. */
:root { color-scheme: dark; }
select { color: var(--text); }
select option, select optgroup { background: var(--panel); color: var(--text); }
select:not([multiple]):is(:not([size]),[size="1"]) {
  appearance: none;
  min-width: 0;
  padding-inline-end: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23b2b2b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 11px center;
  background-repeat: no-repeat;
  cursor: pointer;
}
select:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }
select:disabled { opacity: .6; cursor: default; }
.sort { min-width: 0; }
.sort select { flex: 1; width: 100%; text-overflow: ellipsis; }

input[type="checkbox"]:not(.admin-update-check input, .admin-webhook-clear input, .agreement-checkbox input) {
  appearance: none;
  box-sizing: border-box;
  display: inline-grid;
  place-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #626269;
  border-radius: 4px;
  background: var(--canvas);
  vertical-align: middle;
  cursor: pointer;
}
input[type="checkbox"]:not(.admin-update-check input, .admin-webhook-clear input, .agreement-checkbox input):is(:checked,:indeterminate) { background: var(--text); border-color: var(--text); }
input[type="checkbox"]:not(.admin-update-check input, .admin-webhook-clear input, .agreement-checkbox input):checked::after {
  content: "";
  width: 8px;
  height: 5px;
  margin-top: -2px;
  border: solid var(--canvas);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
input[type="checkbox"]:not(.admin-update-check input, .admin-webhook-clear input, .agreement-checkbox input):indeterminate::after { content: ""; width: 8px; height: 2px; background: var(--canvas); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--muted); outline-offset: 3px; }
input[type="checkbox"]:disabled { opacity: .45; cursor: default; }
@media (forced-colors: active) {
  input[type="checkbox"], select:not([multiple]):is(:not([size]),[size="1"]) { appearance: auto; background-image: none; }
  input[type="checkbox"]::after { display: none; }
}

.review-account-state { grid-template-columns: 40px minmax(0,1fr) auto; align-content: center; }
.review-account-state b { font-size: 16px; color: var(--text); }
.review-account-state p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.review-account-state .review-state-icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; }
.review-account-state[data-review-state="rejected"] .review-state-icon { color: #e4aaaa; }
.review-account-state[data-review-state="approved"] .review-state-icon { color: #b2d5bc; }
.comment-row header .comment-developer-badge {
  display: inline-flex;
  padding: 2px 6px;
  border: 1px solid #6b363a;
  border-radius: 4px;
  background: #2c181b;
  color: #f2b1b6;
  font-size: 12px;
  font-weight: 500;
}
@media (max-width:660px) {
  .review-account-state { grid-template-columns: 40px minmax(0,1fr); }
  .review-account-state .btn { grid-column: 2; justify-self: start; width: auto; }
}

.merch-tooltip {
  position: fixed;
  z-index: 200;
  max-width: min(260px,calc(100vw - 16px));
  border: 1px solid #515157;
  border-radius: 6px;
  background: #222226;
  color: var(--text);
  padding: 8px 11px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 6px 18px #0007;
  pointer-events: none;
}
