/* Paper forms share the same ink, ruling and button hierarchy as the admission ticket. */
dialog {
  --sheet-ink: #18332d;
  --sheet-red: #a1392c;
  --sheet-rule: #c5bba7;
  --sheet-muted: #5c6255;
  --sheet-paper: #faf4e4;
  --sheet-serif: "Nanum Myeongjo", "Batang", "AppleMyungjo", serif;
  color-scheme: light;
  width: min(36rem, calc(100% - 2rem));
  max-height: 90dvh;
  padding: clamp(1.2rem, 3.6vw, 2.1rem);
  color: var(--sheet-ink);
  border: 1px solid #343e32;
  border-radius: 3px;
  background: var(--sheet-paper);
  box-shadow: inset 0 4px 0 var(--sheet-ink), 4px 5px 0 #c9bfa9, 0 16px 52px #08181266;
  overscroll-behavior: contain;
}
dialog::backdrop { background: #142521b8; backdrop-filter: blur(3px); }
dialog .dialog-eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--sheet-red);
  font-size: .82rem;
  letter-spacing: .06em;
}
dialog .dialog-eyebrow::after {
  content: "";
  height: 1px;
  background: var(--sheet-rule);
  flex: auto;
}
dialog h2 {
  color: var(--sheet-ink);
  margin: .6rem 0 1rem;
  font: 800 clamp(1.7rem, 4vw, 2.25rem)/1.25 var(--sheet-serif);
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
dialog h2:focus { outline: none; }
dialog p { color: var(--sheet-ink); font-size: 1rem; line-height: 1.6; }
dialog .actions {
  border-top: 3px double var(--sheet-rule);
  padding-top: 1rem;
  margin-top: 1.25rem;
  gap: .5rem;
}
dialog button:not(.charge-track) {
  color: var(--sheet-ink);
  border: 1px solid #9f9e88;
  background: #fffbed;
  border-radius: 3px;
}
dialog .actions button { min-height: 44px; text-align: center; }
dialog button:hover:not(:disabled):not(.charge-track) { border-color: var(--sheet-ink); background: #ede7d6; }
dialog button.primary:not(.charge-track) {
  color: #fffbef;
  background: var(--sheet-ink);
  border-color: var(--sheet-ink);
  box-shadow: none;
}
dialog button.primary:hover:not(:disabled) { background: #2d4a3c; }
dialog button:focus-visible, dialog input:focus-visible { outline-color: var(--sheet-red); }
dialog input[type=text] {
  border: 1px solid var(--sheet-rule);
  border-bottom: 2px solid var(--sheet-ink);
  border-radius: 0;
  background: #fffbef;
  color: var(--sheet-ink);
}
dialog .error { color: var(--sheet-red); }
dialog .shop-row small { color: var(--sheet-muted); }
dialog .shop-row, dialog .rank-row { border-color: var(--sheet-rule); }
dialog .shop-row button { min-height: 40px; }
.exam-summary { display: flex; margin: 0; padding: 0; border-block: 1px solid var(--sheet-rule); }
.exam-summary > div { flex: 1; padding: .75rem .45rem; }
.exam-summary > div + div { border-left: 1px solid var(--sheet-rule); padding-left: 1rem; }
.exam-summary dt, .exam-option small { color: var(--sheet-muted); font-size: .875rem; }
.exam-summary dd { margin: .32rem 0 0; font-weight: 800; }
.exam-options { border-block: 1px solid var(--sheet-rule); }
.exam-option { display: flex; align-items: center; gap: .9rem; padding: 1rem .2rem; cursor: pointer; }
.exam-option + .exam-option { border-top: 1px dotted var(--sheet-rule); }
.exam-option input { inline-size: 1.35rem; block-size: 1.35rem; accent-color: var(--sheet-ink); flex: none; }
.exam-option strong, .exam-option small { display: block; }
.exam-option small { margin-top: .25rem; line-height: 1.5; }
dialog .settings-record { font-size: .875rem; color: var(--sheet-muted); }
dialog[data-view=confirm] h2, dialog[data-view=over] h2 { color: var(--sheet-red); }
dialog[data-view=confirm] .actions { grid-template-columns: 2fr 1fr; }
dialog[data-view=confirm] button.primary { background: #92382c; border-color: #92382c; }
dialog[data-view=confirm] button.primary:hover { background: #772c23; }
dialog[data-view=over] .actions, dialog[data-view=revive-share] .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
dialog .revive-note { padding-left: .7rem; border-left: 2px solid var(--sheet-rule); color: var(--sheet-muted); font-size: .9rem; }
dialog[data-view=revive-share] input { width: 100%; box-sizing: border-box; }
.revive-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
