:root {
  color-scheme: light;
  --bg: #ecf0f6;
  --bg-deep: #dbe5f1;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --ink: #132238;
  --muted: #607086;
  --line: rgba(19, 34, 56, 0.12);
  --line-strong: rgba(19, 34, 56, 0.18);
  --brand: #0d63df;
  --brand-deep: #103f8f;
  --brand-soft: rgba(13, 99, 223, 0.12);
  --teal: #0d8b86;
  --warm: #f3ae59;
  --shadow: 0 24px 90px rgba(17, 35, 63, 0.12);
  --heading-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body-font: "Avenir Next", "Helvetica Neue", sans-serif;
  --layout-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(243, 174, 89, 0.18), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(13, 99, 223, 0.22), transparent 26%),
    radial-gradient(circle at 78% 82%, rgba(13, 139, 134, 0.14), transparent 28%),
    linear-gradient(180deg, #f5f8fc 0%, var(--bg) 100%);
}

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.6;
}

.ambient-one {
  top: 120px;
  left: -80px;
  width: 220px;
  height: 220px;
  background: rgba(243, 174, 89, 0.18);
}

.ambient-two {
  right: -120px;
  bottom: 40px;
  width: 280px;
  height: 280px;
  background: rgba(13, 99, 223, 0.14);
}

.app-shell {
  position: relative;
  max-width: 1460px;
  margin: 0 auto;
  padding: 32px 22px 48px;
}

.masthead {
  display: grid;
  grid-template-columns: var(--layout-columns);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.brand-lockup,
.flow-card,
.panel-surface {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand-lockup {
  border-radius: 28px;
  padding: 30px 34px 28px;
  position: relative;
  overflow: hidden;
}

.brand-lockup > * {
  position: relative;
  z-index: 1;
}

.brand-lockup::after {
  content: "";
  position: absolute;
  inset: auto auto -60px -30px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(13, 99, 223, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.flow-card {
  border-radius: 28px;
  padding: 28px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.82)),
    var(--panel);
}

.flow-card h2,
.conversation-top h2,
.sidebar-heading h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.flow-card h2 {
  margin-top: 10px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.04;
}

.eyebrow,
.micro-label {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 10px 0 12px;
  font-family: var(--heading-font);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.hero-copy,
.flow-card p,
.section-copy,
.composer-status,
.field-empty,
.session-count,
.fallback-status,
.meta {
  margin: 0;
  color: var(--muted);
}

.hero-copy {
  max-width: 56rem;
  font-size: 1.08rem;
  line-height: 1.55;
}

.flow-card p:last-child {
  margin-top: 12px;
  line-height: 1.5;
}

.workspace {
  display: grid;
  grid-template-columns: var(--layout-columns);
  gap: 20px;
  align-items: start;
}

.panel-surface {
  border-radius: 28px;
}

.conversation-panel {
  padding: 24px;
}

.conversation-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.conversation-top h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 8px;
}

.progress-cluster {
  display: grid;
  gap: 12px;
}

.status-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-pill {
  justify-self: end;
  background: linear-gradient(135deg, rgba(13, 99, 223, 0.16), rgba(13, 139, 134, 0.16));
  color: var(--brand-deep);
  border: 1px solid rgba(13, 99, 223, 0.18);
}

.mini-pill {
  background: rgba(19, 34, 56, 0.06);
  color: var(--ink);
  border: 1px solid rgba(19, 34, 56, 0.08);
}

.progress-card,
.signal-card,
.live-brief-panel,
.session-panel,
.card,
.session-idea-card,
.brief-field,
.modal-dialog,
.chat-item {
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.progress-card {
  border-radius: 22px;
  padding: 16px;
}

.progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 12px;
}

.progress-meta strong {
  font-size: 1.12rem;
}

.progress-meta span {
  font-size: 0.9rem;
  color: var(--muted);
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.08);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--teal));
  transition: width 180ms ease;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.signal-card {
  border-radius: 20px;
  padding: 14px 16px;
  min-height: 94px;
}

