:root {
  --bg: #f7efe2;
  --bg-deep: #f0dcc3;
  --chat-surface: #fff;
  --panel: var(--chat-surface);
  --panel-strong: var(--chat-surface);
  --ink: #2b221d;
  --ink-soft: #6d5748;
  --accent: #b6401e;
  --accent-deep: #832d18;
  --accent-soft: #f1b98c;
  --line: rgba(73, 44, 27, 0.12);
  --success: #24724b;
  --shadow: 0 24px 60px rgba(81, 39, 15, 0.16);
  --font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  background-color: #ffffff;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  font-family: var(--font-family);
  color: var(--ink);
  background-color: #ffffff;
}

body::before {
  display: none;
}

.page-shell {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  height: 100vh;
  grid-template-columns: minmax(280px, 300px) minmax(320px, 760px);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
  background-color: #ffffff;
}

.hero-panel,
.chat-panel {
  position: relative;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(130, 45, 24, 0.4) transparent;
}

.hero-panel::-webkit-scrollbar {
  width: 7px;
}

.hero-panel::-webkit-scrollbar-track {
  background: transparent;
}

.hero-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(130, 45, 24, 0.4);
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -60px;
  bottom: -60px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(182, 64, 30, 0.26), rgba(182, 64, 30, 0));
}

.hero-panel {
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  color: #fff;
  border: 0;
  border-radius: 22px;
  background: #d3545d;
  box-shadow: 0 20px 48px rgba(112, 43, 49, 0.22);
}

.hero-panel::after {
  display: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 8px 28px;
}

.sidebar-title {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 46px);
  margin: 0;
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.sidebar-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd4df 8%, #f8cfe0 46%, #cceff0 82%);
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
  gap: 6px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 247, 237, 0.68);
}

.sidebar-nav-button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sidebar-nav-button:hover,
.sidebar-nav-button[aria-expanded="true"] {
  transform: none;
  background: rgba(255, 247, 237, 0.14);
}

.sidebar-nav-button > span:first-child {
  width: 18px;
  font-size: 1rem;
  text-align: center;
}

.sidebar-cart-count {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
}

.sidebar-cart-panel {
  flex: 0 1 auto;
  margin-top: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.sidebar-settings {
  margin-top: 20px;
}

.sidebar-settings h2 {
  margin: 0 0 18px;
  color: #fff7ed;
  font-size: 1.08rem;
  font-weight: 600;
}

.sidebar-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 16px 14px;
}

.sidebar-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #fff;
  font-size: 0.76rem;
}

.sidebar-field select,
.sidebar-field input {
  width: 100%;
  height: 42px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid rgba(91, 34, 17, 0.16);
  border-radius: 9px;
  outline: 0;
  color: #3e3843;
  background: #fff7ed;
  font: inherit;
  font-size: 1rem;
  box-shadow: 0 7px 14px rgba(91, 34, 17, 0.14);
}

.sidebar-field select:focus,
.sidebar-field input:focus {
  border-color: #1d68ff;
  box-shadow: 0 0 0 2px rgba(29, 104, 255, 0.2);
}

.sidebar-allergy-field {
  grid-column: 1 / -1;
}

.sidebar-input-action {
  position: relative;
  display: block;
}

.sidebar-input-action input {
  padding-right: 42px;
}

