:root {
  --bg-primary: #0a0a14;
  --bg-secondary: rgba(20, 20, 35, 0.6);
  --bg-tertiary: rgba(30, 30, 50, 0.5);
  --bg-card: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0c0;
  --text-muted: #666688;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.2);
  --user-bubble: linear-gradient(135deg, #8b5cf6, #6d28d9);
  --user-text: #ffffff;
  --counselor-bubble: rgba(255, 255, 255, 0.06);
  --counselor-text: #f0f0f5;
  --success: #10b981;
  --danger: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --font: 'Pretendard Variable', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── 스크롤바 ──
   @AX:NOTE OS 기본 스크롤바(Windows 크롬 기준 밝은 회색 불투명 15px)가 어두운 글래스
   배경 위에 얹히면 화면이 세로로 쪼개져 보인다는 피드백(2026-08-01) → 얇고 반투명한
   테마 색으로 통일. Firefox는 의사요소를 지원하지 않으므로 scrollbar-width/color 병기. */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.35) transparent;
}
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 3px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.6);
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  font-family: var(--font);
  background: radial-gradient(circle at top left, #1c1938, #0a0a14 50%, #0d0a20 100%);
  color: var(--text-primary);
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── 광고 영역 ──
   @AX:NOTE #app이 최대 480px 카드로 화면 중앙에 고정된 레이아웃이라, 광고를
   #app 내부가 아닌 body 레벨에서 감싸는 구조(.page-layout)로 배치함. PC 세로
   광고는 카드 옆이 아닌 화면 오른쪽 끝에 고정(position:fixed)함(사용자 결정,
   2026-07-17). 애드블록 감지/상담 시작 차단 정책은 이번 범위에서 제외 — 광고
   노출만 수행(app.js의 initAdPlacement 참고). */
#ad-mobile-wrapper {
  display: none;
  width: 100%;
  height: 60px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 20, 0.5);
  border-bottom: 1px solid var(--glass-border);
}

.page-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.ad-desktop-wrapper {
  display: none;
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 160px;
  height: 600px;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

#app {
  width: 100%;
  max-width: 480px;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: rgba(10, 10, 20, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
}
.screen.active { display: flex; }

/* ── 시작 화면 ── */
.intro-container {
  height: 100%;
  overflow-y: auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-area {
  text-align: center;
  margin-bottom: 40px;
}
.logo-icon { font-size: 64px; margin-bottom: 12px; }
.logo-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.logo-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: center;
}

.hidden { display: none !important; }

.select-section {
  width: 100%;
  margin-bottom: 24px;
}

.theme-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
}

.theme-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.theme-card:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.theme-card.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.theme-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}
.theme-card-info { flex: 1; }
.theme-card-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.theme-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.counselor-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 32px;
}

.counselor-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}
.counselor-card:hover {
  border-color: var(--border-light);
  background: var(--bg-tertiary);
}
.counselor-card.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.counselor-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.counselor-card-info { flex: 1; }
.counselor-card-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.counselor-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: white;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
  filter: brightness(1.1);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

/* ── 채팅 화면 ── */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-shrink: 0;
  z-index: 10;
}

.btn-back {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px;
  width: 33px;
  height: 33px;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.counselor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.counselor-name { font-size: 15px; font-weight: 600; }
.counselor-subtitle { font-size: 12px; color: var(--text-secondary); }

/* 채팅 헤더 우측 의견 보내기 버튼 (기존 turn-indicator 자리) */
.btn-feedback {
  font-size: 13px;
  font-family: inherit;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}

.btn-feedback:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: fadeIn 0.3s ease;
}
.message.user { align-self: flex-end; flex-direction: row-reverse; }
.message.counselor { align-self: flex-start; }

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  align-self: flex-end;
}
.message.user .message-avatar { display: none; }

.message-bubble {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.message.user .message-bubble {
  background: var(--user-bubble);
  color: var(--user-text);
  border-bottom-right-radius: 4px;
  border: none;
}
.message.counselor .message-bubble {
  background: var(--counselor-bubble);
  color: var(--counselor-text);
  border-bottom-left-radius: 4px;
}

.message-bubble strong {
  font-weight: 700;
  color: var(--accent-hover);
}
.message.user .message-bubble strong {
  color: #fff;
}

.message-bubble blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
}

.typing-indicator {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: var(--counselor-bubble);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

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

.chat-input-area {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-shrink: 0;
  z-index: 10;
}

.input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 16px;
  transition: all 0.3s;
}
.input-wrapper:focus-within { 
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

#chat-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font);
  resize: none;
  outline: none;
  padding: 10px 0;
  max-height: 120px;
  line-height: 1.5;
}
#chat-input::placeholder { color: var(--text-muted); }

