:root {
  --ink: #202b33;
  --ink-soft: #37444d;
  --muted: #68757c;
  --muted-light: #8a9499;
  --canvas: #f3f5f6;
  --canvas-deep: #e8ecee;
  --paper: #ffffff;
  --line: #dbe0e3;
  --line-dark: #c4ccd1;
  --coral: #c83d37;
  --coral-dark: #a92d29;
  --coral-pale: #fbedeb;
  --teal: #21766f;
  --teal-pale: #e7f2f0;
  --amber: #a56a24;
  --amber-pale: #f8eddb;
  --danger: #b83843;
  --danger-pale: #fbe8eb;
  --shadow: 0 3px 14px rgba(24, 37, 45, 0.06);
  --radius: 4px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  color: #f7fbfa;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  width: min(1440px, calc(100% - 64px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 42px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark,
.report-mark {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 5px;
}

.brand-mark::before,
.report-mark::before {
  position: absolute;
  content: "";
  width: 12px;
  height: 12px;
  left: 5px;
  top: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.brand-mark::after,
.report-mark::after {
  position: absolute;
  content: "";
  width: 17px;
  height: 2px;
  right: 3px;
  bottom: 7px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.brand-mark i,
.report-mark i,
.brand-mark b,
.report-mark b {
  display: none;
}

.brand-mark {
  color: #f0a19a;
  background: rgba(214, 81, 72, 0.16);
}

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-copy small {
  color: #aab8b8;
  font-size: 11px;
  letter-spacing: 0;
}

.main-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 26px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #aebdbc;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  content: "";
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: #ffffff;
}

.main-nav a.is-active::after {
  background: var(--coral);
}

.topbar-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #9aa9a8;
  font-size: 12px;
  white-space: nowrap;
}

.system-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.system-state i,
.privacy-badge i,
.preview-state i,
.report-status i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--teal);
}

.system-state i {
  background: #6ac4a0;
  box-shadow: 0 0 0 3px rgba(106, 196, 160, 0.12);
}

