@font-face {
  font-family: "Manrope Display";
  src: url("/deepseek/fonts/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f2f5f2;
  --page-strong: #e8eeea;
  --surface: #fbfdfb;
  --surface-soft: #eaf1ed;
  --surface-muted: #dfe9e3;
  --text: #16221c;
  --text-soft: #4f6157;
  --text-faint: #5f7167;
  --line: #d5dfd9;
  --line-strong: #bccbc2;
  --accent: #1f6b55;
  --accent-strong: #165542;
  --accent-soft: #dcece4;
  --on-accent: #f6fbf8;
  --danger: #a33d3d;
  --danger-soft: #f7e7e5;
  --shadow-panel: 0 22px 60px rgba(37, 66, 51, 0.13), 0 4px 14px rgba(37, 66, 51, 0.06);
  --radius-panel: 16px;
  --radius-control: 12px;
  --header-height: 64px;
  --content-width: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Manrope Display", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --font-ui: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --font-code: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #111713;
    --page-strong: #18221c;
    --surface: #18201b;
    --surface-soft: #202c25;
    --surface-muted: #2a392f;
    --text: #edf4ef;
    --text-soft: #b8c8be;
    --text-faint: #91a398;
    --line: #2d3c33;
    --line-strong: #405448;
    --accent: #73c5a5;
    --accent-strong: #91d8ba;
    --accent-soft: #203e31;
    --on-accent: #0f2118;
    --danger: #f0a29a;
    --danger-soft: #412725;
    --shadow-panel: 0 24px 68px rgba(0, 0, 0, 0.34), 0 4px 16px rgba(0, 0, 0, 0.2);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
textarea,
input,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button {
  border: 0;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--line-strong);
  background-clip: padding-box;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 48%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius-control);
  background: var(--text);
  color: var(--page);
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(16px) saturate(130%);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 40px, var(--content-width));
  height: 100%;
  margin: 0 auto;
}

.brand {
  width: fit-content;
  color: var(--text);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
}

.brand,
.intro-panel h1,
.section-copy h2,
.process-section > h2,
.model-copy h2,
.privacy-section h2,
.faq-section > h2,
.guide-hero h1,
.article-body h2,
.article-cta h2 {
  font-family: var(--font-display);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-soft);
  font-size: 14px;
}

