:root {
  --ink: #18231f;
  --muted: #6f695c;
  --paper: #fffdf4;
  --paper-warm: #f7edda;
  --line: #d7bf83;
  --gold: #b88125;
  --gold-bright: #f2cf74;
  --jade: #0c6b61;
  --jade-soft: #dcefe8;
  --cinnabar: #a63a2e;
  --blue: #2f6682;
  --violet: #6f548f;
  --shadow: 0 22px 70px rgba(60, 43, 18, .12);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #f3ead8;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(255,255,255,.95) 0 12%, rgba(242,207,116,.34) 13% 28%, transparent 45%),
    linear-gradient(115deg, transparent 0 48%, rgba(12,107,97,.055) 48.2% 50%, transparent 50.2%),
    linear-gradient(65deg, transparent 0 48%, rgba(166,58,46,.045) 48.2% 50%, transparent 50.2%),
    linear-gradient(180deg, #fffdf4 0%, #f8f0df 46%, #efe0c4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(184,129,37,.20) 50%, transparent 50.1%),
    radial-gradient(circle at 50% 18%, transparent 0 180px, rgba(184,129,37,.16) 181px 182px, transparent 183px),
    radial-gradient(circle at 50% 18%, transparent 0 310px, rgba(12,107,97,.12) 311px 312px, transparent 313px);
  opacity: .55;
}

button,
textarea {
  font: inherit;
}

.app-shell {
  position: relative;
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.topbar {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(184,129,37,.34);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255,253,244,.96), rgba(249,239,220,.88)),
    radial-gradient(circle at 82% 0%, rgba(242,207,116,.24), transparent 34%);
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.seal {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--cinnabar);
  border-radius: 14px;
  color: var(--cinnabar);
  background: #fff8ed;
  font-size: 30px;
  font-weight: 900;
  box-shadow: inset 0 0 0 5px rgba(166,58,46,.06);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--jade);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
}

.brand-lockup p,
.topbar small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.top-script {
  color: rgba(184,129,37,.72);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 390px;
  gap: 16px;
  align-items: start;
}

.panel {
  min-width: 0;
  border: 1px solid rgba(184,129,37,.32);
  border-radius: 18px;
  background: rgba(255,253,244,.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.input-card,
.process-card {
  position: sticky;
  top: 16px;
}

.panel-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(184,129,37,.24);
  background: linear-gradient(90deg, rgba(12,107,97,.08), rgba(242,207,116,.14), transparent);
}

.panel-head span,
.section-label {
  color: var(--jade);
  font-size: 16px;
  font-weight: 900;
}

.panel-head small {
  color: #8a7b5d;
  font-size: 12px;
  white-space: nowrap;
}

.subhead {
  border-top: 1px solid rgba(184,129,37,.20);
}

.composer,
.progress-card {
  padding: 18px;
}

.composer {
  display: grid;
  gap: 12px;
}

textarea {
  width: 100%;
  min-height: 238px;
  resize: vertical;
  border: 1px solid rgba(184,129,37,.38);
  border-radius: 14px;
  padding: 14px;
  color: var(--ink);
  background: linear-gradient(180deg, #fffefa, #fbf4e8);
  outline: none;
  font-size: 15px;
  line-height: 1.8;
}

textarea:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(12,107,97,.12);
}

.upload-box {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px dashed rgba(12,107,97,.35);
  border-radius: 14px;
  background: rgba(220,239,232,.45);
  cursor: pointer;
}

.upload-box input {
  display: none;
}

.upload-box span {
  color: var(--jade);
  font-weight: 900;
}

.upload-box em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
}

.file-list {
  display: grid;
  gap: 7px;
}

.file-pill {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(184,129,37,.24);
  border-radius: 10px;
  background: #fffefa;
  font-size: 12px;
}

.file-pill strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

button {
  height: 44px;
  border: 1px solid rgba(184,129,37,.38);
  border-radius: 12px;
  color: var(--ink);
  background: #fffefa;
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

button[type="submit"] {
  border-color: var(--jade);
  color: #fffdf4;
  background: linear-gradient(180deg, #128074, #0c6259);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(12,107,97,.12);
}

button:disabled {
  cursor: wait;
  opacity: .72;
}

.progress-card {
  border-top: 1px solid rgba(184,129,37,.22);
}

.progress-steps {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 22px 58px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 38px;
}

.step i {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border: 2px solid rgba(184,129,37,.55);
  border-radius: 50%;
  background: #fffdf4;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 22px;
  bottom: -13px;
  width: 2px;
  background: rgba(184,129,37,.28);
}

.step strong {
  color: var(--ink);
  font-size: 14px;
}

.step em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

.step.done i,
.step.active i {
  border-color: var(--jade);
  background: var(--jade);
  box-shadow: 0 0 0 5px rgba(12,107,97,.10);
}

.step.active i {
  animation: steadyPulse 1.4s ease-in-out infinite;
}

@keyframes steadyPulse {
  50% { box-shadow: 0 0 0 9px rgba(12,107,97,.08); }
}

.final-summary {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255,253,244,.96), rgba(247,237,218,.90)),
    radial-gradient(circle at 86% 0%, rgba(242,207,116,.22), transparent 32%);
}