.page-main {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.section-kicker,
.report-kicker {
  margin: 0 0 7px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.page-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.intro-copy {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.intro-aside {
  display: grid;
  justify-items: end;
  gap: 8px;
  padding-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 600;
}

.intro-hint b {
  color: var(--ink-soft);
  font-weight: 600;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.panel-surface {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.editor-panel {
  padding: 23px 22px 21px;
}

.preview-panel {
  padding: 23px 22px 21px;
}

.panel-heading,
.preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-heading h2,
.preview-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.required-note {
  padding-top: 5px;
  color: var(--muted-light);
  font-size: 11px;
  white-space: nowrap;
}

.required-note span,
.field label span {
  color: var(--coral);
}

.field-group {
  min-width: 0;
  margin: 0;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.field-group + .field-group {
  padding-top: 21px;
}

.field-group:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.field-group legend {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.legend-index {
  display: inline-block;
  width: 3px;
  height: 15px;
  margin-right: 8px;
  overflow: hidden;
  color: transparent;
  background: var(--coral);
  border-radius: 0;
  font-size: 0;
  vertical-align: -2px;
}

.field-grid {
  display: grid;
  gap: 14px 12px;
}

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

.field--full {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  color: var(--ink);
  background: #fbfcfc;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.field input::placeholder {
  color: #aab4b3;
}

.field input:hover,
.field select:hover {
  background: #ffffff;
  border-color: #9eafaa;
}

.field input:focus,
.field select:focus {
  background: #ffffff;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(40, 124, 120, 0.13);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(184, 56, 67, 0.1);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  content: "";
  top: 50%;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.field select {
  appearance: none;
  padding-right: 35px;
}

.money-input {
  position: relative;
}

.money-input > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.money-input input {
  padding-left: 28px;
}

.field-hint,
.field-error {
  min-height: 17px;
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.45;
}

.field-hint {
  color: var(--muted-light);
}

.field-error {
  color: var(--danger);
}

.report-format-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.report-format-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.report-format-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.report-format-option__body {
  display: grid;
  min-height: 57px;
  align-content: center;
  gap: 2px;
  padding: 9px 11px;
  color: var(--ink-soft);
  background: #fbfcfc;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.report-format-option__body strong {
  font-size: 12px;
  font-weight: 700;
}

.report-format-option__body small {
  overflow: hidden;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-format-option:hover .report-format-option__body {
  background: #ffffff;
  border-color: #9eafaa;
}

.report-format-option input:focus-visible + .report-format-option__body {
  outline: 3px solid rgba(40, 124, 120, 0.24);
  outline-offset: 2px;
}

.report-format-option input:checked + .report-format-option__body {
  color: var(--teal);
  background: var(--teal-pale);
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.report-format-option input:checked + .report-format-option__body small {
  color: var(--teal);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
}

.button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:active {
  transform: translateY(1px);
}

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

.button:focus-visible,
.reference-drawer summary:focus-visible,
.main-nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(40, 124, 120, 0.3);
  outline-offset: 3px;
}

.button--primary {
  flex: 1 1 auto;
  color: #ffffff;
  background: var(--coral);
  border-color: var(--coral);
}

.button--primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}

.button--quiet {
  color: var(--ink-soft);
  background: #f3f6f5;
  border-color: var(--line);
}

.button--quiet:hover {
  background: #e9efed;
  border-color: var(--line-dark);
}

.button--text {
  padding-right: 7px;
  padding-left: 7px;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

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

.button--outline {
  color: var(--ink-soft);
  background: #ffffff;
  border-color: var(--line-dark);
}

.button--outline:hover {
  color: var(--teal);
  background: var(--teal-pale);
  border-color: #9cc4c0;
}

.form-feedback,
.preview-feedback {
  min-height: 19px;
  margin: 9px 0 0;
  color: var(--teal);
  font-size: 11px;
}

.form-feedback.is-error,
.preview-feedback.is-error {
  color: var(--danger);
}

.reference-drawer {
  margin-top: 23px;
  border-top: 1px solid var(--line);
}

.reference-drawer summary {
  padding: 15px 0 3px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  list-style-position: inside;
}

.reference-drawer summary::marker {
  color: var(--coral);
}

.reference-content {
  padding: 8px 0 0;
}

.reference-content p {
  margin: 0 0 9px;
  color: var(--muted-light);
  font-size: 11px;
}

.reference-content img {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.preview-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  color: var(--teal);
  background: var(--teal-pale);
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
}

.preview-stage {
  min-height: 620px;
  padding: 30px;
  background: #e9edef;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.empty-report {
  min-height: 560px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 40px;
  text-align: center;
}

.empty-report-mark {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 13px;
  place-items: center;
  color: var(--coral);
  border: 1px solid #e8aaa4;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 300;
}

.empty-report h3 {
  margin: 0;
  font-size: 16px;
}

.empty-report p {
  max-width: 260px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.report-card {
  width: min(100%, 780px);
  margin: 0 auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #cbd6d2;
  box-shadow: 0 12px 28px rgba(24, 37, 45, 0.1);
}

/* The selected output target is kept on the report itself so HTML exports
   and print previews retain the same proportions as the live preview. */
.report-card--mobile {
  width: min(100%, 390px);
}

.report-card--mobile .report-header,
.report-card--mobile .report-title-row {
  display: block;
  padding-right: 18px;
  padding-left: 18px;
}

.report-card--mobile .report-meta {
  justify-items: start;
  margin-top: 12px;
  text-align: left;
}

.report-card--mobile .report-title-row h3 {
  font-size: 21px;
}

.report-card--mobile .report-status {
  margin-top: 12px;
}

.report-card--mobile .amount-band {
  display: block;
  margin-right: 18px;
  margin-left: 18px;
}

.report-card--mobile .expiry-line {
  justify-items: start;
  margin-top: 10px;
  text-align: left;
}

.report-card--mobile .report-section {
  padding-right: 18px;
  padding-left: 18px;
}

.report-card--mobile .detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-card--mobile .report-footer {
  display: block;
  padding-right: 18px;
  padding-left: 18px;
}

.report-card--mobile .report-footer span {
  display: block;
  margin-top: 8px;
}

.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-mark {
  color: var(--coral);
  background: var(--coral-pale);
}

.report-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.report-brand strong {
  font-size: 14px;
  letter-spacing: 0;
}

.report-brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
}

.report-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}

.report-meta strong {
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0;
}

.report-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 27px 28px 21px;
}

.report-title-row h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.25;
}

.report-subtitle {
  max-width: 500px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.report-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 29px;
  padding: 0 10px;
  color: var(--teal);
  background: var(--teal-pale);
  border: 1px solid #b9dcd8;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.report-status.status--pending {
  color: var(--amber);
  background: var(--amber-pale);
  border-color: #e8d0a8;
}

.report-status.status--rejected {
  color: var(--danger);
  background: var(--danger-pale);
  border-color: #e9bfc5;
}

.report-status.status--pending i {
  background: var(--amber);
}

.report-status.status--rejected i {
  background: var(--danger);
}

.amount-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 28px;
  padding: 18px 0 20px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.amount-band > div:first-child {
  display: grid;
  gap: 3px;
}

.amount-label,
.expiry-line {
  color: var(--muted);
  font-size: 11px;
}

.amount-value {
  color: var(--coral-dark);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

.expiry-line {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.expiry-line strong {
  color: var(--ink-soft);
  font-size: 12px;
}

.report-section {
  padding: 21px 28px 0;
}

.report-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 11px;
}

.report-section-heading h4 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.report-section-heading span {
  color: var(--muted-light);
  font-size: 9px;
  letter-spacing: 0;
  text-align: right;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.detail-item {
  min-width: 0;
  min-height: 65px;
  padding: 10px 11px 9px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.detail-item dt {
  color: var(--muted-light);
  font-size: 10px;
}

.detail-item dd {
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.detail-item dd.detail-progress {
  color: var(--coral-dark);
}

.timeline-section {
  padding-bottom: 0;
}

.progress-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 12px 0 3px;
  list-style: none;
}

.progress-timeline::before {
  position: absolute;
  content: "";
  top: 26px;
  right: 9%;
  left: 9%;
  height: 1px;
  background: var(--line-dark);
}

.progress-timeline li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted-light);
  font-size: 10px;
  text-align: center;
}

.step-dot {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
}

.progress-timeline li.is-complete,
.progress-timeline li.is-current {
  color: var(--ink-soft);
  font-weight: 600;
}

.progress-timeline li.is-complete .step-dot {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.progress-timeline li.is-current .step-dot {
  color: var(--coral-dark);
  background: var(--coral-pale);
  border: 2px solid var(--coral);
}

.report-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 23px;
  padding: 15px 28px 20px;
  color: var(--muted);
  background: #f7f9f8;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.report-footer p {
  max-width: 510px;
  margin: 0;
}

.report-footer span {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.preview-feedback {
  margin-top: 8px;
}

.site-footer {
  width: min(1440px, calc(100% - 64px));
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 0 auto;
  padding: 0 0 24px;
  color: var(--muted-light);
  font-size: 11px;
}

@media (max-width: 1180px) {
  .topbar-inner,
  .page-main,
  .site-footer {
    width: min(100% - 40px, 1000px);
  }

  .workbench {
    grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
    gap: 17px;
  }

  .preview-panel,
  .editor-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .preview-stage {
    padding: 18px;
  }

  .report-header,
  .report-title-row,
  .report-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .amount-band {
    margin-right: 20px;
    margin-left: 20px;
  }

  .report-footer {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 940px) {
  .topbar-inner {
    gap: 24px;
  }

  .main-nav {
    gap: 17px;
  }

  .topbar-date {
    display: none;
  }

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

  .editor-panel {
    order: 1;
  }

  .preview-panel {
    order: 2;
  }

  .preview-stage {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  .topbar-inner,
  .page-main,
  .site-footer {
    width: calc(100% - 28px);
  }

  .topbar-inner {
    min-height: 62px;
    gap: 0;
  }

  .main-nav {
    display: none;
  }

  .topbar-meta {
    gap: 0;
  }

  .page-main {
    padding-top: 25px;
    padding-bottom: 32px;
  }

  .page-intro {
    display: block;
    margin-bottom: 18px;
  }

  .page-intro h1 {
    font-size: 25px;
  }

  .intro-copy {
    margin-top: 8px;
    font-size: 13px;
  }

  .intro-aside {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 0;
  }

  .editor-panel,
  .preview-panel {
    padding: 19px 14px 17px;
    border-radius: 5px;
  }

  .panel-heading,
  .preview-heading {
    margin-bottom: 18px;
  }

  .panel-heading h2,
  .preview-heading h2 {
    font-size: 18px;
  }

  .field-grid--two {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .field-group {
    padding-bottom: 18px;
  }

  .field-group + .field-group {
    padding-top: 18px;
  }

  .form-actions {
    position: sticky;
    z-index: 5;
    bottom: 9px;
    margin-right: -5px;
    margin-left: -5px;
    padding: 8px 5px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(24, 37, 45, 0.1);
    backdrop-filter: blur(8px);
  }

  .form-actions .button--primary {
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
  }

  .preview-stage {
    padding: 9px;
  }

  .report-header,
  .report-title-row {
    display: block;
    padding: 18px 15px 15px;
  }

  .report-meta {
    justify-items: start;
    margin-top: 14px;
    text-align: left;
  }

  .report-title-row h3 {
    font-size: 21px;
  }

  .report-status {
    margin-top: 14px;
  }

  .amount-band {
    display: block;
    margin: 0 15px;
    padding: 16px 0 17px;
  }

  .amount-value {
    font-size: 29px;
  }

  .expiry-line {
    justify-items: start;
    margin-top: 12px;
    text-align: left;
  }

  .report-section {
    padding: 18px 15px 0;
  }

  .report-section-heading {
    align-items: flex-start;
  }

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

  .detail-item {
    min-height: 62px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .progress-timeline {
    display: flex;
    width: max-content;
    min-width: 100%;
    overflow: visible;
  }

  .timeline-section {
    overflow-x: auto;
  }

  .progress-timeline li {
    flex: 0 0 88px;
  }

  .progress-timeline::before {
    right: 44px;
    left: 44px;
  }

  .report-footer {
    display: block;
    margin-top: 19px;
    padding: 13px 15px 16px;
  }

  .report-footer span {
    display: block;
    margin-top: 8px;
  }

  .preview-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-actions .button:last-child {
    grid-column: 1 / -1;
  }

  .site-footer {
    display: block;
    padding-bottom: 18px;
    line-height: 1.8;
  }

  .site-footer span {
    display: block;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #ffffff;
  }

  .topbar,
  .page-intro,
  .editor-panel,
  .preview-heading,
  .preview-actions,
  .preview-feedback,
  .site-footer {
    display: none !important;
  }

  .page-main {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .workbench,
  .preview-panel {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .preview-stage {
    min-height: 0;
    padding: 0;
    background: #ffffff;
    border: 0;
  }

  .report-card {
    width: 100%;
    border: 1px solid #cbd6d2;
    box-shadow: none;
  }
}

/* The customer-facing report uses a compact Chinese business-portal skin. */
:root {
  --portal-red: #d71920;
  --portal-red-dark: #b51218;
  --portal-bg: #f2f2f2;
  --portal-border: #d3d3d3;
  --portal-text: #222222;
  --portal-muted: #777777;
  --portal-green: #087443;
}

.preview-stage {
  background: #e9edef;
  overflow-x: auto;
}

#report-card.report-card--pc,
#report-card.report-card--mobile {
  overflow: hidden;
  color: var(--portal-text);
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

#report-card.report-card--pc {
  width: min(100%, 1080px);
  min-width: 820px;
}

#report-card.report-card--mobile {
  width: min(390px, 100%);
  max-width: 390px;
  box-shadow: none;
}

#report-card .report-mark,
#report-card .report-mark::before,
#report-card .report-mark::after {
  position: static;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--portal-red);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  transform: none;
}

#report-card .report-mark::before,
#report-card .report-mark::after {
  display: none;
  content: none;
}

#report-card .report-system-header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--portal-red);
}

#report-card .report-system-brand,
#report-card .report-system-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

#report-card .report-system-brand__name {
  display: grid;
  gap: 0;
  line-height: 1.2;
}

#report-card .report-system-brand__name strong {
  font-size: 15px;
  letter-spacing: 0;
}

#report-card .report-system-brand__name small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

#report-card .report-system-tools {
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  white-space: nowrap;
}

#report-card .report-system-tools time {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

#report-card .report-module-nav {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 25px;
  padding: 0 22px;
  color: rgba(255, 255, 255, 0.86);
  background: var(--portal-red);
  border-bottom: 0;
  font-size: 12px;
}

#report-card .report-module-nav__current {
  color: #ffffff;
  font-weight: 700;
}

#report-card .report-module-nav time {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 400;
}

#report-card .report-breadcrumb {
  padding: 13px 26px 9px;
  color: #888888;
  background: var(--portal-bg);
  font-size: 11px;
}

#report-card .report-breadcrumb b {
  padding: 0 6px;
  color: #aaaaaa;
  font-weight: 400;
}

