/* ============================================================
   GuestIQ — Warm Neutral (Sand / Terracotta) Theme
   Fonts: DM Serif Display (headings) + DM Sans (body)
   ============================================================ */

:root {
  color-scheme: light;

  /* Core palette */
  --sand:        #f5ede0;
  --sand-deep:   #e8d9c4;
  --sand-light:  #faf6f1;
  --terra:       #c1522a;
  --terra-deep:  #8c3418;
  --terra-soft:  #f7e8e2;
  --sienna:      #d97040;
  --amber:       #e8a84a;
  --amber-soft:  #fdf3e0;
  --sage:        #5a7a5e;
  --sage-soft:   #e6efdf;
  --clay:        #3d2a1e;
  --muted:       #8a7060;
  --line:        #e0d0c0;
  --paper:       #faf6f1;
  --panel:       #f5ede0;
  --ink:         #2a1c12;
  --shadow:      0 24px 60px rgba(61, 42, 30, 0.16);
  --shadow-sm:   0 6px 20px rgba(61, 42, 30, 0.10);

  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { opacity: 0.85; }

button, input, select, textarea {
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(193, 82, 42, 0.14);
}

button:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

/* ── Topbar ─────────────────────────────────────── */
.topbar {
  align-items: center;
  background: var(--clay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 217, 196, 0.12);
  color: var(--sand);
  display: flex;
  gap: 24px;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 7vw, 112px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  gap: 10px;
  letter-spacing: 0;
  color: #fff;
}

.brand-mark {
  align-items: center;
  background: var(--terra);
  border-radius: 7px;
  color: #fff;
  display: grid;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
  height: 36px;
  letter-spacing: 0.02em;
  place-items: center;
  width: 36px;
}

.nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 32px;
  display: flex;
  padding: 4px;
  position: relative;
}

.nav-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 28px;
  color: rgba(245, 237, 224, 0.8);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  transition: all 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 2px 8px rgba(193, 82, 42, 0.35);
}

.nav-button { font-size: 14px; }

.feature-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: none;
  min-width: 220px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 52px;
}
.feature-menu.open { display: grid; }
.feature-menu a {
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 14px;
  transition: all 0.15s ease;
}
.feature-menu a:hover {
  background: var(--terra-soft);
  color: var(--terra);
  padding-left: 18px;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 16px;
}

/* ── Buttons ─────────────────────────────────────── */
.outline-button,
.primary-button,
.text-button {
  align-items: center;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.outline-button {
  background: transparent;
  border: 2px solid rgba(245, 237, 224, 0.45);
  color: var(--sand);
}
.outline-button:hover {
  background: rgba(245, 237, 224, 0.12);
  border-color: var(--sand);
}

.outline-button.dark {
  border-color: var(--terra);
  color: var(--terra);
}
.outline-button.dark:hover {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 4px 14px rgba(193, 82, 42, 0.3);
}

.primary-button {
  background: var(--terra);
  border: 2px solid var(--terra);
  color: #fff;
}
.primary-button:hover {
  background: var(--terra-deep);
  border-color: var(--terra-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(193, 82, 42, 0.38);
}
.primary-button:active { transform: translateY(0); }
.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.primary-button.compact {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.text-button {
  background: transparent;
  border: 2px solid rgba(245, 237, 224, 0.35);
  color: var(--sand-light);
}
.text-button:hover {
  border-color: rgba(245, 237, 224, 0.65);
  background: rgba(245, 237, 224, 0.08);
}

.menu-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 8px;
  width: 36px;
}
.menu-button span {
  background: var(--sand);
  border-radius: 2px;
  height: 2px;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(217, 112, 64, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(140, 52, 24, 0.18) 0%, transparent 50%),
    linear-gradient(135deg, #2a1c12 0%, #3d2a1e 60%, #4e3428 100%);
  color: var(--sand-light);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1fr);
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 7vw, 112px) 72px;
  position: relative;
}

.hero::after {
  background: rgba(245, 237, 224, 0.04);
  bottom: 0;
  content: "";
  height: 22%;
  left: 54%;
  position: absolute;
  right: 0;
}

.hero-copy {
  align-self: center;
  max-width: 680px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

.eyebrow {
  color: var(--sienna);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--terra); }

h1, h2, p { margin-top: 0; }

h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.0;
  margin-bottom: 24px;
  color: #fff;
}

h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--clay);
}

