:root {
  --bg: #0a0a0a; --panel: #101518; --card: #171f23; --bubble: #20292d;
  --line: #2c363b; --text: #f2f4f3; --soft: #a6b0b3; --muted: #89979c;
  --olive: #b5c486; --olive-tint: #273222; --error: #ffb6aa; --input: #141c20;
  color-scheme: dark; font-family: 'Geist', system-ui, sans-serif;
}
:root[data-theme="light"] {
  --bg: #fafbf8; --panel: #fff; --card: #f1f4ec; --bubble: #edf1ed;
  --line: #d3dacf; --text: #172019; --soft: #566256; --muted: #5f6b5e;
  --olive: #51662b; --olive-tint: #e3ebd3; --error: #a52e22; --input: #f6f8f3;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .5; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.sr, .honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; opacity: 0; pointer-events: none; top: -100px; left: 12px; background: var(--olive); color: #111; padding: 12px; z-index: 10; }
.skip:focus { top: 12px; opacity: 1; pointer-events: auto; }
.site-header { max-width: 1240px; margin: 0 auto; padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-family: 'Audiowide', 'Geist', sans-serif; font-size: 21px; }
.site-header nav { display: flex; gap: 28px; color: var(--soft); font-size: 13px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .text-button:hover { color: var(--olive); }
main { max-width: 1176px; margin: 0 auto; padding: 0 24px; }
.intro { padding: 60px 0 42px; }
.eyebrow { font-size: 11px; letter-spacing: .12em; color: var(--olive); font-weight: 600; }
h1 { font-size: clamp(38px, 4.5vw, 60px); letter-spacing: -.035em; line-height: 1.08; font-weight: 500; margin: 15px 0 21px; }
.intro > p:last-child { color: var(--soft); font-size: 17px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); align-items: start; gap: 28px; }
.conversation { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; min-width: 0; }
.panel-header { display: flex; align-items: center; gap: 12px; padding: 21px 24px; border-bottom: 1px solid var(--line); }
.assistant-mark { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; background: var(--card); }
h2 { font-size: 18px; font-weight: 500; }
.panel-header h2 { font-size: 15px; }
.panel-header p { color: var(--muted); font-size: 12px; }
.live-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }
.chat-log { min-height: 270px; max-height: 420px; padding: 28px 24px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.message { max-width: 94%; margin-bottom: 22px; overflow-wrap: anywhere; }
.message:last-child { margin-bottom: 0; }
.message-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.message p { white-space: pre-wrap; }
.message p + p { margin-top: 14px; }
.message.user { margin-left: auto; background: var(--olive-tint); border-radius: 12px 12px 3px 12px; padding: 13px 16px; }
.message.user .message-label { color: var(--soft); }
.chat-bottom { padding: 0 24px 20px; }
.suggestion { display: flex; gap: 16px; width: 100%; padding: 13px 15px; text-align: left; font-size: 13px; color: var(--olive); background: transparent; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 20px; }
.suggestion:hover { background: var(--olive-tint); border-color: var(--olive); }
.suggestion span { margin-left: auto; }
.status { color: var(--olive); font-size: 12px; min-height: 20px; padding-bottom: 8px; }
.status:has(#chat-status-text:empty):has(#review-link[hidden]) { display: none; }
#review-link { display: block; width: fit-content; margin-top: 5px; font-weight: 500; }
#request-record { scroll-margin-top: 24px; }
.composer { border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: flex-end; gap: 10px; padding: 12px; background: var(--input); }
.composer:focus-within { border-color: var(--olive); }
.composer textarea { width: 100%; min-height: 44px; max-height: 160px; resize: vertical; border: 0; background: none; padding: 2px 3px; font-size: 14px; line-height: 1.5; }
.composer textarea:focus { outline: none; }
textarea::placeholder { color: var(--muted); }
.composer button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--olive); color: var(--bg); flex-shrink: 0; display: grid; place-items: center; }
.composer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.privacy-note { font-size: 11px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.record { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.record-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.record-header h2 { margin-top: 6px; font-size: 21px; letter-spacing: -.02em; }
.record-icon { border: 1px solid var(--line); border-radius: 10px; padding: 8px; line-height: 0; color: var(--olive); }
.record-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.record-state { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 24px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.record.is-ready #record-state { color: var(--olive); }
.record-fields { margin: 0; }
.record-fields > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
dt { font-size: 11px; color: var(--soft); margin-bottom: 4px; }
dt span { font-size: 10px; color: var(--muted); margin-left: 4px; }
dd { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }
dd.is-filled { color: var(--text); }
.record-need { min-height: 88px; }
.text-button { font-size: 12px; background: transparent; border: 0; color: var(--soft); padding: 13px 0; }
.text-button span { margin-left: 6px; }
.record-footer { margin-top: 12px; }
.record-footer > p { font-size: 12px; line-height: 1.6; color: var(--soft); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; line-height: 1.6; color: var(--soft); margin-top: 20px; }
.consent input { accent-color: var(--olive); width: 16px; height: 16px; margin: 1px 0 0; flex-shrink: 0; }
.primary { width: 100%; display: flex; justify-content: space-between; background: var(--olive); color: var(--bg); border: 0; border-radius: 9px; padding: 13px 16px; font-size: 14px; font-weight: 600; margin-top: 18px; }
.primary:hover { filter: brightness(1.08); }
.send-caption { text-align: center; margin-top: 10px; font-size: 10px; color: var(--muted); }
#details-editor { padding: 14px 0; }
#details-editor p { color: var(--soft); font-size: 12px; margin-bottom: 16px; }
#details-editor label { display: block; font-size: 12px; margin-top: 13px; }
#details-editor label span { color: var(--muted); font-size: 10px; margin-left: 5px; }
#details-editor input, #details-editor textarea { width: 100%; border: 1px solid var(--line); background: var(--input); border-radius: 6px; padding: 9px 10px; margin-top: 5px; resize: vertical; font-size: 14px; }
.secondary { border: 1px solid var(--line); background: var(--input); border-radius: 7px; font-size: 12px; padding: 9px 15px; margin: 16px 16px 0 0; }
.error { color: var(--error); background: color-mix(in srgb, var(--error) 6%, transparent); border-radius: 7px; padding: 10px; margin-bottom: 12px; font-size: 12px; }
.error button { border: 0; background: transparent; color: inherit; text-decoration: underline; font-size: 12px; margin-left: 8px; }
#submit-error { margin-top: 15px; color: var(--error); }
.success { padding-top: 14px; }
.success-check { display: grid; place-items: center; width: 36px; height: 36px; color: var(--olive); background: var(--olive-tint); border-radius: 50%; margin-bottom: 14px; }
.success h3 { font-size: 22px; font-weight: 500; }
.success p { font-size: 13px; color: var(--soft); margin-top: 8px; }
.success a { display: inline-block; margin-top: 20px; font-size: 13px; color: var(--olive); }
.success .reference { font-size: 11px; color: var(--muted); }
.direct-contact { color: var(--muted); font-size: 13px; text-align: center; margin: 30px 0 65px; }
.direct-contact a { color: var(--text); white-space: nowrap; }
.site-footer { max-width: 1176px; margin: 0 auto; padding: 25px 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 11px; }
.site-footer span { margin-right: auto; }
.no-script { margin: 24px 0; }
@media (max-width: 760px) {
  .site-header { padding: 20px; }
  .site-header nav { gap: 18px; font-size: 12px; }
  .site-header nav a:first-child { display: none; }
  main { padding: 0 18px; }
  .intro { padding: 38px 0 30px; }
  .intro > p:last-child { font-size: 15px; }
  .desktop-break { display: none; }
  .contact-layout { grid-template-columns: 1fr; gap: 18px; }
  .panel-header { padding: 18px; }
  .chat-log { padding: 23px 18px; min-height: 200px; max-height: 350px; }
  .chat-bottom { padding: 0 18px 18px; }
  .message { font-size: 14px; }
  .composer textarea { font-size: 16px; }
  .record { padding: 22px; }
  .direct-contact { margin: 28px 15px 42px; }
  .site-footer { padding: 23px 20px; gap: 15px; }
  .site-footer span { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .message { animation: appear .18s ease-out; }
  @keyframes appear { from { opacity: 0; transform: translateY(4px); } }
}