#report-card .report-breadcrumb strong {
  color: #444444;
  font-weight: 400;
}

#report-card .report-tabs {
  display: flex;
  align-items: stretch;
  padding: 0 26px;
  background: var(--portal-bg);
  border-bottom: 2px solid var(--portal-red);
}

#report-card .report-tabs > span {
  display: inline-flex;
  min-width: 118px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #555555;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-bottom: 0;
  font-size: 12px;
}

#report-card .report-tabs > span + span {
  border-left: 0;
}

#report-card .report-tabs > .report-tabs__active {
  color: #ffffff;
  background: var(--portal-red);
  border-color: var(--portal-red);
  font-weight: 700;
}

#report-card .report-content {
  padding: 18px 26px 24px;
  background: #ffffff;
}

#report-card .report-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e2e2;
}

#report-card .report-page-heading__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

#report-card .report-page-heading__title > i {
  display: block;
  width: 7px;
  height: 27px;
  background: var(--portal-red);
}

#report-card .report-page-heading__title h3 {
  margin: 0;
  color: #222222;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

#report-card .report-page-heading__title p {
  margin: 3px 0 0;
  color: #999999;
  font-size: 11px;
}

#report-card .report-status {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--portal-green);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
}

#report-card .report-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

#report-card .report-status.status--pending {
  color: #a76400;
  background: transparent;
  border: 0;
}

