/* 反馈中心是独立页，只加载这一个样式文件；@font-face 必须自带，
   否则下方 --fc-font-main 里的 'Kreadon' 落空、整页回退系统字体。
   字体文件与 style.css 同源同版本。 */
@font-face {
  font-family: 'Kreadon';
  src: url('/fonts/Kreadon-Regular.subset.woff2?v=3') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kreadon';
  src: url('/fonts/Kreadon-Demi.subset.woff2?v=3') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --fc-bg: #f4f5f7;
  --fc-surface: #ffffff;
  --fc-surface-2: #fafbfc;
  --fc-gray-50: #f5f5f5;
  --fc-gray-100: #f0f1f3;
  --fc-line: #dfe1e6;
  --fc-line-strong: #c1c7d0;
  --fc-text: #172b4d;
  --fc-text-soft: #44546f;
  --fc-muted: #626f86;
  --fc-accent: #0c66e4;
  --fc-accent-hover: #0055cc;
  --fc-accent-soft: rgba(12, 102, 228, 0.10);
  --fc-link: #0040c8;
  --fc-link-hover: #002fae;
  --fc-selected: rgba(25, 118, 210, 0.08);
  --fc-danger: #d1242f;
  --fc-danger-soft: #feecec;
  --fc-radius: 3px;
  --fc-shadow: 0 1px 3px rgba(9, 30, 66, 0.13), 0 8px 24px rgba(9, 30, 66, 0.08);
  --fc-font-main: 'Kreadon', 'PingFang SC', 'Microsoft YaHei',
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--fc-text);
  background: var(--fc-bg);
  font-family: var(--fc-font-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--fc-link);
  text-decoration: none;
}

a:hover {
  color: var(--fc-link-hover);
  text-decoration: underline;
}

.hidden,
[hidden] {
  display: none !important;
}

.fc-muted {
  color: var(--fc-muted);
}

.fc-error {
  color: var(--fc-danger);
  min-height: 1.2em;
  margin: 4px 0;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #b3bac5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8590a2;
}

/* ----- header ----- */
.fc-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--fc-gray-50);
  border-bottom: 1px solid #d7d7d7;
}

.fc-topbar-inner {
  width: 100%;
  min-height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.fc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fc-text);
  text-decoration: none;
  flex: none;
}

.fc-brand:hover {
  color: var(--fc-text);
  text-decoration: none;
}

.fc-brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: #172b4d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.fc-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.fc-brand-text strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.fc-brand-text small {
  color: var(--fc-muted);
  font-size: 11px;
  margin-top: 2px;
}

.fc-tabs {
  display: flex;
  align-self: stretch;
  gap: 2px;
  margin-left: 12px;
}

.fc-tab {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0 15px;
  color: var(--fc-text-soft);
  font-size: 14px;
  font-weight: 500;
}

.fc-tab:hover {
  color: var(--fc-text);
  background: rgba(9, 30, 66, 0.05);
}

.fc-tab.is-active {
  color: var(--fc-text);
  font-weight: 600;
}

.fc-tab.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 1px 1px 0 0;
  background: var(--fc-accent);
}

.fc-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.fc-account {
  min-width: 120px;
  text-align: right;
}

.fc-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(420px, calc(100vw - 180px));
  padding: 2px 6px 2px 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.fc-account-chip:hover {
  background: rgba(9, 30, 66, 0.06);
  text-decoration: none;
}

.fc-account-avatar {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--fc-avatar-border, #cfbb50);
  background: var(--fc-avatar-color, #ffe763);
  box-shadow: inset 0 0 0 6px var(--fc-avatar-color, #ffe763);
}

.fc-account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
}

.fc-account-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 110px));
  overflow: auto;
  background: #fff;
  border: 1px solid #dfe1e6;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(9, 30, 66, 0.16);
  z-index: 40;
}

.fc-account-popover-head {
  padding: 10px 14px;
  border-bottom: 1px solid #ebecf0;
  color: #44546f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.fc-account-popover-list {
  display: flex;
  flex-direction: column;
}

