/* Aether Labs — Premium PDP 2030
   Mobile-first, dark mode, WCAG AA */

:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --bg: #f8f7f5;
  --bg-elevated: #ffffff;
  --bg-subtle: #eeecea;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #d4d2ce;
  --accent: #4a3aff;
  --accent-hover: #3528d4;
  --success: #1a7f4b;
  --danger: #c0392b;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 56px;
  --focus: 0 0 0 3px rgba(74, 58, 255, 0.45);
}

[data-theme="dark"] {
  --bg: #0a0b0d;
  --bg-elevated: #14161a;
  --bg-subtle: #1e2128;
  --text: #f0eeeb;
  --text-muted: #9a9690;
  --border: #2a2e36;
  --accent: #7b6fff;
  --accent-hover: #9588ff;
  --success: #4ade80;
  --danger: #f87171;
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
  --focus: 0 0 0 3px rgba(123, 111, 255, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.logo-mark { color: var(--accent); font-size: 1.2rem; }

.header-search {
  flex: 1;
  max-width: 360px;
  position: relative;
  margin-left: auto;
}

.header-search input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.9375rem;
}
.header-search input:focus {
  outline: none;
  box-shadow: var(--focus);
  border-color: var(--accent);
}

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
}

.search-results-list { list-style: none; margin: 0; padding: 0.25rem; }
.search-result-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.625rem 0.75rem;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  font: inherit;
}
.search-result-btn:hover, .search-result-btn:focus-visible {
  background: var(--bg-subtle);
  outline: none;
}
.search-result-name { display: block; font-weight: 600; }
.search-result-meta { display: block; font-size: 0.8125rem; color: var(--text-muted); }
.search-empty { padding: 0.75rem; margin: 0; color: var(--text-muted); font-size: 0.875rem; }

.header-actions { display: flex; gap: 0.5rem; align-items: center; }

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: background var(--transition);
}
.icon-btn:hover { background: var(--bg-subtle); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--focus); }

.cart-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  position: relative;
}
.cart-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  margin-left: 0.35rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.breadcrumb li:not(:last-child)::after { content: " / "; margin-left: 0.35rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* Product hero */
.product-page { max-width: 1280px; margin: 0 auto; padding: 0 1rem 4rem; }

.product-hero {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .product-hero {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .product-hero { grid-template-columns: 1.1fr 0.9fr; }
}

.viewer-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

#product-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
#product-canvas:active { cursor: grabbing; }
#product-canvas:focus-visible { outline: none; box-shadow: inset var(--focus); }

.fallback-viewer {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--bg-subtle), var(--bg-elevated));
}
.fallback-viewer img { max-width: 80%; height: auto; }

.viewer-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

.config-gallery { margin-top: 0.75rem; }
.gallery-thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}
.gallery-thumbs li { flex-shrink: 0; }
.gallery-thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: default;
  background: var(--bg-subtle);
  transition: border-color var(--transition);
}
.gallery-thumb.is-active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-align: center;
  max-width: 72px;
}

.light-controls {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}
.light-controls legend { font-weight: 600; font-size: 0.875rem; padding: 0 0.25rem; }
.light-controls label { display: block; font-size: 0.8125rem; margin: 0.5rem 0 0.25rem; color: var(--text-muted); }
.light-controls input[type="range"] { width: 100%; accent-color: var(--accent); }

/* Product info */
.product-brand {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

#product-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.product-tagline { color: var(--text-muted); margin: 0 0 1rem; }

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}
.stars { color: #e6a817; letter-spacing: -0.05em; }
.review-count { color: var(--text-muted); }

.price-block {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.price {
  font-size: 1.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.compare-price {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.stock { font-size: 0.875rem; margin: 0 0 0.25rem; }
.stock.in-stock { color: var(--success); }
.stock.out-of-stock { color: var(--danger); }

.sku-line { font-size: 0.8125rem; color: var(--text-muted); margin: 0 0 0.5rem; }
.qty-break-hint {
  font-size: 0.8125rem;
  color: var(--accent);
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: var(--radius-sm);
}

/* Options */
.option-group {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.option-group legend {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.option-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-chip {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.option-chip:hover:not(.is-disabled) { border-color: var(--accent); }
.option-chip:focus-visible { outline: none; box-shadow: var(--focus); }
.option-chip.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elevated));
}
.option-chip.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.swatch {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid color-mix(in srgb, var(--text) 20%, transparent);
  flex-shrink: 0;
}
.option-price {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.size-chip {
  padding: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  transition: border-color var(--transition);
}
.size-chip.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-elevated)); }
.size-chip:focus-visible { outline: none; box-shadow: var(--focus); }

/* Fit */
.fit-section {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
}
.fit-section h3 { margin: 0 0 0.75rem; font-size: 0.9375rem; }
#fit-form {
  display: grid;
  gap: 0.5rem;
}
#fit-form label { font-size: 0.8125rem; color: var(--text-muted); }
#fit-form input, #fit-form select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}
.fit-result {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--success);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg-subtle); }

