:root {
  --iv-paper: #fffdf8;
  --iv-ivory: #f6f0e6;
  --iv-gold: #896638;
  --iv-line: #e4d4bc;
  --iv-dark: #221c18;
}
main { max-width: 1240px; margin-top: 37px; }
.intro { margin-bottom: 26px; }
.intro h1 { font-size: clamp(30px, 4.2vw, 50px); }
.layout { grid-template-columns: minmax(220px, 264px) minmax(0, 1fr); gap: 24px; }
.chat, .side { background: var(--iv-paper); border-color: var(--iv-line); box-shadow: 0 10px 28px #432e1810; }
.chat { min-height: 0; }
.chathead { background: var(--iv-dark); }
.chatbody { min-height: 0; max-height: min(52vh, 570px); padding: clamp(14px, 3vw, 30px); overscroll-behavior-y: contain; }
.message { width: fit-content; min-width: 0; max-width: min(100%, 69ch); margin: 0 0 18px; border-radius: 25px; padding: clamp(15px, 2.4vw, 23px); font-size: 15px; line-height: 1.65; white-space: normal; box-shadow: 0 4px 12px #432e180a; }
.message:last-child { margin-bottom: 0; }
.message.ai { background: var(--iv-ivory); border: 1px solid var(--iv-line); }
.message.me { max-width: min(86%, 61ch); background: var(--iv-dark); border: 1px solid #69523a; color: #fff5e7; }
.message-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.message-mark { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; border: 1px solid #c7aa7d; color: #755328; font: 13px 'Playfair Display', serif; letter-spacing: -.06em; }
.plain, .email-body { white-space: pre-wrap; }
.markdown > :first-child { margin-top: 0; }
.markdown > :last-child { margin-bottom: 0; }
.markdown p, .markdown ul, .markdown ol { margin: .7em 0; }
.markdown li + li { margin-top: .26em; }
.markdown ul, .markdown ol { padding-inline-start: 1.45em; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { font: 600 1.16em/1.35 'Playfair Display', serif; margin: 1em 0 .35em; }
.markdown blockquote { margin-inline: 0; padding-inline-start: 12px; border-inline-start: 2px solid #c6a574; }
.markdown hr { border: 0; border-top: 1px solid var(--iv-line); }
.markdown pre { white-space: pre-wrap; }
.table-scroll { overflow-x: auto; margin: .8em 0; }
.markdown table { border-collapse: collapse; width: 100%; background: var(--iv-paper); }
.markdown th, .markdown td { border: 1px solid var(--iv-line); text-align: start; padding: 7px 10px; }
.markdown th { background: #eee4d4; }
.email-card { border: 1px solid #d9c3a2; border-radius: 19px; padding: clamp(13px, 2.5vw, 21px); background: var(--iv-paper); }
.markdown ~ .email-card { margin-top: 18px; }
.email-title { margin: 0 0 13px; font: 600 17px/1.35 'Playfair Display', serif; color: #74512b; }
.email-subject { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--iv-line); font-weight: 700; }
.copy-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.copy-status { color: #705631; font-size: 12px; }
.chatfoot .row { align-items: flex-end; }
.chatfoot textarea { border-radius: 18px; min-height: 82px; background: #fffefa; font-size: 15px; }
.chatfoot .primary { min-height: 45px; border-radius: 999px; }
.chatfoot select { border-radius: 999px; background: var(--iv-paper); }
#retry { margin-inline-start: 8px; border: 0; padding: 6px; background: none; text-decoration: underline; color: #674819; }
.side details summary { cursor: pointer; font-weight: 700; }
.side .support { padding: 14px; }
.side .support summary { font-size: 13px; color: #674819; line-height: 1.5; }
:focus-visible { outline: 2px solid #a17a44; outline-offset: 3px; }
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .chat { order: 1; }
  .side { order: 2; padding: 15px; }
  .intro { margin-bottom: 19px; }
  .chatbody { max-height: 48vh; }
  .chathead { padding: 15px; }
}
@media (max-width: 440px) {
  main { margin-top: 18px; }
  .intro h1 { font-size: 29px; }
  .intro p { font-size: 13px; }
  .chatfoot .row { align-items: stretch; }
  .chatfoot textarea, .side textarea { font-size: 16px; }
  .chatfoot .primary { align-self: flex-end; }
  .chathead strong { font-size: 18px; }
  .chathead small { font-size: 10px; }
}


/* Tokens from the published Maison 3D home and its editorial surfaces. */
:root {
  --ivory: #f8f3e9;
  --ink: #201b17;
  --gold: #b58d4e;
  --line: #e3d8c6;
  --muted: #716a60;
  --iv-paper: #fffdf9;
  --iv-ivory: #f9f5ee;
  --iv-line: #e6dac8;
  --iv-dark: #211b15;
}
body { background: var(--ivory); color: var(--ink); }
header { background: #151311; border-bottom-color: #55432b; color: #f9f1e4; padding-block: 0; }
.brand { min-height: 84px; }
.brand-name { color: #f5eddf; font: 700 13px 'DM Sans', sans-serif; letter-spacing: .23em; }
.brandline { color: #bdad94; letter-spacing: .18em; }
.iv { color: #e3c38b; font: 31px 'Playfair Display', serif; letter-spacing: -.15em; }
.home { color: #e5c99b; border-color: #b08c55; }
main { max-width: 1240px; margin: 30px auto 0; }
.layout { gap: 20px; }
.chat { background: #f9f5ee; border-radius: 27px; }
.chathead { background: transparent; color: var(--ink); border-bottom: 1px solid var(--line); padding: 16px clamp(14px, 2.5vw, 24px); }
.concierge-heading { display: flex; align-items: center; gap: 10px; }
.concierge-monogram { display: grid; place-items: center; flex: none; width: 36px; aspect-ratio: 1; border-radius: 50%; background: #efe1cb; color: #805d2c; font: 19px 'Playfair Display', serif; }
.concierge-brand { color: #805d2c; font-size: 10px; letter-spacing: .13em; font-weight: 700; }
.concierge-heading h1 { margin: 1px 0 3px; font: 600 clamp(23px, 2.7vw, 30px)/1.1 'Playfair Display', serif; }
.concierge-heading p { margin: 0; color: #6f6252; font-size: 12px; }
.chathead .textbutton { color: #74512b !important; min-height: 44px; }
.chatbody { min-height: 0; max-height: min(60vh, 610px); padding: clamp(12px, 2.1vw, 24px); }
.message { width: fit-content; margin-bottom: 14px; padding: clamp(12px, 2vw, 19px); }
.message-label { margin-bottom: 9px; }
.message.ai { max-width: min(100%, 72ch); background: var(--iv-paper); color: var(--ink); }
.message.me { max-width: min(87%, 64ch); background: #e4d5bd; color: #30271e; border-color: #ddcdb2; border-radius: 28px; }
.message.me .message-label { display: none; }
.message.ai > .copy-row { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 6px; }
.message .copy-button { min-height: 36px; margin-top: 3px; background: #f9f5ec; }
.chatfoot { background: #fffaf3; padding: 12px 16px 15px; }
.chatfoot .row { align-items: flex-end; background: #fffdf9; padding: 3px; border-radius: 22px; border: 1px solid #ddcdb2; }
.chatfoot .row:focus-within { border-color: #a17a44; }
.chatfoot textarea { min-height: 44px; height: 44px; padding: 8px 11px; border: 0; background: transparent; outline: none; }
.chatfoot .primary { flex: none; min-height: 44px; padding-inline: 17px; }
.side { padding: 17px; }
.side button { border-radius: 999px; min-height: 44px; margin-top: 6px; padding: 8px 12px; }
.side details summary { min-height: 44px; align-content: center; }
.side .support { background: #f5eee4; margin-top: 12px; padding: 9px 12px; }
.concierge-status { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
#quotaHelp { border: 0; background: transparent; color: #674819; text-decoration: underline; min-height: 36px; }
.typing-dots { display: flex; gap: 5px; align-items: center; padding: 4px 0; }
.typing-dots span { width: 5px; height: 5px; border-radius: 50%; background: #a17e48; animation: iv-dot 1.1s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay: .14s; }
.typing-dots span:nth-child(3) { animation-delay: .28s; }
@keyframes iv-dot { 0%, 75%, 100% { opacity: .45; } 35% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing-dots span { animation: none; } }
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  main { margin-top: 14px; }
  .brand { min-height: 65px; }
}
@media (max-width: 440px) {
  .brand { gap: 9px; }
  .brandmark { gap: 8px; }
  .brand-name { font-size: 11px; letter-spacing: .1em; }
  .brandline { font-size: 8px; letter-spacing: .08em; }
  .home { padding: 8px 10px; }
  .chathead { gap: 5px; }
  .concierge-heading { gap: 8px; }
  .concierge-monogram { width: 32px; }
  .concierge-heading p { font-size: 11px; }
  .chatfoot .row { flex-direction: row; }
  .chatfoot { padding-inline: 12px; }
  .chatfoot textarea { font-size: 16px; padding-inline: 9px; }
  .chatfoot .primary { padding-inline: 12px; }
  .message .copy-button { min-height: 44px; }
}

/* Conversation-first Maison layout. */
main { max-width: 940px; }
.layout { display: block; }
.chat { overflow: visible; }
.chathead { border-bottom: 0; }
.chatbody { padding-top: 6px; overflow-anchor: none; }
.chatfoot { border-radius: 0 0 26px 26px; }
.message { padding: 11px 15px; margin-bottom: 12px; box-shadow: none; }
.message.ai { border-color: #ebdfcc; }
.message-label { margin-bottom: 7px; }
.message-mark { width: 21px; height: 21px; }
.message.ai > .copy-row { border-top: 0; margin-top: 8px; padding-top: 0; }
.quick-tools { position: relative; flex: none; align-self: flex-end; }
.quick-tools summary { display: grid; place-items: center; width: 44px; min-height: 44px; border-radius: 50%; background: #f5eee4; color: #614726; font-size: 23px; cursor: pointer; list-style: none; }
.quick-tools summary::-webkit-details-marker { display: none; }
.tool-menu { position: absolute; z-index: 5; bottom: calc(100% + 9px); left: 0; width: min(265px, calc(100vw - 60px)); padding: 6px; border: 1px solid #e3d8c6; border-radius: 17px; background: #fffdf9; box-shadow: 0 10px 25px #432e181a; }
.tool-menu button { display: block; width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: transparent; text-align: left; padding: 8px 11px; color: #443629; }
.tool-menu button:hover { background: #f5eee4; }
main > .support { margin: 10px 0 0; padding: 0 15px; border-radius: 16px; color: #674819; background: #f5eee4; }
main > .support summary { cursor: pointer; min-height: 44px; padding-block: 12px; font-size: 13px; }
main > .support[open] { padding-bottom: 12px; }
#humanSend { border: 0; border-radius: 999px; padding: 0 14px; min-height: 44px; }
#skipReveal { order: 1; background: none; color: #674819; border: 0; min-height: 44px; text-decoration: underline; padding: 0 6px; }

.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 13px; }
.suggestions[hidden], .supplier-guide[hidden] { display: none; }
.suggestions button {
  border: 1px solid #dfceb1;
  border-radius: 999px;
  background: #faf5ea;
  color: #60472b;
  font-size: 12px;
  min-height: 34px;
  padding: 5px 11px;
}
.suggestions button:hover, .suggestions button:focus-visible { background: #efe1cb; }
.supplier-guide { margin: 0 0 8px; color: #674819; font-size: 13px; line-height: 1.45; }
@media (pointer: coarse) { .suggestions button { min-height: 44px; } }

.photo-controls{margin-top:.55rem}
.photo-button,.photo-list button{min-height:44px;border:1px solid #d9c8ab;border-radius:999px;background:#faf6ed;color:#4a3624;padding:0 .8rem;font:inherit;cursor:pointer}
.photo-button:disabled{opacity:.55;cursor:default}
.photo-list{padding:0;margin:.4rem 0 0;list-style:none}
.photo-list li{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.photo-list span{min-width:0;overflow-wrap:anywhere}

.supplier-recommendations {
  display: grid;
  gap: 7px;
  max-width: 29rem;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}
.supplier-recommendation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 8px 11px;
  border: 1px solid var(--iv-line);
  border-radius: 16px;
  background: #fbf7ef;
  color: var(--iv-dark);
}
.supplier-recommendation-details {
  min-width: 0;
  overflow-wrap: anywhere;
}
.supplier-recommendation-name {
  font: 600 17px/1.25 'Playfair Display', Georgia, serif;
}
.supplier-recommendation-country {
  display: block;
  margin-top: 2px;
  color: #755635;
  font-size: 11px;
  line-height: 1.35;
}
.supplier-recommendation-focus {
  margin: 3px 0 0;
  color: #665747;
  font-size: 12px;
  line-height: 1.45;
}
.chatfoot .primary,
.supplier-recommendation-link { background: var(--iv-dark); color: #f5e4c4; }
.supplier-recommendation-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--iv-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.supplier-recommendation-link::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  background: linear-gradient(135deg, transparent 44%, currentColor 47%, currentColor 56%, transparent 59%);
}
.supplier-recommendation-link:hover { background: #382b20; }
.supplier-recommendation-link:focus-visible { outline: 2px solid #896638; outline-offset: 2px; }
@media (max-width: 480px) {
  .supplier-recommendation { flex-wrap: wrap; gap: 0 10px; }
  .supplier-recommendation-details { flex: 1 1 11rem; }
  .supplier-recommendation-link { min-height: 44px; margin-top: 3px; }
}