.fc-account-popover-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f0f1f4;
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
  color: #172b4d;
}

.fc-account-popover-item:hover {
  background: rgba(25, 118, 210, 0.06);
}

.fc-account-popover-item strong {
  font-size: 12px;
  color: #0040c8;
}

.fc-account-popover-item span {
  font-size: 14px;
  font-weight: 600;
}

.fc-account-popover-item small {
  color: #6b778c;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-account-popover-empty {
  padding: 24px 14px;
  color: #6b778c;
  text-align: center;
}

.fc-account-popover-link {
  display: block;
  padding: 10px 14px;
  border-top: 1px solid #ebecf0;
  text-align: center;
}

/* 反馈 #156：消息面板里的「全部已读」按钮，沿用链接行样式。 */
button.fc-account-popover-link {
  width: 100%;
  border: 0;
  border-top: 1px solid #ebecf0;
  background: transparent;
  color: var(--fc-accent, #2563eb);
  font: inherit;
  cursor: pointer;
}

button.fc-account-popover-link:hover,
button.fc-account-popover-link:focus-visible {
  background: rgba(37, 99, 235, .06);
  outline: none;
}

.fc-badge {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 8px;
  background: var(--fc-danger);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

/* ----- buttons ----- */
.fc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: var(--fc-radius);
  background: transparent;
  color: var(--fc-text);
  font-weight: 600;
  white-space: nowrap;
  transition: background 80ms linear, border-color 80ms linear;
}

.fc-button:disabled {
  color: #8993a4;
  opacity: 1;
  cursor: not-allowed;
}

.fc-button-primary {
  background: var(--fc-accent);
  color: #fff;
}

.fc-button-primary:hover {
  background: var(--fc-accent-hover);
  color: #fff;
}

.fc-button-secondary {
  border-color: var(--fc-line-strong);
  background: #fff;
}

.fc-button-secondary:hover {
  background: var(--fc-gray-100);
}

.fc-button-danger {
  background: var(--fc-danger);
  color: #fff;
}

.fc-button-danger:hover {
  background: #b71c27;
  color: #fff;
}

.fc-button-small {
  min-height: 26px;
  padding: 1px 9px;
  font-size: 12px;
}

/* ----- page shell, Mojira-style white main panel ----- */
.fc-page {
  width: 100%;
  padding: 4px 8px 12px;
}

.fc-browse {
  width: 100%;
  max-width: 1440px;
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  background: var(--fc-surface);
  border: 1px solid #ebecf0;
  border-radius: var(--fc-radius);
  box-shadow: 0 1px 3px rgba(9, 30, 66, 0.12);
  overflow: hidden;
}

.fc-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: calc(100vh - 80px);
  align-items: stretch;
}

/* ----- sidebar filters ----- */
.fc-sidebar {
  border-right: 1px solid #ebecf0;
  background: #fff;
}

.fc-sidebar-panel {
  position: sticky;
  top: 66px;
  padding: 20px 20px 28px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.fc-panel-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.fc-project-copy {
  color: var(--fc-text-soft);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 7px 0 18px;
}

.fc-field {
  display: block;
  margin: 14px 0;
}

.fc-field > span {
  display: block;
  margin-bottom: 5px;
  color: var(--fc-text-soft);
  font-size: 12px;
  font-weight: 600;
}

.fc-field input,
.fc-field select,
.fc-field textarea {
  width: 100%;
  border: 1px solid var(--fc-line-strong);
  border-radius: var(--fc-radius);
  background: #fff;
  padding: 6px 9px;
  outline: 0;
  color: var(--fc-text);
}

.fc-field input:focus,
.fc-field select:focus,
.fc-field textarea:focus {
  border-color: var(--fc-accent);
  box-shadow: 0 0 0 2px var(--fc-accent-soft);
}

.fc-field textarea {
  resize: vertical;
}

.fc-sidebar-note {
  color: var(--fc-muted);
  font-size: 12px;
  line-height: 1.5;
  border-top: 1px solid #ebecf0;
  padding-top: 14px;
  margin-top: 18px;
}

/* ----- list column ----- */
.fc-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.fc-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid #ebecf0;
  background: #fff;
}

