:root {
  --ink: #151515;
  --muted: #6c665e;
  --paper: #f6f0e7;
  --paper-deep: #e8dccb;
  --line: rgba(21, 21, 21, 0.14);
  --accent: #0e7c66;
  --accent-deep: #075746;
  --sun: #d7932f;
  --clay: #9d4f3b;
  --white: #fffaf2;
  --shadow: 0 24px 80px rgba(41, 31, 21, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(14, 124, 102, 0.08), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(215, 147, 47, 0.18), transparent 26%),
    var(--paper);
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  letter-spacing: 0;
}

button,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: clamp(280px, 27vw, 380px) minmax(0, 1fr);
}

.brand-panel {
  min-height: 100svh;
  position: sticky;
  top: 0;
  align-self: start;
  padding: clamp(22px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(rgba(21, 21, 21, 0.48), rgba(21, 21, 21, 0.82)),
    url("data:image/svg+xml,%3Csvg width='1200' height='1600' viewBox='0 0 1200 1600' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%23e8dccb'/%3E%3Cstop offset='.48' stop-color='%239fb5aa'/%3E%3Cstop offset='1' stop-color='%23292d2a'/%3E%3C/linearGradient%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011' numOctaves='4' seed='7'/%3E%3CfeColorMatrix type='saturate' values='.35'/%3E%3CfeBlend mode='multiply' in2='SourceGraphic'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='1200' height='1600' fill='url(%23g)'/%3E%3Cg filter='url(%23n)' opacity='.55'%3E%3Cpath d='M-40 996 C178 910 299 738 514 672 C743 603 920 679 1240 522 L1240 1600 L-40 1600 Z' fill='%230e7c66'/%3E%3Cpath d='M-70 1210 C264 1012 416 1089 640 908 C824 760 967 685 1270 711 L1270 1600 L-70 1600 Z' fill='%23151515' opacity='.76'/%3E%3Cpath d='M132 816 C260 728 391 708 520 610 C691 480 816 328 1046 296' stroke='%23fffaf2' stroke-width='16' stroke-linecap='round' opacity='.36' fill='none'/%3E%3Ccircle cx='935' cy='281' r='54' fill='%23d7932f' opacity='.88'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 250, 242, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 242, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.24), transparent 62%);
}

.brand-mark,
.intro-copy,
.signal-map,
.trust-note {
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
}

.brand-mark > div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark span {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 242, 0.56);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.brand-mark span::before,
.brand-mark span::after {
  content: "";
  position: absolute;
  background: var(--white);
}

.brand-mark span::before {
  width: 16px;
  height: 1px;
  left: 10px;
  top: 18px;
}

.brand-mark span::after {
  width: 1px;
  height: 16px;
  left: 18px;
  top: 10px;
}

.contact-author-button {
  min-height: 34px;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 250, 242, 0.08);
  color: rgba(255, 250, 242, 0.86);
  font-size: 13px;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.contact-author-button:hover {
  background: rgba(255, 250, 242, 0.16);
  transform: translateY(-1px);
}

.intro-copy {
  max-width: 540px;
  animation: riseIn 640ms ease both;
}

.eyebrow,
.section-label,
.direction-type {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-panel .eyebrow {
  color: rgba(255, 250, 242, 0.72);
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-copy p:last-child {
  max-width: 360px;
  margin-bottom: 0;
  color: rgba(255, 250, 242, 0.78);
  font-size: 15px;
  line-height: 1.85;
}

.signal-map {
  width: min(100%, 520px);
  padding: 26px 0 12px;
}

.map-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 250, 242, 0.7), rgba(255, 250, 242, 0.08));
  margin-bottom: 24px;
}

.map-point {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  color: rgba(255, 250, 242, 0.72);
}

.map-point span {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 250, 242, 0.34);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.map-point p {
  margin: 0;
}

.map-point.is-active span {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.trust-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 250, 242, 0.78);
}