.empty-summary,
.process-empty,
.process-loading {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.empty-summary strong,
.process-loading strong {
  color: var(--ink);
  font-size: 21px;
}

.empty-summary p,
.process-empty p,
.process-loading p {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.75;
}

.sun-disc {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 1px solid rgba(184,129,37,.45);
  background:
    radial-gradient(circle, #fffdf4 0 31%, transparent 32%),
    conic-gradient(from 0deg, rgba(184,129,37,.16), rgba(12,107,97,.13), rgba(166,58,46,.12), rgba(47,102,130,.12), rgba(184,129,37,.16));
  box-shadow: 0 0 55px rgba(242,207,116,.35);
}

.sun-disc.active {
  animation: glow 2.2s ease-in-out infinite;
}

@keyframes glow {
  50% { transform: scale(1.035); box-shadow: 0 0 75px rgba(242,207,116,.48); }
}

.summary-card {
  position: relative;
  padding: 24px 24px 24px 30px;
  border: 1px solid rgba(184,129,37,.34);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffefa, #f8eed7);
  box-shadow: inset 7px 0 0 var(--gold), 0 16px 42px rgba(60,43,18,.08);
}

.summary-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--jade);
  font-weight: 900;
}

.summary-kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--gold);
}

.summary-card p {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.9;
  font-weight: 700;
}

.conclusion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: #fbf6ea;
}

.conclusion-grid.empty {
  display: block;
  color: var(--muted);
  line-height: 1.75;
}

.conclusion-tile {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 116px;
  padding: 13px;
  border: 1px solid rgba(184,129,37,.26);
  border-radius: 14px;
  background: #fffefa;
}

.conclusion-tile:nth-child(2n) span { background: var(--blue); }
.conclusion-tile:nth-child(3n) span { background: var(--cinnabar); }
.conclusion-tile:nth-child(4n) span { background: var(--violet); }

.conclusion-tile span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fffdf4;
  background: var(--jade);
  font-weight: 900;
}

.conclusion-tile strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
}

.conclusion-tile p {
  color: #5d5446;
  font-size: 13px;
  line-height: 1.65;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.empty-cast {
  display: block;
  padding: 0;
}

.method-intro {
  padding: 34px;
  min-height: 330px;
  background:
    linear-gradient(90deg, rgba(255,253,244,.98), rgba(247,237,218,.92)),
    radial-gradient(circle at 92% 12%, rgba(242,207,116,.22), transparent 34%);
}

.intro-mark {
  margin-bottom: 12px;
  color: var(--jade);
  font-weight: 900;
}

.method-intro h2 {
  max-width: 740px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.3;
}

.method-intro p {
  max-width: 780px;
  margin-top: 12px;
  color: #675d4e;
  font-size: 15px;
  line-height: 1.85;
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.intro-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(12,107,97,.18);
  border-radius: 999px;
  color: var(--jade);
  background: rgba(220,239,232,.48);
  font-size: 13px;
  font-weight: 900;
}

.cast-card {
  min-height: 180px;
  padding: 14px;
  border: 1px solid rgba(184,129,37,.28);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefa, #fbf3e4);
  box-shadow: inset 0 4px 0 rgba(12,107,97,.30);
}

.moving-card {
  grid-column: span 2;
  box-shadow: inset 0 4px 0 rgba(166,58,46,.32);
}

.cast-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--jade);
  background: rgba(220,239,232,.58);
  font-size: 13px;
  font-weight: 900;
}

.hex-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--ink);
}

.hex-line strong {
  color: var(--cinnabar);
  font-size: 28px;
  line-height: 1;
}

.hex-line span {
  font-weight: 900;
}

.cast-card p {
  margin-top: 8px;
  color: #62584b;
  font-size: 13px;
  line-height: 1.7;
}

.cast-card b {
  color: var(--ink);
}

.highlights,
.materials {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.highlights.empty,
.materials.empty {
  color: var(--muted);
  line-height: 1.7;
}

.empty-lines {
  width: 100%;
  height: 82px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(184,129,37,.26), transparent 70%) 0 10px / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(12,107,97,.22), transparent 62%) 0 36px / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(166,58,46,.18), transparent 55%) 0 62px / 100% 1px no-repeat,
    rgba(255,253,244,.58);
}

