:root {
  color-scheme: light;
  --ink: #14191f;
  --text: #364353;
  --muted: #596a7d;
  --line: #dbe3ec;
  --paper: #f5f7fa;
  --blue: #075fc0;
  --focus: #0071e3;
  font-family: "Inter Variable", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
.community-public { background: #fff; }
a { color: var(--blue); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.55; cursor: wait; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.skip { position: fixed; left: 12px; top: 8px; z-index: 3; transform: translateY(-150%); background: white; padding: 8px 12px; }
.skip:focus { transform: none; }
.community-wrap { width: min(1280px, calc(100% - 104px)); margin-inline: auto; }
.community-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { min-height: 74px; display: flex; align-items: center; gap: clamp(14px, 3.5vw, 50px); }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 190px; height: auto; }
.header-actions, #community-account { display: flex; gap: 14px; align-items: center; }
.header-row a, .community-footer a { text-decoration: none; }
.community-site-nav { display: flex; align-items: center; gap: clamp(13px, 2vw, 26px); }
.community-site-nav a { display: inline-flex; align-items: center; min-height: 42px; color: #273746; font-size: 13px; white-space: nowrap; }
.community-site-nav a:hover, .community-site-nav a[aria-current] { color: #075fc0; }
.community-site-nav a[aria-current] { box-shadow: inset 0 -1px #0071e3; font-weight: 600; }
.header-actions { margin-left: auto; }
.v4-header-language { display: inline-flex; align-items: center; gap: 5px; color: #8797a9; font: 12px "Geist Mono", "Noto Sans SC", monospace; white-space: nowrap; }
.v4-locale-choice { min-height: 38px; min-width: 26px; padding: 8px 5px; border: 0; background: transparent; color: #536577; font: inherit; }
.v4-locale-choice[aria-pressed="true"] { font-weight: 500; color: #0071e3; box-shadow: inset 0 -1px #0071e3; }
#community-account { font-size: 14px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 9px 14px; min-height: 40px; border-radius: 7px; border: 1px solid transparent; font-size: 14px; font-weight: 550; line-height: 1.25; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: #034c9c; }
.secondary { color: var(--ink); background: white; border-color: var(--line); }
.secondary:hover { border-color: #a0afbf; }
.status { color: var(--muted); margin-top: 16px; }
.status:empty { margin: 0; }
.error { color: #a72224; overflow-wrap: anywhere; }
.feed-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 28px 0 16px; }
.feed-heading h2, .feed-heading h1 { margin: 0; font-size: clamp(24px, 4vw, 36px); font-weight: 520; letter-spacing: -0.04em; }
.community-categories { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.community-categories a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); font-size: 14px; text-decoration: none; }
.community-categories a:hover, .community-categories a[aria-current] { color: var(--blue); }
.community-categories a[aria-current] { box-shadow: inset 0 -2px var(--blue); font-weight: 600; }
.community-product-context { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 12px 14px; background: #f4f8fc; border: 1px solid var(--line); border-radius: 7px; color: var(--text); font-size: 13px; }
.feed-filters { display: grid; grid-template-columns: minmax(140px, 1fr) repeat(2, minmax(140px, 220px)) auto; gap: 8px; align-items: center; margin-bottom: 14px; }
input, textarea, select { width: 100%; min-width: 0; background: #fff; border: 1px solid #cbd7e4; border-radius: 7px; padding: 9px 11px; color: var(--ink); }
textarea { resize: vertical; }
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.post-row { padding: 19px 6px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px 16px; border-bottom: 1px solid var(--line); }
.post-row h3 { margin: 4px 0 5px; font-size: 19px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.post-row h3 a { text-decoration: none; color: var(--ink); }
.post-row h3 a:hover { color: var(--blue); text-decoration: underline; }
.post-row p { margin: 6px 0; color: var(--text); overflow-wrap: anywhere; }
.metadata { display: flex; gap: 5px 12px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.category { font-weight: 600; color: var(--blue); }
.replies { font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 5px; }
.empty { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 22px; color: var(--muted); }
.thread { margin: 26px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 4vw, 38px); overflow-wrap: anywhere; }
.thread h1 { font-size: clamp(26px, 4.8vw, 44px); font-weight: 530; line-height: 1.18; letter-spacing: -0.035em; margin: 12px 0 18px; }
.thread h2 { font-size: 20px; margin: 0 0 12px; font-weight: 570; }
.thread p { color: var(--text); }
.body-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-fields { margin: 20px 0; background: #f0f5fb; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.review-fields dt { font-weight: 600; }
.review-fields dd { white-space: pre-wrap; color: var(--text); margin: 2px 0 12px; }
.review-fields dd:last-child { margin-bottom: 0; }
.account-settings { max-width: 720px; }
.account-section + .account-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.account-section .metadata { margin-block: 6px; }
.account-email { overflow-wrap: anywhere; }
.auth-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0; }
.member-mark { border-radius: 4px; background: #e5f0fc; color: #164b7d; padding: 3px 7px; font-size: 12px; }
.comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.comment-actions:empty { display: none; }
.comment-actions .secondary { padding: 5px 9px; min-height: 34px; font-size: 12px; }
.thread-cover { display: block; width: min(100%, 660px); max-height: 390px; object-fit: contain; object-position: left; border-radius: 8px; }
.comment:is(:target, .comment-linked) { border-inline-start: 3px solid var(--blue); padding-inline-start: 14px; scroll-margin-top: 16px; }
.member-form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-grid .member-check { display: flex; align-items: center; gap: 8px; }
.member-check input { width: auto; }
.member-avatar-edit { width: 58px; }
.member-skill-picker { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 7px; padding: 10px; }
.member-skill-picker legend { font-size: 14px; }
.member-skill-picker p { color: var(--muted); font-size: 13px; }
.member-skill-options { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.member-skill-options .member-skill-choice { display: flex; align-items: center; gap: 6px; min-height: 38px; }
.member-skill-choice input { width: auto; margin: 0; accent-color: #075fc0; }
#moderation-queue + .status, .thread .status { margin-top: 8px; }
.comment { padding: 13px 0; border-bottom: 1px solid var(--line); }
.form-grid { display: grid; gap: 12px; }
.form-grid label { display: grid; gap: 5px; font-size: 14px; font-weight: 550; }
.form-grid p { margin: 0; }
.form-actions, .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.dialog-head h2 { margin: 0; line-height: 1.2; font-size: 26px; letter-spacing: -0.035em; }
.dialog-head button { background: none; border: 0; font-size: 22px; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 24px; color: var(--ink); width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); }
dialog::backdrop { background: #0b1625a0; }
.community-footer { margin-top: 52px; border-top: 1px solid var(--line); padding: 16px 0 26px; display: flex; gap: 12px; justify-content: space-between; color: var(--muted); font-size: 12px; }
.moderation-item { border-top: 1px solid var(--line); padding: 15px 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .community-wrap { width: calc(100% - 32px); }
  .header-row { position: relative; flex-wrap: wrap; gap: 0 10px; padding-top: 8px; }
  .community-site-nav { order: 1; flex: 1 0 100%; justify-content: space-between; gap: 12px; }
  .header-actions, #community-account { gap: 6px; }
  .brand img { width: 112px; }
  .v4-header-language { gap: 2px; font-size: 11px; }
  .v4-locale-choice { padding-inline: 3px; }
  #community-account, .header-actions .secondary { font-size: 12px; }
  .header-actions .secondary { padding-inline: 7px; }
  .feed-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-filters input, .feed-filters button { grid-column: 1 / -1; }
  .member-form-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .brand img { width: 140px; }
  .community-wrap { width: calc(100% - 64px); }
}