.signal-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.interview-stage {
  display: grid;
  gap: 18px;
}

.active-turn-panel,
.history-panel {
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(245, 249, 255, 0.78)),
    var(--panel-strong);
}

.active-turn-panel {
  position: relative;
  display: grid;
  gap: 16px;
  border-color: rgba(13, 99, 223, 0.18);
  background:
    radial-gradient(circle at top left, rgba(13, 99, 223, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(243, 174, 89, 0.16), transparent 28%),
    linear-gradient(150deg, rgba(236, 245, 255, 0.98), rgba(255, 251, 244, 0.96) 45%, rgba(255, 255, 255, 0.98)),
    var(--panel-strong);
  box-shadow:
    0 28px 70px rgba(13, 99, 223, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.active-turn-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--brand), rgba(243, 174, 89, 0.92));
  opacity: 0.96;
}

.history-panel {
  display: grid;
  gap: 14px;
}

.active-turn-heading,
.history-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.active-turn-heading h3,
.history-heading h3 {
  margin: 6px 0 0;
  font-family: var(--heading-font);
  font-size: 1.34rem;
  letter-spacing: -0.02em;
}

.active-turn-copy,
.history-copy {
  max-width: 24rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.active-turn-copy {
  color: var(--brand-deep);
  font-weight: 600;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 28px rgba(13, 99, 223, 0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-prompt-card {
  border-radius: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(13, 99, 223, 0.18);
  background:
    linear-gradient(155deg, rgba(248, 252, 255, 0.98), rgba(255, 255, 255, 0.98)),
    var(--panel-strong);
  box-shadow:
    0 16px 34px rgba(13, 99, 223, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.current-prompt-body {
  display: grid;
  gap: 14px;
}

.current-prompt-card.is-idle {
  border-style: dashed;
  border-color: rgba(19, 34, 56, 0.14);
  background: rgba(255, 255, 255, 0.74);
}

.current-prompt-card.is-confirmation {
  border-color: rgba(13, 99, 223, 0.2);
  background:
    linear-gradient(180deg, rgba(241, 247, 255, 0.98), rgba(255, 255, 255, 0.98)),
    var(--panel-strong);
}

.current-prompt-text {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--ink);
}

.confirmation-intro {
  display: grid;
  gap: 8px;
}

.confirmation-title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.7rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.confirmation-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.confirmation-copy code,
.submit-guidance code {
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(13, 99, 223, 0.12);
  color: var(--brand-deep);
  font-size: 0.94em;
  font-weight: 700;
}

.confirmation-grid,
.summary-metrics {
  display: grid;
  gap: 12px;
}

.confirmation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-block,
.summary-metric {
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 18px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.78);
}

.summary-block.full {
  grid-column: 1 / -1;
}

.summary-block strong,
.summary-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.4;
}

.summary-text,
.summary-empty {
  margin: 8px 0 0;
  line-height: 1.55;
}

.summary-empty {
  color: var(--muted);
}

.summary-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(13, 99, 223, 0.08);
  border: 1px solid rgba(13, 99, 223, 0.12);
  color: var(--brand-deep);
  font-weight: 600;
}

.summary-list {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  color: var(--ink);
}

.summary-list li + li {
  margin-top: 6px;
}

.submit-guidance {
  margin-bottom: 14px;
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(13, 99, 223, 0.2);
  background:
    linear-gradient(145deg, rgba(13, 99, 223, 0.14), rgba(13, 139, 134, 0.08)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px rgba(13, 99, 223, 0.08);
}

.submit-guidance strong {
  display: block;
  margin-top: 6px;
  font-family: var(--heading-font);
  font-size: 1.36rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.submit-guidance p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.reply-preview {
  margin-bottom: 14px;
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(13, 99, 223, 0.12);
  background: rgba(13, 99, 223, 0.08);
}

.reply-preview-text {
  margin: 6px 0 0;
  color: var(--ink);
  line-height: 1.45;
  white-space: pre-wrap;
}

.chat-log {
  display: grid;
  gap: 14px;
  min-height: 220px;
  max-height: 34vh;
  overflow: auto;
  padding: 4px 4px 0;
}

.history-empty {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(19, 34, 56, 0.16);
  color: var(--muted);
}

.chat-item {
  max-width: min(78%, 760px);
  border-radius: 24px;
  padding: 16px 18px;
  box-shadow: 0 18px 38px rgba(19, 34, 56, 0.08);
  animation: bubble-in 220ms ease;
}

.chat-item p {
  margin: 0;
  white-space: pre-wrap;
}

.chat-item.assistant {
  justify-self: start;
  background:
    linear-gradient(155deg, rgba(240, 247, 255, 0.96), rgba(255, 255, 255, 0.96)),
    var(--panel-strong);
}

.chat-item.user {
  justify-self: end;
  background: linear-gradient(145deg, #173760, #0f2646);
  color: #f5f9ff;
  border-color: rgba(23, 55, 96, 0.42);
}

.chat-item.system {
  justify-self: center;
  max-width: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.06);
  color: var(--muted);
  font-size: 0.85rem;
  box-shadow: none;
}

.chat-item.user .chat-role {
  color: rgba(245, 249, 255, 0.72);
}

.chat-role {
  margin: 0 0 8px !important;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.composer-shell {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(19, 34, 56, 0.08);
}

.active-turn-panel .composer-shell {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(13, 99, 223, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.composer-shell.is-submit-mode {
  border-color: rgba(13, 99, 223, 0.2);
  box-shadow: 0 18px 36px rgba(13, 99, 223, 0.08);
}

.composer-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border-radius: 22px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 18px 20px;
  font: inherit;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

textarea::placeholder {
  color: #91a0b4;
}

textarea:focus {
  outline: none;
  border-color: rgba(13, 99, 223, 0.45);
  box-shadow:
    0 0 0 4px rgba(13, 99, 223, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.send-button,
.modal-close {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.send-button {
  min-width: 128px;
  min-height: 132px;
  border-radius: 22px;
  padding: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  box-shadow: 0 16px 36px rgba(13, 99, 223, 0.26);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.send-button:hover:not(:disabled),
.modal-close:hover {
  transform: translateY(-1px);
}

.send-button:disabled {
  cursor: default;
  opacity: 0.48;
  box-shadow: none;
}

.composer-status {
  margin-top: 12px;
  font-size: 0.92rem;
}

.fallback-status {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--teal);
}

.sidebar {
  display: grid;
  gap: 20px;
}

.live-brief-panel,
.session-panel {
  border-radius: 28px;
  padding: 20px;
}

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

.sidebar-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.sidebar-heading h3 {
  margin-top: 6px;
  font-size: 1.45rem;
}

.panel-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(13, 99, 223, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(13, 99, 223, 0.08);
  color: var(--brand-deep);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.panel-action-button:hover {
  transform: translateY(-1px);
  background: rgba(13, 99, 223, 0.12);
  border-color: rgba(13, 99, 223, 0.28);
  box-shadow: 0 14px 28px rgba(13, 99, 223, 0.1);
}


.dashboard-shell {
  max-width: 1520px;
}

.dashboard-masthead {
  margin-bottom: 24px;
}

.dashboard-layout {
  display: grid;
  gap: 20px;
}

.dashboard-summary-panel,
.dashboard-cards-panel {
  border-radius: 28px;
  padding: 22px;
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.refresh-pill {
  background: rgba(13, 139, 134, 0.08);
  color: var(--teal);
  border-color: rgba(13, 139, 134, 0.14);
}

.dashboard-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brief-grid,
.session-idea-list,
.results {
  display: grid;
  gap: 12px;
}

.brief-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brief-field {
  border-radius: 20px;
  padding: 14px 15px;
  min-height: 104px;
}

.brief-field strong {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.brief-field.is-empty strong {
  color: #96a3b6;
}

.session-idea-card {
  border-radius: 22px;
  padding: 16px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.easter-egg-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(243, 174, 89, 0.4);
  background: linear-gradient(145deg, rgba(243, 174, 89, 0.18), rgba(255, 255, 255, 0.92));
  color: #8a4a09;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.session-idea-card.is-legend-card,
.card.is-legend-review {
  border-color: rgba(243, 174, 89, 0.28);
  background:
    radial-gradient(circle at top right, rgba(243, 174, 89, 0.18), transparent 34%),
    linear-gradient(155deg, rgba(255, 251, 243, 0.98), rgba(255, 255, 255, 0.96)),
    var(--panel-strong);
}

.session-idea-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 99, 223, 0.24);
  box-shadow: 0 18px 36px rgba(13, 99, 223, 0.1);
}

.session-idea-card.is-legend-card:hover {
  border-color: rgba(243, 174, 89, 0.4);
  box-shadow: 0 18px 40px rgba(243, 174, 89, 0.16);
}

.session-idea-card h4,
.card h3 {
  margin: 8px 0 8px;
  font-family: var(--heading-font);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.session-count {
  font-size: 0.88rem;
}

.field-empty {
  padding: 16px;
  border-radius: 20px;
  border: 1px dashed rgba(19, 34, 56, 0.16);
}

.card {
  border-radius: 24px;
  padding: 20px;
  line-height: 1.52;
}

.card p {
  margin: 0 0 10px;
}

.confidence {
  color: var(--teal);
  font-weight: 700;
}

.modal-shell[hidden] {
  display: none;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 40, 0.52);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(840px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 28px 100px rgba(17, 35, 63, 0.24);
}

.modal-dialog-wide {
  width: min(1180px, 100%);
}

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

.modal-header h2 {
  margin: 6px 0 0;
  font-family: var(--heading-font);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.modal-meta {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.modal-close {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(19, 34, 56, 0.08);
  color: var(--ink);
}

.review-modal-body .card {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.96)),
    var(--panel-strong);
}

.review-modal-body .card.is-legend-review {
  background:
    radial-gradient(circle at top right, rgba(243, 174, 89, 0.2), transparent 34%),
    linear-gradient(155deg, rgba(255, 250, 240, 0.98), rgba(255, 255, 255, 0.98)),
    var(--panel-strong);
}

.legend-banner {
  margin-bottom: 14px;
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(243, 174, 89, 0.3);
  background: linear-gradient(145deg, rgba(243, 174, 89, 0.16), rgba(255, 255, 255, 0.92));
}

.legend-banner strong {
  display: block;
  margin-top: 6px;
  font-family: var(--heading-font);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.legend-banner p:last-child {
  margin-bottom: 0;
}

.review-opportunity-summary {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(19, 34, 56, 0.1);
}

.review-summary-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.review-summary-heading h4 {
  margin: 6px 0 0;
  font-family: var(--heading-font);
  font-size: 1.34rem;
  letter-spacing: -0.02em;
}

.review-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-summary-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scoring-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.scoring-card {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.96)),
    var(--panel-strong);
}

.scoring-card p:last-child {
  margin-bottom: 0;
}

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

.all-idea-card {
  min-height: 182px;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .masthead,
  .workspace,
  .conversation-top {
    grid-template-columns: 1fr;
  }

  .status-pill {
    justify-self: start;
  }

  .brief-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scoring-rules-grid {
    grid-template-columns: 1fr;
  }

  .all-ideas-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 16px 14px 32px;
  }

  .brand-lockup,
  .flow-card,
  .conversation-panel,
  .live-brief-panel,
  .session-panel,
  .modal-dialog {
    border-radius: 24px;
  }

  .signal-row,
  .brief-grid,
  .confirmation-grid,
  .summary-metrics,
  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }

  .active-turn-heading,
  .history-heading,
  .sidebar-heading,
  .review-summary-heading {
    flex-direction: column;
  }

  .sidebar-actions {
    justify-items: start;
  }

  .dashboard-header-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-log {
    min-height: 180px;
    max-height: none;
  }

  .chat-item {
    max-width: 100%;
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }

  .send-button {
    min-height: 56px;
    width: 100%;
  }

  textarea {
    min-height: 132px;
  }
}
