:root {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: #233330;
  background: #f7f8f5;
  font-synthesis: none;
  --white: #fff;
  --green: #174d40;
  --subtle: #5b6964;
  --line: #d9e1dc;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea { border: 1px solid var(--line); border-radius: 8px; }
button { padding: .65rem .9rem; background: var(--white); color: var(--green); cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button:hover:not(:disabled), button[aria-pressed="true"] { background: #e8f0eb; }
:focus-visible { outline: 2px solid #2b8066; outline-offset: 3px; }
input:not([type="checkbox"]), select, textarea { padding: .7rem .75rem; width: 100%; min-width: 0; color: inherit; background: var(--white); }
textarea { resize: vertical; }
input[type="checkbox"] { accent-color: var(--green); width: 17px; height: 17px; margin: 0; flex: 0 0 auto; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.55rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.045em; }
h2 { font-size: 1.23rem; letter-spacing: -.025em; }
.topbar { min-height: 64px; padding: .7rem max(4vw, 1.1rem); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--white); }
.brand { display: flex; gap: .55rem; align-items: center; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.mark { display: grid; place-items: center; color: var(--white); background: var(--green); width: 2rem; height: 2rem; border-radius: .55rem; }
.account { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem .9rem; font-size: .86rem; overflow-wrap: anywhere; }
.boot { margin: 4rem auto; padding: 0 1rem; text-align: center; }
.gate { max-width: 29rem; margin: clamp(2rem, 10vh, 6rem) auto; padding: clamp(1.35rem, 5vw, 2.4rem); border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.kicker { color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .85rem; }
.subtitle { color: var(--subtle); margin: .8rem 0 1.2rem; line-height: 1.55; font-size: .94rem; }
form { display: grid; gap: .78rem; }
form label { font-size: .92rem; font-weight: 650; }
.agreement { display: flex; gap: .55rem; align-items: center; margin-top: .45rem; }
details { font-size: .82rem; line-height: 1.55; color: var(--subtle); }
details summary { cursor: pointer; }
details p { margin: .55rem 0; }
button.primary { color: var(--white); background: var(--green); border-color: var(--green); font-weight: 700; margin-top: .3rem; }
button.primary:hover:not(:disabled) { background: #103b31; }
.quiet { color: var(--green); background: transparent; border-color: transparent; }
.feedback { color: var(--subtle); font-size: .9rem; line-height: 1.5; }
.gate > .feedback { margin-top: .7rem; }
.feedback:empty { display: none; }
[data-status="error"] { color: #9c3030; }
[data-status="success"] { color: var(--green); }
.viewer, .dashboard { max-width: 1600px; margin: 0 auto; padding: clamp(1rem, 4vw, 3rem); }
.page-heading { display: flex; gap: .75rem; align-items: center; margin-bottom: 1.2rem; }
.version { color: var(--subtle); font-size: .84rem; }
.viewer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 305px); align-items: start; gap: 1rem; }
.stage { display: flex; flex-direction: column; gap: .8rem; justify-content: center; align-items: center; aspect-ratio: 16 / 9; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--subtle); }
.stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.slide-nav, .pagination { display: flex; gap: .6rem; align-items: center; justify-content: center; margin-top: .85rem; }
.slide-nav select { width: auto; }
.question-box { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem; }
.tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 36rem; background: var(--white); }
th, td { padding: .85rem; border: 1px solid var(--line); text-align: left; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
th { background: #e8f0eb; }
@media (max-width: 775px) { .viewer-grid { grid-template-columns: 1fr; } }
@media (max-width: 490px) { .gate { margin: 1.2rem; } .account span { display: none; } }