.fc-list-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.15px;
}

.fc-list-header p {
  margin: 1px 0 0;
  color: var(--fc-muted);
  font-size: 12px;
}

.fc-issue-list {
  flex: 1;
  overflow: auto;
  min-height: 260px;
}

.fc-issue-row {
  display: block;
  width: 100%;
  min-height: 66px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f0f1f4;
  border-left: 3px solid transparent;
  background: transparent;
  padding: 10px 16px 10px 18px;
  color: var(--fc-text);
  cursor: pointer;
  transition: background 90ms linear;
}

.fc-issue-row:hover {
  background: var(--fc-accent-soft);
}

.fc-issue-row.is-selected {
  background: var(--fc-selected);
  border-left-color: var(--fc-accent);
}

.fc-issue-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.fc-issue-title strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fc-text);
}

.fc-issue-key {
  color: var(--fc-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  white-space: nowrap;
}

.fc-issue-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 7px;
  color: var(--fc-muted);
  font-size: 12px;
}

.fc-user-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fc-avatar-mini {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--fc-avatar-border, #cfbb50);
  background: var(--fc-avatar-color, #ffe763);
}

.fc-avatar-deleted,
.fc-deleted-user .fc-avatar-mini {
  filter: grayscale(1);
  opacity: 0.6;
}

.fc-status {
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  min-height: 18px;
  border-radius: 9px;
  color: #fff;
  background: var(--fc-status-color);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0.1px;
}

.fc-status-new,
.fc-status-under_review,
[data-fc-status='new'],
[data-fc-status='under_review'] { --fc-status-color: #0c66e4; }
.fc-status-needs_info,
[data-fc-status='needs_info'] { --fc-status-color: #a4650c; }
.fc-status-confirmed,
[data-fc-status='confirmed'] { --fc-status-color: #8250df; }
.fc-status-in_progress,
[data-fc-status='in_progress'] { --fc-status-color: #2f7d4f; }
.fc-status-fixed,
.fc-status-accepted,
.fc-status-planned,
[data-fc-status='fixed'],
[data-fc-status='accepted'],
[data-fc-status='planned'] { --fc-status-color: #1f845a; }
/* GS-287：采纳一半——介于采纳与规划之间的青绿色 */
.fc-status-partially_accepted,
[data-fc-status='partially_accepted'] { --fc-status-color: #00786f; }
.fc-status-duplicate,
[data-fc-status='duplicate'] { --fc-status-color: #6b778c; }
.fc-status-unreproducible,
[data-fc-status='unreproducible'] { --fc-status-color: #8f5a08; }
.fc-status-by_design,
[data-fc-status='by_design'] { --fc-status-color: #626f86; }
.fc-status-invalid,
.fc-status-rejected,
[data-fc-status='invalid'],
[data-fc-status='rejected'] { --fc-status-color: #d1242f; }

.fc-issue-key[data-fc-status],
.fc-detail-key-value[data-fc-status],
.fc-related-item a[data-fc-status] {
  color: var(--fc-status-color);
}

.fc-issue-row.is-selected .fc-issue-key[data-fc-status] {
  color: var(--fc-status-color);
}

.fc-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-top: 1px solid #ebecf0;
}

.fc-empty {
  background: transparent;
  border: 0;
  color: var(--fc-muted);
  text-align: center;
  padding: 56px 16px;
}

/* ----- detail ----- */
.fc-detail {
  width: 100%;
  max-width: 1440px;
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ebecf0;
  border-radius: var(--fc-radius);
  box-shadow: 0 1px 3px rgba(9, 30, 66, 0.12);
  padding: 22px 32px 40px;
}

.fc-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.fc-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.fc-detail-title-wrap {
  min-width: 0;
}

.fc-detail-key {
  color: var(--fc-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  margin-bottom: 4px;
}

.fc-detail-head h2 {
  margin: 0;
  color: var(--fc-text);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.35px;
}

/* 状态徽章并入标题行（原来是孤悬在右上角的独立块） */
.fc-detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fc-detail-title .fc-status {
  flex: none;
}

.fc-detail-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fc-muted);
  font-size: 13px;
  margin: 12px 0 0;
  flex-wrap: wrap;
}

.fc-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.75;
  color: var(--fc-text);
  background: var(--fc-surface-2);
  border: 1px solid #ebecf0;
  border-radius: 4px;
  padding: 18px 20px;
  margin: 18px 0;
}

/* 标题下互动条：投票 / 关注 / 举报（投票是第一动作，不再沉到正文底部） */
.fc-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}

.fc-vote-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 2px 13px;
  border: 1px solid var(--fc-accent);
  border-radius: 17px;
  background: #fff;
  color: var(--fc-accent);
  font-weight: 700;
  white-space: nowrap;
  transition: background 80ms linear, color 80ms linear;
}

.fc-vote-pill:hover {
  background: var(--fc-accent);
  color: #fff;
  text-decoration: none;
}

.fc-vote-pill:disabled {
  border-color: var(--fc-line-strong);
  color: #8993a4;
  background: #fff;
  cursor: not-allowed;
}

.fc-vote-pill.has-voted {
  border-color: #1f845a;
  color: #1f845a;
}

.fc-vote-pill.has-voted:hover {
  background: #1f845a;
  color: #fff;
}

.fc-vote-pill-static {
  border: 0;
  padding-left: 0;
  color: var(--fc-text);
  cursor: default;
}

.fc-vote-pill-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid currentColor;
}

.fc-vote-pill-count {
  font-size: 15px;
}

.fc-vote-pill-label {
  font-size: 12px;
  font-weight: 600;
}

.fc-vote-pill-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--fc-muted);
}

.fc-section {
  margin-top: 20px;
  border-top: 1px solid #ebecf0;
  padding-top: 16px;
}

.fc-section h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--fc-text-soft);
}

/* 评论：昵称（带头像/称号）与时间在内容**上方**一行——此前头像昵称占左列，
   长昵称会把评论内容挤到右边（反馈：昵称应在评论内容上面）。 */
/* 反馈 #329：回复评论——嵌套缩进 */
.fc-comment.fc-comment-reply {
  margin-left: 28px;
  padding-left: 10px;
  border-left: 2px solid #d8dce2;
}

.fc-reply-box {
  margin-top: 6px;
  padding: 6px 0;
}

.fc-comment {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f1f4;
}

.fc-comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.fc-comment-time {
  color: var(--fc-muted);
  font-size: 12px;
}

.fc-comment-body {
  min-width: 0;
}

.fc-comment-text {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--fc-text);
  line-height: 1.6;
  margin-top: 3px;
}

