:root {
  font: 16px "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #20252b;
  --accent: #742940;
  --border: #dee2e6;
  --muted: #515b65;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: .9375rem; line-height: 1.5; background: #fff; }
main { width: min(calc(100% - 32px), 520px); margin: clamp(24px, 7vh, 56px) auto; padding: 24px;
  border: 1px solid var(--border); border-radius: 12px; }
h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.35; overflow-wrap: anywhere; }
h1 { font-size: 1.375rem; letter-spacing: -.02em; }
h2 { font-size: 1.125rem; }
h3 { font-size: 1rem; }
h4 { font-size: .9375rem; }
p { margin: 0 0 12px; color: var(--muted); overflow-wrap: anywhere; }
form { display: flex; flex-wrap: wrap; gap: 8px; }
button, input { font: inherit; }
button { min-height: 34px; padding: 6px 10px; border: 1px solid var(--accent); border-radius: 8px;
  background: var(--accent); color: #fff; font-size: .875rem; font-weight: 600; cursor: pointer; }
button:enabled:hover { background: #622239; }
button[value="cancel"] { color: #20252b; background: #fff; border-color: var(--border); }
button[value="cancel"]:hover { background: #f5f5f7; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.privacy-notice { width: min(calc(100% - 32px), 640px); }
.privacy-notice nav { margin-bottom: 20px; }
.privacy-notice nav a { color: var(--accent); }
.privacy-notice section { padding-top: 20px; }
.privacy-notice section + section { margin-top: 8px; border-top: 1px solid var(--border); }

.backup-reader form { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 12px; }
.backup-reader label { display: grid; gap: 5px; width: 100%; font-size: .75rem; font-weight: 600; }
.backup-reader input:where(:not([type="checkbox"])) { width: 100%; min-width: 0; min-height: 34px;
  padding: 6px 10px; border: 1px solid #808893; border-radius: 6px; font-size: .8125rem; font-weight: 400; }
.backup-reader input[type="file"] { padding: 4px; }
input::file-selector-button { min-height: 34px; margin-inline-end: 8px; padding: 4px 8px;
  border: 1px solid var(--border); border-radius: 6px; background: #f5f5f7; color: inherit; font: inherit; cursor: pointer; }
.backup-reader .inline-check { display: flex; align-items: center; min-height: 34px; }
.backup-reader input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
#status { margin-block: 12px; }
#status:empty { margin: 0; }
.backup-reader article { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.backup-reader article > :last-child { margin-bottom: 0; }
.backup-reader nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.backup-reader nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 9px;
  border: 1px solid var(--border); border-radius: 6px; color: var(--accent); }
.backup-reader h3:not(:first-child) { margin-top: 20px; }
.backup-memo-text { white-space: pre-wrap; }
@media (max-width: 520px) {
  main { padding: 16px; }
  h1 { font-size: 1.25rem; }
}
@media (max-width: 680px), (pointer: coarse) {
  button, .backup-reader .inline-check, .backup-reader input:where(:not([type="checkbox"])) { min-height: 44px; }
  .backup-reader input:where(:not([type="checkbox"])) { font-size: 1rem; }
}