#report-card .report-status.status--rejected {
  color: var(--portal-red-dark);
  background: transparent;
  border: 0;
}

#report-card .report-record-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  color: #888888;
  font-size: 10px;
}

#report-card .report-record-line strong {
  color: #444444;
  font-weight: 600;
  letter-spacing: 0;
}

#report-card .report-result-strip {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto minmax(110px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 7px 12px;
  padding: 11px 14px;
  background: #fafafa;
  border: 1px solid var(--portal-border);
  border-left: 4px solid var(--portal-red);
  font-size: 11px;
}

#report-card .report-result-strip > span {
  color: #777777;
  white-space: nowrap;
}

#report-card .report-result-strip > strong {
  color: #333333;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

#report-card .report-result-strip > .report-result-strip__status {
  color: var(--portal-green);
}

#report-card .report-condition {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 52px;
  margin-top: 14px;
  background: #fff7f7;
  border: 1px solid #e3b8ba;
}

#report-card .report-condition > span,
#report-card .report-condition > strong {
  display: flex;
  min-width: 0;
  align-items: center;
}

#report-card .report-condition > span {
  justify-content: center;
  padding: 10px;
  color: #ffffff;
  background: var(--portal-red);
  font-size: 13px;
  font-weight: 700;
}

#report-card .report-condition > strong {
  padding: 10px 14px;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#report-card .report-condition__copy > span {
  display: inline;
}

