:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --ink: #15263d;
  --muted: #66717f;
  --panel: #ffffff;
  --panel-soft: #f7f9fc;
  --line: #d8e0ea;
  --brand: #173d66;
  --brand-2: #b4242f;
  --brand-dark: #0e2a49;
  --gold: #f0b429;
  --gold-soft: #fff4d6;
  --danger: #9b1c27;
  --shadow: 0 18px 50px rgba(14, 42, 73, 0.14);
}

.widget-body {
  margin: 0;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
  color: #172033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.widget-body.widget-collapsed {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100vh;
  min-height: 68px;
  padding: 5px;
}

.widget-launcher {
  display: none;
  width: 148px;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  text-align: left;
}

.widget-launcher span {
  display: block;
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.widget-launcher strong {
  display: block;
  margin-top: 1px;
  font-size: 15px;
  line-height: 1.15;
}

.widget-collapsed .widget-launcher {
  display: block;
}

.widget-collapsed .widget-shell {
  display: none;
}

.widget-shell {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto auto;
  width: 100%;
  min-height: 100vh;
  max-height: 100vh;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #0f172a;
  color: #fff;
}

.widget-header p {
  margin: 0 0 3px;
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.widget-header h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.widget-header-actions {
  display: flex;
  gap: 7px;
}

.widget-full-embed #widgetMinimize {
  display: none;
}

.widget-header button,
.widget-form button,
.widget-email button {
  border: 0;
  border-radius: 8px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.widget-header button {
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.14);
}

.widget-status {
  padding: 10px 14px;
  background: #e0f2fe;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.widget-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-message {
  max-width: 88%;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}

.widget-message.user {
  align-self: flex-end;
  background: #1d4ed8;
  color: #fff;
}

.widget-message.assistant {
  align-self: flex-start;
  background: #fff;
  color: #172033;
  border: 1px solid #e2e8f0;
}

.widget-thinking {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #475569;
}

.widget-thinking i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #1d4ed8;
  opacity: .38;
  animation: widget-thinking-pulse 1s infinite ease-in-out;
}

.widget-thinking i:nth-child(3) {
  animation-delay: 140ms;
}

.widget-thinking i:nth-child(4) {
  animation-delay: 280ms;
}

.widget-body .hvac-term {
  display: inline;
  color: #173d66;
  text-decoration: underline dotted #b4242f;
  text-underline-offset: 3px;
  border-bottom: 0;
}

.widget-body .hvac-term::after {
  display: none;
}

.widget-term-panel {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #172033;
  font-size: 12px;
  line-height: 1.35;
}

.widget-term-panel strong {
  color: #0f172a;
}

.widget-term-panel button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

@keyframes widget-thinking-pulse {
  0%, 80%, 100% {
    opacity: .32;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.widget-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
}

.widget-actions button,
.widget-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.widget-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 12px 12px;
}

.widget-form input,
.widget-email input[type="email"] {
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 10px 11px;
  font: inherit;
}

.widget-form button {
  padding: 0 14px;
}

.widget-email {
  border-top: 1px solid #e2e8f0;
  padding: 10px 12px 12px;
  background: #fff;
  font-size: 12px;
}

.widget-email summary {
  cursor: pointer;
  font-weight: 900;
  color: #1d4ed8;
}

.widget-email form {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.widget-email label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.35;
}

.widget-email button {
  min-height: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(180, 36, 47, 0.12), transparent 36rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 34rem);
  color: var(--ink);
}

.hero {
  background:
    linear-gradient(135deg, rgba(14, 42, 73, 0.98), rgba(23, 61, 102, 0.94)),
    linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: white;
  padding: 46px 18px;
}

.hero.compact {
  padding: 34px 18px;
}

.hero.concierge-hero {
  padding-bottom: 62px;
}

.hero-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 0.95;
}

.hero p {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

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

.hero-link {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 0 18px;
  color: white;
  text-decoration: none;
  font-weight: 800;
}

.hero-link.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #2f2106;
}

.shell {
  width: min(1040px, 100%);
  min-height: calc(100vh - 260px);
  margin: -26px auto 0;
  padding: 0 18px 24px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto;
  gap: 14px;
}

.concierge-shell {
  width: min(860px, 100%);
  min-height: calc(100vh - 260px);
}