.main-nav a,
.footer-links a {
  text-decoration: none;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.header-action {
  justify-self: end;
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
  padding: 8px 14px 9px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}

.header-action:hover {
  background: var(--accent-strong);
}

.header-action:active,
.send-button:active,
.quiet-button:active,
.starter-list button:active,
.quick-prompts button:active,
.capability-list button:active,
.prompt-submit:active {
  transform: translateY(1px) scale(0.99);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  width: min(100% - 40px, var(--content-width));
  min-height: calc(100dvh - var(--header-height));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.intro-panel {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding-top: 16px;
}

.intro-panel h1 {
  max-width: 9.5ch;
  margin: 0;
  font-size: clamp(42px, 4.15vw, 64px);
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.intro-lead {
  max-width: 30ch;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.48;
}

.service-facts {
  display: grid;
  gap: 7px;
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
  color: var(--text-faint);
  font-size: 13px;
}

.service-facts p {
  margin: 0;
}

.service-facts strong {
  color: var(--text);
  font-weight: 680;
}

.starter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.starter-list button,
.quick-prompts button,
.capability-list button {
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
  transition: border-color 160ms var(--ease), color 160ms var(--ease), background 160ms var(--ease), transform 120ms var(--ease);
}

.starter-list button {
  padding: 8px 11px;
}

.starter-list button:hover,
.quick-prompts button:hover,
.capability-list button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.chat-shell {
  display: flex;
  min-width: 0;
  height: min(720px, calc(100dvh - 116px));
  min-height: 580px;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.chat-toolbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 12px 20px;
}

.chat-toolbar > div:first-child {
  display: grid;
  gap: 1px;
}

.chat-toolbar strong {
  font-size: 14px;
  font-weight: 720;
}

.chat-toolbar span {
  color: var(--text-faint);
  font-size: 12px;
}

.chat-tools,
.mode-switcher {
  display: flex;
  align-items: center;
}

.chat-tools {
  gap: 8px;
}

.mode-switcher {
  gap: 2px;
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 3px;
}

.mode-button,
.quiet-button {
  cursor: pointer;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 680;
}

.mode-button {
  border-radius: 999px;
  background: transparent;
  padding: 6px 9px;
}

.mode-button:hover {
  color: var(--text);
}

.mode-button.active {
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: 0 2px 7px rgba(27, 65, 46, 0.1);
}

.quiet-button {
  border-radius: var(--radius-control);
  background: transparent;
  padding: 7px 8px;
}

.quiet-button:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.messages {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding: 24px clamp(18px, 4vw, 42px) 14px;
  overscroll-behavior: contain;
}

.message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: min(78%, 720px);
}

.message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.message-bubble {
  border-radius: var(--radius-panel);
  background: var(--surface-soft);
  padding: 12px 15px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.message.user .message-bubble {
  background: var(--accent);
  color: var(--on-accent);
}

.message-meta {
  color: var(--text-faint);
  font-size: 11px;
}

.message-actions {
  display: flex;
  gap: 6px;
}

.message-actions button,
.code-toolbar button {
  cursor: pointer;
  border-radius: 8px;
  background: transparent;
  color: var(--text-faint);
  padding: 4px 7px;
  font-size: 11px;
}

.message-actions button:hover,
.code-toolbar button:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.rich-text {
  display: grid;
  gap: 10px;
}

.rich-text p,
.rich-text ul,
.rich-text ol,
.rich-text h3,
.rich-text h4 {
  margin: 0;
}

.rich-text ul,
.rich-text ol {
  display: grid;
  gap: 5px;
  padding-left: 20px;
}

.rich-text h3 {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.3;
}

.rich-text h4 {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.35;
}

.rich-text code:not(.code-block code) {
  border-radius: 5px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  padding: 0.12em 0.36em;
  font-family: var(--font-code);
  font-size: 0.9em;
}

.code-block {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-control);
  background: #17211b;
  color: #e7f0ea;
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 10px;
  color: #a9bbb0;
  font-size: 11px;
}

.code-toolbar button {
  color: #cedbd3;
}

.code-block pre {
  margin: 0;
  overflow-x: auto;
  padding: 14px;
  tab-size: 2;
}

.code-block code {
  font-family: var(--font-code);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre;
}

.typing-bubble {
  display: flex;
  width: 112px;
  flex-direction: column;
  gap: 8px;
  border-radius: var(--radius-panel);
  background: var(--surface-soft);
  padding: 14px 15px;
}

.typing-line {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--surface-muted), var(--line-strong), var(--surface-muted));
  background-size: 200% 100%;
}

.typing-line:last-child {
  width: 62%;
}

.quick-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px clamp(18px, 4vw, 42px) 12px;
}

.quick-prompts[hidden] {
  display: none;
}

.quick-prompts button {
  min-height: 40px;
  border-radius: var(--radius-control);
  padding: 8px 11px;
  text-align: left;
}