#report-card .report-condition__copy > span:last-child {
  color: var(--portal-red-dark);
}

#report-card.report-status--pending .report-result-strip__status,
#report-card.report-status--pending .report-decision-row strong[data-report="reviewStatus"] {
  color: #a76400;
}

#report-card.report-status--rejected .report-result-strip__status,
#report-card.report-status--rejected .report-decision-row strong[data-report="reviewStatus"] {
  color: var(--portal-red-dark);
}

#report-card .report-section {
  padding: 18px 0 0;
}

#report-card .report-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 8px;
}

#report-card .report-section-heading h4,
#report-card .report-process__heading h4 {
  margin: 0;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
}

#report-card .report-section-heading span,
#report-card .report-process__heading span {
  color: #999999;
  font-size: 10px;
}

#report-card .approval-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--portal-text);
  background: #ffffff;
  font-size: 11px;
}

#report-card .approval-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#report-card .approval-table th,
#report-card .approval-table td {
  min-width: 0;
  padding: 9px 5px;
  overflow-wrap: anywhere;
  border: 0.5px solid #b8b8b8;
  text-align: center;
  vertical-align: middle;
}

#report-card .approval-table th {
  color: #222222;
  background: #f7f7f7;
  font-weight: 700;
}

#report-card .approval-table td {
  color: #333333;
  background: #ffffff;
}

#report-card .approval-table .approval-table__amount {
  color: #333333;
  font-weight: 700;
}

#report-card .approval-table .approval-table__progress {
  color: var(--portal-red);
  font-weight: 700;
}

#report-card .report-decision-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 10px 12px;
  color: #777777;
  background: #fbfbfb;
  border: 1px solid var(--portal-border);
  border-top: 0;
  font-size: 11px;
}

#report-card .report-decision-row strong {
  color: #333333;
  font-weight: 600;
}

#report-card .report-decision-row strong[data-report="reviewStatus"] {
  color: var(--portal-green);
}

#report-card .report-decision-row strong[data-report="progressCaption"],
#report-card .report-decision-row strong[data-report="amount"] {
  color: var(--portal-red);
}

#report-card .report-process {
  padding-top: 18px;
}

#report-card .report-process__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

#report-card .progress-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0 8px;
  border: 0;
  list-style: none;
}

#report-card .progress-timeline::before {
  position: absolute;
  content: "";
  z-index: 0;
  top: 15px;
  right: 10%;
  left: 10%;
  height: 1px;
  background: #c8c8c8;
}

#report-card .progress-timeline li {
  position: relative;
  display: grid;
  z-index: 1;
  gap: 3px;
  min-width: 0;
  min-height: 68px;
  align-content: start;
  justify-items: center;
  padding: 31px 4px 4px;
  color: #999999;
  background: transparent;
  border: 0;
  font-size: 10px;
  text-align: center;
}