.sidebar-input-action button {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  color: #6e6770;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.allergy-edit-icon {
  display: block;
  width: 15px;
  height: 15px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-input-action button:hover {
  color: var(--accent-deep);
  transform: translateY(-50%);
}

.sidebar-settings-status {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-panel > h1:not(.sidebar-title),
.chat-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-panel > h1:not(.sidebar-title) {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.98;
}

.chat-header h2 {
  font-size: 1.6rem;
}

.hero-copy {
  max-width: 28ch;
  margin: 20px 0 28px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  gap: 14px;
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(73, 44, 27, 0.08);
}

.stat-label {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cart-items-panel {
  max-height: 280px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(73, 44, 27, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.cart-items-panel[hidden] {
  display: none;
}

.cart-items-heading,
.cart-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-items-heading {
  padding: 0 2px 10px;
  border-bottom: 1px solid rgba(73, 44, 27, 0.08);
}

.cart-items-heading span,
.cart-item-details span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.cart-items-actions {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  flex-direction: column;
}

.cart-items-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-items-actions button:hover {
  text-decoration: underline;
  transform: none;
}

.cart-items-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 10px 0 0;
  list-style: none;
}

.cart-item-details {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 3px;
}

.cart-item-art {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(182, 64, 30, 0.12), rgba(36, 114, 75, 0.12));
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-item-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
}

.cart-item-total {
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 700;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
  min-height: calc(100vh - 64px);
  overflow: hidden;
  padding: 22px;
}

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

.assistant-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: contain;
}

.starter-prompts {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.starter-prompts button,
.clarification-option,
.card-button,
.ghost-button,
.primary-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.starter-prompts button,
.clarification-option,
.ghost-button {
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(73, 44, 27, 0.1);
}

.starter-prompts .starter-prompt {
  display: flex;
  min-width: 0;
  min-height: 88px;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 28px;
  text-align: left;
}

.starter-prompt-icon {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 1.15rem;
  line-height: 1;
}

.starter-prompt-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.starter-prompt-copy strong {
  font-size: 1rem;
  font-weight: 500;
}

.starter-prompt-copy span {
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--ink-soft);
}

.primary-button,
.card-button {
  padding: 12px 18px;
  color: #fff9f2;
  box-shadow: 0 12px 28px rgba(130, 46, 25, 0.26);
}

.primary-button {
  background: #d3545d;
}

.card-button {
  background: #d3545d;
}

.chat-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 2px 20px;
}

.message {
  display: flex;
  min-width: 0;
  animation: fadeUp 220ms ease;
}

.message.user {
  justify-content: flex-end;
}

.message.assistant {
  justify-content: flex-start;
}

.message-bubble {
  min-width: 0;
  width: fit-content;
  max-width: max-content;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  padding: 16px 18px;
  border-radius: 22px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.message.user .message-bubble {
  background: #d3545d;
  color: #fff9f2;
  border-bottom-right-radius: 8px;
}

.message.assistant .message-bubble {
  background: var(--panel-strong);
  border: 1px solid rgba(73, 44, 27, 0.1);
  border-bottom-left-radius: 8px;
}

.chat-loader .message-bubble {
  padding: 14px 18px;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 12px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: typingPulse 1s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 140ms;
}

.typing-dots span:nth-child(3) {
  animation-delay: 280ms;
}

.card-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  width: 100%;
  max-width: 100%;
  gap: 12px;
  margin-top: 14px;
  padding-bottom: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(130, 45, 24, 0.55) rgba(73, 44, 27, 0.08);
}

.product-card {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(73, 44, 27, 0.08);
  overflow-wrap: anywhere;
  scroll-snap-align: start;
}

.card-grid::-webkit-scrollbar {
  height: 8px;
}

.card-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(73, 44, 27, 0.08);
}

.card-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(130, 45, 24, 0.55);
}

.product-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 86px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(182, 64, 30, 0.14), rgba(36, 114, 75, 0.14));
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-title {
  font-weight: 700;
}