.btn-sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
.btn-block { width: 100%; }

.purchase-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
  align-items: stretch;
}
.btn-add { flex: 1; min-width: 200px; }

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  overflow: hidden;
}
.qty-stepper--sm { font-size: 0.8125rem; }
.qty-btn {
  width: 2.5rem;
  height: 2.75rem;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.125rem;
}
.qty-btn:focus-visible { outline: none; box-shadow: inset var(--focus); }
.qty-stepper input, .qty-value {
  width: 2.5rem;
  text-align: center;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-description {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* Cart drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.overlay.is-visible { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 400px);
  height: 100%;
  background: var(--bg-elevated);
  z-index: 400;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h2 { margin: 0; font-size: 1.125rem; }

.cart-lines {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}
.cart-empty { color: var(--text-muted); text-align: center; padding: 2rem 0; }

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-line h4 { margin: 0 0 0.25rem; font-size: 0.9375rem; }
.cart-line-meta { margin: 0; font-size: 0.75rem; color: var(--text-muted); }
.cart-line-price { margin: 0.25rem 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-line-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.cart-remove {
  border: none;
  background: none;
  color: var(--danger);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

.cart-summary {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}
.cart-totals { margin: 0 0 1rem; }
.cart-totals div {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 0.875rem;
}
.cart-totals dt { font-weight: 400; color: var(--text-muted); }
.cart-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart-total-row { font-weight: 700; font-size: 1rem !important; padding-top: 0.5rem !important; border-top: 1px solid var(--border); margin-top: 0.25rem; }
.free-shipping-msg { font-size: 0.8125rem; color: var(--success); margin: 0 0 1rem; }

/* Bundle */
.bundle-section {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 3rem;
}
.bundle-section h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.bundle-desc { color: var(--text-muted); margin: 0 0 1rem; }
.bundle-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}
.bundle-price { font-size: 1.125rem; margin: 0 0 1rem; }
.bundle-price s { color: var(--text-muted); margin-right: 0.5rem; }
.bundle-save {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--success);
  color: #fff;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Compare */
.compare-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  animation: fadeIn 400ms ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.compare-table th, .compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th { font-weight: 600; background: var(--bg-subtle); }

/* Related */
.related-section { margin-bottom: 4rem; }
.related-section h2 { font-size: 1.25rem; margin: 0 0 1.5rem; }

.related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }

.related-card {
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.related-card.highlight-pulse {
  animation: pulse 1s ease 2;
  border-color: var(--accent);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.related-swatch {
  width: 100%;
  height: 80px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}
.related-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.related-price { font-weight: 600; margin: 0 0 0.25rem; font-variant-numeric: tabular-nums; }
.related-price s { color: var(--text-muted); font-weight: 400; margin-right: 0.35rem; }
.related-rating, .related-stock { font-size: 0.8125rem; color: var(--text-muted); margin: 0 0 0.75rem; }
.related-stock.out-of-stock { color: var(--danger); }

/* Assistant */
.assistant-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 50%, transparent);
  z-index: 500;
  transition: transform var(--transition);
}
.assistant-fab:hover { transform: scale(1.05); }
.assistant-fab:focus-visible { outline: none; box-shadow: var(--focus), 0 4px 20px color-mix(in srgb, var(--accent) 50%, transparent); }

.assistant-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: min(calc(100vw - 2rem), 380px);
  max-height: min(70vh, 520px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 499;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}
.assistant-panel.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.assistant-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.assistant-header h2 { margin: 0; font-size: 1rem; }
.assistant-sub { margin: 0.15rem 0 0; font-size: 0.75rem; color: var(--text-muted); }

.assistant-steps {
  padding: 0.75rem 1.25rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  max-height: 120px;
  overflow-y: auto;
}
.assistant-steps-title { margin: 0 0 0.35rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.assistant-steps ol { margin: 0; padding-left: 1.25rem; font-size: 0.8125rem; }
.assistant-steps li { margin-bottom: 0.25rem; }
.step-action { font-weight: 600; }
.step-detail { color: var(--text-muted); margin-left: 0.35rem; }

.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.assistant-msg {
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 92%;
}
.assistant-msg--assistant {
  background: var(--bg-subtle);
  align-self: flex-start;
}
.assistant-msg--user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
}

.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1.25rem 0.75rem;
}
.chip-suggestion {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
}
.chip-suggestion:hover { border-color: var(--accent); }
.chip-suggestion:focus-visible { outline: none; box-shadow: var(--focus); }

.assistant-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid var(--border);
}
.assistant-form input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
}
.assistant-form input:focus { outline: none; box-shadow: var(--focus); }
.assistant-form .btn { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  border-top: 1px solid var(--border);
}