#report-card .progress-timeline li::before {
  position: absolute;
  content: "";
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 11px;
  height: 11px;
  background: #ffffff;
  border: 2px solid #b8b8b8;
  border-radius: 50%;
  box-sizing: border-box;
  transform: translateX(-50%);
}

#report-card .progress-timeline li b {
  color: #777777;
  font-size: 11px;
  font-weight: 600;
}

#report-card.report-card--pc .progress-timeline li b,
#report-card.report-card--pc .progress-timeline li span {
  display: block;
  width: 100%;
  min-width: 0;
  line-height: 1.35;
  white-space: nowrap;
}

#report-card.report-card--pc .approval-table th:nth-child(3),
#report-card.report-card--pc .approval-table td:nth-child(3) {
  width: 15%;
  font-size: 9px;
  white-space: nowrap;
}

#report-card .progress-timeline li.is-complete,
#report-card .progress-timeline li.is-current {
  color: #555555;
  background: transparent;
}

#report-card .progress-timeline li.is-complete b {
  color: #333333;
}

#report-card .progress-timeline li.is-complete::before {
  background: var(--portal-green);
  border-color: var(--portal-green);
}

#report-card .progress-timeline li.is-current {
  box-shadow: none;
}

#report-card .progress-timeline li.is-current b {
  color: var(--portal-red);
}

#report-card .progress-timeline li.is-current::before {
  background: var(--portal-red);
  border-color: var(--portal-red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.13);
}

#report-card .report-notice {
  margin-top: 16px;
  padding: 10px 12px;
  color: #777777;
  background: #fffdf5;
  border: 1px solid #e7d9b4;
  font-size: 10px;
  line-height: 1.6;
}

#report-card .report-notice strong {
  color: #8a681f;
}

#report-card .report-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 0;
  padding: 12px 26px;
  color: #999999;
  background: #f6f6f6;
  border-top: 1px solid #dddddd;
  font-size: 10px;
}

#report-card .report-footer b {
  color: #666666;
  font-weight: 600;
}

@media (max-width: 640px) {
  #report-card.report-card--pc {
    min-width: 820px;
  }

  #report-card.report-card--mobile {
    width: min(390px, 100%);
  }

  #report-card.report-card--mobile .report-system-header {
    min-height: 48px;
    padding: 0 13px;
  }

  #report-card.report-card--mobile .report-mark {
    width: 27px;
    height: 27px;
    font-size: 12px;
  }

  #report-card.report-card--mobile .report-system-brand__name strong {
    font-size: 13px;
  }

  #report-card.report-card--mobile .report-system-brand__name small {
    font-size: 9px;
  }

  #report-card.report-card--mobile .report-system-tools span {
    display: none;
  }

  #report-card.report-card--mobile .report-system-tools time {
    padding-left: 0;
    border-left: 0;
    font-size: 9px;
  }

  #report-card.report-card--mobile .report-module-nav {
    display: none;
  }

  #report-card.report-card--mobile .report-breadcrumb {
    padding: 10px 13px 7px;
    font-size: 10px;
  }

  #report-card.report-card--mobile .report-tabs {
    overflow-x: auto;
    padding: 0 13px;
  }

  #report-card.report-card--mobile .report-tabs > span {
    min-width: 91px;
    min-height: 36px;
    padding: 0 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  #report-card.report-card--mobile .report-content {
    padding: 14px 13px 18px;
  }

  #report-card.report-card--mobile .report-page-heading__title h3 {
    font-size: 17px;
  }

  #report-card.report-card--mobile .report-page-heading__title p {
    font-size: 10px;
  }

  #report-card.report-card--mobile .report-status {
    font-size: 12px;
  }

  #report-card.report-card--mobile .report-record-line {
    display: block;
    padding: 8px 0;
    font-size: 9px;
    line-height: 1.8;
  }

  #report-card.report-card--mobile .report-record-line span {
    display: block;
  }

  #report-card.report-card--mobile .report-result-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    border-left-width: 3px;
  }

  #report-card.report-card--mobile .report-result-strip > span,
  #report-card.report-card--mobile .report-result-strip > strong {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-right: 1px solid var(--portal-border);
    border-bottom: 1px solid var(--portal-border);
  }

  #report-card.report-card--mobile .report-result-strip > strong {
    justify-content: flex-end;
    border-right: 0;
  }

  #report-card.report-card--mobile .report-section {
    padding-top: 15px;
  }

  #report-card.report-card--mobile .approval-table,
  #report-card.report-card--mobile .approval-table tbody,
  #report-card.report-card--mobile .approval-table tr,
  #report-card.report-card--mobile .approval-table td {
    display: block;
  }

  #report-card.report-card--mobile .approval-table thead {
    display: none;
  }

  #report-card.report-card--mobile .approval-table tr {
    border-top: 1px solid #555555;
  }

  #report-card.report-card--mobile .approval-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 36px;
    align-items: center;
    padding: 7px 8px;
    border-width: 0 1px 1px;
    text-align: left;
  }

  #report-card.report-card--mobile .approval-table td::before {
    content: attr(data-label);
    color: #777777;
  }

  #report-card.report-card--mobile .approval-table td.approval-table__amount,
  #report-card.report-card--mobile .approval-table td.approval-table__progress {
    text-align: left;
  }

  #report-card.report-card--mobile .report-decision-row {
    display: block;
    padding: 8px;
    font-size: 10px;
    line-height: 1.9;
  }

  #report-card.report-card--mobile .report-decision-row span {
    display: block;
  }

  #report-card.report-card--mobile .progress-timeline {
    display: block;
    border-top: 1px solid #bdbdbd;
    border-bottom: 0;
  }

  #report-card.report-card--mobile .progress-timeline li {
    display: flex;
    min-height: 37px;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-right: 0;
    border-bottom: 1px solid #d8d8d8;
    text-align: left;
  }

  #report-card.report-card--mobile .progress-timeline li.is-current {
    box-shadow: inset 3px 0 0 var(--portal-red);
  }

  #report-card.report-card--mobile .report-notice {
    margin-top: 13px;
    font-size: 9px;
  }

  #report-card.report-card--mobile .report-footer {
    display: block;
    padding: 10px 13px;
    font-size: 9px;
    line-height: 1.8;
  }

  #report-card.report-card--mobile .report-footer span {
    display: block;
  }
}