.fc-comment-actions,
.fc-inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.fc-composer {
  margin-top: 12px;
}

.fc-composer textarea,
.fc-private textarea,
.fc-staff textarea,
.fc-staff input,
.fc-staff select {
  width: 100%;
  border: 1px solid var(--fc-line-strong);
  border-radius: var(--fc-radius);
  background: #fff;
  padding: 8px 10px;
  resize: vertical;
}

.fc-composer textarea:focus,
.fc-private textarea:focus,
.fc-staff textarea:focus,
.fc-staff input:focus,
.fc-staff select:focus {
  outline: 0;
  border-color: var(--fc-accent);
  box-shadow: 0 0 0 2px var(--fc-accent-soft);
}

.fc-history {
  color: var(--fc-text-soft);
  font-size: 13px;
  line-height: 1.8;
}

.fc-private {
  background: #fffcf5;
  border: 1px solid #f3e4b2;
  border-radius: 4px;
  padding: 12px 14px;
}

.fc-staff {
  background: #f7f8fc;
  border: 1px solid #dfe3f5;
  border-radius: 4px;
  padding: 12px 14px;
}

.fc-staff label,
.fc-private label {
  display: block;
  margin: 9px 0;
}

.fc-private .fc-comment {
  border-bottom-color: #eee2c2;
}