/* ── 결과 화면의 '더 물어보기' Q&A ──
   @AX:NOTE 입력 영역은 채팅 화면의 .input-wrapper / .btn-send를 그대로 재사용하므로
   여기서는 컨테이너와 textarea만 정의한다 (전송 버튼 스타일 중복 금지). */
.qna-section {
  width: 100%;
  margin-top: 30px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}
.qna-section h3 {
  margin-bottom: 10px;
  font-size: 16px;
}
.qna-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.5;
}
#qna-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
}
/* 메시지가 없을 때 빈 여백이 남지 않도록 */
#qna-messages:not(:empty) { margin-bottom: 15px; }

#qna-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font);
  resize: none;
  outline: none;
  padding: 10px 0;
  max-height: 120px;
  line-height: 1.5;
}
#qna-input::placeholder { color: var(--text-muted); }

.btn-send {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 3px; /* @AX:NOTE 한 줄 입력(≈42px) 기준 세로 중앙 정렬 보정 */
  transition: all 0.2s;
}
.btn-send svg { display: block; }
.btn-send:disabled {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ── 결과 화면 ── */
.result-container {
  height: 100%;
  overflow-y: auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-header {
  text-align: center;
  margin-bottom: 32px;
}
.result-logo { font-size: 48px; margin-bottom: 8px; }
.result-title {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}
.result-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 6px;
}

.result-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--glass-shadow);
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card-header { text-align: center; margin-bottom: 20px; }
.result-type {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.result-type-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.result-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.result-traits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trait-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.trait-label {
  font-size: 14px;
  color: var(--text-secondary);
}
.trait-bar-wrapper {
  flex: 1;
  margin-left: 16px;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}
.trait-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}
.trait-value {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 12px;
  min-width: 32px;
  text-align: right;
}
/* 비MBTI 테마용 양극 바: 양끝 극 라벨 + 중앙 기준선 + 위치 마커 */
.trait-item-bipolar {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.trait-bipolar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.trait-bipolar-head .trait-value {
  min-width: auto;
  margin-left: 0;
}
.trait-bipolar-track {
  position: relative;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
}
.trait-bipolar-center {
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--border);
}
.trait-bipolar-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary, #fff);
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: left 1s ease;
}
.trait-bipolar-poles {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}
.trait-bipolar-poles .pole-active {
  color: var(--text-primary);
  font-weight: 600;
}
.trait-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}
.trait-interpret {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.trait-interpret strong {
  color: var(--text-primary);
}

.trait-evidence {
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted);
  margin: -6px 0 4px;
  padding-left: 4px;
  line-height: 1.5;
}

.result-message {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
}

.result-emotions {
  width: 100%;
  margin-bottom: 32px;
}
.result-emotions h3 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-align: center;
}

.emotion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.emotion-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.result-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── 이름 입력 (선택) ── */
.optional-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.7;
}

.name-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.name-input::placeholder { color: var(--text-secondary); opacity: 0.6; }

.name-input:focus {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ── 토스트 알림 ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 16px);
  background: rgba(30, 30, 50, 0.95);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  max-width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── 반응형 ── */
@media (min-width: 481px) {
  #app { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

@media (max-width: 360px) {
  .intro-container { padding: 24px 16px; }
  .counselor-card { padding: 16px; }
  .message-bubble { font-size: 14px; }
}

/* PC: #app(480px) + 좌우 광고(160px×2) + 여백을 감당할 폭이 될 때만 양옆 광고 노출 */
@media (min-width: 900px) {
  .ad-desktop-wrapper { display: flex; }
}

/* 모바일: 상단 가로 광고 노출, #app 높이는 그만큼 자동으로 줄어듦(.page-layout이 flex:1) */
@media (max-width: 768px) {
  #ad-mobile-wrapper { display: flex; }
}

/* ── 피드백 모달 (prototype 프로젝트 이식, 이 앱의 디자인 토큰으로 변환) ── */
.feedback-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.feedback-overlay.show {
  display: flex;
}

.feedback-box {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 420px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.feedback-box h2 {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 18px;
}

.feedback-box label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin: 14px 0 6px;
}

.feedback-box select,
.feedback-box textarea,
.feedback-box input[type="email"] {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}

.feedback-check {
  display: flex !important;
  align-items: center;
  gap: 7px;
  font-size: 12px !important;
  color: var(--text-secondary);
  cursor: pointer;
}

.feedback-check input {
  flex-shrink: 0;
}

.feedback-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.feedback-status {
  font-size: 12px;
  color: var(--accent-hover);
  min-height: 16px;
  margin-top: 8px;
}

.feedback-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.feedback-box .feedback-buttons button {
  padding: 9px 20px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.feedback-box .feedback-buttons button:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.feedback-box .feedback-buttons button:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}