.product-subtitle,
.product-description,
.product-status,
.cart-summary {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.product-description {
  line-height: 1.35;
}

.draft-basket {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(73, 44, 27, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.draft-basket-busy {
  opacity: 0.72;
  pointer-events: none;
}

.draft-cleared-status {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(130, 45, 24, 0.12);
  border-radius: 12px;
  color: var(--ink-soft);
}

.draft-basket-heading,
.draft-item,
.draft-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.draft-basket-heading {
  justify-content: space-between;
}

.draft-basket-heading span,
.draft-item-details span,
.draft-unmatched {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.draft-item {
  padding: 10px 0;
  border-top: 1px solid rgba(73, 44, 27, 0.09);
}

.draft-item-added {
  opacity: 0.62;
}

.draft-item-details {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.draft-replacement {
  max-width: 260px;
  padding: 5px 8px;
  border: 1px solid rgba(130, 45, 24, 0.16);
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--ink);
}

.draft-item-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.draft-item-controls button,
.draft-actions button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(130, 45, 24, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
}

.draft-item-controls button:disabled,
.draft-actions button:disabled {
  cursor: default;
  opacity: 0.5;
}

.draft-quantity {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.draft-actions {
  flex-wrap: wrap;
}

.source-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(130, 45, 24, 0.18);
  border-radius: 999px;
  background: rgba(182, 64, 30, 0.08);
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.source-link:hover {
  background: rgba(182, 64, 30, 0.14);
}

.quantity-control {
  margin-top: auto;
}

.quantity-add-button {
  width: 100%;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  border: 1px solid rgba(130, 45, 24, 0.16);
  border-radius: 999px;
  background: rgba(182, 64, 30, 0.07);
}

.quantity-add-button[hidden],
.quantity-stepper[hidden] {
  display: none;
}

.quantity-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(130, 45, 24, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-deep);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.quantity-remove svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.quantity-increment {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff9f2;
  box-shadow: 0 6px 14px rgba(130, 46, 25, 0.22);
}

.quantity-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(130, 46, 25, 0.16);
}

.quantity-button:disabled {
  background: rgba(255, 255, 255, 0.45);
  color: rgba(109, 87, 72, 0.45);
  box-shadow: none;
}

.quantity-value {
  min-width: 34px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(182, 64, 30, 0.1);
  color: var(--accent-deep);
}

.clarification-block {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(73, 44, 27, 0.14);
}

.follow-up-question {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: rgba(182, 64, 30, 0.08);
  color: var(--ink);
  font-weight: 700;
  white-space: normal;
}

.clarification-question {
  margin: 0 0 10px;
  font-weight: 700;
}

.clarification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.composer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(73, 44, 27, 0.08);
}

.composer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.image-upload-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(73, 44, 27, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-deep);
  font-size: 1.25rem;
  cursor: pointer;
}

.attachment-preview {
  position: relative;
  align-items: center;
  gap: 10px;
  width: min(100%, 360px);
  padding: 9px 42px 9px 9px;
  border: 1px solid rgba(73, 44, 27, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.attachment-preview:not([hidden]) {
  display: flex;
}

.attachment-preview img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.attachment-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-preview button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.uploaded-message-image {
  display: block;
  width: min(280px, 100%);
  max-height: 280px;
  border-radius: 14px;
  object-fit: cover;
}

.uploaded-message-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-width: 320px;
}

.uploaded-message-images .uploaded-message-image {
  width: 100%;
  height: 140px;
}

.uploaded-message-images .uploaded-message-image:only-child {
  height: auto;
  max-height: 280px;
}

.uploaded-image-caption {
  margin-top: 8px;
}

textarea {
  width: 100%;
  resize: none;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(73, 44, 27, 0.14);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font: inherit;
}

textarea:focus,
button:focus {
  outline: 2px solid rgba(182, 64, 30, 0.28);
  outline-offset: 2px;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

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

@keyframes typingPulse {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing-dots span {
    animation: none;
    opacity: 0.7;
  }
}

@media (max-width: 920px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .page-shell {
    height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chat-panel {
    height: 70vh;
    min-height: 70vh;
  }
}

@media (max-width: 640px) {
  df-messenger {
    display: none !important;
  }

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

  .page-shell {
    height: 100dvh;
    padding: 0;
    gap: 0;
  }

  .hero-panel {
    display: none;
  }

  .chat-panel {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    padding: 14px 12px;
    border: 0;
    border-radius: 0;
  }

  .chat-header {
    gap: 10px;
  }

  .chat-header h2 {
    font-size: 1.35rem;
  }

  .starter-prompts {
    grid-template-columns: 1fr;
    padding-bottom: 4px;
  }

  .starter-prompts button {
    width: 100%;
  }

  .composer {
    gap: 8px;
  }

  .composer-row {
    grid-template-columns: auto 1fr;
  }

  .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .card-grid {
    grid-auto-columns: minmax(190px, 86%);
  }

  .attachment-preview {
    width: 100%;
  }
}

/* Centered assistant landing layout */
.page-shell {
  display: grid;
  width: min(100%, 1200px);
  max-width: 1200px;
  height: 100vh;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  margin: 0 auto;
  padding: 22px 20px;
}

.hero-panel {
  display: flex;
}

.chat-panel {
  width: 100%;
  height: calc(100vh - 44px);
  min-height: calc(100vh - 44px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-color: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.chat-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  margin: 0 0 24px;
  text-align: center;
}

.assistant-avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(155deg, #ffd4df 8%, #f8cfe0 46%, #cceff0 72%);
}

.assistant-avatar .assistant-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.chat-header-copy {
  display: grid;
  gap: 4px;
}

.chat-header h2 {
  margin: 0;
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.chat-header p {
  margin: 0;
  font-size: 1rem;
}

.composer {
  gap: 8px;
  flex: 0 0 auto;
  margin-top: auto;
  padding: 7px 12px;
  border: 1px solid rgba(70, 82, 104, 0.16);
  border-radius: 30px;
  background-color: #ffffff;
}

.composer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 7px;
}

.composer textarea {
  min-height: 42px;
  max-height: 110px;
  padding: 10px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.composer textarea:focus {
  outline: 0;
}

.image-upload-button,
.voice-input-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(70, 82, 104, 0.12);
  border-radius: 50%;
  background: #fff;
  color: #60646c;
  font: inherit;
  font-size: 1.65rem;
  cursor: pointer;
}

.voice-input-button {
  font-size: 1.05rem;
}

.voice-input-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.composer .primary-button {
  display: inline-flex;
  min-width: 96px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  box-shadow: none;
}

.composer .primary-button span {
  font-size: 1.25rem;
}

.starter-prompts {
  display: grid;
  min-height: 168px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 24px 0 0;
}

.starter-prompts .starter-prompt {
  min-height: 76px;
  padding: 12px 16px;
  border-color: rgba(70, 82, 104, 0.13);
  background: #fff;
}

.starter-prompts .starter-prompt:nth-child(3) {
  grid-column: 1 / -1;
  width: calc(50% - 10px);
  justify-self: center;
}

.starter-prompt-copy strong {
  font-size: 1rem;
}

.starter-prompt-copy span {
  color: #171717;
  font-size: 0.74rem;
}

.chat-log {
  margin-top: 18px;
  padding-top: 10px;
  background-color: #ffffff;
}

.chat-log:empty {
  display: none;
}

.chat-active .starter-prompts {
  display: none;
}

.chat-active .chat-header {
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  text-align: left;
}

.chat-active .assistant-avatar {
  width: 46px;
  height: 46px;
}

.chat-active .chat-header p {
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .page-shell {
    width: 100%;
    height: 100dvh;
    padding: 18px 14px;
  }

  .chat-panel {
    height: calc(100dvh - 36px);
    min-height: calc(100dvh - 36px);
    padding: 0;
  }

  .chat-header {
    gap: 12px;
    margin-bottom: 18px;
  }

  .assistant-avatar {
    width: 70px;
    height: 70px;
  }

  .composer-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .voice-input-button {
    display: none;
  }

  .composer .primary-button {
    grid-column: auto;
    width: auto;
    min-width: 72px;
    padding: 0 12px;
  }

  .starter-prompts {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .starter-prompts .starter-prompt:nth-child(3) {
    grid-column: auto;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .page-shell {
    display: block;
    width: min(100%, 880px);
    padding-inline: 24px;
  }

  .hero-panel {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 14px;
  }
}