.trust-note span {
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 250, 242, 0.08);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.workbench {
  min-width: 0;
  padding: clamp(20px, 3vw, 44px);
  width: 100%;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.topbar h2,
.empty-state h2 {
  margin-bottom: 0;
  max-width: 860px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.18;
}

.ghost-button,
.secondary-button,
.primary-button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.ghost-button,
.secondary-button {
  background: rgba(255, 250, 242, 0.72);
  color: var(--ink);
  border: 1px solid var(--line);
}

.primary-button {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(21, 21, 21, 0.2);
}

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

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

.diagnosis-form {
  display: grid;
  gap: 18px;
}

.progress-panel {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.58);
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.progress-panel .section-label {
  margin-bottom: 4px;
}

.progress-panel strong {
  font-size: 20px;
}

.progress-panel p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.1);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--sun));
  transition: width 220ms ease;
}

.form-section,
.report,
.report-preview {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-section {
  padding: clamp(18px, 2.6vw, 30px);
}

.section-heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
}

.section-heading span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.section-heading h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.section-heading p,
.empty-state p,
.profile-list,
.direction-summary,
.direction-details,
.commercial-strip p,
.plan-list,
.avoid-list {
  color: var(--muted);
  line-height: 1.72;
}

.section-heading p {
  margin-bottom: 0;
}

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

label {
  display: grid;
  gap: 8px;
  color: #3c372f;
  font-size: 14px;
  font-weight: 700;
}

select,
textarea {
  width: 100%;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 110px;
  padding: 12px;
}

select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.13);
  background: var(--white);
}

.wide-field {
  margin-top: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  bottom: 16px;
  z-index: 5;
  padding: 12px;
  margin-top: 6px;
  background: rgba(246, 240, 231, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.report-preview {
  margin-top: 22px;
  padding: clamp(18px, 2.4vw, 28px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  box-shadow: none;
}

.ad-slot {
  margin-top: 18px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px dashed rgba(21, 21, 21, 0.22);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, rgba(21, 21, 21, 0.025) 0 10px, transparent 10px 20px),
    rgba(255, 250, 242, 0.44);
}

.ad-slot h2 {
  margin-bottom: 8px;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.22;
}

.ad-slot p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.ad-slot > span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 800;
}

.report-preview h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.22;
}

.report-preview p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.report-dialog {
  width: min(1080px, calc(100vw - 36px));
  max-height: min(88svh, 920px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.report-dialog::backdrop {
  background: rgba(18, 18, 18, 0.52);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  max-height: min(88svh, 920px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.46);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(242, 232, 218, 0.94)),
    var(--paper);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
  animation: dialogEnter 240ms ease both;
}

.dialog-topbar {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.72);
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dialog-topbar h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.14;
}

.icon-button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.icon-button:hover {
  transform: rotate(8deg) scale(1.04);
  background: var(--white);
}

.author-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
}

.author-dialog::backdrop {
  background: rgba(18, 18, 18, 0.48);
  backdrop-filter: blur(8px);
}

.author-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 250, 242, 0.46);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  animation: dialogEnter 220ms ease both;
}

.author-card .icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
}

.author-card h2 {
  max-width: 320px;
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.16;
}

.author-card p:not(.section-label) {
  margin-bottom: 18px;
  color: var(--muted);
}

.author-card img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
}

.wechat-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.wechat-row span {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 240, 231, 0.58);
  font-weight: 800;
}

.report {
  margin-top: 0;
  padding: clamp(18px, 2.8vw, 34px);
  min-height: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.report.is-empty {
  box-shadow: none;
  background:
    repeating-linear-gradient(-45deg, rgba(21, 21, 21, 0.03) 0 12px, transparent 12px 24px),
    rgba(255, 250, 242, 0.5);
}

.empty-state {
  min-height: 260px;
  display: grid;
  align-content: center;
}

.loading-state {
  min-height: min(58svh, 520px);
  display: grid;
  place-items: center;
  text-align: center;
}

.loading-orbit {
  width: 138px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  background:
    conic-gradient(from 20deg, var(--accent), var(--sun), rgba(21, 21, 21, 0.12), var(--accent));
  animation: spin 1.3s linear infinite;
}

.loading-orbit::after {
  content: "";
  width: 96px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.loading-state h2 {
  max-width: 620px;
  margin: 0 auto 12px;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.12;
}

.loading-steps {
  width: min(560px, 100%);
  margin: 26px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: left;
}

.loading-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.loading-steps li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}

.loading-steps li:nth-child(2)::before {
  animation-delay: 160ms;
}

.loading-steps li:nth-child(3)::before {
  animation-delay: 320ms;
}

.empty-state p:last-child {
  margin-top: 12px;
  max-width: 580px;
}

.report-header {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.report-header h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.12;
}

.report-header p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.74;
}