.header-controls {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.icon-control {
  width: 38px;
  min-height: 38px;
  border-color: var(--line);
  border-radius: 6px;
  padding: 0;
  background: white;
  color: var(--brand);
  font-size: 1.2rem;
}

.results-shell,
.intake-shell {
  grid-template-rows: auto;
}

.topbar,
.notice,
.quote-tools,
.messages,
.queue-status,
.composer,
footer {
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  padding: 18px;
}

h2,
h3 {
  margin: 0;
}

.topbar p,
footer,
.quote-tools p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

button {
  border: 1px solid var(--brand-2);
  background: var(--brand-2);
  color: white;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

button.secondary,
#restartBtn {
  background: white;
  color: var(--brand-dark);
  border-color: var(--line);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.notice,
.queue-status,
.quote-tools,
footer {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 13px 14px;
}

.notice {
  color: var(--danger);
  background: var(--gold-soft);
}

.quote-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.wizard {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.concierge-demo,
.concierge-chat {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.concierge-demo header,
.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.budget-chip {
  align-self: start;
  border-radius: 999px;
  background: #dff4f1;
  color: var(--brand-dark);
  padding: 7px 11px;
  font-weight: 900;
  white-space: nowrap;
}

.budget-chip.low {
  background: var(--gold-soft);
  color: var(--danger);
}

.conversation-state {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) 1fr;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
}

.state-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.text-control {
  min-height: 0;
  margin-top: 6px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-2);
  font-size: 0.82rem;
  text-decoration: underline;
}

.state-progress {
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.progress-track {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #e4e9ef;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand-2);
  transition: width 180ms ease;
}

.quick-actions,
.concierge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-actions button,
.quick-actions a {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 13px;
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.quick-actions button:disabled {
  background: #eef3f8;
  color: var(--muted);
  border-color: var(--line);
}

.concierge-actions a {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--brand-2);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 900;
}

.concierge-messages,
.dialogue-log {
  min-height: 420px;
  max-height: 54vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 252, 0.94));
}

.response-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.response-feedback button {
  min-height: 30px;
  border-color: var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: white;
  color: var(--brand);
  font-size: 0.78rem;
}

.concierge-form,
.dialogue-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 12px;
}

.quick-actions.inline {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.email-summary-panel {
  border-top: 1px solid var(--line);
  padding-top: 2px;
  color: var(--muted);
}

.email-summary-panel summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 800;
}

.email-summary-panel form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
}

.consent-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--ink);
  font-weight: 500;
}

.consent-row input {
  width: auto;
  margin-top: 3px;
}

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

#emailSummaryStatus {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.dialogue-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.handoff-preview {
  color: var(--muted);
}

.handoff-preview summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 900;
}

