.pke-receipt {
  color-scheme: light;
  box-sizing: border-box;
  width: min(28rem, calc(100% - 1.5rem));
  max-height: min(46rem, calc(100vh - 2rem));
  max-height: min(46rem, calc(100dvh - 2rem));
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #2c3028;
  border: 1px solid #8a795f;
  border-radius: 8px 8px 3px 3px;
  background: #f4ead4;
  box-shadow: 0 2px 0 #594f3e, 0 16px 58px #0009;
  text-align: left;
  font: 500 1rem/1.4 var(--font-body, system-ui, sans-serif);
}
.pke-receipt::backdrop { background: rgb(16 17 14 / 77%); }
.pke-receipt .pr-head {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem clamp(1rem, 4vw, 1.6rem);
  color: #f8eacc;
  border-bottom: 4px double #938267;
  background: linear-gradient(115deg, #293633, #202725);
}
.pr-head div > span, .pr-paper h3 {
  font: 700 .76rem/1.3 var(--font-mono, 'Courier New', monospace);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.pr-head div > span { color: #d8c39c; }
.pr-head h2 {
  margin: .12rem 0 0;
  color: inherit;
  font: 800 2.25rem/.99 var(--font-display, Impact, sans-serif);
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.pr-head button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #a29579;
  border-radius: 5px;
  background: #27302c;
  color: #ffedcb;
  font: 500 1.8rem/1 var(--font-body, sans-serif);
  cursor: pointer;
}
.pr-head button:hover { background: #41483a; }
.pr-head button:focus-visible { outline: 2px solid #ffe6a7; outline-offset: 2px; }
.pr-paper {
  padding: 1.2rem clamp(1rem, 4vw, 1.6rem) 1.55rem;
  background: linear-gradient(105deg, #e9ddc8 0%, #f7eedb 11%, #f5ecd8 90%, #eae0cd);
}
.pr-paper .pr-empty { margin: 0 0 1.1rem; color: #414136; }
.pr-paper section + section { margin-top: 1.15rem; }
.pr-paper h3 {
  margin: 0 0 .65rem;
  padding-bottom: .35rem;
  border-bottom: 1px dashed #918972;
  color: #6a4c3c;
}
.pr-paper ul { list-style: none; padding: 0; margin: 0; }
.pr-paper li { margin: 0; padding: 0; }
.pr-paper li + li { margin-top: .85rem; }
.pr-line { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.pr-line strong { color: #252b24; font-weight: 750; }
.pr-line b { flex: none; color: #344937; font: 700 .95rem/1.25 var(--font-mono, monospace); }
.pr-paper li p { margin: .2rem 0 0; color: #494a40; font-size: .94rem; line-height: 1.4; }
.pr-paper code {
  display: inline-block;
  margin-top: .38rem;
  padding: .17rem .45rem;
  border: 1px solid #acac92;
  border-radius: 2px;
  background: #e5e5cf;
  color: #2d463a;
  font: 700 .95rem/1.15 var(--font-mono, monospace);
  letter-spacing: .035em;
  user-select: all;
}
@media (prefers-reduced-motion: no-preference) {
  .pke-receipt[open] .pr-paper { animation: pke-slip-eject 220ms ease-out; }
  @keyframes pke-slip-eject { from { transform: translateY(-8px); opacity: .7; } }
}