.composer {
  margin: 0 clamp(16px, 3.4vw, 34px) 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 10px 10px 8px 14px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

.composer textarea {
  display: block;
  width: 100%;
  max-height: 160px;
  resize: none;
  overflow-y: auto;
  border: 0;
  outline: 0;
  background: transparent;
  caret-color: var(--accent);
  color: var(--text);
  font-size: 15px;
  line-height: 1.48;
}

.composer textarea::placeholder {
  color: var(--text-faint);
  opacity: 1;
}

.composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.composer-row > span {
  overflow: hidden;
  color: var(--text-faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-button,
.prompt-submit {
  cursor: pointer;
  border-radius: var(--radius-control);
  background: var(--accent-strong);
  color: var(--on-accent);
  font-weight: 720;
  white-space: nowrap;
  transition: transform 120ms var(--ease), filter 160ms var(--ease);
}

.send-button {
  padding: 8px 13px;
  font-size: 13px;
}

.send-button:hover,
.prompt-submit:hover {
  filter: brightness(1.08);
}

.send-button:disabled,
.prompt-submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.form-error {
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.chat-disclaimer {
  margin: 0 18px 11px;
  color: var(--text-faint);
  font-size: 10.5px;
  text-align: center;
}

.content-section,
.process-section,
.model-section,
.guides-section,
.privacy-section,
.faq-section,
.site-footer {
  width: min(100% - 40px, var(--content-width));
  margin-inline: auto;
}

.content-section,
.process-section,
.model-section,
.guides-section,
.faq-section {
  padding-block: clamp(76px, 9vw, 124px);
}

.section-copy {
  max-width: 670px;
}

.section-copy h2,
.process-section > h2,
.model-copy h2,
.privacy-section h2,
.faq-section > h2,
.guide-hero h1,
.article-body h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 710;
  letter-spacing: -0.038em;
  line-height: 1.03;
  text-wrap: balance;
}

.section-copy p,
.model-copy > p {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 18px;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin-top: 54px;
  border-top: 1px solid var(--line-strong);
}

.capability-list article {
  display: grid;
  grid-template-columns: minmax(110px, 0.34fr) 1fr auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.capability-list h3,
.process-flow h3,
.guide-grid h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.capability-list p,
.process-flow p,
.guide-grid p {
  margin: 0;
  color: var(--text-soft);
}

.capability-list button {
  padding: 7px 10px;
}

.process-section {
  border-top: 1px solid var(--line-strong);
}

.process-section > h2 {
  max-width: 14ch;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 54px;
}

.process-flow article {
  min-height: 190px;
  border-left: 1px solid var(--line-strong);
  padding: 0 30px 0 24px;
}

.process-flow article:first-child {
  border-left: 0;
  padding-left: 0;
}

.process-flow p {
  max-width: 30ch;
  margin-top: 12px;
}

.model-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
  border-radius: var(--radius-panel);
  background: var(--page-strong);
  padding-inline: clamp(24px, 5.5vw, 72px);
}

.model-copy h2 {
  max-width: 12ch;
}

.model-copy a,
.privacy-actions a {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent-strong);
  font-weight: 700;
}

.model-notes {
  margin: 0;
}

.model-notes div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  border-top: 1px solid var(--line-strong);
  padding: 22px 0 24px;
}

.model-notes div:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.model-notes dt {
  color: var(--text);
  font-weight: 720;
}

.model-notes dd {
  margin: 0;
  color: var(--text-soft);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 14px;
  margin-top: 52px;
}

.guide-grid a {
  display: flex;
  min-height: 165px;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 24px;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.guide-grid a:hover {
  transform: translateY(-3px);
  background: var(--surface-soft);
}

.guide-grid .guide-main {
  grid-row: span 3;
  min-height: 470px;
  background: var(--accent);
  color: var(--on-accent);
}

.guide-grid .guide-main:hover {
  background: var(--accent-strong);
}

.guide-main span {
  margin-bottom: auto;
  font-size: 13px;
  font-weight: 700;
}

.guide-main h3 {
  max-width: 12ch;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.038em;
  line-height: 1.02;
}

.guide-grid p {
  max-width: 42ch;
  margin-top: 10px;
}

.guide-main p {
  color: color-mix(in srgb, var(--on-accent) 82%, transparent);
}

.privacy-section {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(44px, 8vw, 120px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding-block: clamp(52px, 7vw, 86px);
}

.privacy-section h2 {
  max-width: 15ch;
  font-size: clamp(32px, 4vw, 52px);
}

.privacy-section p {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--text-soft);
}

.privacy-actions {
  align-self: end;
}

.privacy-actions a {
  margin-top: 16px;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(44px, 8vw, 120px);
}

.faq-section > h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line-strong);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 21px 42px 21px 0;
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.012em;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  margin-right: -34px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 450;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  max-width: 66ch;
  margin: -4px 0 22px;
  color: var(--text-soft);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-block: 32px 40px;
  color: var(--text-faint);
  font-size: 13px;
}