.fallback-note {
  margin-top: 12px;
  display: inline-block;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(215, 147, 47, 0.14);
  color: #6b4613;
  font-weight: 700;
}

.score-ring {
  justify-self: end;
  width: 184px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--accent) var(--score-angle), rgba(21, 21, 21, 0.1) 0),
    var(--paper-deep);
  position: relative;
}

.score-ring::after {
  content: "";
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
}

.score-ring span {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
  font-weight: 800;
  color: var(--ink);
}

.score-ring strong {
  font-size: 42px;
  line-height: 1;
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.profile-list li {
  min-height: 92px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.profile-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-list strong {
  color: var(--ink);
  font-size: 18px;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.direction-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  animation: riseIn 420ms ease both;
}

.direction-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}

.direction-topline h4 {
  margin-bottom: 0;
  font-size: clamp(21px, 2vw, 28px);
}

.direction-topline strong {
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--white);
}

.direction-summary {
  margin-bottom: 18px;
}

.direction-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.direction-details div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.direction-details dt {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 800;
}

.direction-details dd {
  margin: 0;
}

.insight-band {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
}

.avoid-panel,
.plan-panel,
.commercial-strip {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  padding: 22px;
}

.avoid-panel h3,
.plan-panel h3,
.commercial-strip h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.avoid-list,
.plan-list {
  margin: 0;
  padding-left: 18px;
}

.avoid-list li,
.plan-list li {
  margin: 10px 0;
}

.commercial-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background: #17231f;
  color: var(--white);
}

.commercial-strip p {
  margin-bottom: 0;
  color: rgba(255, 250, 242, 0.76);
}

.commercial-strip h3 {
  margin-bottom: 8px;
}

.commercial-strip button {
  min-height: 46px;
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  padding: 0 16px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100vw - 44px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 20;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@keyframes riseIn {
  from {
    transform: translateY(14px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes dialogEnter {
  from {
    transform: translateY(18px) scale(0.985);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.88);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: auto;
    position: relative;
    gap: 42px;
  }

  .signal-map {
    display: none;
  }

  .report-header,
  .insight-band {
    grid-template-columns: 1fr;
  }

  .score-ring {
    justify-self: start;
  }

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

@media (max-width: 720px) {
  .brand-panel,
  .workbench {
    padding: 22px;
  }

  h1 {
    font-size: clamp(38px, 14vw, 58px);
  }

  .topbar {
    display: grid;
  }

  .field-grid,
  .direction-details,
  .profile-list,
  .commercial-strip,
  .progress-panel,
  .ad-slot {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .report-preview {
    display: grid;
  }

  .report-dialog {
    width: 100vw;
    max-height: 100svh;
    height: 100svh;
    margin: 0;
    border-radius: 0;
  }

  .dialog-shell {
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
  }

  .dialog-topbar {
    align-items: start;
    padding: 16px 18px;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
  }

  .dialog-actions .ghost-button {
    min-height: 38px;
  }

  .report {
    padding: 18px;
  }

  .wechat-row {
    grid-template-columns: 1fr;
  }

  .secondary-button,
  .primary-button {
    width: 100%;
  }

  .direction-topline {
    display: grid;
  }

  .direction-topline strong {
    justify-self: start;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  body > *:not(.report-dialog),
  .dialog-topbar,
  .report-dialog::backdrop,
  .commercial-strip {
    display: none !important;
  }

  .report-dialog {
    position: static;
    width: 100%;
    max-height: none;
    margin: 0;
    background: #ffffff;
  }

  .dialog-shell {
    max-height: none;
    border: 0;
    box-shadow: none;
    background: #ffffff;
  }

  .report {
    overflow: visible;
    padding: 0;
  }
}
