:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #1d1c1a;
  --muted: #6b6862;
  --line: #e4e1db;
  --accent: #2f5d50;
  --accent-text: #ffffff;
  --accent-soft: #e5efeb;
  --bubble-user: #2f5d50;
  --bubble-user-text: #ffffff;
  --bubble-bot: #efede8;
  --ok: #2e7d4f;
  --warn: #a8641a;
  --bad: #b3372f;
  --radius: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --surface: #1e1e1c;
    --text: #ecebe7;
    --muted: #a19e97;
    --line: #34332f;
    --accent: #7fb8a5;
    --accent-text: #10201b;
    --accent-soft: #23332e;
    --bubble-user: #3c7464;
    --bubble-user-text: #ffffff;
    --bubble-bot: #2a2a27;
    --ok: #6cc28f;
    --warn: #e0a35a;
    --bad: #ec7d74;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.55; }
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 32px 16px 64px; }
header.site { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .01em; color: var(--muted); font-size: 14px; }
header.site svg { width: 20px; height: 20px; color: var(--accent); }
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; margin: 24px 0 8px; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 640px; }
.jobs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.job h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.job .place { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.job .place svg { width: 16px; height: 16px; }
.job h3 { margin: 8px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.job ul { margin: 0; padding-left: 18px; }
.job li { margin: 3px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer; background: var(--accent); color: var(--accent-text); text-decoration: none; }
.btn:hover { filter: brightness(1.05); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn svg { width: 18px; height: 18px; }
.job .btn { margin-top: auto; }
.note { font-size: 14px; color: var(--muted); margin-top: 28px; }
footer { margin-top: 40px; font-size: 13px; color: var(--muted); }

/* chat */
.chat-page { display: flex; flex-direction: column; height: 100dvh; max-width: 720px; margin: 0 auto; }
.chat-head { padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-head .t { font-weight: 600; }
.chat-head .s { font-size: 13px; color: var(--muted); }
.log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; }
.msg.assistant { background: var(--bubble-bot); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--bubble-user); color: var(--bubble-user-text); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.voice { font-style: italic; }
.typing { color: var(--muted); font-size: 14px; align-self: flex-start; }
.composer { display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); align-items: flex-end; }
.composer textarea { flex: 1; resize: none; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); max-height: 140px; min-height: 44px; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.icon-btn.recording { background: var(--bad); color: #fff; border-color: var(--bad); }
.icon-btn[disabled] { opacity: .5; cursor: not-allowed; }
.rec-status { font-size: 13px; color: var(--bad); padding: 0 16px 6px; min-height: 0; }
.done { padding: 14px 16px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); background: var(--surface); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