.site-footer p {
  margin: 8px 0 0;
}

.site-footer > p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.noscript-note,
.noscript-note:only-child {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 30;
  border-radius: var(--radius-control);
  background: var(--text);
  color: var(--page);
  padding: 13px 16px;
  text-align: center;
}

/* Guide pages */
.guide-hero {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 132px) 0 58px;
}

.guide-hero .back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

.guide-hero h1 {
  max-width: 15ch;
  font-size: clamp(44px, 7vw, 82px);
}

.guide-hero > p {
  max-width: 65ch;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: clamp(18px, 2vw, 22px);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(48px, 8vw, 96px);
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding-bottom: 110px;
}

.article-body {
  min-width: 0;
}

.article-body section {
  margin-top: 72px;
}

.article-body section:first-child {
  margin-top: 0;
}

.article-body h2 {
  max-width: 18ch;
  font-size: clamp(30px, 4vw, 44px);
}

.article-body h3 {
  margin: 32px 0 10px;
  font-size: 22px;
  letter-spacing: -0.022em;
}

.article-body p,
.article-body li {
  max-width: 70ch;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.72;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 9px;
  padding-left: 23px;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 28px);
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
}

.article-aside strong {
  display: block;
  margin-bottom: 10px;
}

.article-aside a {
  display: block;
  padding: 6px 0;
  color: var(--text-soft);
  font-size: 14px;
}

.prompt-example {
  margin: 24px 0;
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 22px;
}

.prompt-example strong {
  display: block;
  margin-bottom: 9px;
  color: var(--text);
}

.prompt-example p {
  margin: 0;
  color: var(--text);
  font-family: var(--font-code);
  font-size: 14px;
  line-height: 1.62;
  white-space: pre-wrap;
}

.prompt-example button {
  cursor: pointer;
  margin-top: 16px;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 700;
}

.article-cta {
  display: grid;
  gap: 18px;
  border-radius: var(--radius-panel);
  background: var(--accent);
  color: var(--on-accent);
  padding: clamp(24px, 5vw, 44px);
}

.article-cta h2,
.article-cta p {
  margin: 0;
  color: inherit;
}

.article-cta a {
  width: fit-content;
  border-radius: var(--radius-control);
  background: var(--on-accent);
  color: var(--accent-strong);
  padding: 10px 14px;
  font-weight: 760;
  text-decoration: none;
}

.prompt-builder {
  display: grid;
  gap: 18px;
  margin: 30px 0;
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: clamp(20px, 4vw, 32px);
}

.builder-field {
  display: grid;
  gap: 7px;
}

.builder-field label {
  color: var(--text);
  font-weight: 680;
}

.builder-field input,
.builder-field textarea,
.builder-field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  outline: 0;
  background: var(--page);
  padding: 10px 12px;
}

.builder-field input:focus,
.builder-field textarea:focus,
.builder-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

