/* ============================================================
   淨淨 廠商調查站 — 共用樣式
   主色 #61D0DF | RWD 900px breakpoint | max-width 1200px
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #61D0DF;
  --brand-dark:  #3fb8c9;
  --brand-light: #e8f9fb;
  --red:         #E74C3C;
  --red-bg:      #fdf2f1;
  --green:       #27AE60;
  --green-bg:    #edf8f1;
  --warn:        #F39C12;
  --warn-bg:     #fef8ee;
  --text-primary:   #1a1a2e;
  --text-secondary: #5a6472;
  --text-muted:     #9ba3ad;
  --border:      #e2e7ed;
  --surface:     #ffffff;
  --bg:          #f4f6f9;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:   0 12px 36px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   18px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC',
          'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
}

/* ---- 通用 layout ---- */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Topbar ---- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.topbar-logo-badge {
  width: 34px;
  height: 34px;
  background: var(--brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}
.topbar-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.topbar-divider {
  color: var(--border);
  font-weight: 300;
  font-size: 18px;
  margin: 0 2px;
  user-select: none;
}
.topbar-logout {
  color: var(--text-muted);
  font-size: 16px;
  padding: 6px 9px;
  border-radius: 7px;
  text-decoration: none;
  transition: all .15s;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
}
.topbar-logout:hover {
  background: #ffebee;
  color: #c62828;
  border-color: #ffcdd2;
}
.topbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.topbar-brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: .02em;
}
.topbar-tool-name {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.topbar-avatar {
  width: 30px;
  height: 30px;
  background: var(--brand-light);
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  font-size: 14px;
}

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
  letter-spacing: .02em;
  padding: 10px 20px;
  line-height: 1;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 4px 14px rgba(97,208,223,.4); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--brand);
  color: var(--brand-dark);
}
.btn-outline:hover { background: var(--brand-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg); }

.btn-lg { font-size: 15px; padding: 13px 28px; border-radius: var(--radius-sm); }
.btn-sm { font-size: 12px; padding: 6px 14px; border-radius: 6px; }
.btn-full { width: 100%; }

