:root {
  --bg0: #0b0c0f;
  --bg1: #0f1116;
  --paper: rgba(255, 255, 255, 0.92);
  --paper2: rgba(255, 255, 255, 0.72);
  --ink: #0f172a;
  --muted: rgba(15, 23, 42, 0.62);
  --hair: rgba(15, 23, 42, 0.1);
  --shadow: rgba(0, 0, 0, 0.18);
  --accent: #e43d3d;
  --accent2: #ff6b6b;
  --good: #0f9d58;
  --warn: #d97706;
  --bad: #b42318;
  --radius: 18px;
  --radius2: 14px;
  --font: "PingFang SC", "HarmonyOS Sans", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(1200px 700px at 20% 10%, #2a0f14 0%, transparent 55%),
    radial-gradient(900px 600px at 80% 0%, #141b2b 0%, transparent 60%),
    radial-gradient(900px 900px at 60% 100%, #0b1f19 0%, transparent 55%), linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg__grain {
  position: absolute;
  inset: -40px;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.bg__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.25;
}

.bg__glow--a {
  left: -80px;
  top: 12vh;
  background: radial-gradient(circle at 40% 40%, var(--accent2), transparent 60%);
}

.bg__glow--b {
  right: -120px;
  bottom: 10vh;
  background: radial-gradient(circle at 50% 50%, #5eead4, transparent 60%);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 18px 32px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.1));
  opacity: 0.7;
}

.brand__txt {
  min-width: 0;
}

.brand__title {
  font-weight: 720;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.05;
}

.brand__sub {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.workflow-tabs {
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05); /* 半透明背景，符合整体毛玻璃风格 */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-right: 4px;
}

.workflow-tab {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5); /* 默认半透明，拉开对比 */
  padding: 4px 14px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 20px;
  background: transparent;
  border: none;
}

.workflow-tab:hover:not(.active) {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
}

.workflow-tab.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16); /* 点击后的高亮背景色 */
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* 增加微量阴影，浮现出立体层级 */
}

.pill {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.pill--ghost {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.chat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 20px 60px var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.agent {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.agent__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.92);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18);
}

.agent__name {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.1;
}

.agent__hint {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iconBtn {
  height: 34px;
  width: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.iconBtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.messages {
  padding: 18px 16px 10px;
  max-height: min(72vh, 720px);
  overflow: auto;
  scroll-behavior: smooth;
}

.msg {
  display: flex;
  gap: 10px;
  margin: 0 0 14px;
  align-items: flex-end;
  animation: msgIn 220ms ease both;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg--user {
  justify-content: flex-end;
}

.bubble {
  max-width: min(660px, 92%);
  border-radius: var(--radius);
  padding: 12px 12px;
  line-height: 1.5;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.bubble--user {
  background: rgba(15, 23, 42, 0.86);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom-right-radius: 10px;
}

.bubble--assistant {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom-left-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.bubble__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.bubble__title {
  font-weight: 760;
  letter-spacing: 0.2px;
  margin: 0;
}

.bubble__badge {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.64);
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.bubble__text {
  margin: 0;
  white-space: pre-wrap;
}

/* Table Styles */
.bubble__text table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
  font-size: 13px;
}

.bubble__text th,
.bubble__text td {
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 6px 10px;
  text-align: left;
}

.bubble__text th {
  background: rgba(15, 23, 42, 0.04);
  font-weight: 700;
}

.assistantBlock {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.outfitSection {
  margin-top: 12px;
}

.outfitTitle {
  font-weight: 760;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.82);
  margin: 2px 0 8px;
}

.outfitList {
  margin: 6px 0 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  line-height: 1.5;
}

.assistantBlock__kvs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 10px;
}

.kv {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.kv__k {
  flex: 0 0 auto;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.78);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
  font-size: 12px;
}

.kv__v {
  color: rgba(15, 23, 42, 0.86);
  font-size: 13px;
  line-height: 1.45;
}

.cardsRow {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.cardsRow--outfit {
  padding-top: 10px;
}

.cardsRow::-webkit-scrollbar {
  height: 8px;
}

.cardsRow::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.16);
  border-radius: 999px;
}

.card {
  scroll-snap-align: start;
  width: 248px;
  flex: 0 0 auto;
  border-radius: calc(var(--radius2) + 4px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.card--outfit .card__media {
  height: 200px;
}

.card--outfit .card__body {
  padding: 12px;
}

.card--outfit .card__cta {
  margin-top: 10px;
  justify-content: flex-start;
}

.card__link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card--alt {
  width: 220px;
}

.card--alt .card__body {
  padding: 12px 12px 14px;
}

.card--alt .card__desc {
  margin-top: 6px;
}

.card__media {
  position: relative;
  height: 156px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.02));
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__nav {
  position: absolute;
  inset: 10px 10px auto 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.card__navBtn {
  pointer-events: auto;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(15, 23, 42, 0.16);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.card__navBtn:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.22);
}

.card__dots {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dot--on {
  background: rgba(255, 255, 255, 0.92);
}

.card__body {
  padding: 12px 12px 12px;
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card__name {
  font-weight: 760;
  letter-spacing: 0.2px;
  font-size: 13px;
  line-height: 1.25;
}

.card__model {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
}

.card__desc {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.35;
}

.card__price {
  font-weight: 770;
  color: rgba(15, 23, 42, 0.86);
  white-space: nowrap;
  font-size: 13px;
}

.card__meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: rgba(15, 23, 42, 0.70);
}

.tag--accent {
  background: rgba(228, 61, 61, 0.10);
  border-color: rgba(228, 61, 61, 0.16);
  color: rgba(176, 27, 27, 0.92);
}

.controls {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.label {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
  flex: 0 0 auto;
}

.swatches {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  cursor: pointer;
  position: relative;
}

.swatch--static {
  cursor: default;
}

.swatch--on::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid rgba(228, 61, 61, 0.78);
}

.sizes {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.chip {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.78);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip--on {
  border-color: rgba(228, 61, 61, 0.32);
  background: rgba(228, 61, 61, 0.08);
  color: rgba(176, 27, 27, 0.92);
}

.chip--off {
  opacity: 0.45;
  cursor: not-allowed;
}

.stock {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.70);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stock__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.30);
}

.stock--good .stock__dot {
  background: rgba(15, 157, 88, 0.95);
}

.stock--warn .stock__dot {
  background: rgba(217, 119, 6, 0.95);
}

.stock--bad .stock__dot {
  background: rgba(180, 35, 24, 0.95);
}

.card__cta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.card__footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.card__stock {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.72);
  white-space: nowrap;
}

.card__view {
  white-space: nowrap;
}


.btn {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.92);
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: transform 120ms ease, filter 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.86);
}

.btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.typing {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 12px 12px;
}

.typing__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.40);
  animation: blink 900ms infinite;
}