.fc-staff .fc-comment {
  border-bottom-color: #e2e6f4;
}

/* 右侧元数据窄栏的条目样式（结构见文件后段 .fc-detail-rail） */
.fc-rail-item {
  padding: 9px 0;
  border-bottom: 1px solid #f0f1f4;
}

.fc-rail-item:last-child {
  border-bottom: 0;
}

.fc-rail-item > span {
  display: block;
  margin-bottom: 3px;
  color: #6b778c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.fc-rail-item > strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.fc-tag-list,
.fc-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.fc-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 9px;
  background: #ebecf0;
  color: #44546f;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.fc-related-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fc-related-item a {
  font-weight: 700;
}

/* ----- dialogs ----- */
.fc-dialog {
  width: min(600px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(9, 30, 66, 0.28);
  color: var(--fc-text);
  padding: 0;
}

.fc-dialog::backdrop {
  background: rgba(9, 30, 66, 0.45);
}

/* 反馈 #138：手机端弹键盘时浏览器会滚动文档来露出输入框，收起键盘后背景就停在
   滚动后的位置。对话框打开期间把文档锁住，关闭时再还原原来的滚动位置。 */
html.fc-scroll-locked,
html.fc-scroll-locked body {
  overflow: hidden;
}

html.fc-scroll-locked body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.fc-dialog form {
  padding: 20px 22px 18px;
}

.fc-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.fc-dialog-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.fc-dialog-head p {
  margin: 3px 0 0;
  font-size: 12px;
}

.fc-dialog-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--fc-muted);
}

.fc-dialog-close:hover {
  color: var(--fc-text);
}

.fc-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.fc-footer {
  width: 100%;
  max-width: 1440px;
  margin: 6px auto 22px;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--fc-muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .fc-topbar-inner {
    gap: 8px;
    padding: 0 10px;
  }

  .fc-brand-text strong,
  .fc-brand-text small {
    display: none;
  }

  .fc-tabs {
    margin-left: 2px;
  }

  .fc-tab {
    padding: 0 8px;
  }

  .fc-page {
    padding: 0;
  }

  .fc-browse,
  .fc-detail {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    min-height: calc(100vh - 58px);
  }

  .fc-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .fc-sidebar {
    border-right: 0;
    border-bottom: 1px solid #ebecf0;
  }

  .fc-sidebar-panel {
    position: static;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }

  .fc-sidebar-panel .fc-panel-title,
  .fc-sidebar-panel .fc-project-copy,
  .fc-sidebar-note {
    grid-column: 1 / -1;
  }

  .fc-sidebar-panel .fc-project-copy {
    margin-bottom: 10px;
  }

  .fc-sidebar-note {
    display: none;
  }

  .fc-detail {
    padding: 16px;
  }
}