/* ---- Card ---- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ---- Form ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: .01em;
}
.form-label .required { color: var(--red); margin-left: 2px; }
.form-hint { font-size: 12px; color: var(--text-muted); }

.form-input, .form-textarea {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(97,208,223,.18);
}
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

/* Radio group */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.radio-card {
  position: relative;
}
.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.radio-card-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: 13px;
}
.radio-card-label .rtype-name { font-weight: 600; color: var(--text-primary); font-size: 13px; }
.radio-card-label .rtype-hint { font-size: 11px; color: var(--text-muted); }
.radio-card input:checked + .radio-card-label {
  border-color: var(--brand);
  background: var(--brand-light);
}
.radio-card-label:hover { border-color: var(--brand); background: var(--brand-light); }

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .03em;
}
.badge-warm  { background: var(--warn-bg); color: var(--warn); border: 1px solid #f6c060; }
.badge-cold  { background: #eef2ff; color: #4361ee; border: 1px solid #c5cffa; }
.badge-hot   { background: var(--red-bg); color: var(--red); border: 1px solid #f1b5b0; }
.badge-type  { background: var(--brand-light); color: var(--brand-dark); border: 1px solid #b8edf3; }
.badge-green { background: var(--green-bg); color: var(--green); border: 1px solid #a3d9b8; }

/* ---- Stars ---- */
.stars {
  display: flex;
  gap: 3px;
  font-size: 18px;
  color: #f1c40f;
}
.stars .star-empty { color: #dde0e5; }

/* ---- Section title ---- */
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.section-title i { font-size: 15px; color: var(--brand-dark); }

/* ---- Red flag block ---- */
.red-flag-block {
  background: var(--red-bg);
  border: 1.5px solid #f1b5b0;
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.red-flag-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
}
.red-flag-item {
  font-size: 13px;
  color: #7f1d1d;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.red-flag-item i { color: var(--red); margin-top: 2px; flex-shrink: 0; }

/* ---- Six cards grid ---- */
.six-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.six-cards-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.six-cards-table th {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid var(--brand);
}
.six-cards-table th.dim-col { background: var(--bg); color: var(--text-secondary); width: 130px; }
.six-cards-table th.our-col { background: #e3f4fa; }
.six-cards-table th.their-col { background: #fce4ec; color: #b71c5b; border-bottom-color: #ec8aaa; }
.six-cards-table td {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  vertical-align: top;
  border-bottom: 1px solid #eef2f4;
}
.six-cards-table tr:last-child td { border-bottom: 0; }
.six-cards-table td.dim-cell {
  background: var(--bg);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 13px;
  white-space: nowrap;
}
.six-cards-table td.our-cell { background: #f0fbfd; color: var(--text-primary); }
.six-cards-table td.their-cell { background: #fef5f8; color: var(--text-primary); }
@media (max-width: 900px) {
  .six-cards-table th.dim-col, .six-cards-table td.dim-cell { width: 80px; }
  .six-cards-table th, .six-cards-table td { padding: 10px 8px; font-size: 12px; }
}
.card-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface);
}
.card-item-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-item-label i { font-size: 13px; }
.card-item-value {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.55;
  font-weight: 500;
}

/* ---- Score bar (decision 5Q) ---- */
.score-bar-list { display: flex; flex-direction: column; gap: 12px; }
.score-bar-item { display: flex; flex-direction: column; gap: 5px; }
.score-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.score-bar-label { font-weight: 600; color: var(--text-primary); }
.score-bar-num { font-weight: 700; color: var(--brand-dark); font-size: 13px; }
.score-bar-track {
  height: 7px;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.score-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  transition: width .5s ease;
}
.score-bar-note { font-size: 11px; color: var(--text-muted); }

/* ---- Industry compare table ---- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
}
.compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-primary); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr.highlight-row td { background: var(--brand-light); font-weight: 600; }

/* ---- Value proposition ---- */
.value-prop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.value-prop-item {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.value-prop-item.for-block  { border-left: 3px solid var(--brand); background: var(--brand-light); }
.value-prop-item.solve-block { border-left: 3px solid var(--warn); background: var(--warn-bg); }
.value-prop-item.by-block   { border-left: 3px solid var(--green); background: var(--green-bg); }
.value-prop-item.get-block  { border-left: 3px solid #9b59b6; background: #f5eefa; }
.value-prop-tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; margin-bottom: 5px; text-transform: uppercase; }
.for-block  .value-prop-tag { color: var(--brand-dark); }
.solve-block .value-prop-tag { color: var(--warn); }
.by-block   .value-prop-tag { color: var(--green); }
.get-block  .value-prop-tag { color: #9b59b6; }
.value-prop-text { font-size: 13px; color: var(--text-primary); line-height: 1.55; }

/* ---- Key contacts ---- */
.contacts-list { display: flex; flex-direction: column; gap: 10px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.contact-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-light);
  border: 1.5px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  font-size: 16px;
  flex-shrink: 0;
}
.contact-info { flex: 1; min-width: 0; }
.contact-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.contact-title { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.contact-tip { font-size: 12px; color: var(--text-secondary); margin-top: 5px; line-height: 1.45; }
.contact-linkedin {
  font-size: 12px;
  color: var(--brand-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.contact-linkedin:hover { text-decoration: underline; }

/* ---- Talking points ---- */
.talking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.talking-block {
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
}
.talking-block.say  { border-top: 3px solid var(--green);  background: var(--green-bg); }
.talking-block.dont { border-top: 3px solid var(--red);    background: var(--red-bg); }
.talking-block.faq  { border-top: 3px solid var(--warn);   background: var(--warn-bg); grid-column: 1/-1; }
.talking-header {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.say  .talking-header { color: var(--green); }
.dont .talking-header { color: var(--red); }
.faq  .talking-header { color: var(--warn); }
.talking-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.talking-list li {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.talking-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.say  .talking-list li::before { background: var(--green); }
.dont .talking-list li::before { background: var(--red); }
.faq  .talking-list li::before { background: var(--warn); }

/* ---- Chat sidebar ---- */
.report-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.report-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.report-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 92px);
  display: flex;
  flex-direction: column;
}
.chat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 92px);
  overflow: hidden;
}
.chat-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.chat-header-icon {
  width: 28px; height: 28px;
  background: var(--brand-light);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-dark); font-size: 14px;
}
.chat-header-text { flex: 1; }
.chat-header-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.chat-header-sub { font-size: 11px; color: var(--text-muted); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.chat-msg { display: flex; flex-direction: column; gap: 3px; }
.chat-msg.ai .chat-bubble {
  background: var(--brand-light);
  border: 1px solid #b8edf3;
  color: var(--text-primary);
  border-radius: 4px 12px 12px 12px;
}
.chat-msg.user .chat-bubble {
  background: var(--brand);
  color: #fff;
  border-radius: 12px 4px 12px 12px;
  align-self: flex-end;
}
.chat-bubble {
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 100%;
}
.chat-sender { font-size: 10px; color: var(--text-muted); padding: 0 2px; }
.chat-msg.user .chat-sender { text-align: right; }
.chat-input-area {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.chat-input {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  outline: none;
  resize: none;
  min-height: 60px;
  max-height: 120px;
  transition: border-color .15s;
  width: 100%;
  line-height: 1.5;
}
.chat-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(97,208,223,.18); }
.chat-send-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s;
  align-self: flex-end;
}
.chat-send-btn:hover { background: var(--brand-dark); }

/* ---- History cards ---- */
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.history-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .15s, transform .1s, border-color .15s;
  position: relative;
}
.history-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--brand);
}
.history-card-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.history-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.history-card-date { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.history-card-summary { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.history-card-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}
.history-card:hover .history-card-arrow { color: var(--brand-dark); }

/* ---- Report header block ---- */
.report-header-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.vendor-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.vendor-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.vendor-summary-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.vendor-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* ---- Report section card ---- */
.report-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

/* ---- Loading overlay ---- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250,251,253,.92);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 200;
}
.loading-overlay.hidden { display: none; }
.loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--brand-light);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.loading-steps { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.loading-step {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--bg);
  transition: background .2s, color .2s;
}
.loading-step.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.loading-step.done { color: var(--green); }
.loading-step i { font-size: 14px; }

/* ---- Login page ---- */
.login-page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fbfd 0%, #e8f9fb 40%, #f4f6f9 100%);
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px 40px 40px;
  width: 380px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.login-logo-badge {
  width: 56px; height: 56px;
  background: var(--brand);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 26px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(97,208,223,.35);
}
.login-logo-img {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}
.login-title { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.login-sub { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow .15s, border-color .15s;
  box-shadow: var(--shadow-sm);
}
.google-btn:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.google-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.login-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}
.login-brand-mark {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  width: 100%;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Feedback bubble ---- */
.feedback-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
}
.feedback-btn {
  width: 44px; height: 44px;
  background: var(--brand);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(97,208,223,.45);
  transition: background .15s, transform .1s;
}
.feedback-btn:hover { background: var(--brand-dark); transform: scale(1.08); }
.feedback-panel {
  position: absolute;
  bottom: 54px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 260px;
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.feedback-panel.open { display: flex; }
.feedback-panel-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.feedback-textarea {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  resize: none;
  height: 70px;
  outline: none;
  transition: border-color .15s;
}
.feedback-textarea:focus { border-color: var(--brand); }
.feedback-submit {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.feedback-submit:hover { background: var(--brand-dark); }

/* ---- Download button row ---- */
.download-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.download-bar-text { font-size: 13px; color: var(--text-secondary); flex: 1; }

/* ============================================================
   RWD — 900px breakpoint
   ============================================================ */
@media (max-width: 900px) {
  .report-layout {
    flex-direction: column;
    padding: 16px;
  }
  .report-sidebar {
    width: 100%;
    position: static;
    max-height: none;
  }
  .chat-box { max-height: 400px; }
  .six-cards-grid { grid-template-columns: 1fr; }
  .value-prop-grid { grid-template-columns: 1fr; }
  .talking-grid { grid-template-columns: 1fr; }
  .talking-block.faq { grid-column: 1; }
  .history-grid { grid-template-columns: 1fr; }
  .radio-group { grid-template-columns: 1fr; }
  .compare-table th:nth-child(3),
  .compare-table td:nth-child(3) { display: none; }
  .login-card { width: 90vw; padding: 32px 24px; }
  .topbar-logo-text { display: none; }
  .topbar-divider { display: none; }
  .topbar-tool-name { display: none; }
  .topbar-logo-img { height: 28px; }
  .feedback-bubble { bottom: 16px; right: 16px; }
}