.prompt-output {
  min-height: 140px;
  border-radius: var(--radius-control);
  background: var(--page-strong);
  padding: 16px;
  color: var(--text);
  font-family: var(--font-code);
  font-size: 14px;
  white-space: pre-wrap;
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prompt-submit {
  padding: 10px 14px;
}

.prompt-secondary {
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: transparent;
  padding: 9px 13px;
  font-weight: 680;
}

@media (prefers-reduced-motion: no-preference) {
  .chat-shell {
    animation: chat-enter 520ms var(--ease) both;
  }

  .typing-line {
    animation: shimmer 1.25s linear infinite;
  }

  @keyframes chat-enter {
    from {
      transform: translateY(14px);
      opacity: 0.72;
      filter: blur(4px);
    }
    to {
      transform: translateY(0);
      opacity: 1;
      filter: blur(0);
    }
  }

  @keyframes shimmer {
    to {
      background-position: -200% 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: 24px;
  }

  .intro-panel h1 {
    font-size: clamp(38px, 5vw, 50px);
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-aside {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 58px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    width: min(100% - 28px, var(--content-width));
  }

  .main-nav {
    display: none;
  }

  .header-action {
    grid-column: 2;
  }

  .workspace {
    grid-template-columns: 1fr;
    width: min(100% - 24px, var(--content-width));
    padding: 14px 0 28px;
  }

  .intro-panel {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
    padding: 0;
  }

  .intro-panel h1 {
    grid-column: 1 / -1;
    max-width: none;
    font-size: clamp(36px, 10vw, 42px);
    line-height: 1;
  }

  .intro-lead {
    grid-column: 1 / -1;
    max-width: 40ch;
    margin-top: 4px;
    font-size: 15px;
  }

  .service-facts {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 10px;
  }

  .service-facts p:nth-child(2) {
    display: none;
  }

  .starter-list {
    display: none;
  }

  .chat-shell {
    height: max(420px, calc(100dvh - 330px));
    min-height: 0;
  }

  .chat-toolbar {
    min-height: 58px;
    padding: 9px 10px 9px 14px;
  }

  .chat-toolbar > div:first-child span {
    display: none;
  }

  .mode-button {
    padding: 5px 7px;
    font-size: 11px;
  }

  .quiet-button {
    padding-inline: 5px;
  }

  .messages {
    gap: 14px;
    padding: 16px 14px 10px;
  }

  .message {
    max-width: 90%;
  }

  .message-bubble {
    padding: 10px 12px;
    font-size: 14px;
  }

  .quick-prompts {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 6px 14px 9px;
    scrollbar-width: none;
  }

  .quick-prompts::-webkit-scrollbar {
    display: none;
  }

  .quick-prompts button {
    min-width: max-content;
    min-height: 34px;
    border-radius: 999px;
    padding: 7px 10px;
  }

  .composer {
    margin-inline: 10px;
  }

  .composer-row > span {
    max-width: 180px;
  }

  .content-section,
  .process-section,
  .model-section,
  .guides-section,
  .privacy-section,
  .faq-section,
  .site-footer {
    width: min(100% - 28px, var(--content-width));
  }

  .content-section,
  .process-section,
  .model-section,
  .guides-section,
  .faq-section {
    padding-block: 72px;
  }

  .section-copy h2,
  .process-section > h2,
  .model-copy h2,
  .privacy-section h2,
  .faq-section > h2 {
    font-size: 36px;
  }

  .section-copy p,
  .model-copy > p {
    font-size: 16px;
  }

  .capability-list {
    margin-top: 34px;
  }

  .capability-list article {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }

  .capability-list button {
    grid-column: 2;
    width: fit-content;
  }

  .process-flow {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 36px;
  }

  .process-flow article,
  .process-flow article:first-child {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    padding: 18px 0 0;
  }

  .model-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-inline: 22px;
  }

  .model-notes div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid .guide-main {
    grid-row: auto;
    min-height: 350px;
  }

  .privacy-section,
  .faq-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .guide-hero,
  .article-shell {
    width: min(100% - 28px, 980px);
  }

  .guide-hero {
    padding-top: 64px;
  }

  .guide-hero h1 {
    font-size: clamp(42px, 13vw, 64px);
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 18px;
  }

  .header-action {
    padding: 7px 11px 8px;
    font-size: 13px;
  }

  .chat-tools {
    gap: 2px;
  }

  .quiet-button {
    font-size: 0;
  }

  .quiet-button::after {
    content: "Сброс";
    font-size: 11px;
  }

  .composer-row > span {
    max-width: 145px;
  }
}