.handoff-preview pre {
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

footer a {
  color: var(--brand);
  font-weight: 800;
}

.review-page {
  width: 100%;
  max-width: 100%;
  background: var(--bg);
}

.review-header {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(18px, calc((100vw - 1100px) / 2));
  background: var(--brand-dark);
  color: white;
}

.review-header h1,
.review-header p {
  margin: 0;
}

.review-header > div > p:last-child {
  max-width: 720px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.review-header > div {
  min-width: 0;
}

.review-back {
  align-self: center;
  color: white;
  font-weight: 800;
}

.review-shell {
  width: min(1100px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 22px 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 10px;
  min-width: 0;
}

.metric,
.review-list-section {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.metric {
  padding: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.review-list-section {
  margin-top: 14px;
  padding: 16px;
}

.review-list-section > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.review-list-section > header > div {
  min-width: 0;
}

.review-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  min-width: 0;
  max-width: 100%;
}

.review-conversation {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.review-conversation summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 13px;
  cursor: pointer;
}

.review-conversation summary span:first-child {
  min-width: 0;
  overflow: hidden;
}

.review-conversation small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-conversation strong,
.review-conversation small,
.review-turn p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.review-badge {
  align-self: center;
  white-space: nowrap;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.review-transcript {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 12px;
  background: var(--panel-soft);
}

.review-turn {
  min-width: 0;
  max-width: 100%;
  margin-bottom: 10px;
}

.review-turn p {
  margin: 3px 0 0;
  white-space: pre-wrap;
}

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

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
}

.step-pill {
  display: grid;
  min-height: 48px;
  place-items: center;
  background: #f8fbfc;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.step-pill.active {
  background: var(--brand);
  color: white;
}

.step-pill.done {
  background: #dff4f1;
  color: var(--brand-dark);
}

.wizard-card {
  padding: 20px;
}

.wizard-step {
  display: none;
  max-width: 760px;
}

.wizard-step.active {
  display: grid;
  gap: 14px;
}

.wizard-step h3 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.wizard-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.eyebrow.dark {
  color: var(--brand-2);
  margin: 0;
}

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

.choice-grid label {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 14px;
  padding: 13px;
  color: var(--ink);
}

.choice-grid input {
  width: auto;
  margin-right: 8px;
}

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

#wizardResults {
  display: grid;
  gap: 12px;
}

.messages {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  padding: 16px;
  overflow-y: auto;
  min-height: 420px;
}

.assistant-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.assistant-panel header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.message {
  max-width: 88%;
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 16px;
  line-height: 1.45;
}

.message-text {
  white-space: pre-wrap;
}

.message-text p,
.message-text ul {
  margin: 0 0 10px;
}

.message-text p:last-child,
.message-text ul:last-child {
  margin-bottom: 0;
}

.message-text ul {
  padding-left: 20px;
  white-space: normal;
}

.message-text li {
  margin: 4px 0;
}

.message-text h4 {
  margin: 12px 0 6px;
  color: var(--brand);
  font-size: 1rem;
}

.hvac-term {
  position: relative;
  border-bottom: 1px dotted var(--brand-2);
  color: var(--brand-dark);
  cursor: help;
  font-weight: 800;
}

.hvac-term::after {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 8px);
  width: min(280px, 80vw);
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--brand-dark);
  color: white;
  box-shadow: 0 12px 30px rgba(11, 37, 61, 0.22);
  content: attr(data-tip);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: normal;
}

.hvac-term:hover::after,
.hvac-term:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.message.user {
  margin-left: auto;
  background: #e9f1fb;
  border-top-right-radius: 4px;
}

.message.assistant {
  background: #fff;
  border: 1px solid var(--line);
  border-top-left-radius: 4px;
}

.sources {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.quote-summary {
  margin-top: 14px;
}

.quote-summary-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.quote-summary-title span {
  color: var(--muted);
  font-size: 0.92rem;
}

.equipment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.equipment-option {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
}

.equipment-option.best {
  border-color: rgba(217, 155, 43, 0.8);
  box-shadow: 0 10px 28px rgba(217, 155, 43, 0.16);
}

.option-level {
  display: inline-flex;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.best .option-level {
  background: var(--gold);
  color: #2f2106;
}

.option-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin: 10px 0;
  border-radius: 12px;
  background: #f6f8fb;
}

.equipment-option h3 {
  margin-top: 10px;
  font-size: 1rem;
}

.option-price {
  margin: 8px 0 10px;
  color: var(--brand-2);
  font-size: 1.35rem;
  font-weight: 900;
}

.option-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
  margin: 0;
  font-size: 0.9rem;
}

.option-meta dt {
  color: var(--muted);
  font-weight: 800;
}

.option-meta dd {
  margin: 0;
}

.budget-note {
  margin: 0 0 10px;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.86rem;
  font-weight: 900;
}

.budget-note.over {
  background: #fff1cf;
  color: #7c3f00;
}

.budget-note.ok {
  background: #dff4f1;
  color: var(--brand-dark);
}

.quote-glossary {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
}

.quote-glossary summary {
  color: var(--brand);
  cursor: pointer;
  font-weight: 900;
}

.quote-glossary p {
  margin: 8px 0 0;
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  padding: 12px;
}

textarea {
  resize: vertical;
  min-height: 68px;
}

@media (max-width: 820px) {
  .shell {
    padding: 0 12px 18px;
  }

  .topbar,
  .quote-tools,
  .composer,
  .concierge-demo header,
  .chat-header,
  .concierge-form,
  .dialogue-input-row,
  .conversation-state,
  .choice-grid,
  .wizard-progress {
    grid-template-columns: 1fr;
    display: grid;
  }

  .equipment-options {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  }

  .review-header,
  footer {
    flex-direction: column;
  }

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

  .review-badge {
    justify-self: start;
  }

  .email-summary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .message {
    max-width: 100%;
  }
}