.highlight-row,
.material-card {
  padding: 12px;
  border: 1px solid rgba(184,129,37,.25);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: #fffefa;
}

.highlight-row span,
.material-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
}

.highlight-row strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.material-card strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.material-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.report {
  max-height: calc(100vh - 412px);
  min-height: 360px;
  overflow: auto;
  margin: 16px;
  padding: 16px;
  border: 1px solid rgba(184,129,37,.25);
  border-radius: 14px;
  color: #40382d;
  background: #fffefa;
  font-size: 14px;
  line-height: 1.85;
  white-space: normal;
}

.report.empty {
  color: var(--muted);
}

.report-content {
  display: grid;
  gap: 12px;
}

.report-content h2,
.report-content h3,
.report-content h4 {
  margin: 10px 0 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(184,129,37,.22);
  color: var(--jade);
  font-weight: 900;
  line-height: 1.45;
}

.report-content h2:first-child,
.report-content h3:first-child,
.report-content h4:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.report-content h2 {
  font-size: 18px;
}

.report-content h3,
.report-content h4 {
  font-size: 16px;
}

.report-content p {
  color: #40382d;
  font-size: 14px;
  line-height: 1.9;
}

.report-content strong {
  color: var(--ink);
  font-weight: 900;
}

.report-content ul {
  margin: 0;
  padding-left: 1.2em;
  color: #40382d;
}

.report-content li {
  margin: 5px 0;
  line-height: 1.8;
}

.report-content code {
  padding: 1px 5px;
  border-radius: 6px;
  color: var(--cinnabar);
  background: rgba(166,58,46,.07);
  font-family: "Consolas", "Courier New", monospace;
  font-size: .92em;
}

.compass {
  width: 132px;
  height: 132px;
  border: 1px solid rgba(184,129,37,.42);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(12,107,97,.32) 50%, transparent 50.6%),
    linear-gradient(0deg, transparent 49.4%, rgba(12,107,97,.32) 50%, transparent 50.6%),
    radial-gradient(circle, transparent 0 42%, rgba(184,129,37,.24) 43% 44%, transparent 45%);
}

.process-loading {
  min-height: 300px;
}

.loading-line,
.skeleton {
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(215,191,131,.24), rgba(12,107,97,.20), rgba(215,191,131,.24));
  background-size: 220% 100%;
  animation: shimmer 1.25s linear infinite;
}

.loading-line {
  width: 88%;
}

.loading-line.short {
  width: 60%;
}

.skeleton {
  min-height: 116px;
  border-radius: 14px;
}

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

.error-box {
  padding: 18px;
  border: 1px solid rgba(166,58,46,.35);
  border-radius: 14px;
  color: var(--cinnabar);
  background: rgba(166,58,46,.06);
}

