:root {
  --page-bg: #ffffff;
  --soft-bg: #f7f5f6;
  --text: #171717;
  --muted: #666666;
  --accent: #751d35;
  --accent-deep: #561225;
  --border: #ded9dc;
  --border-dark: #aaa3a7;
  --max-width: 1220px;
  --nav-height: 82px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --radius: 10px;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1.5rem);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page-bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.035em;
}

p {
  color: var(--muted);
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: var(--accent);
  transform: translateY(-180%);
  transition: transform var(--transition);
}

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

:focus-visible {
  outline: 3px solid rgba(117, 29, 53, 0.42);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--nav-height);
  border-bottom: 1px solid rgba(222, 217, 220, 0.94);
  background: rgba(255, 255, 255, 0.98);
}

.nav-shell {
  display: flex;
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  height: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
}

.brand-link img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-link span {
  display: grid;
  line-height: 1.25;
}

.brand-link strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.brand-link small {
  color: var(--muted);
}

.nav-shell nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.nav-shell nav a:hover,
.nav-shell nav a:focus-visible {
  color: var(--accent);
}

.nav-phone {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.intro-section,
.preliminary-section,
.consultant-section,
.report-section,
.contact-section {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.intro-section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background: linear-gradient(90deg, #fff 0, #fff 63%, var(--soft-bg) 63%, var(--soft-bg) 100%);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
}

.intro-copy {
  padding-top: 2rem;
}

.eyebrow,
.panel-kicker {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1 {
  margin-bottom: 2rem;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 650;
}

.lead {
  max-width: 650px;
  margin-bottom: 0.55rem;
  color: #3d3d3d;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.scope-note {
  max-width: 620px;
  margin-top: 2.6rem;
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--soft-bg);
}

.scope-note p {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
}

.start-card {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.field-heading {
  display: grid;
  margin-bottom: 1.7rem;
  gap: 0.2rem;
}

.field-heading span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.field-heading strong {
  font-size: 1.25rem;
}

label {
  color: #393536;
  font-size: 0.92rem;
  font-weight: 650;
}

textarea,
input[type="text"],
input[type="tel"] {
  width: 100%;
  min-width: 0;
  margin-top: 0.45rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

textarea {
  display: block;
  resize: vertical;
  line-height: 1.7;
}

textarea:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(117, 29, 53, 0.1);
  outline: none;
}

.field-meta,
.composer-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 1.3rem 0;
}

.examples span {
  color: #777;
  font-size: 0.82rem;
}

.examples span::before {
  content: "·";
  margin-right: 0.35rem;
  color: var(--accent);
}

.safety-warning {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #eadde1;
  background: #fcf9fa;
  font-size: 0.84rem;
}

.safety-warning strong {
  color: var(--accent-deep);
}

.consent-row {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  font-weight: 500;
}

.consent-row input {
  width: 1rem;
  height: 1rem;
  margin: 0.35rem 0 0;
  accent-color: var(--accent);
}

.consent-help,
.contact-help {
  margin: 0.55rem 0 1.25rem 1.8rem;
  font-size: 0.8rem;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 650;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.primary-button {
  color: #fff;
  background: var(--accent);
}

.secondary-button {
  color: var(--accent);
  background: #fff;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: var(--accent-deep);
}

.secondary-button:hover {
  color: #fff;
  background: var(--accent);
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none !important;
}

.form-error,
.form-success {
  margin: 0.85rem 0;
  font-size: 0.88rem;
}

.preliminary-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background: var(--soft-bg);
}

.preliminary-shell {
  padding: clamp(1.4rem, 3vw, 2.8rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.view-navigation,
.report-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.round-navigation-actions,
.composer-submit-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.compact-button {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
}

.report-navigation {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.diagnosis-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.3rem;
}

.diagnosis-header h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.diagnosis-intro {
  max-width: 820px;
  margin-bottom: 2rem;
}

.preliminary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.preliminary-card {
  min-width: 0;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.preliminary-card--wide {
  grid-column: 1 / -1;
}

.preliminary-card > span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
}

.preliminary-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.preliminary-card p,
.preliminary-card ul {
  margin-bottom: 0;
  color: #454143;
  overflow-wrap: anywhere;
}

.preliminary-card ul {
  padding-left: 1.15rem;
}

.strategy-card strong {
  color: var(--accent-deep);
  font-size: 1.2rem;
}

.opportunity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.opportunity-item {
  padding: 1rem;
  border-left: 2px solid var(--accent);
  background: var(--soft-bg);
}

.opportunity-item strong,
.opportunity-item p {
  display: block;
  margin: 0;
}

.opportunity-item p {
  margin-top: 0.35rem;
  font-size: 0.86rem;
}

.preliminary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-left: 3px solid var(--accent);
  background: #fcf9fa;
}

.preliminary-actions p {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
}

.button-row {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.start-actions,
.finish-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.start-actions .text-button,
.finish-buttons .text-button {
  min-height: 44px;
}

.contact-invitation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.4rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--border);
}

.contact-invitation h3,
.contact-invitation p {
  margin: 0;
}

.contact-invitation h3 {
  font-size: 1rem;
}

.contact-invitation p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-invitation .secondary-button {
  flex: 0 0 auto;
}

.form-error {
  color: #a02035;
}

.preview-diagnostic {
  margin: -0.35rem 0 0.85rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.form-success {
  color: #37664b;
}

.consultant-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.workspace-heading,
.report-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.workspace-heading h2,
.report-header h2,
.contact-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.state-badge {
  flex: 0 0 auto;
  padding: 0.4rem 0.75rem;
  border: 1px solid #d7c5cb;
  border-radius: 999px;
  color: var(--accent);
  background: #fcf9fa;
  font-size: 0.78rem;
  font-weight: 700;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  align-items: start;
  gap: 1.25rem;
}

.dialogue-panel,
.understanding-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.question-card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.question-card > span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.question-card h3 {
  max-width: 760px;
  margin-bottom: 1.25rem;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.quick-reply {
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: #3f3a3c;
  background: #fff;
  cursor: pointer;
}

.quick-reply:hover,
.quick-reply[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: #fcf9fa;
}

.quick-reply:disabled {
  cursor: default;
  opacity: 0.72;
}

.round-review {
  margin: 0 clamp(1.15rem, 3vw, 2rem) 1.2rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--soft-bg);
}

.round-review h3,
.round-review p {
  margin-top: 0;
}

.round-review > p:last-of-type {
  margin-bottom: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.round-facts {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.finish-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.15rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
}

.finish-action p {
  margin: 0;
  font-size: 0.84rem;
}

.text-button {
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.deep-dive-progress {
  color: var(--muted);
  font-size: 0.86rem;
}

.dialogue-history {
  padding: 1.2rem clamp(1.15rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
}

.dialogue-history > h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.dialogue-log {
  min-height: 0;
  padding: 0;
}

.dialogue-log {
  min-height: 390px;
  padding: clamp(1.15rem, 3vw, 2rem);
}

.dialogue-entry {
  max-width: 92%;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem 1rem 1.3rem;
  border-left: 3px solid var(--border-dark);
  background: var(--soft-bg);
}

.dialogue-entry--assistant {
  border-left-color: var(--accent);
  background: #fff;
}

.dialogue-entry--user {
  margin-left: auto;
}

.dialogue-role {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.dialogue-content {
  margin-bottom: 0;
  color: #333;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.question-list {
  margin: 0.8rem 0 0;
  padding-left: 1.35rem;
  color: #393536;
}

.question-list li + li {
  margin-top: 0.45rem;
}

.composer {
  padding: 1.2rem clamp(1.15rem, 3vw, 2rem) 1.5rem;
  border-top: 1px solid var(--border);
  background: #fcfbfb;
}

.composer textarea {
  min-height: 118px;
  scroll-margin-block: calc(var(--nav-height) + 1rem) max(1rem, env(safe-area-inset-bottom));
}

.composer-actions {
  align-items: center;
}

.report-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem clamp(1.15rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
  background: #fcf9fa;
}

.report-action p {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
}

.understanding-panel {
  position: sticky;
  top: calc(var(--nav-height) + 1.25rem);
  padding: 1.5rem;
  background: var(--soft-bg);
}

.understanding-panel h3 {
  margin-bottom: 1.5rem;
  font-size: 1.45rem;
}

.understanding-block {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.understanding-block > strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
}

.understanding-block p,
.understanding-block ul {
  margin-bottom: 0;
  color: #484446;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.understanding-block ul {
  padding-left: 1.1rem;
}

.understanding-block li + li {
  margin-top: 0.45rem;
}

.muted-block p,
.muted-block ul {
  color: var(--muted);
}

.workspace-status {
  min-height: 1.75rem;
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
}

.report-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background: var(--soft-bg);
}

.report-shell {
  padding: clamp(1.4rem, 3vw, 2.8rem);
  border: 1px solid var(--border);
  background: #fff;
}

.report-header > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.fact-boundary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.fact-boundary section {
  min-width: 0;
  padding: 1.15rem;
}

.fact-boundary section + section {
  border-left: 1px solid var(--border);
}

.fact-boundary h3 {
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-size: 0.9rem;
}

.fact-boundary ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
  color: #4c484a;
  font-size: 0.84rem;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.report-card {
  min-width: 0;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.report-card > span {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
}

.report-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.18rem;
}

.report-card p,
.report-card ul {
  margin-bottom: 0;
  color: #464244;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.report-card ul {
  padding-left: 1.15rem;
}

.report-card li + li {
  margin-top: 0.5rem;
}

.report-disclaimer {
  margin: 1.4rem 0 0;
  font-size: 0.82rem;
}

.report-followup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.report-followup p {
  margin: 0;
  font-size: 0.86rem;
}

.contact-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.contact-copy p:last-child {
  max-width: 440px;
  margin-top: 1.2rem;
}

.contact-form {
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-help {
  margin-left: 0;
}

.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 1024px) {
  .intro-section {
    background: #fff;
  }

  .intro-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(390px, 1.2fr);
    gap: 2.5rem;
  }

  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
  }

  .intro-section,
  .preliminary-section,
  .consultant-section,
  .report-section,
  .contact-section {
    padding: 3.5rem 0;
  }

  .intro-grid,
  .workspace-grid,
  .contact-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro-copy {
    padding-top: 0;
  }

  .start-card {
    padding: 1.35rem;
  }

  .understanding-panel {
    position: static;
    grid-row: 1;
  }

  .dialogue-log {
    min-height: 330px;
  }

  .fact-boundary,
  .report-grid,
  .preliminary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact-boundary section + section {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .opportunity-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .preliminary-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  :root {
    --nav-height: 68px;
    --gutter: 0.75rem;
  }

  .nav-shell {
    gap: 0.5rem;
  }

  .brand-link {
    flex: 1 1 auto;
    gap: 0.45rem;
  }

  .brand-link img {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
  }

  .brand-link strong {
    font-size: 0.62rem;
    letter-spacing: 0.035em;
    white-space: nowrap;
  }

  .nav-shell nav {
    flex: 0 0 auto;
    gap: 0.65rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .nav-shell nav > a:not(.nav-phone) {
    padding-block: 0.5rem;
  }

  .nav-phone {
    display: inline-flex;
    min-height: 40px;
    padding: 0.38rem 0.5rem;
    align-items: center;
    font-size: inherit;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.2rem);
  }

  .workspace-heading,
  .diagnosis-header,
  .report-header,
  .preliminary-actions,
  .contact-invitation,
  .finish-action,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-followup {
    align-items: stretch;
    flex-direction: column;
  }

  .report-followup .secondary-button {
    width: 100%;
  }

  .report-navigation {
    align-items: stretch;
    flex-direction: column;
  }

  .view-navigation,
  .round-navigation-actions,
  .composer-submit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .view-navigation .text-button,
  .round-navigation-actions .text-button,
  .round-navigation-actions .secondary-button,
  .composer-submit-actions .text-button,
  .composer-submit-actions .secondary-button {
    width: 100%;
  }

  .report-navigation .text-button,
  .report-navigation .secondary-button {
    width: 100%;
  }

  .dialogue-log {
    min-height: 300px;
    padding: 1rem;
  }

  .dialogue-entry {
    max-width: 100%;
    padding: 0.9rem 0.9rem 0.9rem 1rem;
  }

  .composer {
    padding: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .composer-actions .secondary-button,
  .button-row,
  .button-row .primary-button,
  .button-row .secondary-button,
  .start-actions,
  .start-actions .primary-button,
  .start-actions .text-button,
  .finish-buttons,
  .finish-buttons .text-button,
  .contact-invitation .secondary-button,
  .contact-form > .secondary-button,
  .start-card > .primary-button {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
