:root {
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  color: #141f35;
  background: #f3f6fa;
  line-height: 1.55;
  --muted: #4c5d77;
  --line: #dbe3ee;
  --accent: #234fb8;
  --navy: #0c1932;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; }
button, textarea, select { font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #5984e3; outline-offset: 4px; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
h1, h2, h3, h4, p { margin: 0; }

.shell { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid #e4eaf2; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 70px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; text-decoration: none; font-size: 1.075rem; font-weight: 760; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark, .chat-avatar, .message-avatar { display: grid; place-items: center; flex: none; }
.brand-mark { width: 35px; height: 35px; color: #fff; background: #142d60; border-radius: 10px; }
.brand-accent { color: var(--accent); }
.header-inner nav { display: flex; align-items: center; gap: 29px; }
.header-inner nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 630; }
.header-inner nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.version { justify-self: end; display: inline-flex; align-items: center; gap: 7px; color: #375077; background: #eef3fb; border: 1px solid #e1e9f7; border-radius: 99px; padding: 5px 11px; font-size: .875rem; font-weight: 650; white-space: nowrap; }

.hero { display: grid; grid-template-columns: 1.07fr .93fr; min-height: 354px; margin-top: 32px; overflow: hidden; border-radius: 22px; background: var(--navy); color: #fff; }
.hero-copy { padding: 39px clamp(35px, 4.2vw, 58px) 43px; align-self: center; }
.hero h1 { font-size: clamp(2.65rem, 4.6vw, 4rem); font-weight: 760; letter-spacing: -.061em; line-height: 1.035; }
.hero-description { max-width: 410px; margin: 17px 0 24px; color: #d1ddef; font-size: 1.025rem; line-height: 1.55; }
.hero-image { position: relative; isolation: isolate; min-width: 0; background: #507299; }
.hero-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0c193232, transparent 42%); pointer-events: none; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; border: 1px solid transparent; border-radius: 9px; padding: 8px 15px; text-decoration: none; font-size: .9rem; font-weight: 700; line-height: 1.25; }
.button-hero { padding: 11px 17px; background: #d7e6ff; color: #112c61; }
.button-hero:hover { background: #f4f8ff; }

.practice { padding: 32px 0 34px; scroll-margin-top: 16px; }
.section-heading { margin-bottom: 17px; }
.section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.12rem); font-weight: 755; line-height: 1.16; letter-spacing: -.04em; }
.workbench { display: grid; align-items: start; grid-template-columns: minmax(240px, .82fr) minmax(0, 2fr); gap: 20px; }

.interview { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: clip; }
.chat-header, .chat-heading { display: flex; align-items: center; }
.chat-header { justify-content: space-between; gap: 12px; padding: 14px 19px; border-bottom: 1px solid #e5eaf2; }
.chat-heading { min-width: 0; gap: 11px; }
.chat-avatar { width: 39px; height: 39px; background: #e7efff; border-radius: 10px; color: #294fa8; }
.chat-heading h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 750; }
.chat-heading p { color: var(--muted); margin-top: 2px; font-size: .875rem; }
.transcript { height: 184px; overflow: auto; overscroll-behavior: contain; scrollbar-color: #b5c6e0 transparent; padding: 16px 19px 17px; background: #f8faff; }
.message { display: flex; gap: 9px; align-items: flex-end; margin-bottom: 14px; }
.message:last-child { margin-bottom: 0; }
.message-avatar { width: 29px; height: 29px; background: #e9f0ff; border-radius: 8px; color: #3358ad; }
.bubble-group { max-width: min(86%, 520px); min-width: 0; }
.speaker { display: block; color: var(--muted); font-size: .8125rem; font-weight: 650; margin: 0 0 3px 2px; }
.bubble { padding: 9px 12px; border-radius: 12px 12px 12px 3px; border: 1px solid #e1e8f3; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; }

.composer { padding: 10px 19px 15px; border-top: 1px solid #e5ebf4; }
.input-row { display: flex; align-items: stretch; gap: 8px; }
.input-row textarea { display: block; width: 100%; min-width: 0; min-height: 43px; border: 1px solid #d9e2ef; border-radius: 9px; padding: 8px 11px; background: #fbfcfe; color: #17243a; resize: vertical; }
.input-row textarea:disabled { opacity: 1; resize: none; color: #5d6b80; background: #f4f6fa; }
.input-row textarea::placeholder { color: #5d6b80; }
.button-send { white-space: nowrap; color: #fff; background: #2450b8; }
.button-send:hover:not(:disabled) { background: #153b98; }
.button-send:disabled { color: #51678e; background: #e6edfa; }

.site-footer { border-top: 1px solid #dde5ee; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 23px; min-height: 62px; padding-block: 12px; color: var(--muted); font-size: .9rem; }

.icon { display: block; position: relative; }
.icon-brand { width: 13px; height: 17px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-brand::before { content: ''; position: absolute; width: 6px; left: 2px; top: 4px; border-top: 1.5px solid currentColor; box-shadow: 0 3px currentColor, 0 6px currentColor; }
.icon-brand { transform: rotate(-12deg); }
.icon-chat { width: 16px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; margin-bottom: 3px; }
.icon-chat::before { content: ''; position: absolute; width: 4px; height: 4px; left: 2px; bottom: -3px; transform: skewY(-35deg); border-bottom: 1.5px solid currentColor; border-left: 1.5px solid currentColor; background: #e9f0ff; }
.icon-chat::after { content: ''; position: absolute; top: 4px; left: 3px; width: 2px; height: 2px; border-radius: 50%; background: currentColor; box-shadow: 3px 0 currentColor, 6px 0 currentColor; }
.message-avatar .icon-chat { transform: scale(.82); }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 2; top: 8px; left: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; }


@media (max-width: 1000px) {
  .wide-break { display: none; }
  .hero-copy { padding-inline: 34px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 60px; gap: 12px; }
  .header-inner nav { display: none; }
  .hero { grid-template-columns: 1fr; margin-top: 19px; border-radius: 16px; }
  .hero-copy { padding: 27px 23px 30px; }
  .hero h1 { font-size: clamp(2.35rem, 7vw, 3.45rem); }
  .hero-image { min-height: 185px; max-height: 260px; height: 42vw; }
  .hero-image img { object-position: 50% 53%; }
  .practice { padding-top: 24px; }
  .workbench { grid-template-columns: 1fr; gap: 13px; }
  .chat-header, .transcript, .composer { padding-inline: 13px; }
  .transcript { height: 214px; }
}

@media (max-width: 390px) {
  .brand { font-size: 1rem; gap: 6px; }
  .version { font-size: .8125rem; }
  .chat-heading { gap: 7px; }
  .chat-avatar { width: 30px; height: 33px; }
  .input-row { flex-wrap: wrap; }
  .input-row .button { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.setup-panel { padding: 18px 18px 19px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.setup-panel h3 { margin-bottom: 15px; font-size: 1.125rem; letter-spacing: -.025em; }
.setup-panel label { display: block; margin-bottom: 5px; color: #344861; font-size: .875rem; font-weight: 690; }
.setup-panel select { display: block; width: 100%; min-height: 44px; margin-bottom: 14px; padding: 8px 11px; border: 1px solid #d5dfed; border-radius: 8px; background: #f9fbff; color: #17243a; }
.setup-panel select:disabled { opacity: 1; color: #50617b; background: #f0f3f8; }
.setup-button { width: 100%; white-space: normal; }
.privacy-note { padding: 11px 3px 0; color: var(--muted); font-size: .875rem; }
.chat-welcome { display: grid; align-content: center; min-height: 205px; padding: 24px; background: #f8faff; }
.chat-welcome h4, .review h4 { font-size: 1.36rem; letter-spacing: -.035em; line-height: 1.2; }
.chat-welcome p { max-width: 460px; margin-top: 7px; color: var(--muted); }
.chat-progress { display: flex; align-items: center; gap: 13px; padding: 10px 19px; border-bottom: 1px solid #edf1f7; color: #425575; font-size: .875rem; font-weight: 650; }
.chat-progress p { flex: none; }
progress { width: 100%; height: 6px; border: 0; border-radius: 99px; appearance: none; background: #e4ebf7; }
progress::-webkit-progress-bar { border-radius: 99px; background: #e4ebf7; }
progress::-webkit-progress-value { border-radius: 99px; background: #5e84db; }
progress::-moz-progress-bar { border-radius: 99px; background: #5e84db; }
.transcript { height: auto; max-height: 340px; }
.chat-transcript { min-height: 220px; height: clamp(220px, 33vh, 340px); }
.transcript:focus-visible { outline-offset: -3px; }
.message-user { justify-content: end; }
.message-user .speaker { text-align: right; margin-right: 3px; }
.message-user .bubble { background: #e5edff; border-color: #dee8ff; border-radius: 12px 12px 3px 12px; }
.button-secondary { border-color: #dce4ef; background: #fff; color: #344b72; }
.button-secondary:hover { background: #ebf2ff; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.chip, .text-button { color: #244d9d; font-weight: 650; font-size: .875rem; }
.chip { border: 1px solid #d7e3f9; border-radius: 7px; padding: 4px 8px; background: #f0f5ff; }
.chip:hover { background: #e4edff; }
.text-button { border: 0; padding: 5px 0; background: transparent; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.hint { margin-bottom: 10px; padding: 9px 12px; border-left: 3px solid #6c91e4; color: #344b72; background: #edf3ff; font-size: .9rem; }
.hint-example { margin-top: 4px; color: #455a7b; }
.input-row .button { align-self: end; }
.answer-feedback:not(:empty) { margin-top: 7px; color: #912e23; font-size: .875rem; }
.input-row textarea[aria-invalid="true"] { border-color: #b74a3d; }
.composer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 14px; margin-top: 5px; }
.composer-actions span { margin-left: auto; color: var(--muted); font-size: .8125rem; }
.review { padding: 20px 19px; }
.review > p { margin: 8px 0 13px; color: var(--muted); }
#review-items { display: grid; gap: 8px; }
.review-item { padding: 10px 12px; border: 1px solid #dce5f2; border-radius: 9px; background: #f8faff; }
.review-item-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
.review-item h5 { margin: 0; font-size: 1rem; }
.review-tag { padding: 2px 6px; border-radius: 5px; background: #e7effe; color: #284a90; font-size: .8125rem; font-weight: 650; }
.tag-check { background: #fff0d6; color: #684a11; }
.review-item blockquote { margin: 7px 0 5px; padding-left: 9px; border-left: 2px solid #b8c9e5; color: #263b5b; overflow-wrap: anywhere; white-space: pre-wrap; }
.review-tip, .review-extra-label { color: var(--muted); font-size: .875rem; }
.review-extra-label { margin-top: 8px; font-weight: 650; }
.review details { margin-top: 14px; padding-block: 9px; border-block: 1px solid #e4eaf2; }
.review summary { color: #244d9d; cursor: pointer; font-weight: 650; }
.review details .transcript { margin-top: 8px; border-radius: 8px; }
.review .review-note { margin-top: 12px; font-size: .9rem; }
.footer-inner a { color: var(--accent); text-underline-offset: 4px; }

@media (max-width: 760px) {
  .chat-progress, .review, .chat-welcome { padding-inline: 13px; }
  .privacy-note { padding-block: 8px 1px; }
}
@media (max-width: 490px) {
  .composer-actions span { display: none; }
}
@media (max-width: 390px) {
  .chat-header { align-items: start; }
  .chat-header .button { padding-inline: 7px; }
  .version { display: none; }
}

#model-status { min-height: 1.4em; margin: -4px 0 13px; color: var(--muted); font-size: .875rem; }
.model-review { padding: 13px 14px; margin-bottom: 13px; background: #edf3ff; border: 1px solid #dce7fa; border-radius: 9px; overflow-wrap: anywhere; }
.model-review h5 { margin: 0 0 6px; font-size: 1rem; }
.model-review p { margin: 0; white-space: pre-wrap; color: #263b5b; }
