:root {
  --red: #a61d2d;
  --red-deep: #721622;
  --red-soft: #f8e9eb;
  --ink: #182126;
  --slate: #667177;
  --mist: #eef1f2;
  --line: #d8dddf;
  --paper: #ffffff;
  --canvas: #e9edef;
  --success: #247a5a;
  --shadow: 0 20px 55px rgba(28, 39, 43, 0.12), 0 3px 10px rgba(28, 39, 43, 0.08);
  --body: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --display: "STZhongsong", "FZYaoti", "SimSun", serif;
  --utility: "Bahnschrift", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f6f7f7;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

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

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(166, 29, 45, 0.24);
  outline-offset: 2px;
}

.topbar {
  height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand strong, .brand small { display: block; }
.site-home { margin-left: auto; margin-right: 20px; color: var(--red); font-size: 12px; text-decoration: none; white-space: nowrap; }
.site-home:hover { text-decoration: underline; }
.site-home:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.brand strong { font-size: 15px; letter-spacing: 0.08em; }
.brand small { margin-top: 2px; color: var(--slate); font-size: 10px; letter-spacing: 0.22em; }

.save-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-size: 12px;
}

.save-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.save-state.saving .save-dot { background: #c18b24; animation: pulse 1s infinite; }
.save-state.save-error { color: #a61d2d; }
.save-state.save-error .save-dot { background: #a61d2d; }

.workspace {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(540px, 0.93fr) minmax(600px, 1.07fr);
}

.editor-pane {
  min-width: 0;
  padding: 18px 20px 24px;
  background: #fafafa;
  border-right: 1px solid var(--line);
}

.intro { max-width: 620px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font: 700 11px/1 var(--utility);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  max-width: 590px;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.02em;
}

.intro-copy {
  margin: 6px 0 0;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.8;
}

.project-fields {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.field { display: flex; flex-direction: column; gap: 5px; }
.contact-details { grid-column: 1 / -1; min-width: 0; }
.contact-details summary { cursor: pointer; padding: 8px 0; font-size: 12px; color: #526168; }
.contact-details summary span { float: right; color: var(--red); font-size: 11px; }
.contact-details[open] summary span { display: none; }
.contact-details summary:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.contact-fields { display: grid; gap: 10px; padding: 6px 0 12px; }
.field-wide { grid-column: 1 / -1; }
.field > span {
  color: #4d585d;
  font-size: 12px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--ink);
  background: white;
  border: 1px solid #cfd5d7;
  border-radius: 4px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:hover { border-color: #a9b1b4; }
.field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(166, 29, 45, 0.09); outline: none; }
.field input::placeholder { color: #a1a9ad; }

.selection-bar {
  margin-top: 8px;
  padding: 10px 0;
  position: sticky;
  top: -1px;
  background: #fafafa;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.selection-bar strong { font-size: 12px; }
.selection-hint { margin-left: 7px; color: var(--slate); font-size: 12px; }
.selection-actions { display: flex; align-items: center; gap: 9px; }
.selection-actions > span { width: 1px; height: 11px; background: var(--line); }
.text-button { padding: 3px; border: 0; background: none; color: var(--slate); font-size: 12px; cursor: pointer; }
.text-button:hover { color: var(--red); }

.materials-list { margin-top: 14px; }
.material-group + .material-group { margin-top: 16px; }
.group-title {
  margin: 0 0 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #758086;
  font: 700 11px/1 var(--utility);
  letter-spacing: 0.16em;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: #e1e5e6; }

.material-row {
  position: relative;
  min-height: 42px;
  margin-bottom: 4px;
  padding: 7px 8px 7px 10px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  background: white;
  border: 1px solid #e0e4e5;
  border-radius: 5px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.material-row:hover { border-color: #bcc4c7; }
.material-row.selected { border-left: 3px solid var(--red); padding-left: 8px; }
.material-row:not(.selected) { background: transparent; color: #899195; }

.check-wrap { display: grid; place-items: center; cursor: pointer; }
.check-wrap input { position: absolute; opacity: 0; pointer-events: none; }
.fake-check {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1.5px solid #aab2b5;
  border-radius: 3px;
  background: white;
}
.fake-check::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 140ms ease;
}
.check-wrap input:checked + .fake-check { border-color: var(--red); background: var(--red); }
.check-wrap input:checked + .fake-check::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check-wrap input:focus-visible + .fake-check { outline: 3px solid rgba(166, 29, 45, 0.22); outline-offset: 2px; }

.material-info { min-width: 0; }
.material-info strong { display: block; font-size: 12px; line-height: 1.5; font-weight: 500; }
.material-info small { display: block; margin-top: 3px; color: #8a585f; font-size: 11px; }
.material-row:not(.selected) .material-info small { color: #9ba2a5; }

.period-editor {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #667177;
  font-size: 11px;
}
.period-editor > span {
  margin-right: 2px;
  color: #879095;
  font-weight: 700;
}
.period-editor em { color: #8b9599; font-style: normal; }
.period-editor input {
  width: 68px;
  height: 28px;
  padding: 0 5px;
  border: 1px solid #d5dbdd;
  border-radius: 3px;
  background: #f8f9f9;
  color: #344046;
  font: 12px var(--utility);
  text-align: center;
}
.period-editor input:hover { border-color: #aab4b7; }
.period-editor input:focus { border-color: var(--red); background: white; outline: none; box-shadow: 0 0 0 2px rgba(166,29,45,.09); }
.month-editor input { width: 126px; text-align: left; }
.material-row:not(.selected) .period-editor { opacity: .55; }

.template-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.template-download { margin-top: 4px; padding-bottom: 1px; border-bottom: 1px solid #ddb7bd; }
.template-download:hover { color: var(--red-deep); border-color: var(--red-deep); }
.template-download svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.template-download span { margin-left: 2px; color: #889195; font: 9px var(--utility); }
.material-row:not(.selected) .template-download { opacity: .55; }

.row-controls { display: flex; align-items: center; gap: 8px; }
.seal-toggle {
  padding: 4px 5px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e1c7cb;
  border-radius: 3px;
  background: #fff7f8;
  color: var(--red-deep);
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}
.seal-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.seal-toggle::before { content: "纸"; width: 16px; height: 16px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 2px; font-size: 9px; }
.seal-toggle:not(.active) { color: var(--slate); border-color: var(--line); background: #f6f7f7; }
.seal-toggle:not(.active)::before { content: "电"; background: #8b9599; }
.material-row:not(.selected) .row-controls { opacity: 0.45; }
.delete-row { width: 28px; height: 28px; border: 0; background: transparent; color: #9aa2a5; cursor: pointer; font-size: 19px; }
.delete-row:hover { color: var(--red); }

.add-material {
  width: 100%;
  min-height: 34px;
  margin-top: 12px;
  border: 1px dashed #b9c0c3;
  border-radius: 5px;
  background: transparent;
  color: #657075;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.add-material span { margin-right: 5px; color: var(--red); font-size: 18px; vertical-align: -1px; }
.add-material:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); }

.preview-pane {
  min-width: 0;
  height: calc(100vh - 56px);
  padding: 14px 24px 14px;
  position: sticky;
  top: 56px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  background: var(--canvas);
  overflow: hidden;
}

.preview-heading { display: flex; justify-content: space-between; align-items: flex-end; }
.preview-heading .eyebrow { margin-bottom: 4px; font-size: 13px; letter-spacing: .03em; }
.preview-tip { margin: 0; color: #7b8589; font-size: 11px; }
.view-switch { padding: 3px; display: flex; background: #dfe4e5; border-radius: 4px; }
.view-switch button { padding: 5px 9px; border: 0; border-radius: 3px; background: transparent; color: #6d777b; font-size: 10px; cursor: pointer; }
.view-switch button.active { background: white; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.paper-stage {
  min-height: 0;
  padding: 10px 14px 14px;
  overflow: auto;
  display: block;
}

.paper-frame { margin: 0 auto; }

.paper {
  --paper-scale: 0.82;
  width: 720px;
  min-height: 1018px;
  padding: 49px 58px 45px;
  position: relative;
  flex: 0 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: scale(var(--paper-scale));
  transform-origin: top left;
  margin: 0;
  color: #1c2529;
}

.paper-accent { position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--red); }
.paper-header { padding-bottom: 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ccd2d4; }
.paper-brand { color: #344046; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.paper-date { color: #7e898e; font: 11px var(--utility); }

.paper-title { padding: 40px 0 23px; text-align: center; }
.paper-title p { margin: 0 0 8px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .28em; }
.paper-title h2 { margin: 0; font-family: var(--display); font-size: 37px; font-weight: 500; letter-spacing: .14em; }
.title-rule { width: 34px; height: 3px; margin: 17px auto 0; display: block; background: var(--red); }
.letter-opening { padding: 13px 17px; border-left: 3px solid var(--red); background: #f7f8f8; font-family: var(--display); font-size: 18px; letter-spacing: .04em; }
.letter-opening, .paper-list, .paper-notes, .mailing-details { overflow-wrap: anywhere; }

.paper-columns {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.paper-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #dce1e2;
  background: linear-gradient(to bottom, #ffffff 0, #ffffff 78%, #fafbfb 100%);
}
.paper-column-head {
  min-height: 62px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #dce1e2;
  background: #faf6f7;
}
.digital-column .paper-column-head { background: #f3f6f7; }
.paper-column-head > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  background: var(--red);
  font-family: var(--display);
  font-size: 14px;
}
.digital-column .paper-column-head > span { background: #66767d; }
.paper-column-head h3 { margin: 0; font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.paper-column-head p { margin: 3px 0 0; color: #838d91; font-size: 8px; }
.paper-column .paper-list { padding: 0 12px; }
.paper-column .paper-list li {
  min-height: 45px;
  padding: 8px 0;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
}
.paper-column .paper-list strong { font-size: 11px; }
.paper-column .paper-list small { font-size: 8px; }
.column-empty { margin: 0; padding: 28px 12px; color: #929b9f; font-size: 9px; text-align: center; }

.paper-list { margin: 0; padding: 0; list-style: none; counter-reset: material; }
.paper-list li {
  min-height: 49px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #e3e6e7;
  counter-increment: material;
}
.paper-list li::before { content: counter(material, decimal-leading-zero); color: #9ca4a7; font: 11px var(--utility); }
.paper-list strong { font-family: "SimSun", serif; font-size: 13px; font-weight: 600; line-height: 1.45; }
.paper-list small { display: block; margin-top: 3px; color: #8a565d; font-size: 9px; }
.client-template-link { display: block; width: fit-content; margin-top: 3px; color: var(--red); font: 8px/1.4 var(--body); text-underline-offset: 2px; }
.client-template-link:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.paper-badge { padding: 4px 7px; border: 1px solid #d9b2b8; color: var(--red); font-size: 9px; white-space: nowrap; }
.paper-badge.digital { color: #69757a; border-color: #d5dadd; }

.empty-paper { padding: 48px 20px; text-align: center; border-top: 1px solid #e1e5e6; border-bottom: 1px solid #e1e5e6; color: #7b8589; }
.empty-paper span { width: 35px; height: 35px; margin: 0 auto 12px; display: grid; place-items: center; border: 1px solid #c9cfd1; border-radius: 50%; }
.empty-paper strong { display: block; color: #485358; font-size: 13px; }
.empty-paper p { margin: 7px 0 0; font-size: 10px; }

.paper-notes { margin-top: 17px; padding: 11px 14px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; border-left: 3px solid var(--red); background: #f7f8f8; }
.paper-notes h3 { margin: 1px 0 0; color: var(--red); font-size: 9px; white-space: nowrap; }
.paper-notes ul { margin: 0; padding-left: 14px; color: #69757a; font-family: "SimSun", serif; font-size: 9px; line-height: 1.65; }
.paper-footer { margin-top: 18px; padding-top: 13px; display: flex; justify-content: space-between; align-items: center; gap: 22px; border-top: 1px solid #ccd2d4; }
.mailing-details { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 6px; }
.mailing-details > span { color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.mailing-details > strong { max-width: 360px; font-family: "SimSun", serif; font-size: 11px; line-height: 1.65; }
.mailing-details p { margin: 0; color: #667177; font-size: 10px; letter-spacing: 0; }
.mailing-details b { color: #303b40; font-weight: 700; }
.qr-contact { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.qr-contact > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.qr-contact strong { font-size: 11px; }
.qr-contact span { max-width: 70px; color: #798388; font-size: 8px; line-height: 1.45; }
.qr-crop { width: 96px; height: 96px; position: relative; flex: 0 0 auto; overflow: hidden; background: white; }
.qr-crop img { width: 122px; max-width: none; height: auto; position: absolute; left: -17px; top: -54px; }

.export-actions { display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 9px; }
.secondary-button, .primary-button {
  min-height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.secondary-button { border: 1px solid #bfc7ca; background: rgba(255,255,255,.7); }
.secondary-button:hover { background: white; }
.primary-button { border: 1px solid var(--red); background: var(--red); color: white; box-shadow: 0 5px 14px rgba(166,29,45,.18); }
.primary-button:hover { background: var(--red-deep); box-shadow: 0 7px 18px rgba(114,22,34,.24); }
.secondary-button:active, .primary-button:active { transform: translateY(1px); }
.secondary-button svg, .primary-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.material-dialog { width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 7px; box-shadow: 0 24px 70px rgba(20,30,35,.28); }
.material-dialog::backdrop { background: rgba(24,33,38,.48); backdrop-filter: blur(3px); }
.material-dialog form { padding: 27px; }
.dialog-head { margin-bottom: 24px; display: flex; justify-content: space-between; }
.dialog-head h2 { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 500; }
.dialog-head .eyebrow { margin-bottom: 7px; }
.icon-button { width: 32px; height: 32px; border: 0; background: #f0f2f2; color: #677277; font-size: 22px; cursor: pointer; }
.material-dialog .field + .field { margin-top: 16px; }
.seal-choice { margin-top: 20px; display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.seal-choice input { position: absolute; opacity: 0; }
.switch { width: 32px; height: 18px; padding: 2px; background: #b8c0c3; border-radius: 9px; transition: background 160ms; }
.switch::after { content: ""; width: 14px; height: 14px; display: block; border-radius: 50%; background: white; transition: transform 160ms; }
.seal-choice input:checked + .switch { background: var(--red); }
.seal-choice input:checked + .switch::after { transform: translateX(14px); }
.seal-choice input:focus-visible + .switch { outline: 3px solid rgba(166,29,45,.2); outline-offset: 2px; }
.dialog-actions { margin-top: 27px; display: flex; justify-content: flex-end; gap: 9px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 100;
  padding: 11px 17px;
  color: white;
  background: #263338;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes pulse { 50% { opacity: .35; } }

@media screen and (min-width: 651px) {
  .workspace {
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    min-height: 0;
    grid-template-columns: clamp(310px, 39vw, 500px) minmax(0, 1fr);
    overflow: hidden;
  }
  .editor-pane { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
  .preview-pane { height: 100%; position: relative; top: 0; }
  .paper-stage { overscroll-behavior: contain; }
}

@media screen and (min-width: 651px) and (max-width: 1000px) {
  .editor-pane { padding: 16px 12px 24px; }
  .selection-bar { flex-wrap: wrap; gap: 6px; }
  .selection-actions { flex-wrap: wrap; }
  .period-editor { flex-wrap: wrap; }
  .preview-pane { padding: 14px 10px; gap: 10px; }
  .preview-heading { flex-wrap: wrap; gap: 8px; }
  .export-actions { gap: 6px; }
  .export-actions button { font-size: 11px; padding: 0 6px; }
  .export-actions svg { display: none; }
}

@media (max-width: 650px) {
  .workspace { grid-template-columns: 1fr; }
  .topbar { min-height: 62px; height: auto; padding: 12px 18px; flex-wrap: wrap; gap: 6px; }
  .brand small { display: none; }
  .save-state { width: 100%; justify-content: flex-end; font-size: 11px; }
  .site-home { margin-right: 0; }
  .editor-pane { border-right: 0; padding: 20px 16px 24px; }
  .intro h1 { font-size: 19px; }
  .field input { min-height: 40px; }
  .project-fields { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .selection-bar { position: static; flex-direction: column; align-items: flex-start; gap: 6px; }
  .selection-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .material-row { min-height: 48px; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 5px; }
  .check-wrap { min-height: 36px; }
  .seal-toggle { min-height: 34px; }
  .text-button { min-height: 36px; }
  .period-editor { flex-wrap: wrap; }
  .preview-pane { height: 85svh; min-height: 480px; position: relative; top: 0; padding: 18px 10px; }
  .preview-heading { padding: 0 8px; }
  .view-switch { display: none; }
  .paper-stage { padding: 8px 4px 14px; }
  .paper { margin: 0; }
  .export-actions { grid-template-columns: 1fr 1fr; padding: 0 8px; }
  .export-actions .primary-button { grid-column: 1 / -1; grid-row: 1; }
  .secondary-button, .primary-button { min-height: 42px; }
}

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

@page { size: A4; margin: 0; }

@media print {
  body { background: white; }
  .topbar, .editor-pane, .preview-heading, .export-actions, .toast { display: none !important; }
  .workspace { display: block; min-height: 0; }
  .preview-pane { display: block; position: static; height: auto; min-height: 0; padding: 0; overflow: visible; background: white; }
  .paper-stage { display: block; max-height: none; padding: 0; overflow: visible; }
  .paper-frame { width: auto !important; height: auto !important; margin: 0; }
  .paper { width: 210mm; min-height: 297mm; margin: 0; padding: 12mm 17mm 10mm 19mm; box-shadow: none; transform: none; }
  .paper-accent { width: 2.3mm; }
  .paper-header { padding-bottom: 10px; }
  .paper-title { padding-top: 7mm; padding-bottom: 4mm; }
  .paper-title h2 { font-size: 30px; }
  .title-rule { margin-top: 10px; }
  .letter-opening { padding: 9px 13px; font-size: 15px; }
  .paper-list li { min-height: 36px; padding: 6px 0; }
  .paper-list strong { font-size: 12px; }
  .paper-columns { gap: 10px; }
  .paper-column-head { min-height: 52px; padding: 8px 10px; }
  .paper-column .paper-list { padding: 0 9px; }
  .paper-column .paper-list li { min-height: 34px; padding: 5px 0; grid-template-columns: 22px minmax(0, 1fr); }
  .paper-column .paper-list strong { font-size: 10px; }
  .paper-notes { margin-top: 15px; padding: 11px 16px; }
  .paper-footer { margin-top: 10px; padding-top: 8px; }
  .qr-crop { width: 90px; height: 90px; }
  .qr-crop img { width: 118px; left: -16px; top: -52px; }
  .paper-list li { break-inside: avoid; }
  .paper-notes { break-inside: avoid; }
  .paper-footer { break-inside: avoid; }
}