.lead {
  color: rgba(245, 237, 224, 0.8);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ── Product visual / hero right side ─────────────── */
.product-visual {
  align-self: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  position: relative;
}

.command-center {
  display: grid;
  place-items: center;
}

.signal-map {
  background:
    linear-gradient(90deg, rgba(61, 42, 30, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(61, 42, 30, 0.07) 1px, transparent 1px),
    #faf6f1;
  background-size: 48px 48px;
  border: 1px solid rgba(61, 42, 30, 0.14);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  max-width: 560px;
  min-height: 320px;
  padding: 24px;
  width: 100%;
}

.floor-card {
  align-content: start;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(193, 82, 42, 0.22);
  border-left: 5px solid var(--terra);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.floor-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(193, 82, 42, 0.16);
}
.floor-card.good {
  border-color: rgba(90, 122, 94, 0.28);
  border-left-color: var(--sage);
}
.floor-card.good:hover { box-shadow: 0 10px 24px rgba(90, 122, 94, 0.18); }
.floor-card.warn {
  border-color: rgba(232, 168, 74, 0.32);
  border-left-color: var(--amber);
  grid-column: 1 / -1;
}
.floor-card.warn:hover { box-shadow: 0 10px 24px rgba(232, 168, 74, 0.2); }
.floor-card span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.floor-card strong { color: var(--clay); font-size: 18px; }
.floor-card em { color: var(--muted); font-style: normal; font-size: 13px; }

/* Floating cards */
.review-card.floating {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  margin-top: 14px;
  padding: 16px;
  width: 100%;
  max-width: 560px;
}

.review-head {
  align-items: center;
  display: flex;
  gap: 12px;
}

.avatar {
  align-items: center;
  background: var(--terra);
  border-radius: 50%;
  color: #fff;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  height: 36px;
  place-items: center;
  transition: all 0.2s ease;
  width: 36px;
  flex-shrink: 0;
}
.avatar:hover { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(193, 82, 42, 0.2); }

.review-head > div { flex: 1; }
.review-head strong { font-size: 13px; color: var(--clay); display: block; }
.review-head p { font-size: 12px; color: var(--muted); margin: 0; }

.sentiment {
  align-items: center;
  background: var(--sage-soft);
  border-radius: 6px;
  color: var(--sage);
  display: grid;
  font-size: 14px;
  font-weight: 800;
  height: 36px;
  place-items: center;
  transition: all 0.2s ease;
  width: 44px;
}
.sentiment:hover { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(90, 122, 94, 0.18); }

.ai-line {
  background: var(--line);
  border-radius: 2px;
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.ai-line.short { width: 60%; }
.ai-line::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(217, 112, 64, 0.4), transparent);
  animation: lineShimmer 2s infinite;
}

.task-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 14px;
  margin-top: 10px;
  max-width: 560px;
  padding: 14px 16px;
  width: 100%;
}
.task-card strong { font-size: 14px; color: var(--clay); }
.task-card p { font-size: 12px; color: var(--muted); margin: 0; }

.pulse-card { border-color: rgba(90, 122, 94, 0.4); }
.insight-card { border-color: rgba(193, 82, 42, 0.2); }

.plus-button {
  align-items: center;
  background: var(--sage-soft);
  border: 1px solid rgba(90, 122, 94, 0.4);
  border-radius: 8px;
  color: var(--sage);
  cursor: pointer;
  display: grid;
  font-size: 20px;
  font-weight: 300;
  height: 36px;
  place-items: center;
  width: 36px;
  flex-shrink: 0;
}

/* ── Metrics strip ─────────────────────────────────── */
.metrics-strip {
  background: var(--clay);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.metrics-strip > div {
  align-items: center;
  border-right: 1px solid rgba(245, 237, 224, 0.1);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 160px;
  padding: 30px 20px;
  animation: fadeInUp 0.6s ease-out calc(var(--i, 0) * 0.1s) both;
}
.metrics-strip > div:last-child { border-right: 0; }
.metrics-strip > div:nth-child(1) { --i: 1; }
.metrics-strip > div:nth-child(2) { --i: 2; }
.metrics-strip > div:nth-child(3) { --i: 3; }
.metrics-strip > div:nth-child(4) { --i: 4; }

.metrics-strip strong {
  color: #fff;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
}
.metrics-strip span {
  color: rgba(245, 237, 224, 0.6);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* ── Review Lab ─────────────────────────────────────── */
.review-lab {
  align-items: start;
  background: var(--sand-light);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  padding: 72px clamp(20px, 7vw, 112px);
}

.live-copy { position: sticky; top: 90px; }
.live-copy h2 { margin-bottom: 14px; }
.live-copy p { color: var(--muted); font-size: 17px; line-height: 1.6; }

.live-console {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  position: relative;
}
.live-console::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terra), var(--sienna), var(--amber));
  border-radius: 12px 12px 0 0;
}

