:root {
  color-scheme: light;
  --page: #f3f3ef;
  --surface: #ffffff;
  --surface-soft: #f8f8f5;
  --ink: #17211d;
  --muted: #66716c;
  --line: #dfe3df;
  --line-strong: #c7cec9;
  --forest: #315b49;
  --forest-dark: #244638;
  --forest-soft: #edf4f0;
  --bronze: #9a7140;
  --bronze-soft: #f5eee5;
  --danger: #8b443c;
  --shadow: 0 18px 50px rgba(32, 45, 39, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--page); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 243, 239, 0.94);
}

.brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand-lockup { display: block; width: 112px; height: auto; }
.header-actions, .status-cluster { display: flex; align-items: center; gap: 10px; }
.header-actions { gap: 16px; }
.status-cluster { color: var(--muted); font-size: 0.78rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); }
.status-cluster.ready .status-dot { background: var(--forest); }

.presenter-toggle, button {
  border: 1px solid var(--forest);
  border-radius: 9px;
  padding: 10px 15px;
  color: #fff;
  background: var(--forest);
  font-weight: 700;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}
button:hover { background: var(--forest-dark); }
button:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: 0.42; transform: none; }
.presenter-toggle { padding: 7px 10px; color: var(--forest); background: transparent; font-size: 0.7rem; }
.presenter-toggle[aria-pressed="true"] { color: #fff; background: var(--forest); }
button.ghost, .trace-button, .prompt-row button, .product-actions button {
  color: var(--forest-dark);
  border-color: var(--line-strong);
  background: var(--surface);
}
button.ghost:hover, .trace-button:hover, .prompt-row button:hover, .product-actions button:hover { background: var(--forest-soft); }

main { max-width: 1440px; margin: 0 auto; padding: 0 40px 72px; }
.hero { max-width: 980px; padding: 58px 0 38px; }
.eyebrow, .kicker { color: var(--bronze); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.hero h1 { max-width: 820px; margin: 13px 0 17px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 5vw, 4.8rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.045em; }
.hero h1 span { color: var(--forest); }
.hero p { max-width: 820px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.68; }
.hero-next { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.hero-next a { flex: 0 0 auto; padding: 10px 14px; color: #fff; border: 1px solid var(--forest); border-radius: 9px; background: var(--forest); font-size: 0.74rem; font-weight: 760; text-decoration: none; }
.hero-next a:hover { background: var(--forest-dark); }
.hero-next span { max-width: 500px; color: var(--muted); font-size: 0.69rem; line-height: 1.45; }
.tool-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.tool-strip code { padding: 5px 8px; color: #52605a; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.5); font-size: 0.65rem; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(350px, 0.72fr); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.catalog-panel { padding: 30px; }
.agent-panel { padding: 30px; border-left: 1px solid var(--line); background: #fafaf7; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.panel-heading.compact { margin-bottom: 12px; }
.panel-heading h2 { margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; letter-spacing: -0.025em; }
.source-badge, .read-only { padding: 6px 9px; color: var(--forest-dark); border: 1px solid #cbdacf; border-radius: 999px; background: var(--forest-soft); font-size: 0.62rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.source-badge.fallback { color: #70532f; border-color: #dbc8ad; background: var(--bronze-soft); }
.source-badge.research-only { color: #70532f; border-color: #dbc8ad; background: var(--bronze-soft); }

.conversion-path { margin-bottom: 18px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.conversion-path-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.conversion-path-heading > div { display: grid; gap: 4px; }
.conversion-path-heading strong { font-family: Georgia, "Times New Roman", serif; font-size: 0.94rem; font-weight: 600; }
.conversion-path-status { color: var(--muted); font-size: 0.62rem; text-align: right; }
.conversion-path ol { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 11px 0 0; padding: 0; }
.conversion-path li { position: relative; display: grid; grid-template-columns: 23px minmax(0, 1fr); align-items: center; gap: 7px; min-width: 0; padding: 7px; color: #76807b; border: 1px solid transparent; border-radius: 8px; background: rgba(255, 255, 255, 0.55); opacity: 0.62; transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease, opacity 220ms ease, transform 220ms ease; }
.conversion-path li > span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 0.55rem; font-weight: 800; }
.conversion-path li > strong { min-width: 0; font-size: 0.6rem; line-height: 1.25; }
.conversion-path li[data-state="complete"] { color: var(--forest-dark); border-color: #d2ded7; background: var(--forest-soft); opacity: 1; }
.conversion-path li[data-state="complete"] > span { color: #fff; border-color: var(--forest); background: var(--forest); }
.conversion-path li[data-state="active"] { color: #69491f; border-color: #ceb589; background: var(--bronze-soft); opacity: 1; transform: translateY(-1px); }
.conversion-path li[data-state="active"] > span { color: #fff; border-color: var(--bronze); background: var(--bronze); box-shadow: 0 0 0 3px rgba(154, 113, 64, 0.11); }

label { color: #4e5954; font-size: 0.76rem; font-weight: 700; }
input, select { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; padding: 11px 12px; color: var(--ink); background: var(--surface); outline: none; }
input:focus, select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(49, 91, 73, 0.1); }

.origin-control { margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.origin-control label { display: block; margin-bottom: 7px; }
.origin-control p { margin: 7px 0 0; color: var(--muted); font-size: 0.67rem; line-height: 1.45; overflow-wrap: anywhere; }
.origin-control .origin-health.live { color: var(--forest); }
.origin-control .origin-health.fallback { color: var(--bronze); }
.origin-diagnostics { margin-top: 10px; border-top: 1px solid var(--line); }
.origin-diagnostics summary { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; color: #4e5954; font-size: 0.66rem; font-weight: 750; cursor: pointer; list-style-position: inside; }
.origin-diagnostics summary span:last-child { color: var(--muted); font-weight: 650; text-align: right; }
.origin-diagnostics[data-status="live"] summary span:last-child { color: var(--forest); }
.origin-diagnostics[data-status="degraded"], .origin-diagnostics[data-status="fallback"], .origin-diagnostics[data-status="failed"] { border-top-color: #d7c3a3; }
.origin-diagnostics[data-status="degraded"] summary span:last-child, .origin-diagnostics[data-status="fallback"] summary span:last-child, .origin-diagnostics[data-status="failed"] summary span:last-child { color: var(--bronze); }
.origin-diagnostics-body { display: grid; gap: 8px; padding: 10px 0 2px; }
.origin-diagnostics-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.origin-diagnostics-facts span, .origin-attempt { padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 0.61rem; line-height: 1.35; overflow-wrap: anywhere; }
.origin-attempts { display: grid; gap: 5px; }
.origin-attempt { display: flex; justify-content: space-between; gap: 10px; }
.origin-attempt strong { color: var(--ink); font-weight: 700; }

.recommend-form { margin-bottom: 20px; padding: 18px; border: 1px solid #ccd8d1; border-radius: 13px; background: var(--forest-soft); }
.recommend-form > label, .search-form > label, .interpolate-form > label, .brief-form > label { display: block; margin-bottom: 8px; }
.decision-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(175px, 0.48fr) auto; align-items: end; gap: 10px; }
.budget-field { display: grid; gap: 7px; }
.budget-field span { font-size: 0.67rem; }
.intent-panel { margin-top: 11px; border-top: 1px solid #d4dfd8; }
.intent-panel summary { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; color: var(--forest-dark); font-size: 0.68rem; font-weight: 750; cursor: pointer; list-style-position: inside; }
.intent-panel summary span:last-child { color: var(--muted); font-size: 0.61rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.intent-selects { display: grid; grid-template-columns: 0.65fr 0.8fr 1.55fr; gap: 8px; margin-top: 10px; }
.intent-constraints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.intent-selects label, .intent-constraints label { display: grid; gap: 5px; }
.intent-selects label > span, .intent-constraints label > span { font-size: 0.61rem; }
.intent-selects input, .intent-selects select, .intent-constraints input { padding: 8px 9px; font-size: 0.7rem; }
.priority-field { min-width: 0; margin: 10px 0 0; padding: 0; border: 0; }
.priority-field legend { margin-bottom: 6px; color: var(--muted); font-size: 0.61rem; font-weight: 700; }
.priority-options { display: flex; flex-wrap: wrap; gap: 6px; }
.priority-options label { display: flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: #52605a; background: var(--surface); font-size: 0.62rem; font-weight: 650; }
.priority-options label:has(input:checked) { color: var(--forest-dark); border-color: #9eb7a9; background: #e3eee8; }
.priority-options label:has(input:disabled) { opacity: 0.45; }
.priority-options input { width: 12px; height: 12px; margin: 0; accent-color: var(--forest); }
.rubric-note { margin: 10px 0 0; color: var(--muted); font-size: 0.67rem; line-height: 1.45; }
.refinement-panel { margin: -8px 0 20px; padding: 15px 16px; border: 1px solid #cfb995; border-radius: 11px; background: #fcf8f2; }
.refinement-panel h3 { margin: 6px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 600; }
.refinement-panel p { margin: 0; color: var(--muted); font-size: 0.68rem; line-height: 1.5; }
.refinement-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.refinement-choice { display: grid; gap: 3px; min-width: 0; padding: 9px 10px; color: var(--forest-dark); border-color: #cab896; background: var(--surface); text-align: left; }
.refinement-choice:hover { background: var(--bronze-soft); }
.refinement-choice strong { font-size: 0.67rem; }
.refinement-choice span { color: var(--muted); font-size: 0.57rem; font-weight: 550; line-height: 1.35; }
.refinement-panel.resolved { border-color: #b8ccc1; background: var(--forest-soft); }
.refinement-panel.resolved .refinement-choice { grid-column: 1 / -1; display: block; width: max-content; padding: 7px 10px; font-size: 0.62rem; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.secondary-search { margin-top: 6px; }
.prompt-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 9px 0 18px; color: var(--muted); font-size: 0.7rem; }
.prompt-row button { padding: 5px 8px; font-size: 0.67rem; font-weight: 650; }
.interpolate-form { margin-bottom: 14px; }
.catalog-message { min-height: 20px; margin: 0 0 12px; color: var(--muted); font-size: 0.73rem; }

.interpolate-view { margin: 0 0 16px; padding: 18px; border: 1px solid #cfb995; border-radius: 13px; background: #fcf8f2; }
.interpolate-view h3 { margin: 7px 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-weight: 500; }
.interpolate-view p { margin: 7px 0; color: var(--muted); font-size: 0.7rem; overflow-wrap: anywhere; }
.interpolate-view code { color: var(--ink); }
.projection-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 10px; margin-top: 11px; }
.projection-grid > div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.projection-grid strong { color: var(--forest-dark); font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; }
.projection-grid pre { max-height: 230px; margin: 8px 0 0; color: #505c57; font-size: 0.68rem; line-height: 1.5; white-space: pre-wrap; overflow: auto; }
.provenance-line { color: #667970 !important; }
.handoff-line { margin: -3px 0 0 !important; font-size: 0.58rem !important; font-weight: 750; }
.handoff-line.eligible { color: var(--forest-dark) !important; }
.handoff-line.ineligible { color: #70532f !important; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-height: 290px; }
.product-card { display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.product-card.selected { border-color: #9fb6aa; box-shadow: inset 0 0 0 1px rgba(49, 91, 73, 0.08); }
.product-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; }
.product-card p { margin: 0; color: var(--muted); font-size: 0.73rem; line-height: 1.5; }
.product-card .provenance-line { font-size: 0.58rem; }
.product-meta, .recommendation-rank { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-meta { color: #3e4a44; font-size: 0.69rem; }
.recommendation-rank { padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--forest); font-size: 0.68rem; font-weight: 750; }
.recommendation-rank strong { font-size: 0.78rem; }
.recommendation-copy { display: grid; gap: 5px; padding: 10px; border-left: 2px solid #9fb6aa; border-radius: 0 7px 7px 0; background: var(--forest-soft); }
.recommendation-copy strong { color: var(--forest-dark); font-size: 0.7rem; line-height: 1.4; }
.recommendation-copy span { color: var(--muted); font-size: 0.62rem; line-height: 1.4; }
.evidence-grid { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; margin: 0; padding: 10px; border-radius: 8px; background: var(--surface-soft); font-size: 0.67rem; }
.evidence-grid dt { color: var(--muted); }
.evidence-grid dd { margin: 0; color: var(--ink); text-align: right; font-weight: 650; text-transform: capitalize; }
.product-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: auto; }
.product-actions button { padding: 7px 9px; font-size: 0.66rem; }
.select-label { display: flex; align-items: center; gap: 6px; margin-right: auto; color: var(--muted); font-size: 0.67rem; }
.select-label input { width: 15px; height: 15px; accent-color: var(--forest); }

.action-dock { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.action-dock div { display: grid; gap: 3px; }
.action-dock strong { font-size: 0.77rem; }
.action-dock span { color: var(--muted); font-size: 0.66rem; }
.action-dock button { padding: 8px 10px; font-size: 0.7rem; }
.brief-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.itinerary-form-heading, .itinerary-view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.itinerary-form-heading > div { display: grid; gap: 5px; }
.itinerary-form-heading > span { padding: 5px 8px; color: var(--forest-dark); border: 1px solid #cbdacf; border-radius: 999px; background: var(--forest-soft); font-size: 0.57rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.itinerary-inputs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 9px; margin-top: 10px; }
.itinerary-inputs > input { grid-column: 1 / -1; }
.itinerary-inputs label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 0.61rem; }
.itinerary-inputs label.itinerary-field-wide { grid-column: span 2; }
.itinerary-inputs input, .itinerary-inputs select { min-width: 0; padding: 9px 10px; font-size: 0.7rem; }
.itinerary-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.itinerary-form-footer p { max-width: 620px; margin: 0; color: var(--muted); font-size: 0.62rem; line-height: 1.45; }
.itinerary-form-footer button { flex: none; }
.itinerary-view-heading h3 { margin-bottom: 0; }
.itinerary-status { flex: none; padding: 5px 8px; color: var(--forest-dark); border: 1px solid #cbdacf; border-radius: 999px; background: var(--forest-soft); font-size: 0.57rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.itinerary-status.attention { color: var(--danger); border-color: #d9bbb7; background: #fbefed; }
.itinerary-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 14px 0; }
.itinerary-summary .result-fact { border: 1px solid var(--line); background: var(--surface); }
.itinerary-timeline { display: grid; gap: 10px; }
.itinerary-day { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.itinerary-day > header { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.itinerary-day > header strong { font-family: Georgia, "Times New Roman", serif; font-size: 0.94rem; font-weight: 600; }
.itinerary-day > header span { color: var(--muted); font-size: 0.61rem; }
.itinerary-day-list { list-style: none; display: grid; gap: 8px; margin: 10px 0 0; padding: 0; }
.itinerary-day-list li { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.itinerary-time { color: var(--forest-dark); font-size: 0.67rem; font-weight: 800; }
.itinerary-activity { display: grid; gap: 2px; min-width: 0; }
.itinerary-activity strong { color: var(--ink); font-size: 0.7rem; }
.itinerary-activity span { color: var(--muted); font-size: 0.61rem; line-height: 1.4; }
.itinerary-activity a { width: max-content; color: var(--forest); font-size: 0.59rem; font-weight: 750; text-underline-offset: 2px; }
.itinerary-price { color: #70532f; font-size: 0.63rem; font-weight: 750; text-align: right; }
.itinerary-empty { margin: 10px 0 0; color: var(--muted); font-size: 0.65rem; }
.itinerary-conflicts { display: grid; gap: 7px; margin-top: 11px; padding: 12px; border: 1px solid #d9bbb7; border-radius: 10px; background: #fbefed; }
.itinerary-conflicts[hidden] { display: none; }
.itinerary-conflicts strong { color: var(--danger); font-size: 0.68rem; }
.itinerary-conflicts ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; }
.itinerary-conflicts li { color: #6f504b; font-size: 0.62rem; line-height: 1.45; }
.itinerary-source-details { margin-top: 11px; border-top: 1px solid var(--line); }
.itinerary-source-details summary { padding-top: 10px; color: var(--forest-dark); font-size: 0.63rem; font-weight: 750; cursor: pointer; }
#itinerary-view pre { max-height: 320px; margin: 10px 0 0; padding: 13px; border: 1px solid var(--line); border-radius: 9px; color: #505c57; background: var(--surface); font-size: 0.68rem; line-height: 1.5; white-space: pre-wrap; overflow: auto; }

.activity-intro { margin: 0 0 14px; color: var(--muted); font-size: 0.73rem; line-height: 1.55; }
.panel-actions { display: grid; justify-items: end; gap: 7px; }
.trace-button { padding: 5px 8px; font-size: 0.63rem; }
.confirm-panel, .cart-panel { margin-bottom: 14px; padding: 14px; border: 1px solid #ccb383; border-radius: 11px; background: var(--bronze-soft); }
.confirm-panel p, .cart-panel p { margin: 7px 0 10px; color: var(--muted); font-size: 0.7rem; line-height: 1.5; }
.confirm-actions { display: flex; gap: 7px; }
.confirm-actions button { padding: 8px 10px; font-size: 0.68rem; }
.cart-panel { border-color: #cbdacf; background: var(--forest-soft); }
.cart-panel ul { list-style: none; display: grid; gap: 7px; margin: 8px 0 0; padding: 0; }
.cart-line { display: grid; gap: 4px; color: var(--forest-dark); font-size: 0.67rem; line-height: 1.4; }
.cart-line a { color: var(--forest); font-weight: 700; }
.activity-list { list-style: none; display: grid; gap: 8px; min-height: 170px; margin: 0; padding: 0; }
.activity-item { padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.activity-item header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.activity-item code { color: var(--ink); font-size: 0.68rem; }
.activity-item time { color: var(--muted); font-size: 0.58rem; }
.activity-item p { margin: 6px 0 0; color: var(--muted); font-size: 0.65rem; line-height: 1.4; word-break: break-word; }
.activity-origin { color: var(--forest); font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; }
.result-panel { min-height: 115px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.result-panel p, .result-panel pre { color: var(--muted); font-size: 0.67rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.result-heading > div { display: grid; gap: 4px; min-width: 0; }
.result-heading strong, .result-tool { color: var(--ink); font-size: 0.76rem; font-weight: 750; overflow-wrap: anywhere; }
.result-status { flex: none; padding: 4px 7px; color: var(--forest-dark); border: 1px solid #cbdacf; border-radius: 999px; background: var(--forest-soft); font-size: 0.52rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.result-status.attention { color: var(--danger); border-color: #d9bbb7; background: #fbefed; }
.result-meta { margin: 7px 0 10px; color: var(--forest) !important; font-size: 0.56rem !important; letter-spacing: 0.06em; text-transform: uppercase; }
.result-content { display: grid; gap: 9px; }
.result-content .result-lead { margin: 0; color: #3e4a44; font-size: 0.7rem; font-weight: 650; }
.result-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.result-fact { display: grid; gap: 2px; min-width: 0; padding: 8px; border-radius: 7px; background: var(--surface-soft); }
.result-fact > span { color: var(--muted); font-size: 0.55rem; text-transform: capitalize; }
.result-fact > strong { color: var(--ink); font-size: 0.65rem; overflow-wrap: anywhere; }
.result-list { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.result-list li { display: grid; gap: 2px; padding: 7px 8px; border-left: 2px solid #b7c9bf; background: var(--surface-soft); }
.result-list li strong { color: var(--ink); font-size: 0.65rem; }
.result-list li span { color: var(--muted); font-size: 0.58rem; line-height: 1.4; }
.result-list.ranked { counter-reset: none; }
.result-url { margin: 0; color: var(--forest) !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.result-brief { max-height: 150px; margin: 0; padding: 9px; border-radius: 7px; background: var(--surface-soft); overflow: auto; }
.result-raw { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.result-raw summary { color: var(--muted); font-size: 0.6rem; font-weight: 700; cursor: pointer; }
.result-raw pre { max-height: 210px; margin: 8px 0 0; padding: 9px; border-radius: 7px; background: var(--surface-soft); overflow: auto; }
.trust-note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.trust-note strong { font-size: 0.73rem; }
.trust-note p { margin: 6px 0 0; color: var(--muted); font-size: 0.66rem; line-height: 1.5; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.why-grid article { padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.58); }
.why-grid article > span { color: var(--bronze); font-size: 0.67rem; font-weight: 800; }
.why-grid h3 { margin: 13px 0 7px; font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
.why-grid p { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }

body > footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1440px; margin: 0 auto; padding: 28px 40px 42px; color: #7a847f; border-top: 1px solid var(--line); font-size: 0.66rem; }
body > footer a, .policy-page a { color: var(--forest); }

.presenter-layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.presenter-focus { position: fixed; z-index: 51; opacity: 0; border: 2px solid rgba(154, 113, 64, 0.9); background: rgba(154, 113, 64, 0.02); box-shadow: 0 0 0 9999px rgba(15, 22, 19, 0.42), 0 12px 34px rgba(20, 31, 25, 0.2); transition: left 620ms cubic-bezier(0.22, 1, 0.36, 1), top 620ms cubic-bezier(0.22, 1, 0.36, 1), width 620ms cubic-bezier(0.22, 1, 0.36, 1), height 620ms cubic-bezier(0.22, 1, 0.36, 1), border-radius 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease; }
.presenter-focus.visible { opacity: 1; }
.presenter-focus.immediate { transition: none; }
.presenter-cursor { position: fixed; left: -2px; top: -2px; z-index: 53; display: grid; grid-template-columns: 28px auto; align-items: start; gap: 5px; color: var(--ink); filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.35)); transform: translate3d(72vw, 18vh, 0); transform-origin: 2px 2px; transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1); }
.presenter-cursor svg { overflow: visible; transform-origin: 2px 2px; }
.presenter-cursor path { fill: #d6b77d; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.presenter-cursor span { margin-top: 18px; padding: 4px 7px; border: 1px solid rgba(255, 255, 255, 0.58); border-radius: 999px; color: #fff; background: #24332d; font-size: 0.56rem; font-weight: 850; letter-spacing: 0.1em; }
.presenter-cursor.clicking svg { animation: presenter-click 220ms ease-out; }
@keyframes presenter-click { 50% { transform: scale(0.84); } }
.presenter-hud { position: fixed; right: 18px; bottom: 18px; z-index: 52; width: min(410px, calc(100vw - 36px)); padding: 15px; pointer-events: auto; border: 1px solid #5a6b63; border-radius: 13px; background: #1d2924; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3); transition: top 420ms ease, bottom 420ms ease; }
.presenter-hud.hud-top { top: 18px; bottom: auto; }
.presenter-hud.hud-left { right: auto; left: 18px; }
.presenter-hud > code { display: block; color: #fff; font-size: 0.92rem; font-weight: 750; overflow-wrap: anywhere; }
.presenter-call, .presenter-underhood { padding: 9px 10px; border: 1px solid #45554e; border-radius: 8px; background: #25342e; }
.presenter-call { margin-top: 10px; }
.presenter-underhood { margin-top: 7px; }
.presenter-call > span, .presenter-underhood > span { display: block; margin-bottom: 4px; color: #c7d7ce; font-size: 0.54rem; font-weight: 850; letter-spacing: 0.1em; }
.presenter-call pre, .presenter-underhood p { margin: 0; color: #d4dcd7; font-size: 0.66rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.presenter-hud > footer { display: flex; justify-content: flex-end; gap: 6px; margin: 10px 0 0; padding: 0; border: 0; }
.presenter-hud > footer button { padding: 7px 9px; font-size: 0.62rem; }
.presenter-hud > footer button:first-child { margin-right: auto; }
.presenter-hud button.ghost { color: #fff; border-color: #53645c; background: transparent; }

body.presenter-active { overflow: hidden; }
body.presenter-active .hero, body.presenter-active .why-grid, body.presenter-active > footer { display: none; }
body.presenter-active .site-header { height: 58px; max-width: none; padding-inline: 18px; }
body.presenter-active .brand-lockup { width: 88px; }
body.presenter-active main { max-width: none; height: calc(100vh - 58px); padding: 12px 18px 18px; }
body.presenter-active .workspace { height: 100%; border-radius: 14px; grid-template-columns: minmax(0, 1.62fr) minmax(360px, 0.78fr); }
body.presenter-active .catalog-panel, body.presenter-active .agent-panel { min-height: 0; padding: 18px; overflow: auto; scroll-behavior: smooth; }
body.presenter-active .panel-heading { margin-bottom: 12px; }
body.presenter-active .panel-heading h2 { font-size: 1.25rem; }
body.presenter-active .conversion-path { margin-bottom: 12px; padding-block: 10px; }
body.presenter-active .product-grid { min-height: 250px; }
body.presenter-active, body.presenter-active * { cursor: none !important; }
body.presenter-waiting .presenter-focus { border-color: #7fa28f; }
body.presenter-waiting .presenter-cursor path { fill: #7fa28f; }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.policy-page { max-width: 820px; min-height: calc(100vh - 190px); margin: 0 auto; padding: 72px 36px; }
.policy-page .eyebrow { display: block; margin-bottom: 18px; }
.policy-page h1 { margin: 0 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 7vw, 4.8rem); font-weight: 500; letter-spacing: -0.045em; }
.policy-page h2 { margin: 34px 0 10px; font-size: 1.2rem; }
.policy-page p, .policy-page li { color: var(--muted); line-height: 1.7; }
.policy-page ul { padding-left: 20px; }
.policy-page .effective { color: var(--forest); font-size: 0.8rem; }

@media (max-width: 1040px) {
  .workspace { grid-template-columns: 1fr; }
  .agent-panel { border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 760px) {
  .site-header, main, body > footer { padding-left: 18px; padding-right: 18px; }
  .site-header { height: 68px; }
  .brand-lockup { width: 96px; }
  .presenter-toggle { display: none; }
  .status-cluster { max-width: 150px; text-align: right; font-size: 0.66rem; }
  .hero { padding: 46px 0 30px; }
  .hero h1 br { display: none; }
  .hero-next { display: grid; }
  .hero-next a { justify-self: start; }
  .workspace { border-radius: 13px; }
  .catalog-panel, .agent-panel { padding: 20px; }
  .decision-row, .search-row, .itinerary-inputs, .intent-selects, .intent-constraints, .refinement-choices, .product-grid, .projection-grid, .why-grid, .result-facts, .itinerary-summary { grid-template-columns: 1fr; }
  .itinerary-inputs label.itinerary-field-wide, .itinerary-inputs > input { grid-column: auto; }
  .itinerary-form-footer, .itinerary-view-heading { display: grid; }
  .itinerary-day-list li { grid-template-columns: 76px minmax(0, 1fr); }
  .itinerary-price { grid-column: 2; text-align: left; }
  .conversion-path-heading { display: grid; }
  .conversion-path-status { text-align: left; }
  .conversion-path ol { grid-template-columns: 1fr; }
  .action-dock { display: grid; }
  body > footer { display: grid; }
  .policy-page { padding: 54px 18px; }
}