.typing__dot:nth-child(2) {
  animation-delay: 120ms;
}

.typing__dot:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 0.85;
    transform: translateY(-2px);
  }
}

.composer {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.06));
}

.composer__inner {
  display: flex;
  gap: 10px;
  align-items: center;
}

.composer__input {
  flex: 1 1 auto;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.composer__input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.composer__input:focus {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 0 4px rgba(228, 61, 61, 0.18);
}

.composer__send {
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(228, 61, 61, 0.92);
  color: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  font-weight: 760;
  transition: transform 120ms ease, filter 120ms ease;
}

.composer__send:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.composer__tips {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.35;
}

.foot {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.94);
  color: rgba(15, 23, 42, 0.90);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.20);
  padding: 10px 12px;
  border-radius: 14px;
  max-width: min(520px, calc(100vw - 28px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 5;
}

.toast--on {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 720px) {
  .shell {
    padding: 18px 12px 28px;
  }
  .messages {
    padding: 16px 12px 8px;
    max-height: min(74vh, 720px);
  }
  .bubble {
    max-width: 96%;
  }
  .card {
    width: 230px;
  }
}

/* ─── Feedback Action Row ───────────────────────────── */
.feedback-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  max-width: min(660px, 92%);
  margin: -4px 0 14px 0;
  padding-right: 4px;
}
.feedback-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
  line-height: 1.3;
}
.feedback-act-btn:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}
.feedback-act-btn svg {
  flex-shrink: 0;
}

/* Like / Dislike active states */
.feedback-act-btn--like.active {
  color: rgba(94, 234, 212, 0.95);
  background: rgba(94, 234, 212, 0.12);
  border-color: rgba(94, 234, 212, 0.30);
}
.feedback-act-btn--dislike.active {
  color: rgba(228, 61, 61, 0.95);
  background: rgba(228, 61, 61, 0.12);
  border-color: rgba(228, 61, 61, 0.30);
}

