/* 交子新印 · 冷钱包备份页（屏幕预览与打印共用）
   全部尺寸用 em：A4 时 1em = 3.6mm，A5 时 1em = 2.54mm，两种纸的版式完全等比。 */
.sheet {
	--s: 3.6mm; --pw: 210mm; --ph: 297mm;
	position: relative; width: var(--pw); height: var(--ph); overflow: hidden;
	background: #fff; color: #1d1915; font-size: var(--s); line-height: 1.35; text-align: left;
	font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
	-webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.sheet.a5 { --s: 2.54mm; --pw: 148mm; --ph: 210mm; }
.sheet .mono, .sh-k, .sh-f i, .sh-wh span, .sh-w i, .sh-addr, .sh-addr-k, .sh-foot { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; }
.sh-frame { position: absolute; inset: 0; }
.sh-frame svg { display: block; width: 100%; height: 100%; }
.sh-body { position: absolute; left: 5.3em; right: 5.3em; top: 5.1em; bottom: 4.9em; display: flex; flex-direction: column; gap: 1.2em; }

.sh-head { display: grid; grid-template-columns: minmax(0, 1fr) 21em; gap: 1em; align-items: center; }
.sh-title { position: relative; padding: .2em 0 0 .1em; }
.sh-k { margin: 0; font-size: .66em; font-weight: 700; letter-spacing: .16em; color: #c8361f; }
.sh-t { margin: .12em 0 0; font-size: 2.7em; font-weight: 900; line-height: 1.12; letter-spacing: .14em; }
.sh-sub { margin: .4em 0 0; font-size: .9em; color: #4a4038; letter-spacing: .04em; }
.sh-seal { position: absolute; right: .4em; top: .2em; width: 4.4em; height: 4.4em; transform: rotate(4deg); }
.sh-seal svg, .sh-vig svg { display: block; width: 100%; height: auto; }
.sh-vig { position: relative; }

.sh-fields { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: .5em 1.2em; }
.sh-f { display: flex; align-items: flex-end; gap: .45em; min-height: 2.2em; padding-bottom: .22em; border-bottom: .06em solid #1d1915; }
.sh-f i { flex: 0 0 auto; padding-bottom: .2em; font-size: .64em; font-style: normal; font-weight: 700; letter-spacing: .1em; color: #6b5f55; }
.sh-f span { font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.sh-f.wide { grid-column: span 2; }

.sh-wh { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .3em; border-bottom: .12em solid #1d1915; }
.sh-wh b { font-size: 1.15em; font-weight: 900; letter-spacing: .12em; }
.sh-wh span { font-size: .6em; font-weight: 700; letter-spacing: .1em; color: #6b5f55; }
.sh-words { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.sh-grid { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(8, minmax(3em, 1fr)); column-gap: 1.3em; max-height: 34em; }
.w12 .sh-grid { grid-template-rows: repeat(4, minmax(3.6em, 1fr)); max-height: 22em; }
.sh-w { display: flex; align-items: flex-end; gap: .55em; padding-bottom: .32em; border-bottom: .06em solid #9a8d80; }
.sh-w i { flex: 0 0 1.7em; font-size: .78em; font-style: normal; font-weight: 700; color: #c8361f; }
.sh-w b { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 1.32em; font-weight: 700; letter-spacing: .05em; line-height: 1; }
.zh .sh-w b { font-family: inherit; font-size: 1.55em; font-weight: 900; letter-spacing: 0; }

.sh-low { display: grid; grid-template-columns: 11.5em minmax(0, 1fr); gap: 1.6em; align-items: start; }
.sh-qr svg { display: block; width: 11.5em; height: 11.5em; }
.sh-qr-none { display: grid; place-items: center; width: 11.5em; height: 11.5em; border: .08em dashed #9a8d80; color: #8a7d70; font-size: .7em; line-height: 1.5; text-align: center; padding: .8em; }
.sh-addr-k { margin: .5em 0 0; font-size: .56em; font-weight: 700; letter-spacing: .06em; color: #c8361f; }
.sh-addr { margin: .2em 0 0; font-size: .74em; font-weight: 700; line-height: 1.45; word-break: break-all; }
.sh-notes { display: grid; gap: .5em; }
.sh-line { display: flex; align-items: flex-end; gap: .5em; min-height: 2.15em; padding-bottom: .22em; border-bottom: .06em solid #1d1915; font-size: .9em; }
.sh-line i { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .7em; font-style: normal; font-weight: 700; letter-spacing: .08em; color: #6b5f55; padding-bottom: .15em; }
.sh-box { display: inline-block; width: .85em; height: .85em; margin: 0 .2em 0 .7em; border: .09em solid #1d1915; vertical-align: -.08em; }
.sh-pm { display: grid; grid-template-columns: minmax(0, 1fr) 4.4em; gap: 1em; align-items: end; }
.sh-mark { position: relative; width: 4.4em; height: 4.4em; border: .08em solid #1d1915; }
.sh-mark i { position: absolute; left: 0; right: 0; bottom: -1.5em; text-align: center; font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .58em; font-style: normal; font-weight: 700; color: #6b5f55; letter-spacing: .08em; }
.sh-safe { margin: 0; padding-left: 1.1em; font-size: .74em; line-height: 1.6; color: #3a322b; }
.sh-safe li::marker { color: #c8361f; }
.sh-foot { display: flex; justify-content: space-between; gap: 1em; margin-top: auto; padding-top: .55em; border-top: .1em solid #1d1915; font-size: .58em; font-weight: 700; letter-spacing: .08em; color: #6b5f55; }

/* ---------- 打印：只印备份页 ---------- */
@media print {
	html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
	#ambient, .app, .wk-pill { display: none !important; }
	.print-root { display: block !important; }
	.print-root .sheet { height: calc(var(--ph) - .8mm); break-after: avoid; page-break-after: avoid; }
}
