:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --ink: #173131;
  --muted: #506566;
  --green: #07675b;
  --mint: #e3f4ef;
  --border: #d2dfde;
  --error: #ac272c;
  color: var(--muted);
  background: #f5f8f8;
  letter-spacing: -.025em;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ol, dd { margin: 0; }
h1, h2, h3, b { color: var(--ink); }
h1 { font-size: 2rem; letter-spacing: -.05em; line-height: 1.35; margin-bottom: .55rem; }
h2 { font-size: 1.15rem; line-height: 1.4; }
h3 { font-size: 1rem; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: .2em; }
:focus-visible, fieldset label:has(:focus-visible) { outline: 3px solid #377db0; outline-offset: 3px; }
.frame { width: min(65rem, 91%); margin-inline: auto; }
header { background: white; border-bottom: 1px solid var(--border); }
nav, .brand, .row { display: flex; align-items: center; gap: .65rem; }
nav { min-height: 5rem; justify-content: space-between; }
.brand { text-decoration: none; }
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.company { margin-top: auto; border-top: 1px solid var(--border); padding-block: 1.15rem 1.65rem; font-size: .78rem; line-height: 1.8; }
.company div { display: flex; flex-wrap: wrap; column-gap: 1.1rem; }
.company a { color: #152d36; font-weight: 650; text-decoration: none; }
.company a:hover { text-decoration: underline; }
.brand b { font-size: 1.2rem; }
.brand span { color: var(--muted); letter-spacing: 0; font-size: .9rem; }
.nav-button {
  display: inline-block;
  padding: .55rem 1rem;
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
}
.nav-button:hover { color: var(--green); border-color: var(--green); }
.badge {
  display: inline-block;
  padding: .25rem .65rem;
  color: var(--green);
  background: var(--mint);
  font-size: .82rem;
  font-weight: 700;
  border-radius: 8px;
}
.badge.gray { color: var(--muted); background: #eef3f3; }
.badge + h1 { margin-top: 1rem; }
.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: white;
  box-shadow: 0 18px 42px -25px #1539383b;
}
.icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; flex: none; }
.cat { background: #302938; }
.ticket { background: #65351f; }
.note { font-size: .88rem; }
details p { font-size: .92rem; margin-bottom: 1rem; }
summary {
  color: var(--green);
  list-style: none;
  padding-block: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  font-weight: 700;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: .5rem;
  height: .5rem;
  flex: none;
  margin-right: 4px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: rotate(45deg);
}
details[open] > summary::after { transform: rotate(225deg); }

/* Service guide */
.welcome {
  display: grid;
  grid-template-columns: 42fr 58fr;
  align-items: start;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(3rem, 10vh, 7rem);
}
.welcome > div { padding-top: 1.25rem; }
.welcome h1 { font-size: 2.2rem; }
fieldset { padding: 0; border: 0; min-width: 0; margin: 1.8rem 0 1rem; display: grid; gap: .75rem; }
legend { position: absolute; clip-path: inset(50%); }
fieldset label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--ink);
  border: 1px solid var(--border);
  background: white;
  border-radius: 16px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
}
fieldset input { accent-color: var(--green); width: 1.1rem; height: 1.1rem; order: 3; margin: 0 0 0 auto; cursor: pointer; }
fieldset small { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
fieldset label:hover { border-color: var(--green); }
fieldset label:has(:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #eefaf7; }
.welcome .panel { overflow: hidden; }
.welcome:has(#neko:checked) #event-guide, .welcome:has(#event:checked) #neko-guide { display: none; }
.criterion {
  background:
    repeating-radial-gradient(circle at 108% -15%, transparent 0 17px, #8ff6dc25 17.5px 18px),
    linear-gradient(118deg, #113637, #10524c 67%, #0d786d);
  padding: 2.2rem 2.4rem;
  color: #ecfaf6;
  font-size: .94rem;
}
.criterion h2 { font-size: 1rem; color: #a1ecdb; }
.criterion h2 span { display: block; color: white; font-size: 2.35rem; letter-spacing: -.05em; margin: .3rem 0 .4rem; }
.steps { padding: 1.9rem 2.4rem .65rem; }
.steps h3 { font-size: .95rem; color: var(--muted); }
ol { list-style: none; padding: 0; margin: 1.35rem 0 1.7rem; }
li { position: relative; padding-left: 2.85rem; font-size: .9rem; }
li:not(:last-child) { padding-bottom: 1.25rem; }
li::before {
  position: absolute;
  left: 0;
  content: counter(list-item);
  background: var(--mint);
  color: var(--green);
  font-weight: 700;
  width: 1.85rem;
  line-height: 1.85rem;
  border-radius: 50%;
  text-align: center;
}
li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: .9rem;
  top: 1.85rem;
  bottom: 0;
  border-left: 1px solid #c8e1db;
}
li b { display: block; font-size: 1rem; margin-bottom: .15rem; }
.steps details, .project details { border-top: 1px solid var(--border); font-size: .95rem; }

/* Administrator */
.narrow { max-width: 29rem; margin-block: clamp(2rem, 8vh, 5rem); padding: 2.3rem; }
.narrow h1 { font-size: 1.75rem; }
.narrow p { font-size: .94rem; }
.fields { display: grid; gap: .45rem; grid-template-columns: minmax(0, 1fr); }
.fields label { margin-top: 1rem; color: var(--ink); font-weight: 600; font-size: .91rem; }
.fields input:not([type="hidden"]) {
  min-height: 3rem;
  width: 100%;
  border: 1px solid #9facac;
  border-radius: 9px;
  background: white;
  padding: .6rem .85rem;
  color: var(--ink);
  font-size: 1rem;
}
.fields input:focus { border-color: var(--green); outline: 2px solid #19726456; outline-offset: 1px; }
input[name=code] { letter-spacing: .32em; font-variant-numeric: tabular-nums; }
.primary {
  width: 100%;
  margin-top: 1.15rem;
  min-height: 3.05rem;
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 10px;
  padding: .7rem;
  font-size: 1rem;
  font-weight: 700;
  word-break: keep-all;
}
.primary:hover { background: #064f48; }
.below { margin-top: 1.4rem; text-align: center; }
.qr { display: block; max-width: 100%; height: auto; margin: 1rem auto; }
.manual { border-block: 1px solid var(--border); margin-top: 1rem; font-size: .93rem; }
.key { display: block; word-break: break-all; user-select: all; font-size: 1rem; margin-bottom: 1rem; }
#copy-status { font-size: .85rem; margin-top: .5rem; }
.callout { margin-block: 1.35rem; background: var(--mint); padding: .95rem 1.25rem; color: var(--green); border-radius: 12px; font-size: .96rem; }
.callout p { font-size: .9rem; }
.callout.error { color: var(--error); background: #fff0f0; }
.manage { padding-block: 3.1rem 4rem; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; align-items: start; }
.project { padding: 1.5rem 1.7rem .4rem; }
.project .badge { margin-left: auto; flex: none; }
dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem; margin: 1.25rem 0; font-size: .92rem; }
dd { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.project .fields { padding-bottom: 1.2rem; }
.project label { margin-top: 0; }
.project button { margin-top: .4rem; }
.revoke summary { color: var(--error); }
.revoke button { background: var(--error); }
.revoke button:hover { background: #982227; }
.reference { margin-top: 1.3rem; padding: .4rem 1.7rem; }
.reference h3 { margin: 1.1rem 0 .3rem; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .95rem; text-align: left; }
th, td { padding: .6rem; border-bottom: 1px solid var(--border); }
thead { background: #edf4f3; }
code { font-family: ui-monospace, Consolas, monospace; color: var(--ink); letter-spacing: 0; font-size: .95em; }
.key, pre { background: #edf4f3; padding: 1rem; border-radius: 8px; }
pre { max-width: 100%; white-space: pre-wrap; font-size: .9rem; }
@media (max-width: 52rem) {
  .frame { width: min(34rem, 92%); }
  nav { min-height: 4rem; }
  .brand { gap: .45rem; }
  .brand img { width: 29px; height: 29px; }
  .brand b { font-size: 1rem; }
  .brand span { display: none; }
  .nav-button { font-size: .83rem; padding: .5rem .7rem; }
  h1, .welcome h1, .narrow h1 { font-size: 1.6rem; }
  .badge + h1 { margin-top: .6rem; }
  .panel { border-radius: 16px; }
  .welcome, .projects { grid-template-columns: 1fr; gap: 1rem; }
  .welcome, .manage { padding-block: 1.45rem 2rem; font-size: .93rem; }
  .welcome > div { padding: 0; }
  fieldset { grid-template-columns: 1fr 1fr; gap: .55rem; margin: .95rem 0 .7rem; }
  fieldset label { border-radius: 12px; gap: .5rem; font-size: .9rem; padding: .75rem; }
  fieldset input { position: absolute; clip-path: inset(50%); }
  fieldset .icon { display: none; }
  fieldset small, .note { font-size: .81rem; }
  .criterion { padding: 1.3rem; }
  .criterion p, .steps h3, .steps summary { font-size: .88rem; }
  .criterion h2 { font-size: .9rem; }
  .criterion h2 span { font-size: 1.85rem; margin-block: .15rem .3rem; }
  .steps { padding: 1.25rem 1.3rem .15rem; }
  ol { margin: 1rem 0 1.2rem; }
  li { font-size: .84rem; padding-left: 2.45rem; }
  li b { font-size: .93rem; }
  li:not(:last-child) { padding-bottom: .95rem; }
  .narrow { margin-block: 1.5rem; padding: 1.45rem 1.25rem; }
  .project { padding: 1.1rem 1.1rem .25rem; }
  .project h2 { font-size: 1rem; }
  .project .badge { font-size: .76rem; padding: .25rem .45rem; }
  .reference { padding: .25rem 1.1rem; }
  td, th { padding: .45rem .25rem; font-size: .82rem; }
}
@media (max-width: 23rem) {
  fieldset label { font-size: .83rem; padding: .6rem .35rem; }
  fieldset small { font-size: .77rem; }
  .project .icon { display: none; }
  .nav-button { padding-inline: .4rem; }
  .brand b { font-size: .92rem; }
}
@media (min-width: 24rem) and (max-width: 52rem) {
  fieldset label { padding-inline: .55rem; gap: .45rem; }
  fieldset .icon { display: grid; width: 30px; height: 30px; border-radius: 9px; }
  fieldset img { width: 24px; height: 24px; }
}
@media (forced-colors: active) {
  fieldset label:has(:checked) { border: 2px solid Highlight; }
}