/* A selected mobile report keeps its portrait/key-value layout in desktop
   previews and exported HTML as well; the output target must not depend on
   the browser viewport that happens to open it. */
#report-card.report-card--mobile .report-system-header {
  min-height: 48px;
  padding: 0 13px;
}

#report-card.report-card--mobile .report-mark {
  width: 27px;
  height: 27px;
  font-size: 12px;
}

#report-card.report-card--mobile .report-system-brand__name strong {
  font-size: 13px;
}

#report-card.report-card--mobile .report-system-brand__name small {
  font-size: 9px;
}

#report-card.report-card--mobile .report-system-tools span {
  display: none;
}

#report-card.report-card--mobile .report-system-tools time {
  padding-left: 0;
  border-left: 0;
  font-size: 9px;
}

#report-card.report-card--mobile .report-module-nav {
  display: none;
}

#report-card.report-card--mobile .report-breadcrumb {
  padding: 10px 13px 7px;
  font-size: 10px;
}

#report-card.report-card--mobile .report-tabs {
  overflow-x: auto;
  padding: 0 13px;
}

#report-card.report-card--mobile .report-tabs > span {
  min-width: 91px;
  min-height: 36px;
  padding: 0 9px;
  font-size: 11px;
  white-space: nowrap;
}

#report-card.report-card--mobile .report-content {
  padding: 14px 13px 18px;
}

#report-card.report-card--mobile .report-page-heading {
  display: block;
}

#report-card.report-card--mobile .report-page-heading__title h3 {
  font-size: 17px;
}

#report-card.report-card--mobile .report-page-heading__title p {
  font-size: 10px;
}

#report-card.report-card--mobile .report-status {
  margin-top: 9px;
  font-size: 12px;
}

#report-card.report-card--mobile .report-record-line {
  display: block;
  padding: 8px 0;
  font-size: 9px;
  line-height: 1.8;
}

#report-card.report-card--mobile .report-record-line span {
  display: block;
}

#report-card.report-card--mobile .report-result-strip {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  border-left-width: 3px;
}

#report-card.report-card--mobile .report-result-strip > span,
#report-card.report-card--mobile .report-result-strip > strong {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 6px 8px;
  border-right: 1px solid var(--portal-border);
  border-bottom: 1px solid var(--portal-border);
}

#report-card.report-card--mobile .report-result-strip > strong {
  justify-content: flex-end;
  border-right: 0;
}

#report-card.report-card--mobile .report-section {
  padding-top: 15px;
}

#report-card.report-card--mobile .approval-table,
#report-card.report-card--mobile .approval-table tbody,
#report-card.report-card--mobile .approval-table tr,
#report-card.report-card--mobile .approval-table td {
  display: block;
}

