*, *::before, *::after { box-sizing: border-box; }
:root {
  color: #202d29; background: #edf0eb;
  font: 16px/1.625 "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --rule: #87988e; --muted: #42544b; --action: #234b3b;
}
body { margin: 0; }
.sheet { max-width: 944px; margin: auto; padding-inline: 32px; }
.masthead { border-bottom: 1px solid var(--rule); padding-block: 32px 24px; }
h1, h2 { font-family: Batang, "AppleMyungjo", serif; font-weight: 700; margin: 0 0 12px; }
h1 { font-size: 32px; line-height: 42px; }
h2 { font-size: 24px; line-height: 1.45; }
p { margin: 0 0 16px; overflow-wrap: anywhere; }
.masthead p { margin: 0; color: var(--muted); }
nav ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-bottom: 1px solid var(--rule); }
nav li { color: var(--muted); padding: 12px 4px; text-align: center; font-size: .875rem; }
nav [aria-current] { color: var(--action); font-weight: bold; border-bottom: 3px solid var(--action); padding-bottom: 9px; }
section { padding-block: 12px 24px; border-bottom: 1px solid var(--rule); }
.fields { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-block: 24px; }
label { display: block; font-weight: 700; }
input, select, button { font: inherit; min-height: 44px; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 6px 10px; border: 1px solid #677a6e; border-radius: 3px; background: #f9fbf7; color: inherit; }
button { border: 1px solid var(--action); border-radius: 3px; padding: 8px 16px; background: var(--action); color: white; font-weight: 700; cursor: pointer; }
button.secondary { background: transparent; color: var(--action); }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid #234b3b; outline-offset: 3px; }
[aria-invalid="true"] { border-color: #8a302d; }
#status { margin-block: 12px 0; }
#status[data-error="true"], .field-error { color: #8a302d; }
small, .note, .field-error { font-size: .875rem; line-height: 22px; }
small, .note { color: var(--muted); }
button + .note { margin-top: 12px; }
.amount { padding: 12px 0; margin-block: 12px 8px; border-block: 1px solid var(--rule); color: var(--action); font: 700 28px/36px "Malgun Gothic", sans-serif; font-variant-numeric: tabular-nums; text-align: right; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
#detail-items article { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 16px; border-bottom: 1px solid var(--rule); padding-block: 12px; }
#detail-items { margin-bottom: 24px; }
#detail-items h3, #detail-items p { margin: 0; }
#reopen { margin-top: 16px; }
@media (max-width: 599px) {
  .sheet { padding-inline: 20px; }
  .masthead { padding-block: 24px 16px; }
  .fields { grid-template-columns: 1fr; }
  form button, section > button { width: 100%; }
  #detail-items article { grid-template-columns: 1fr; gap: 4px; }
}