/* ===== Mojira-style split workspace ===== */
.fc-topbar {
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.fc-toolbar {
  background: var(--fc-bg);
  min-height: 76px;
  padding: 8px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.fc-toolbar-left {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.fc-search,
.fc-field-inline {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--fc-muted);
  font-size: 12px;
  font-weight: 600;
}

.fc-search {
  width: 280px;
}

.fc-search input,
.fc-field-inline select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #b9bec7;
  border-radius: 4px;
  background: #fff;
  padding: 4px 10px;
  color: var(--fc-text);
  outline: 0;
}

.fc-search input:focus,
.fc-field-inline select:focus {
  border-color: #0c66e4;
  box-shadow: 0 0 0 2px rgba(12, 102, 228, 0.16);
}

.fc-main {
  width: 100%;
  background: var(--fc-bg);
}

.fc-messages {
  width: 100%;
  max-width: 860px;
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  padding: 24px 20px;
  box-sizing: border-box;
}

.fc-messages-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fc-messages-head h2 {
  margin: 0;
  font-size: 22px;
}

.fc-messages-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-messages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-message-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

/* 单条「标为已读」：读标记推进后消息从未读列表消失 */
.fc-message-mark {
  flex: none;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8993a4;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.fc-message-mark:hover {
  background: #feecec;
  color: var(--fc-danger);
}

.fc-message-item:hover {
  border-color: #b6c5d9;
  background: #f7f9fc;
  text-decoration: none;
}

.fc-message-item .fc-message-key {
  color: #0040c8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.fc-message-item .fc-message-title {
  display: block;
  font-weight: 600;
}

.fc-message-item .fc-message-meta {
  display: block;
  color: var(--fc-muted);
  font-size: 12px;
  margin-top: 3px;
}

.fc-message-item time {
  color: var(--fc-muted);
  font-size: 12px;
  white-space: nowrap;
}

.fc-split {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  /* 行轨必须约束（minmax(0,1fr) + 容器定高）：auto 行会按内容撑高，
     容器 max-height 只能把溢出裁掉——右面板被拉到和内容一样高，
     overflow:auto 永不触发，裁掉的部分滚不到（GB-227 全设备右侧滑不动）。
     高度定为 max(420px, 100vh-140px)：常规视口内两栏各自滚动，
     矮视口整页滚动。 */
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: max(420px, calc(100vh - 140px));
  overflow: hidden;
  align-items: stretch;
}

.fc-issue-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border-right: 1px solid #e0e0e0;
}

.fc-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}

.fc-pane-head h6 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--fc-text-soft);
}

.fc-issue-grid {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.fc-issue-row {
  min-height: 64px;
  border-bottom: 1px solid #f0f1f4;
  background: #fff;
  border-left: 0;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
}

.fc-issue-row:hover {
  background: rgba(25, 118, 210, 0.05);
  color: inherit;
  text-decoration: none;
}

.fc-issue-row.is-selected {
  background: rgba(25, 118, 210, 0.08);
  border-left: 0;
}

.fc-issue-row.is-selected .fc-issue-key {
  color: #0040c8;
  font-weight: 700;
}

.fc-issue-title,
.fc-issue-meta {
  display: none;
}

.fc-issue-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.fc-row-icon {
  width: 18px;
  height: 18px;
  color: #5e6c84;
}

.fc-row-icon-suggestion {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f0e6fb;
  color: #6c34a8;
  font-size: 10px;
  font-weight: 700;
}

.fc-row-icon-internal {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8ebf0;
  color: #4a5568;
  font-size: 10px;
  font-weight: 700;
}

.fc-issue-key {
  color: #172b4d;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.fc-issue-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.87);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 3px;
}

.fc-issue-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

/* 行内元信息：置顶标 / 相对更新时间 / 票数与评论数 */
.fc-row-pin {
  padding: 0 5px;
  border-radius: 8px;
  background: #fff3d6;
  color: #a3520a;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}

.fc-row-time {
  margin-left: auto;
  color: #8993a4;
  font-size: 11px;
  white-space: nowrap;
}

.fc-row-counts {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6b778c;
  font-size: 11.5px;
  font-weight: 600;
}

.fc-row-votes,
.fc-row-comments {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.fc-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid currentColor;
}

.fc-row-cicon {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* 已收口（已修复/已采纳/重复等）的行整体降对比，扫一眼区分还有哪些没处理 */
.fc-issue-row.is-resolved .fc-issue-summary {
  color: #8593a8;
}

.fc-issue-row.is-resolved .fc-issue-key,
.fc-issue-row.is-resolved .fc-issue-key[data-fc-status],
.fc-issue-row.is-resolved.is-selected .fc-issue-key[data-fc-status] {
  color: #94a1b3;
}

.fc-issue-row.is-resolved .fc-row-icon {
  opacity: 0.45;
}

.fc-issue-title strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.fc-issue-meta {
  margin-top: 4px;
  font-size: 11.5px;
  color: #6b778c;
}

.fc-issue-meta .fc-status {
  display: none;
}

.fc-issue-meta .fc-user-line span:last-child {
  display: none;
}

.fc-issue-meta .fc-avatar-mini {
  width: 16px;
  height: 16px;
}

.fc-pagination {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  justify-content: space-between;
}

.fc-detail-pane {
  min-width: 0;
  /* min-height:0 让行轨能约束面板高度（配合 .fc-split 的 grid-template-rows）；
     面板高度=行高，内容超出时 overflow:auto 生效 */
  min-height: 0;
  overflow: auto;
  background: transparent;
  padding: 0;
}

#fc-detail-empty {
  padding: 80px 40px;
  text-align: left;
}

#fc-detail-empty .fc-empty-kicker {
  color: #6b778c;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#fc-detail-empty h2 {
  margin: 6px 0 0;
  color: var(--fc-text);
  font-size: 26px;
  font-weight: 600;
}

.fc-detail-pane:not(#fc-detail-empty) {
  padding: 18px 40px 50px;
}

.fc-detail-nav {
  display: none;
}

.fc-detail-head h2 {
  font-size: 30px;
  font-weight: 700;
  max-width: 720px;
}

.fc-detail-key {
  font-size: 13px;
}

.fc-body {
  max-width: 720px;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 14px;
}

.fc-section {
  max-width: 720px;
}

.fc-comment {
  max-width: 720px;
}

.fc-detail-subline,
.fc-detail-actions {
  max-width: 720px;
}

/* 详情主列 + 右侧元数据窄栏（Jira Details 面板式） */
.fc-detail-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) 232px;
  gap: 32px;
  margin-top: 6px;
}