#report-card.report-card--mobile .approval-table thead {
  display: none;
}

#report-card.report-card--mobile .approval-table tr {
  border-top: 1px solid #555555;
}

#report-card.report-card--mobile .approval-table td {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 36px;
  align-items: center;
  padding: 7px 8px;
  border-width: 0 1px 1px;
  text-align: left;
}

#report-card.report-card--mobile .approval-table td::before {
  content: attr(data-label);
  color: #777777;
}

#report-card.report-card--mobile .report-decision-row {
  display: block;
  padding: 8px;
  font-size: 10px;
  line-height: 1.9;
}

#report-card.report-card--mobile .report-decision-row span {
  display: block;
}

#report-card.report-card--mobile .progress-timeline {
  display: block;
  border-top: 1px solid #bdbdbd;
  border-bottom: 0;
}

#report-card.report-card--mobile .progress-timeline li {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-right: 0;
  border-bottom: 1px solid #d8d8d8;
  text-align: left;
}

#report-card.report-card--mobile .progress-timeline li.is-current {
  box-shadow: inset 3px 0 0 var(--portal-red);
}

#report-card.report-card--mobile .report-notice {
  margin-top: 13px;
  font-size: 9px;
}

#report-card.report-card--mobile .report-footer {
  display: block;
  padding: 10px 13px;
  font-size: 9px;
  line-height: 1.8;
}

#report-card.report-card--mobile .report-footer span {
  display: block;
}

#report-card.report-card--mobile .report-module-nav {
  display: flex;
  min-height: 44px;
  padding: 0 13px;
}

#report-card.report-card--mobile .report-module-nav > span:not(.report-module-nav__current) {
  display: none;
}

#report-card.report-card--mobile .report-module-nav time {
  margin-left: auto;
  font-size: 9px;
}

#report-card.report-card--mobile .report-condition {
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 62px;
  margin-top: 12px;
}

#report-card.report-card--mobile .report-condition > span {
  padding: 8px 6px;
  font-size: 11px;
}

#report-card.report-card--mobile .report-condition > strong {
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.65;
}

#report-card.report-card--mobile .report-condition__copy > span {
  display: block;
}

#report-card.report-card--mobile .report-condition__copy {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

#report-card.report-card--mobile .approval-table tr {
  border-top: 0.5px solid #c8c8c8;
}

#report-card.report-card--mobile .approval-table td {
  border-color: #d2d2d2;
  border-width: 0 0.5px 0.5px;
}

#report-card.report-card--mobile .progress-timeline {
  display: block;
  padding: 0;
  border: 0;
}

#report-card.report-card--mobile .progress-timeline::before {
  top: 12px;
  right: auto;
  bottom: 12px;
  left: 8px;
  width: 1px;
  height: auto;
}

#report-card.report-card--mobile .progress-timeline li {
  display: block;
  min-height: 46px;
  justify-items: normal;
  padding: 7px 8px 7px 30px;
  border: 0;
  text-align: left;
}

#report-card.report-card--mobile .progress-timeline li::before {
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
}

#report-card.report-card--mobile .progress-timeline li b,
#report-card.report-card--mobile .progress-timeline li span {
  display: block;
  width: auto;
  margin-right: 0;
  margin-left: 0;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
}

#report-card.report-card--mobile .progress-timeline li span {
  margin: 2px 0 0;
  color: #888888;
  font-size: 9px;
}

#report-card.report-card--mobile .progress-timeline li.is-current {
  background: transparent;
  box-shadow: none;
}

#report-card.report-card--mobile .report-decision-row {
  display: none;
}

@media (max-width: 640px) {
  .preview-panel {
    padding-right: 0;
    padding-left: 0;
  }

  .preview-heading {
    padding-right: 14px;
    padding-left: 14px;
  }

  .preview-stage {
    padding: 8px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .preview-actions,
  .preview-feedback {
    margin-right: 14px;
    margin-left: 14px;
  }

  .form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    background: #ffffff;
    backdrop-filter: none;
  }

  .form-actions .button {
    min-height: 40px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .form-actions .button--text {
    color: var(--muted);
    background: #ffffff;
    border-color: var(--line-dark);
  }
}

@media print {
  #report-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #report-card.report-card--pc {
    width: 100%;
    min-width: 0;
  }

  #report-card.report-card--mobile {
    width: 390px;
    max-width: 390px;
    margin: 0 auto;
    zoom: 0.76;
    break-inside: avoid;
  }

  #report-card .report-condition,
  #report-card .report-section,
  #report-card .report-process,
  #report-card .report-notice,
  #report-card .report-footer {
    break-inside: avoid;
  }
}
