.xc-fb-btn { position: relative; }
.xc-fb-btn .xc-fb-dot {
  display: none; position: absolute; top: -3px; right: -3px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #c45c5c; color: #fff; font-size: 9px; font-weight: 700;
  align-items: center; justify-content: center; border: 2px solid var(--xc-header-bg, #fff);
}
.xc-fb-btn .xc-fb-dot.show { display: flex; }

.xc-fb-mask {
  position: fixed; inset: 0; z-index: 2400;
  background: rgba(20, 16, 10, .42);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.xc-fb-mask.open { display: flex; }

.xc-fb-modal {
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
  overflow: hidden;
  display: flex; flex-direction: column;
  background: #fffdf8;
  color: #26211a;
  border: 1px solid rgba(28, 26, 23, .12);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(80, 60, 20, .22);
  font-family: inherit;
}
html.theme-dark .xc-fb-modal,
html.studio-theme-dark .xc-fb-modal {
  background: #16140f;
  color: #f4efe4;
  border-color: rgba(242, 227, 173, .16);
}

.xc-fb-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(28, 26, 23, .08);
}
html.theme-dark .xc-fb-head,
html.studio-theme-dark .xc-fb-head { border-bottom-color: rgba(242, 227, 173, .1); }
.xc-fb-head h3 { margin: 0; font-size: 16px; font-weight: 650; }
.xc-fb-head p { margin: 2px 0 0; font-size: 12px; color: #6b6456; }
html.theme-dark .xc-fb-head p,
html.studio-theme-dark .xc-fb-head p { color: #b7ae9c; }
.xc-fb-close {
  margin-left: auto; width: 32px; height: 32px; border-radius: 10px;
  border: 1px solid rgba(28, 26, 23, .12); background: transparent;
  color: inherit; cursor: pointer; font-size: 18px; line-height: 1;
}
.xc-fb-tabs { display: flex; gap: 6px; padding: 12px 18px 0; }
.xc-fb-tab {
  border: 1px solid rgba(28, 26, 23, .1); background: rgba(28, 26, 23, .04);
  color: #5c5648; border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.xc-fb-tab.on { background: linear-gradient(135deg, #ecd9a0, #d3ba82); color: #8a6d1f; border-color: transparent; font-weight: 650; }
html.theme-dark .xc-fb-tab,
html.studio-theme-dark .xc-fb-tab { border-color: rgba(242,227,173,.12); background: rgba(255,255,255,.04); color: #c9c0ae; }

.xc-fb-body { padding: 14px 18px 18px; overflow: auto; }
.xc-fb-label { display: block; font-size: 12px; font-weight: 650; margin: 12px 0 8px; }
.xc-fb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xc-fb-chip {
  border: 1px solid rgba(28, 26, 23, .12); background: #fff; color: #3d382e;
  border-radius: 999px; padding: 6px 11px; font-size: 12px; cursor: pointer;
}
.xc-fb-chip.on { border-color: #8a6d1f; background: rgba(138, 109, 31, .08); color: #8a6d1f; font-weight: 650; }
html.theme-dark .xc-fb-chip,
html.studio-theme-dark .xc-fb-chip { background: rgba(255,255,255,.04); border-color: rgba(242,227,173,.14); color: #efe8d8; }

.xc-fb-input, .xc-fb-area, .xc-fb-select {
  width: 100%; box-sizing: border-box;
  border: 1px solid rgba(28, 26, 23, .12); border-radius: 12px;
  background: #fff; color: inherit; padding: 10px 12px; font: inherit; font-size: 13px;
}
.xc-fb-area { min-height: 110px; resize: vertical; }
html.theme-dark .xc-fb-input,
html.theme-dark .xc-fb-area,
html.theme-dark .xc-fb-select,
html.studio-theme-dark .xc-fb-input,
html.studio-theme-dark .xc-fb-area,
html.studio-theme-dark .xc-fb-select {
  background: rgba(255,255,255,.04); border-color: rgba(242,227,173,.14);
}

.xc-fb-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.xc-fb-up {
  border: 1px dashed rgba(138, 109, 31, .45); background: rgba(236, 217, 160, .18);
  color: #8a6d1f; border-radius: 12px; padding: 10px 14px; cursor: pointer; font-size: 12px;
}
.xc-fb-previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.xc-fb-prev {
  position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(28, 26, 23, .1);
}
.xc-fb-prev img { width: 100%; height: 100%; object-fit: cover; }
.xc-fb-prev button {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border: 0;
  border-radius: 50%; background: rgba(20,16,10,.72); color: #fff; cursor: pointer; font-size: 11px;
}

.xc-fb-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.xc-fb-msg { font-size: 12px; color: #8a6d1f; min-height: 16px; }
.xc-fb-msg.err { color: #b42318; }
.xc-fb-go {
  border: 0; border-radius: 12px; padding: 10px 18px; cursor: pointer; font-weight: 650;
  background: linear-gradient(135deg, #ecd9a0, #d3ba82); color: #5c4810;
}
.xc-fb-go[disabled] { opacity: .55; cursor: not-allowed; }

.xc-fb-list { display: flex; flex-direction: column; gap: 8px; }
.xc-fb-item {
  text-align: left; border: 1px solid rgba(28, 26, 23, .08); background: rgba(28, 26, 23, .03);
  border-radius: 12px; padding: 10px 12px; cursor: pointer; color: inherit;
}
.xc-fb-item:hover { background: rgba(138, 109, 31, .06); }
.xc-fb-item b { display: block; font-size: 13px; }
.xc-fb-item span { font-size: 11px; color: #6b6456; }
.xc-fb-st {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700;
  background: rgba(138, 109, 31, .12); color: #8a6d1f;
}
.xc-fb-st.open { background: rgba(180, 90, 40, .12); color: #a3541a; }
.xc-fb-st.processing { background: rgba(40, 110, 180, .12); color: #215d9a; }
.xc-fb-st.resolved { background: rgba(40, 140, 90, .12); color: #1d7a4a; }
.xc-fb-st.closed { background: rgba(28, 26, 23, .08); color: #6b6456; }

.xc-fb-detail { font-size: 13px; line-height: 1.6; }
.xc-fb-detail .meta { font-size: 12px; color: #6b6456; margin-bottom: 10px; }
.xc-fb-replies { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.xc-fb-reply {
  border-radius: 12px; padding: 10px 12px; background: rgba(28, 26, 23, .04); font-size: 12px;
}
.xc-fb-reply.admin { background: rgba(138, 109, 31, .08); }
.xc-fb-back { border: 0; background: transparent; color: #8a6d1f; cursor: pointer; padding: 0; font-size: 12px; }