/* Feedback submit button - more prominent */
.feedback-act-btn--feedback {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
.feedback-act-btn--feedback:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ─── Feedback Modal ────────────────────────────────── */
.fb-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.fb-modal--open {
  opacity: 1;
  pointer-events: auto;
}
.fb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.fb-dialog {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  transition: transform 200ms ease;
}
.fb-modal--open .fb-dialog {
  transform: translateY(0);
}
.fb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.fb-title {
  margin: 0;
  font-size: 18px;
  font-weight: 760;
  color: var(--ink);
}
.fb-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  color: rgba(15, 23, 42, 0.5);
  transition: background 140ms ease, color 140ms ease;
  line-height: 1;
}
.fb-close:hover {
  background: rgba(15, 23, 42, 0.10);
  color: rgba(15, 23, 42, 0.8);
}
.fb-body {
  padding: 16px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Q&A section */
.fb-section {
  background: rgba(15, 23, 42, 0.025);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fb-qa-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.fb-qa-label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: rgba(99, 102, 241, 0.88);
  white-space: nowrap;
  padding-top: 1px;
}
.fb-qa-content {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.5;
  word-break: break-word;
}
.fb-qa-content-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}
.fb-answer-text {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.5;
  word-break: break-word;
  max-height: 60px;
  overflow: hidden;
  transition: max-height 200ms ease;
}
.fb-answer-text--expanded {
  max-height: 400px;
  overflow-y: auto;
}
.fb-answer-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 0;
  padding: 2px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 140ms ease;
}
.fb-answer-toggle:hover {
  background: rgba(15, 23, 42, 0.05);
}
.fb-toggle-icon {
  display: inline-block;
  font-size: 16px;
  color: rgba(15, 23, 42, 0.45);
  transition: transform 200ms ease;
  line-height: 1;
}

/* Fields */
.fb-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fb-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.fb-required {
  color: #e43d3d;
  margin-right: 2px;
}

/* Type checkboxes */
.fb-type-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.fb-type-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.82);
  cursor: pointer;
  user-select: none;
}
.fb-type-item input[type="checkbox"] {
  display: none;
}
.fb-type-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  position: relative;
  transition: border-color 140ms ease, background 140ms ease;
  flex-shrink: 0;
}
.fb-type-item input[type="checkbox"]:checked + .fb-type-check {
  border-color: rgba(99, 102, 241, 0.9);
  background: rgba(99, 102, 241, 0.9);
}
.fb-type-item input[type="checkbox"]:checked + .fb-type-check::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

/* Reason chips */
.fb-reasons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fb-reason-btn {
  padding: 10px 24px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.72);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
}
.fb-reason-btn:hover {
  border-color: rgba(99, 102, 241, 0.35);
  color: rgba(15, 23, 42, 0.88);
}
.fb-reason-btn.active {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.06);
  color: rgba(99, 102, 241, 0.92);
  font-weight: 600;
}

/* Detail textarea */
.fb-detail-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--ink);
  resize: vertical;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  min-height: 44px;
}
.fb-detail-input::placeholder {
  color: rgba(15, 23, 42, 0.38);
}
.fb-detail-input:focus {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.10);
}

/* Footer buttons */
.fb-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 24px 20px;
}
.fb-btn {
  padding: 9px 28px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 120ms ease, filter 120ms ease, background 140ms ease;
}
.fb-btn:hover {
  transform: translateY(-1px);
}
.fb-btn--submit {
  background: rgba(99, 102, 241, 0.92);
  color: #fff;
}
.fb-btn--submit:hover {
  filter: brightness(1.06);
}
.fb-btn--cancel {
  background: rgba(15, 23, 42, 0.05);
  color: rgba(15, 23, 42, 0.68);
  border-color: rgba(15, 23, 42, 0.10);
}
.fb-btn--cancel:hover {
  background: rgba(15, 23, 42, 0.08);
}

/* ─── Feedback Records Panel ────────────────────────── */
.feedback-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.feedback-panel--open {
  opacity: 1;
  pointer-events: auto;
}

.feedback-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.feedback-panel__drawer {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(440px, calc(100vw - 24px));
  background: rgba(15, 23, 42, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}

.feedback-panel--open .feedback-panel__drawer {
  transform: translateX(0);
}

.feedback-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.feedback-panel__title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 760;
}

.feedback-panel__ops {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feedback-panel__btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  font-size: 12px;
  padding: 6px 9px;
  cursor: pointer;
}

.feedback-panel__btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.feedback-panel__stats {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feedback-panel__list {
  padding: 12px 12px 16px;
  overflow: auto;
  flex: 1;
}

.fp-empty {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  text-align: center;
  padding: 24px 10px;
}

.fp-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.fp-item__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.fp-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.fp-tag--like {
  color: rgba(94, 234, 212, 0.95);
  background: rgba(94, 234, 212, 0.12);
  border-color: rgba(94, 234, 212, 0.28);
}

.fp-tag--dislike {
  color: rgba(248, 113, 113, 0.95);
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
}

.fp-tag--feedback {
  color: rgba(167, 139, 250, 0.95);
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.28);
}

.fp-time {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.56);
}

.fp-del {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  font-size: 11px;
  padding: 3px 7px;
  cursor: pointer;
}

.fp-del:hover {
  background: rgba(248, 113, 113, 0.22);
  border-color: rgba(248, 113, 113, 0.40);
}

.fp-row {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84);
  margin-top: 4px;
}

.fp-k {
  color: rgba(255, 255, 255, 0.58);
}

.fp-v {
  color: rgba(255, 255, 255, 0.84);
}