/* Model badge in console */
.model-badge-row {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.model-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--terra-soft);
  border: 1px solid rgba(193, 82, 42, 0.22);
  border-radius: 20px;
  color: var(--terra-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 12px;
}

.model-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terra);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

.live-console textarea {
  background: var(--sand-light);
  min-height: 150px;
}

.console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.api-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  padding: 10px 14px;
}
.api-status[data-state="loading"] { background: var(--terra-soft); border-color: rgba(193,82,42,0.2); color: var(--terra); }
.api-status[data-state="success"] { background: var(--sage-soft); border-color: rgba(90,122,94,0.3); color: var(--sage); }
.api-status[data-state="error"]   { background: #fff4f6; border-color: rgba(193,82,42,0.3); color: var(--terra-deep); }

.analysis-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analysis-card {
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  min-height: 110px;
  padding: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.analysis-card:hover {
  border-color: rgba(193, 82, 42, 0.22);
  box-shadow: 0 6px 20px rgba(61, 42, 30, 0.08);
}
.analysis-card.wide { grid-column: 1 / -1; }
.analysis-card > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.analysis-card strong {
  color: var(--clay);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
}
.analysis-card p { color: #5a4030; font-size: 14px; line-height: 1.55; margin: 0; }

/* ── Workspace / panels ─────────────────────────────── */
.workspace {
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 600px;
}

.sidebar {
  background: var(--sand-light);
  border-right: 1px solid var(--line);
  box-shadow: 4px 0 20px rgba(61, 42, 30, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 16px;
}

.tab {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  text-align: left;
  transition: all 0.2s ease;
}
.tab:hover { background: var(--sand-deep); color: var(--clay); }
.tab.active { background: var(--terra); color: #fff; font-weight: 700; }

.icon { font-size: 15px; transition: all 0.2s ease; }
.tab:hover .icon { transform: scale(1.1); }

.panels { overflow: hidden; }

.panel { display: none; padding: 32px; animation: panelFade 0.3s ease-out; }
.panel.active { display: block; }

.panel-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.panel-head h2 { font-size: clamp(20px, 2.5vw, 30px); margin-bottom: 0; }
.panel-head p.eyebrow { margin-bottom: 6px; }

/* Review grid */
.review-grid { display: grid; gap: 12px; }

.review-item {
  align-items: flex-start;
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 16px;
  padding: 16px;
  transition: all 0.22s ease;
}
.review-item:hover {
  border-color: rgba(193, 82, 42, 0.2);
  box-shadow: var(--shadow-sm);
}

.review-meta-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
}

.review-body-col { flex: 1; }

.channel-badge {
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: var(--ch-color, var(--clay));
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 3px 8px;
}

.stars { color: var(--sienna); letter-spacing: 2px; font-size: 13px; }

.reviewer-info { display: flex; flex-direction: column; gap: 2px; }
.reviewer-name { color: var(--clay); font-size: 12px; font-weight: 700; }
.review-date { color: var(--muted); font-size: 11px; }

.review-text { color: #3d2a1e; font-size: 14px; line-height: 1.6; margin: 0 0 10px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--sand-deep);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
}
.tag.warn {
  background: rgba(193, 82, 42, 0.12);
  color: var(--terra);
}

.priority {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  min-width: 70px;
}
.priority span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.priority strong { font-size: 13px; font-weight: 800; }
.priority strong[data-p="High"]   { color: var(--terra); }
.priority strong[data-p="Medium"] { color: var(--amber); }
.priority strong[data-p="Low"]    { color: var(--sage); }

/* Response panel */
.response-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field textarea,
.field input {
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  min-height: 130px;
  padding: 12px 14px;
  resize: vertical;
  width: 100%;
}

.field textarea:focus,
.field input:focus {
  background: #fff;
}

.generated-response {
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.connection-badge {
  background: var(--terra-soft);
  border: 1px solid rgba(193, 82, 42, 0.2);
  border-radius: 6px;
  color: var(--terra-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  text-transform: uppercase;
  width: fit-content;
}

#aiResponse { color: var(--clay); font-size: 14px; line-height: 1.7; margin: 0; }

.response-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.response-tools button,
.tone-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  transition: all 0.18s ease;
}
.response-tools button:hover,
.tone-btn:hover {
  border-color: var(--terra);
  color: var(--terra);
}
.tone-btn.active {
  background: var(--terra);
  border-color: var(--terra);
  color: #fff;
}

/* Survey panel */
.survey-board { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.survey-card {
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}
.survey-score {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--sage);
}
.survey-score.warning { color: var(--amber); }
.survey-card strong { color: var(--clay); font-size: 15px; }
.survey-card p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }

.question-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 8px;
}
.question-list li {
  border-radius: 6px;
  color: var(--clay);
  font-size: 14px;
  padding: 12px 14px;
  transition: all 0.2s ease;
  cursor: default;
}
.question-list li:hover {
  background: var(--terra-soft);
  color: var(--terra);
  padding-left: 18px;
}

/* Ops / task panel */
.task-list { display: grid; gap: 10px; }

.task-row {
  align-items: center;
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  transition: all 0.22s ease;
}
.task-row:hover {
  border-color: rgba(193, 82, 42, 0.2);
  box-shadow: var(--shadow-sm);
}

.task-body { flex: 1; }
.task-header-line {
  align-items: center;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.task-header-line strong { color: var(--clay); font-size: 14px; }

.urgency-badge {
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.urgency-badge[data-u="High"]   { background: rgba(193, 82, 42, 0.12); color: var(--terra); }
.urgency-badge[data-u="Medium"] { background: rgba(232, 168, 74, 0.15); color: #a06a00; }
.urgency-badge[data-u="Low"]    { background: rgba(90, 122, 94, 0.13); color: var(--sage); }

.task-row p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 8px; }

.task-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.task-source, .task-created { color: var(--muted); font-size: 12px; font-weight: 600; }

.task-owner-badge {
  align-items: center;
  background: var(--sand-deep);
  border-radius: 20px;
  color: var(--clay);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  padding: 4px 12px;
  white-space: nowrap;
  align-self: flex-start;
}

.status {
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.status.open { background: rgba(193, 82, 42, 0.1); color: var(--terra); }
.status.done { background: var(--sage-soft); color: var(--sage); }

/* ── Integration config ─────────────────────────────── */
.integration-config {
  background: var(--clay);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  padding: 72px clamp(20px, 7vw, 112px);
}

.integration-config h2 { color: var(--sand-light); }
.integration-config .eyebrow { color: var(--sienna); }
.integration-config p { color: rgba(245, 237, 224, 0.65); font-size: 16px; line-height: 1.6; margin: 0; }

.config-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 237, 224, 0.12);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}

.config-card label {
  color: rgba(245, 237, 224, 0.55);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.config-card input,
.config-card select {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(245, 237, 224, 0.15);
  border-radius: 8px;
  color: var(--sand-light);
  font-size: 14px;
  min-height: 42px;
  padding: 0 14px;
}
.config-card input:focus,
.config-card select:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(193, 82, 42, 0.2);
}

/* ── Form elements (general) ────────────────────────── */
select {
  appearance: none;
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  min-height: 40px;
  padding: 0 36px 0 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a7060' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
select:hover { border-color: var(--terra); }

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes lineShimmer {
  0%   { left: -100%; }
  100% { left: 100%; }
}

@keyframes menuOpen {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.feature-menu {
  transform-origin: top right;
  animation: menuOpen 0.2s ease-out;
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--sand); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--sand-deep); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c4a882; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 48px; }
  .product-visual { display: none; }
  .response-layout { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .review-lab { grid-template-columns: 1fr; }
  .live-copy { position: static; }
  .integration-config { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; overflow-x: auto; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .survey-board { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .signal-map, .analysis-grid { grid-template-columns: 1fr; }
  .floor-card.warn, .analysis-card.wide { grid-column: auto; }
  .review-item { flex-direction: column; }
  .review-meta-col { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
  .reviewer-info { margin-top: 0; }
  .metrics-strip { flex-direction: column; }
  .metrics-strip > div { border-right: 0; border-bottom: 1px solid rgba(245,237,224,0.1); }
  .metrics-strip > div:last-child { border-bottom: 0; }
}

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Sentiment icon display (replaces grade letter) ── */
#liveSentiment {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: inherit;
}

.sentiment-icon {
  font-size: 42px;
  line-height: 1;
}

.sentiment-label {
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sentiment-label[data-s="positive"] { color: var(--sage); }
.sentiment-label[data-s="mixed"]    { color: var(--amber); }
.sentiment-label[data-s="negative"] { color: var(--terra); }

/* ── Kanban board ──────────────────────────────────── */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.kanban-col {
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  overflow: hidden;
}

.kanban-col-header {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  text-transform: uppercase;
}
.kanban-col-header.open       { background: rgba(193,82,42,0.08); color: var(--terra); border-bottom: 1px solid rgba(193,82,42,0.12); }
.kanban-col-header.inprogress { background: rgba(232,168,74,0.1); color: #a06a00; border-bottom: 1px solid rgba(232,168,74,0.18); }
.kanban-col-header.resolved   { background: rgba(90,122,94,0.09); color: var(--sage); border-bottom: 1px solid rgba(90,122,94,0.14); }

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  flex: 1;
}

.kanban-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 12px;
  transition: all 0.2s ease;
}
.kanban-card:hover {
  border-color: rgba(193,82,42,0.22);
  box-shadow: 0 4px 12px rgba(61,42,30,0.08);
  transform: translateY(-1px);
}

.kanban-card-title {
  color: var(--clay);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.kanban-card-meta {
  align-items: center;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.kanban-card-owner {
  background: var(--sand-deep);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
}

/* AI task suggestion box */
.ai-task-suggestion {
  background: var(--terra-soft);
  border: 1px solid rgba(193,82,42,0.22);
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 14px 16px;
  animation: fadeInUp 0.3s ease-out;
}

.ai-task-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ai-task-add {
  background: var(--terra);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  transition: all 0.18s ease;
}
.ai-task-add:hover { background: var(--terra-deep); }

#aiTaskText {
  color: var(--clay);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 860px) {
  .kanban-board { grid-template-columns: 1fr; }
}

/* ── NPS Chart panel ───────────────────────────────── */
.nps-legend {
  align-items: center;
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.nps-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
}
.nps-dot.promoter  { background: var(--sage); }
.nps-dot.passive   { background: var(--amber); }
.nps-dot.detractor { background: var(--terra); }

.nps-summary-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.nps-stat {
  flex: 1;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
}
.nps-stat:last-child { border-right: 0; }
.nps-stat > span:last-child { color: var(--muted); font-size: 12px; font-weight: 600; }

.nps-big {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 32px;
  color: var(--clay);
}
.nps-big.promo   { color: var(--sage); }
.nps-big.passive { color: var(--amber); }
.nps-big.detract { color: var(--terra); }

.nps-chart-wrap {
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 16px 12px 8px;
}

.nps-insights {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
.nps-insight-card {
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
}
.nps-insight-card.warn { border-color: rgba(193,82,42,0.22); background: var(--terra-soft); }
.insight-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.nps-insight-card strong { color: var(--clay); font-size: 15px; }
.nps-insight-card p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }

@media (max-width: 760px) {
  .nps-insights { grid-template-columns: 1fr; }
  .nps-summary-row { flex-wrap: wrap; }
}
/* === Payload Modal === */
.payload-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  animation: fadeInUp 0.2s ease-out;
}
.payload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 28, 18, 0.55);
  backdrop-filter: blur(4px);
}
.payload-dialog {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 32px 80px rgba(61, 42, 30, 0.28);
  margin: 8vh auto;
  max-width: 780px;
  width: 92%;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  overflow: hidden;
}
.payload-header {
  align-items: center;
  background: var(--clay);
  color: var(--sand);
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
}
.payload-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 18px;
}
.payload-close {
  background: transparent;
  border: 0;
  color: var(--sand);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  padding: 0 4px;
  transition: transform 0.15s ease;
}
.payload-close:hover { transform: scale(1.2); }
.payload-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.payload-tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 12px 20px;
  text-transform: uppercase;
  transition: all 0.18s ease;
}
.payload-tab:hover { color: var(--terra); }
.payload-tab.active {
  border-bottom-color: var(--terra);
  color: var(--terra);
}
.payload-body {
  flex: 1;
  overflow: auto;
  padding: 20px;
}
.payload-json {
  background: var(--clay);
  border-radius: 8px;
  color: #e8d9c4;
  font-family: "DM Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  padding: 18px;
  white-space: pre-wrap;
  word-break: break-word;
}
.payload-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--clay);
  border: 1px solid rgba(232, 217, 196, 0.18);
  border-radius: 6px;
  color: var(--sand);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  text-transform: uppercase;
  transition: all 0.18s ease;
  margin-top: 6px;
}
.payload-badge:hover {
  background: var(--terra);
  border-color: var(--terra);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(193, 82, 42, 0.3);
}
.payload-badge .badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  animation: pulseDot 2s ease-in-out infinite;
}

.maas-trigger {
  cursor: pointer;
  font-size: 16px;
  vertical-align: middle;
  margin-left: 4px;
  opacity: 0.5;
  transition: opacity 0.18s ease, transform 0.18s ease;
  display: inline;
}
.maas-trigger:hover {
  opacity: 1;
  transform: scale(1.3);
}