.fc-detail-main {
  min-width: 0;
}

.fc-detail-rail {
  align-self: start;
  position: sticky;
  top: 8px;
  border-left: 1px solid #ebecf0;
  padding-left: 18px;
}

.fc-detail-rail h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--fc-text-soft);
}

@media (max-width: 1120px) {
  .fc-detail-body-grid {
    grid-template-columns: 1fr;
  }

  .fc-detail-rail {
    position: static;
    border-left: 0;
    padding-left: 0;
  }
}

.fc-staff,
.fc-private {
  max-width: 720px;
}

@media (max-width: 900px) {
  .fc-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    /* 移动端纵向堆叠自然高度：解除桌面端的定高与裁剪，
       左列表自身限高内滚，右详情随页面滚动（GB-227） */
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .fc-issue-pane {
    max-height: 46vh;
    border-right: 0;
    border-bottom: 1px solid #e0e0e0;
  }

  .fc-detail-pane {
    min-height: 54vh;
    max-height: none;
    overflow: visible;
    padding: 12px;
  }

  .fc-detail-pane:not(#fc-detail-empty) {
    padding: 14px;
  }

  .fc-detail-nav {
    display: flex;
  }

  .fc-toolbar-left {
    gap: 10px;
  }

  .fc-search {
    width: 100%;
  }
}

/* ===== in-game skin avatar ===== */
.fc-account-avatar-host,
.fc-avatar-mini {
  display: inline-block;
  flex: none;
  container-type: inline-size;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  overflow: hidden;
}

.fc-account-avatar-host {
  width: 40px;
  height: 40px;
}

.fc-avatar-mini {
  width: 28px;
  height: 28px;
}

.fc-skin-avatar {
  --skin-main: #FFE763;
  --skin-border: #CFBB50;
  --skin-feature: #111;
  --skin-pupil: #fff;
  --skin-look-x: 0%;
  --skin-look-y: 0%;
  --skin-border-width: 7.5cqi;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--skin-main);
  border: var(--skin-border-width) solid var(--skin-border);
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: inset 0 4px 12px rgba(255, 255, 255, 0.18), inset 0 -8px 20px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  container-type: inline-size;
}