/* Compact desktop workstation pass */
@media (min-width: 901px) {
  :root {
    --shadow: 0 14px 42px rgba(60, 43, 18, .10);
  }

  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .app-shell {
    width: calc(100vw - 28px);
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0 18px;
  }

  .topbar {
    min-height: 62px;
    gap: 16px;
    margin-bottom: 0;
    padding: 10px 14px;
    border-radius: 14px;
  }

  .seal {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 24px;
  }

  .brand-lockup {
    gap: 12px;
  }

  h1 {
    font-size: 24px;
  }

  .brand-lockup p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
  }

  .top-script {
    font-size: 13px;
  }

  .workspace {
    grid-template-columns: 312px minmax(0, 1fr) 352px;
    gap: 10px;
    height: 100%;
    min-height: 0;
    align-items: stretch;
  }

  .panel {
    height: 100%;
    max-height: none;
    border-radius: 14px;
    overflow: hidden;
  }

  .input-card,
  .process-card {
    position: static;
  }

  .input-card {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .result-card {
    display: grid;
    grid-template-rows:
      auto
      auto
      auto
      auto
      auto
      minmax(0, 1fr);
  }

  .process-card {
    display: grid;
    grid-template-rows:
      auto
      minmax(110px, .44fr)
      auto
      minmax(62px, .22fr)
      auto
      minmax(300px, 1.34fr);
  }

  .panel-head {
    min-height: 40px;
    padding: 9px 12px;
  }

  .panel-head span,
  .section-label {
    font-size: 14px;
  }

  .panel-head small {
    font-size: 11px;
  }

  .composer,
  .progress-card,
  .highlights,
  .materials {
    padding: 12px;
  }

  .composer {
    gap: 9px;
  }

  textarea {
    min-height: 168px;
    padding: 11px;
    border-radius: 11px;
    font-size: 14px;
    line-height: 1.65;
  }

  .upload-box {
    gap: 2px;
    padding: 9px 10px;
    border-radius: 11px;
  }

  .upload-box span {
    font-size: 13px;
  }

  .upload-box em {
    font-size: 11px;
    line-height: 1.35;
  }

  button {
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
  }

  .progress-card {
    min-height: 0;
    overflow: auto;
    padding-top: 10px;
  }

  .progress-steps {
    gap: 8px;
    margin-top: 9px;
  }

  .step {
    grid-template-columns: 18px 48px minmax(0, 1fr);
    gap: 7px;
    min-height: 30px;
  }

  .step i {
    width: 11px;
    height: 11px;
    margin-top: 4px;
  }

  .step:not(:last-child)::after {
    left: 5px;
    top: 19px;
    bottom: -10px;
  }

  .step strong,
  .step em {
    font-size: 12px;
  }

  .final-summary {
    min-height: 0;
    overflow: visible;
    padding: 12px;
  }

  .empty-summary,
  .process-empty,
  .process-loading {
    min-height: 100%;
    gap: 8px;
    padding: 16px;
  }

  .sun-disc {
    width: 74px;
    height: 74px;
    box-shadow: 0 0 34px rgba(242,207,116,.30);
  }

  .empty-summary strong,
  .process-loading strong {
    font-size: 17px;
  }

  .empty-summary p,
  .process-empty p,
  .process-loading p {
    max-width: 430px;
    font-size: 13px;
    line-height: 1.55;
  }

  .summary-card {
    padding: 13px 15px 13px 19px;
    border-radius: 13px;
    box-shadow: inset 5px 0 0 var(--gold), 0 10px 28px rgba(60,43,18,.07);
  }

  .summary-kicker {
    margin-bottom: 7px;
  }

  .summary-card p {
    font-size: 15px;
    line-height: 1.62;
  }

  .conclusion-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    min-height: 0;
    overflow: visible;
  }

  .conclusion-tile {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    min-height: 72px;
    padding: 8px;
    border-radius: 11px;
  }

  .conclusion-tile span {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .conclusion-tile strong {
    margin-bottom: 3px;
    font-size: 12px;
  }

  .conclusion-tile p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 11px;
    line-height: 1.42;
  }

  .cast-grid {
    gap: 8px;
    padding: 10px;
    min-height: 0;
    overflow: auto;
  }

  .method-intro {
    min-height: 100%;
    padding: 20px 22px;
  }

  .intro-mark {
    margin-bottom: 7px;
    font-size: 13px;
  }

  .method-intro h2 {
    font-size: 21px;
    line-height: 1.25;
  }

  .method-intro p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.62;
  }

  .intro-tags {
    gap: 6px;
    margin-top: 11px;
  }

  .intro-tags span {
    padding: 5px 8px;
    font-size: 12px;
  }

  .cast-card {
    min-height: 132px;
    padding: 10px;
    border-radius: 11px;
  }

  .cast-label {
    margin-bottom: 7px;
    padding: 3px 7px;
    font-size: 12px;
  }

  .hex-line {
    gap: 7px;
    margin-bottom: 7px;
  }

  .hex-line strong {
    font-size: 23px;
  }

  .cast-card p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.55;
  }

  .highlights,
  .materials {
    gap: 8px;
    min-height: 0;
    overflow: auto;
  }

  .empty-lines {
    height: 54px;
  }

  .highlight-row,
  .material-card {
    padding: 9px;
    border-radius: 10px;
  }

  .highlight-row span,
  .material-card span {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .highlight-row strong,
  .material-card strong {
    font-size: 12px;
    line-height: 1.45;
  }

  .material-card p {
    font-size: 11px;
    line-height: 1.45;
  }

  .report {
    height: calc(100% - 20px);
    max-height: none;
    min-height: 0;
    margin: 10px;
    padding: 12px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.65;
  }

  .report-content {
    gap: 8px;
  }

  .report-content h2,
  .report-content h3,
  .report-content h4 {
    margin: 6px 0 0;
    padding-top: 8px;
  }

  .report-content h2 {
    font-size: 16px;
  }

  .report-content h3,
  .report-content h4 {
    font-size: 14px;
  }

  .report-content p {
    font-size: 13px;
    line-height: 1.65;
  }

  .report-content li {
    margin: 3px 0;
    line-height: 1.6;
  }

  .compass {
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 1240px) {
  .workspace {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .process-card {
    grid-column: 1 / -1;
    position: static;
  }

  .report {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100vw - 22px, 720px);
    padding-top: 12px;
  }

  .topbar,
  .workspace {
    grid-template-columns: 1fr;
  }

  .top-script {
    white-space: normal;
  }

  .input-card {
    position: static;
  }

  .conclusion-grid,
  .cast-grid {
    grid-template-columns: 1fr;
  }

  .moving-card {
    grid-column: auto;
  }
}
