:root { --ink: #3b2416; --ink2: #7a5a44; --gold: #c8913f; --cream: #fbf3e6; --bar: #2a1a10;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); }
html.app-android { --st: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px)); --sb: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px)); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--cream); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
[hidden] { display: none !important; }
.lg-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; background: var(--bar); padding: calc(var(--st) + 10px) 12px 10px; }
.lg-top a.back { color: var(--cream); text-decoration: none; font-size: 26px; line-height: 1; padding: 4px 10px 6px; }
.lg-top img { height: 26px; display: block; }
main { max-width: 720px; margin: 0 auto; padding: 18px 20px calc(40px + var(--sb)); line-height: 1.7; font-size: 15.5px; word-break: keep-all; }
h1 { font-size: 22px; margin: 6px 0 4px; }
h2 { font-size: 17px; margin: 26px 0 6px; }
p, li { color: var(--ink); }
.sub { color: var(--ink2); font-size: 14px; margin: 0 0 14px; }
.todo { background: #fff2b3; padding: 0 4px; border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; border-top: 1px solid #e6d3b6; padding: 8px 6px; }
th { white-space: nowrap; color: var(--ink2); font-weight: 600; }
.card { background: #fff; border: 1px solid #e6d3b6; border-radius: 16px; padding: 16px; margin: 14px 0; }
.btn { display: inline-block; font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 13px 16px; min-height: 48px; width: 100%; text-align: center; text-decoration: none; cursor: pointer; }
.btn.danger { background: #b23a2a; color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid #d9c3a3; }
.btn:disabled { opacity: .5; }
input { font: inherit; font-size: 16px; width: 100%; padding: 12px; border-radius: 12px; border: 1px solid #d9c3a3; margin: 8px 0 12px; }
.err { color: #b23a2a; min-height: 1.4em; margin: 4px 0; }
.ok { background: #eef6e8; border-color: #b9d6a4; }
ul { padding-left: 1.2em; }
/* QA 2/3: 누르는 영역 44px */
.lg-top a.back { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; box-sizing: border-box; }
main a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.embed .lg-top { display: none; }
.embed main { padding-top: 8px; }