.fc-skin-avatar.is-inverted {
  --skin-feature: #fff;
  --skin-pupil: #111;
}

.fc-skin-avatar .skin-eye {
  position: absolute;
  z-index: 1;
  top: 32%;
  width: 10%;
  height: 20%;
  background: var(--skin-feature);
  overflow: hidden;
}

.fc-skin-avatar .skin-eye-left {
  left: 33%;
}

.fc-skin-avatar .skin-eye-right {
  right: 33%;
}

.fc-skin-avatar.skin-eye-shape-oval .skin-eye,
.fc-skin-avatar.skin-eye-shape-oval .skin-pupil {
  border-radius: 50%;
}

.fc-skin-avatar.skin-eye-shape-rectangle .skin-eye {
  border-radius: 2px;
}

.fc-skin-avatar.skin-eye-shape-rectangle .skin-pupil {
  border-radius: 1px;
}

.fc-skin-avatar.skin-eye-shape-diamond .skin-eye {
  top: 31%;
  width: 12%;
  height: 22%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.fc-skin-avatar.skin-eye-shape-diamond .skin-pupil {
  width: 62%;
  height: 62%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.fc-skin-avatar.skin-eye-shape-hexagon .skin-eye {
  clip-path: polygon(22% 0, 78% 0, 100% 50%, 78% 100%, 22% 100%, 0 50%);
}

.fc-skin-avatar.skin-eye-shape-hexagon .skin-pupil {
  width: 62%;
  height: 62%;
  clip-path: polygon(22% 0, 78% 0, 100% 50%, 78% 100%, 22% 100%, 0 50%);
}

.fc-skin-avatar .skin-pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84%;
  height: 54%;
  border-radius: 50%;
  background: var(--skin-pupil);
  transform: translate(calc(-50% + var(--skin-look-x)), calc(-50% + var(--skin-look-y)));
}

.fc-skin-avatar .skin-mouth {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 63%;
  width: 38%;
  height: 20%;
  transform: translateX(-50%);
  overflow: visible;
}

.fc-skin-avatar .skin-mouth-line {
  fill: none;
  stroke: var(--skin-feature);
  stroke-width: 5.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fc-avatar-deleted,
.fc-deleted-user .fc-skin-avatar,
.fc-deleted-user .fc-avatar-mini {
  filter: grayscale(1);
  opacity: 0.65;
}

.fc-not-fixed textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  padding: 8px;
  resize: vertical;
}

.fc-title-segment,
.fc-name-paint,
.fc-user-name,
.fc-account-name {
  display: inline;
}

.fc-title-segment {
  font-weight: 800;
  white-space: nowrap;
}

.title-paint-gradient {
  color: transparent !important;
  background-image: var(--title-paint-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-paint-solid,
.title-paint-theme {
  background-image: none !important;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

.title-paint-theme {
  color: var(--title-paint-light, currentColor) !important;
}

:root[data-theme='dark'] .title-paint-theme {
  color: var(--title-paint-dark, currentColor) !important;
}

.fc-user-text,
.fc-account-name-wrap {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.35em;
  min-width: 0;
}

.fc-account-name-wrap {
  align-items: center;
  gap: 0.35em;
}

.fc-user-name,
.fc-account-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* #231：顶栏返回游戏主页按钮（原页脚位置在长列表页几乎不可见） */
.fc-button-home {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--fc-line);
  border-radius: 8px;
  background: var(--fc-surface);
  color: var(--fc-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.fc-button-home:hover {
  border-color: var(--fc-accent);
  color: var(--fc-accent);
}

/* #235：反馈配图上传预览 */
.fc-attach-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.fc-attach-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--fc-line);
}
.fc-attach-preview .fc-attach-remove {
  cursor: pointer;
}
.fc-issue-attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.fc-issue-attachments img {
  max-width: 220px;
  max-height: 160px;
  border-radius: 6px;
  border: 1px solid var(--fc-line);
  cursor: zoom-in;
}
