:root {
  color-scheme: light;
  --ink: #10202b;
  --muted: #5f6e76;
  --line: #dbe3e6;
  --surface: #ffffff;
  --soft: #f4f7f7;
  --accent: #0b6b61;
  --accent-dark: #074b45;
  --gold: #c7a34b;
  --shadow: 0 22px 70px rgba(16, 32, 43, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background:
  radial-gradient(circle at 10% 10%, #dcebe6 0, transparent 30rem),
  linear-gradient(160deg, #f8faf9 0%, #eef3f4 100%); min-height: 100vh; }
button, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { height: 76px; padding: 0 5vw; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid rgba(16,32,43,.09);
  background: rgba(255,255,255,.82); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand img { width: 128px; max-height: 42px; object-fit: contain; object-position: left center; }
.brand span { display: grid; border-left: 1px solid var(--line); padding-left: 14px; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.top-actions { display: flex; gap: 16px; align-items: center; }
.status { font-size: 13px; color: var(--muted); }
.status i { display: inline-block; width: 8px; height: 8px; background: #1fa36d; border-radius: 50%; margin-right: 7px; }
.ghost { background: transparent; border: 0; color: var(--muted); padding: 8px; }
.layout { max-width: 1380px; margin: 0 auto; padding: 56px 5vw 28px; display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(520px, 1.45fr); gap: 52px; align-items: start; }
.hero { padding: 38px 0; position: sticky; top: 118px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.hero h1 { font-size: clamp(38px, 4vw, 66px); line-height: .98; letter-spacing: -.05em; margin: 20px 0 24px; max-width: 12ch; }
.hero > p:not(.eyebrow) { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 46ch; }
.suggestions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.suggestions button { border: 1px solid var(--line); background: rgba(255,255,255,.65);
  color: var(--ink); border-radius: 999px; padding: 10px 14px; }
.workspace { background: var(--surface); border: 1px solid rgba(16,32,43,.08); border-radius: 24px;
  box-shadow: var(--shadow); overflow: hidden; min-height: 680px; display: flex; flex-direction: column; }
.conversation { padding: 30px; flex: 1; overflow-y: auto; max-height: 68vh; }
.message { display: flex; gap: 12px; margin: 0 0 24px; line-height: 1.55; }
.message.user { flex-direction: row-reverse; }
.message.user > div:last-child { background: var(--accent); color: white; border-radius: 18px 18px 4px 18px; padding: 12px 16px; max-width: 78%; }
.message.assistant > div:last-child { max-width: 92%; }
.message p { margin: 0; white-space: pre-wrap; }
.message small { display: block; color: var(--muted); margin-top: 7px; }
.avatar { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: white; font-weight: 800; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 16px 0; }
.product-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--soft); }
.product-image { width: 100%; height: 150px; object-fit: contain; background: white; }
.product-body { padding: 15px; }
.product-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.product-name { margin: 8px 0; font-size: 16px; }
.product-reference { display: inline-block; color: var(--ink); background: white; border: 1px solid var(--line); padding: 5px 7px; border-radius: 6px; }
.product-attributes { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; font-size: 12px; margin: 12px 0; }
.product-attributes dt { color: var(--muted); }
.product-attributes dd { margin: 0; text-align: right; }
.compare-toggle, .compare-tray button, #send { border: 0; border-radius: 10px; background: var(--ink); color: white; padding: 10px 13px; }
.citations { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--gold); background: #fbf8ef; font-size: 12px; color: var(--muted); }
.citations li + li { margin-top: 6px; }
.compare-tray { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 10px 20px; background: #eef6f4; }
.compare-tray[hidden] { display: none; }
.composer { border-top: 1px solid var(--line); padding: 16px 18px; display: flex; gap: 12px; background: white; }
.composer textarea { flex: 1; resize: none; border: 0; outline: 0; min-height: 44px; max-height: 140px; padding: 11px 4px; color: var(--ink); }
#send { background: var(--accent); min-width: 78px; }
#send:disabled { opacity: .55; cursor: wait; }
.disclaimer { margin: 0; padding: 0 20px 16px; color: var(--muted); font-size: 11px; text-align: center; }
footer { max-width: 1380px; margin: 0 auto; padding: 18px 5vw 32px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
footer nav { display: flex; gap: 18px; }
footer a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; padding-top: 26px; gap: 20px; }
  .hero { position: static; padding: 10px 0; }
  .hero h1 { max-width: 16ch; font-size: 42px; }
  .workspace { min-height: 620px; }
  .topbar { padding: 0 18px; }
  .status { display: none; }
}
@media (max-width: 560px) {
  .brand img { display: none; }
  .brand span { border-left: 0; padding-left: 0; }
  .top-actions .ghost { font-size: 0; }
  .top-actions .ghost::after { content: "Delete"; font-size: 12px; }
  .layout { padding-left: 14px; padding-right: 14px; }
  .conversation { padding: 20px 16px; max-height: 62vh; }
  .hero h1 { font-size: 36px; }
  footer { padding-left: 18px; padding-right: 18px; }
}
