:root {
  --ink: #10131f;
  --ink-soft: #1b2030;
  --paper: #f6f7f4;
  --white: #fff;
  --line: #d9ddd8;
  --muted: #626a72;
  --blue: #3f8cff;
  --green: #4bc58b;
  --yellow: #f0c75e;
  --red: #c34747;
  --shadow: 0 20px 55px rgba(16, 19, 31, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(63, 140, 255, .38); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 100; padding: 12px 16px; color: var(--ink); background: var(--white); visibility: hidden; transform: translateY(-180%); }
.skip-link:focus-visible { visibility: visible; transform: translateY(0); }
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; padding: 0 max(24px, calc((100vw - 1440px) / 2)); color: var(--white); background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.14); }
.brand { display: inline-flex; align-items: flex-end; width: max-content; color: var(--white); text-decoration: none; }
.brand-word { font-size: 38px; line-height: .82; font-weight: 850; }
.brand-dot { width: 9px; height: 9px; margin: 0 7px 1px 3px; border-radius: 50%; background: var(--blue); }
.brand-context { margin-bottom: 1px; color: rgba(255,255,255,.62); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.header-trust { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.72); font-size: 13px; }
.header-trust span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.privacy-link { justify-self: end; color: rgba(255,255,255,.72); font-size: 13px; text-decoration: none; }
.assistant-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); min-height: calc(100vh - 72px); }
.conversation-panel { display: flex; flex-direction: column; min-width: 0; padding: 46px max(32px, calc((100vw - 1440px) / 2)) 34px max(32px, calc((100vw - 1440px) / 2)); background: var(--white); border-right: 1px solid var(--line); }
.conversation-heading, dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 8px; color: #4c5b70; font-size: 11px; font-weight: 800; text-transform: uppercase; }
h1, h2, p { letter-spacing: 0; }
h1 { max-width: 720px; margin: 0; font-size: clamp(30px, 4vw, 54px); line-height: 1.02; }
h2 { margin: 0; font-size: 25px; line-height: 1.15; }
.icon-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 50%; font-size: 23px; }
.assistant-status { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 24px 0 8px; color: var(--muted); font-size: 13px; }
.assistant-status span { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.assistant-status p { margin: 0; }
.conversation { display: flex; flex-direction: column; gap: 12px; max-height: 390px; min-height: 170px; padding: 14px 0 8px; overflow-y: auto; scrollbar-width: thin; }
.message { max-width: 78%; padding: 13px 16px; border-radius: 6px; }
.message p { margin: 0 0 8px; line-height: 1.48; }
.message p:last-child { margin-bottom: 0; }
.assistant-message { align-self: flex-start; background: #eef1ed; }
.candidate-message { align-self: flex-end; color: var(--white); background: var(--ink-soft); }
.boundary-message { border-left: 4px solid var(--yellow); }
.quick-options { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; }
.quick-options button, .next-actions button, .conversation-footer button, .quiet-button, .file-button, .voice-preview button { min-height: 44px; padding: 10px 14px; color: var(--ink); background: var(--white); border: 1px solid #bfc6c2; border-radius: 4px; }
.quick-options button:hover, .next-actions button:hover { border-color: var(--ink); }
.answer-form { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.answer-form > textarea, .voice-preview textarea { width: 100%; min-height: 72px; padding: 14px; resize: vertical; color: var(--ink); background: var(--white); border: 1px solid #aeb6b1; border-radius: 4px; }
.composer-actions { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.composer-actions .send-button { margin-left: auto; }
.send-button, .primary-action { min-height: 44px; padding: 10px 18px; color: var(--white); background: var(--ink); border: 1px solid var(--ink); border-radius: 4px; font-weight: 750; }
#microphone-button { color: var(--ink); font-size: 12px; }
#microphone-button.recording { color: var(--white); background: var(--red); border-color: var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(195,71,71,.16); } }
.voice-preview { margin: 8px 0; padding: 12px; background: #fff8e5; border: 1px solid #ead59f; border-radius: 4px; }
.voice-preview span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 750; }
.voice-preview div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.document-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; margin: 10px 0; padding: 14px; background: #f3f6fb; border: 1px solid #cbd7e9; }
.document-panel p, .document-status { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.document-status { grid-column: 1 / -1; }
.conversation-footer { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 14px; }
.conversation-footer button { min-height: 34px; padding: 4px 0; color: var(--muted); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.value-panel { min-width: 0; padding: 54px max(32px, calc((100vw - 1440px) / 2)) 46px 46px; background: var(--paper); }
.value-heading { max-width: 590px; }
.value-heading > p:last-child { color: var(--muted); line-height: 1.5; }
.value-content { display: grid; gap: 16px; margin-top: 30px; }
.empty-value { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-value span { display: grid; place-items: center; width: 42px; height: 42px; color: var(--white); background: var(--ink); border-radius: 50%; font-size: 12px; font-weight: 800; }
.empty-value p { margin: 0; color: var(--muted); line-height: 1.5; }
.value-section { padding: 18px 0; border-top: 1px solid var(--line); }
.value-section h3 { margin: 0 0 10px; font-size: 19px; }
.value-section > p { margin: 0; color: var(--muted); line-height: 1.55; }
.direction-list, .vacancy-list { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.direction-list li { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.direction-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.vacancy-card { padding: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 20px rgba(16,19,31,.04); }
.vacancy-card header { display: flex; justify-content: space-between; gap: 16px; }
.vacancy-card h4 { margin: 0; font-size: 17px; }
.vacancy-card small { color: var(--muted); }
.vacancy-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.vacancy-card .uncertainty { color: #7a5d18; }
.salary-box { padding: 15px; background: #eaf1ff; border-left: 4px solid var(--blue); }
.salary-box strong { display: block; margin-bottom: 6px; }
.salary-box p { margin: 0; color: #3e4c60; line-height: 1.45; }
.next-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.next-actions .primary-action { grid-column: 1 / -1; }
.form-error { min-height: 20px; margin: 8px 0 0; color: var(--red); font-size: 13px; }
dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; color: var(--ink); background: var(--white); border: 0; border-radius: 6px; box-shadow: var(--shadow); overflow: auto; }
dialog::backdrop { background: rgba(16,19,31,.66); }
dialog form, .dialog-content { display: grid; gap: 16px; padding: 28px; }
dialog label:not(.consent-row) { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
dialog input { min-height: 44px; padding: 9px 11px; border: 1px solid #aeb6b1; border-radius: 4px; }
dialog small { color: var(--muted); font-weight: 400; }
.consent-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; line-height: 1.4; }
.consent-row input { min-height: auto; }
.known-data { display: grid; gap: 8px; padding: 14px; background: #f2f4f1; }
.known-data p { margin: 0; line-height: 1.45; }
.danger-button { min-height: 44px; color: var(--red); background: var(--white); border: 1px solid var(--red); border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .assistant-shell { grid-template-columns: 1fr; }
  .conversation-panel { min-height: calc(100vh - 72px); padding: 38px 30px 28px; border-right: 0; }
  .value-panel { padding: 40px 30px 60px; border-top: 1px solid var(--line); }
}
@media (min-width: 681px) and (max-width: 980px) {
  .assistant-shell { padding-inline: 32px; }
  .conversation-panel, .value-panel { padding-inline: 28px; }
}
@media (max-width: 680px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 64px; padding: 0 16px; }
  .header-trust { display: none; }
  .brand-word { font-size: 34px; }
  .brand-context { font-size: 9px; }
  .assistant-shell { min-height: calc(100vh - 64px); }
  .conversation-panel { min-height: calc(100vh - 64px); padding: 28px 16px max(22px, env(safe-area-inset-bottom)); }
  .conversation-heading h1 { font-size: 34px; }
  .conversation { max-height: none; min-height: 230px; }
  .message { max-width: 92%; }
  .quick-options { display: grid; grid-template-columns: 1fr; }
  .quick-options button { width: 100%; text-align: left; }
  .document-panel { grid-template-columns: 1fr; }
  .value-panel { padding: 34px 16px 56px; }
  .next-actions { grid-template-columns: 1fr; }
  .next-actions .primary-action { grid-column: auto; }
  .composer-actions { position: sticky; bottom: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--white); }
  .conversation-footer { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
