@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Nanum+Brush+Script&display=swap");

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #44403a;
  --muted: #8a847a;
  --line: #e5e0d7;
  --line-2: #f0ece5;
  --seal: #d3261d;
  --seal-bg: #fcebe9;
  --seal-line: #f2c4bf;
  --shut: #3b3833;
  --shut-bg: #ecebe8;
  --warn: #9a5a06;
  --warn-bg: #fbefd8;
  --hol: #ece8df;
  --focus: #2f5bd3;
  --r: 10px;
  --r-sm: 7px;
  --display: "Black Han Sans", "Pretendard Variable", sans-serif;
  --brush: "Nanum Brush Script", cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  word-break: keep-all;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- signature: speech bubble wordmark ---------- */
.bubble {
  position: relative; display: inline-block;
  font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1;
  background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 8px 14px 7px; font-size: 17px; text-decoration: none; white-space: nowrap;
}
.bubble::after {
  content: ""; position: absolute; left: 18px; bottom: -8px;
  width: 12px; height: 12px; background: #fff;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: skewX(-25deg) rotate(45deg);
}
.bubble em { font-style: normal; color: var(--seal); }
.bubble.xl { font-size: clamp(30px, 6vw, 46px); padding: 16px 26px 14px; border-width: 3px; }
.bubble.xl::after { width: 20px; height: 20px; bottom: -12px; left: 34px; border-right-width: 3px; border-bottom-width: 3px; }

/* ---------- signature: red seal stamp ---------- */
.stamp {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--seal); color: var(--seal);
  font-family: var(--brush); font-size: 26px; line-height: 1;
  transform: rotate(-9deg); filter: url(#ink-rough);
  background: radial-gradient(circle at 40% 35%, rgba(211,38,29,.06), rgba(211,38,29,.12));
}
.stamp.lg { width: 96px; height: 96px; font-size: 40px; border-width: 4px; }
.stamp.sm { width: 26px; height: 26px; font-size: 13px; border-width: 2px; }
.stamp.pop { animation: stampin .32s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stampin { from { transform: rotate(-9deg) scale(1.7); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: 1; } }
.brush { font-family: var(--brush); font-weight: 400; letter-spacing: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1120px; margin: 0 auto; padding: 12px 20px 16px;
  display: flex; align-items: center; gap: 14px;
}
.topbar .bubble { font-size: 15px; padding: 7px 12px 6px; }
.topbar .bubble::after { left: 14px; bottom: -7px; width: 10px; height: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 650; color: var(--ink-2);
  background: var(--line-2); border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.topbar .spacer { flex: 1; }
.toplink { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.toplink:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 80px; }
.wrap.narrow { max-width: 660px; }

h1 { font-size: 28px; line-height: 1.3; letter-spacing: -0.035em; margin: 0 0 8px; font-weight: 800; }
h2 { font-size: 18px; letter-spacing: -0.025em; margin: 0; font-weight: 750; }
.lead { color: var(--ink-2); margin: 0; font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 650; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: background .12s, border-color .12s, transform .08s;
}
.btn:hover { border-color: #cfc8bb; background: #fbfaf7; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #2a2a2a; }
.btn.seal { background: #fff; color: var(--seal); border: 2px solid var(--seal); }
.btn.seal:hover { background: var(--seal-bg); }
.btn.shut { background: var(--shut-bg); color: var(--shut); border-color: #dcdad5; }
.btn.shut:hover { background: #e2e0dc; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 9px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- landing ---------- */
.hero { padding: 40px 0 26px; }
.hero .bubble { margin-bottom: 30px; }
.hero h1 { font-size: 32px; }
.hero .lead { max-width: 580px; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.choice {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 22px 20px; transition: border-color .12s, box-shadow .12s;
}
.choice:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.choice .who { font-size: 13px; font-weight: 700; color: var(--muted); }
.choice .title { font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: -0.01em; margin: 6px 0 10px; }
.choice ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; flex: 1; }
.choice li + li { margin-top: 4px; }
.choice .go { margin-top: 18px; font-weight: 700; font-size: 14px; }
.flow { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.flow ol { margin: 12px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: f; }
.flow li { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; font-size: 14px; color: var(--ink-2); }
.flow li b { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 4px; }
.note {
  margin-top: 28px; font-size: 13px; color: var(--muted);
  border-left: 3px solid var(--line); padding: 2px 0 2px 12px;
}

/* ---------- apply ---------- */
.apply-hero { padding: 26px 0 6px; }
.apply-hero .kicker { font-size: 13px; font-weight: 700; color: var(--seal); margin-bottom: 8px; }
.apply-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 5.4vw, 38px); line-height: 1.22; letter-spacing: -0.01em; margin: 0 0 14px; }
.quote {
  position: relative; margin: 18px 0 0; padding: 16px 18px 14px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.quote::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--seal); border-radius: 0 3px 3px 0; }
.quote p { margin: 0; font-size: 15.5px; color: var(--ink); line-height: 1.65; }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.promise div { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; font-size: 13.5px; color: var(--ink-2); }
.promise b { display: block; color: var(--ink); font-size: 14px; }

.seg { display: inline-flex; background: var(--line-2); border-radius: 9px; padding: 3px; margin: 26px 0 16px; }
.seg button {
  border: 0; background: transparent; height: 38px; padding: 0 16px; border-radius: 7px;
  font-weight: 650; font-size: 14px; color: var(--ink-2);
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(17,17,17,.1); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card + .card { margin-top: 14px; }
.step-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.step-no {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-size: 16px; line-height: 1; padding-top: 2px;
}
.step-head h2 { font-size: 18px; }
.step-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 14px; font-weight: 650; color: var(--ink); }
.field .opt { color: var(--muted); font-weight: 500; margin-left: 4px; font-size: 13px; }
.why { font-size: 12.5px; color: var(--muted); margin-top: -2px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: #fdfcfa; border-radius: var(--r-sm);
  padding: 11px 12px; font-size: 16px; transition: border-color .12s, background .12s;
}
.input:hover, .select:hover, .textarea:hover { border-color: #d3ccbf; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.counter { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.hours { display: flex; align-items: center; gap: 8px; }
.hours .input { flex: 1; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line); background: #fdfcfa; border-radius: 999px;
  height: 38px; min-width: 46px; padding: 0 13px; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.guide { background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); }
.guide b { color: var(--ink); }
.guide ol { margin: 6px 0 0; padding-left: 20px; }
.field label.consent { font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.saved { font-size: 12.5px; color: var(--muted); }
.err { color: #b3261e; font-size: 12.5px; display: none; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: #b3261e; }
.field.invalid .err { display: block; }

.done-box { text-align: center; padding: 46px 24px 40px; }
.done-box .stamp { margin-bottom: 18px; }
.done-box h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -0.01em; margin-bottom: 8px; }
.done-box p { margin: 0 auto; max-width: 420px; color: var(--ink-2); }
.done-box .actions { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.done-box .signoff { margin-top: 26px; }

/* ---------- admin ---------- */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; font-size: 32px; }
.admin-head h1 .num { color: var(--seal); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 20px 0 26px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; text-align: left;
}
button.stat { cursor: pointer; transition: border-color .12s; }
button.stat:hover { border-color: var(--ink); }
.stat .k { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.stat .v { font-family: var(--display); font-size: 30px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .v small { font-family: "Pretendard Variable", sans-serif; font-size: 14px; font-weight: 650; color: var(--muted); margin-left: 3px; }
.stat.hot { border: 2px solid var(--seal); padding: 13px 15px; }
.stat.hot .v { color: var(--seal); }

.section-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
.today {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin-bottom: 30px;
}
.today-row {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 13px 18px; border-top: 1px solid var(--line-2);
  transition: opacity .3s .35s, background .25s;
}
.today-row:first-child { border-top: 0; }
.today-row.done { background: #fffaf9; }
.today-row.fade { opacity: 0; }
.today-row .links { display: flex; gap: 6px; }
.today-row .acts { display: flex; gap: 6px; align-items: center; min-width: 190px; justify-content: flex-end; }
.today-empty { padding: 26px 18px; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 16px; }
.store-name { font-weight: 750; letter-spacing: -0.02em; }
.store-name button { all: unset; cursor: pointer; }
.store-name button:hover { text-decoration: underline; text-underline-offset: 3px; }
.store-meta { font-size: 13px; color: var(--muted); }
.daytag { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: transparent; padding: 10px 14px; font-weight: 650; font-size: 14.5px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab .n { font-variant-numeric: tabular-nums; margin-left: 4px; font-weight: 700; color: var(--muted); }
.tab[aria-selected="true"] .n { color: var(--ink); }

.list { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; }
.list-head, .row {
  display: grid; grid-template-columns: minmax(0, 2fr) 120px 130px 84px minmax(0, 1.5fr) 20px; gap: 14px; align-items: center;
  padding: 12px 18px;
}
.list-head { font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line-2); padding-top: 10px; padding-bottom: 10px; }
.row { border-top: 1px solid var(--line-2); cursor: pointer; transition: background .1s; }
.list-head + .row { border-top: 0; }
.row:hover { background: #fbfaf7; }
.row .chev { color: #c2bbae; font-size: 18px; }
.row .cell-sm { font-size: 13.5px; color: var(--ink-2); }
.list-empty { padding: 34px 18px; text-align: center; color: var(--muted); font-size: 14px; }

.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.badge.new { background: #e8eefc; color: #2448a8; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.seal { background: var(--seal-bg); color: var(--seal); }
.badge.gray { background: var(--line-2); color: var(--ink-2); }

.prog { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.prog-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; display: flex; }
.bar span { display: block; height: 100%; }
.bar .o { background: var(--seal); }
.bar .x { background: var(--shut); }
.bar .h { background: #cfc8bb; }
.bar .u { background: #e3ddd2; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(17, 17, 17, 0.32); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .18s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); z-index: 50;
  background: var(--bg); border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform .22s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; background: var(--surface); }
.drawer-head .t { flex: 1; min-width: 0; }
.drawer-head h2 { font-size: 20px; }
.drawer-body { padding: 18px 20px 28px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface); display: flex; gap: 8px; flex-wrap: wrap; }
.drawer-foot .spacer { flex: 1; }
.x-btn { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 8px; font-size: 20px; color: var(--ink-2); }
.x-btn:hover { background: var(--line-2); }

.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.block + .block { margin-top: 12px; }
.block h3 { margin: 0 0 10px; font-size: 13px; font-weight: 750; color: var(--muted); letter-spacing: 0; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 7px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.story { white-space: pre-wrap; font-size: 14.5px; line-height: 1.7; margin: 0; }
.linkbtns { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: auto; grid-auto-rows: 54px; gap: 5px; align-items: stretch; }
.cal .dow { font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; padding-bottom: 2px; }
.cell {
  position: relative; border: 1px solid var(--line); background: #fdfcfa; border-radius: 7px; height: 54px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; padding: 0;
}
.cell .d { position: absolute; top: 3px; left: 5px; font-size: 10.5px; }
.cell.o { background: #fff; border-color: var(--seal-line); }
.cell.o .stamp { width: 30px; height: 30px; font-size: 14px; border-width: 2px; margin-top: 6px; }
.cell.x { background: var(--shut-bg); border-color: #dcdad5; color: var(--shut); font-weight: 700; }
.cell.x .xs { margin-top: 8px; font-size: 12px; }
.cell.h { background: repeating-linear-gradient(135deg, var(--hol) 0 5px, #f6f3ed 5px 10px); border-color: var(--line-2); color: var(--muted); cursor: default; }
.cell.h .xs { margin-top: 8px; font-size: 11.5px; }
.cell.future { background: transparent; border-style: dashed; color: #c2bbae; cursor: default; }
.cell.today { box-shadow: inset 0 0 0 2px var(--ink); }
.cell.blank { visibility: hidden; }
button.cell:not(.h):not(.future):hover { border-color: var(--ink); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .lo::before { background: var(--seal); border-radius: 50%; }
.legend .lx::before { background: var(--shut); }
.legend .lh::before { background: #cfc8bb; }
.legend .lu::before { background: #fdfcfa; border: 1px solid var(--line); }
.sumline { font-size: 13.5px; margin: 0 0 12px; color: var(--ink-2); }
.sumline b { color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 9px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 60; white-space: nowrap;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.footer-note { margin-top: 30px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.linklike { border: 0; background: none; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; }

.m-only { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .list-head { display: none; }
  .row {
    grid-template-columns: 1fr auto; grid-template-areas: "a f" "c c" "e e"; gap: 6px 10px; padding: 14px 16px;
  }
  .row > :nth-child(1) { grid-area: a; }
  .row > :nth-child(2) { display: none; }
  .row > :nth-child(3) { grid-area: c; }
  .row > :nth-child(4) { display: none; }
  .row > :nth-child(5) { grid-area: e; }
  .row > :nth-child(6) { grid-area: f; }
  .m-only { display: inline; }
  .today-row { grid-template-columns: 1fr auto; grid-template-areas: "a a" "b b" "l r"; gap: 8px; padding: 14px 16px; }
  .today-row > :nth-child(1) { grid-area: a; }
  .today-row > :nth-child(2) { grid-area: b; }
  .today-row > :nth-child(3) { grid-area: l; }
  .today-row > :nth-child(4) { grid-area: r; }
  .today-row .acts { min-width: 0; }
  .flow ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar-in { padding: 10px 16px 14px; gap: 10px; }
  .topbar .pill { display: none; }
  .wrap { padding: 20px 16px 64px; }
  h1, .hero h1 { font-size: 25px; }
  .admin-head h1 { font-size: 26px; }
  .choose { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .submit-row { flex-direction: column-reverse; align-items: stretch; }
  .submit-row .btn { height: 52px; }
  .cell { height: 48px; }
  .cal { grid-auto-rows: 48px; }
  .cell.o .stamp { width: 26px; height: 26px; font-size: 12px; }
  .seg { display: flex; }
  .seg button { flex: 1; }
  .flow ol { grid-template-columns: 1fr; }
}

/* =========================================================
   v2 — 외박스(첫 화면) + 3주 도장판
   ========================================================= */

/* ---------- 도장판 ---------- */
.board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; align-items: start; }
.dot {
  position: relative; width: 100%; height: auto; aspect-ratio: 1 / 1; min-width: 0; border-radius: 50%;
  border: 1.5px dashed #d6cfc2; background: transparent; padding: 0;
  display: grid; place-items: center; color: #b5ad9f; font-size: 11px; font-variant-numeric: tabular-nums;
}
.dot .dn { font-size: 11px; }
.dot .dl { font-size: 10.5px; font-weight: 700; }
.dot.o { border: 0; }
.dot.o .stamp { position: absolute; inset: 0; width: 100%; height: 100%; border-width: 2px; font-size: clamp(10px, 1.1vw, 14px); }
.dot.r { border: 1.5px solid #e2b9b5; background: #fff6f5; color: #c0857f; }
.dot.x { border: 0; background: var(--ink); color: #fff; }
.dot.x .dl { font-weight: 800; }
.dot.h { border: 0; background: repeating-linear-gradient(135deg, #ebe6dc 0 4px, #f6f2ea 4px 8px); color: #a49c8f; }
.dot.is-today { border: 2px solid var(--ink); color: var(--ink); font-weight: 800; animation: breathe 1.6s ease-in-out infinite; }
.dot.is-today.o, .dot.is-today.x { animation: none; border: 0; }
.dot.is-today.r { animation: none; border: 2px solid var(--ink); }
.dot.future { border-color: #e6e0d5; color: #cfc8bb; }
button.dot { cursor: pointer; }
button.dot:not(.o):not(.x):hover { border-style: solid; border-color: var(--seal); color: var(--seal); }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(17,17,17,.0); } 50% { box-shadow: 0 0 0 5px rgba(17,17,17,.08); } }
.board.big { gap: 10px; }
.board.big .dot .stamp { font-size: 15px; border-width: 2.5px; }
.board.big .dot .dn { font-size: 12.5px; }

/* ---------- 첫 화면: 외박스 ---------- */
body.lp { background: #0d0d0d; color: #f4f1ea; }
body.lp .topbar { background: rgba(13,13,13,.85); border-bottom-color: #222; }
body.lp .toplink { color: #bdb7ad; }
body.lp .toplink:hover { color: #fff; }
.lp-hero { max-width: 1120px; margin: 0 auto; padding: 72px 20px 96px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lp-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #bdb7ad; letter-spacing: 0; margin-bottom: 22px; }
.lp-hero .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--seal); display: inline-block; }
.lp-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 22px; color: #fff; }
.lp-hero h1 .red { color: var(--seal); }
.lp-hero .sub { font-size: 17px; color: #bdb7ad; margin: 0 0 34px; max-width: 440px; line-height: 1.6; }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.light { background: #fff; color: #111; border-color: #fff; }
.btn.light:hover { background: #ece8df; }
.btn.outline-light { background: transparent; color: #f4f1ea; border-color: #3a3a3a; }
.btn.outline-light:hover { background: #1b1b1b; border-color: #555; }

.stampcard {
  position: relative; background: #fbf7ee; color: var(--ink); border-radius: 22px; padding: 26px 26px 22px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  transform: rotate(-2.2deg);
}
.stampcard::before { /* 종이 질감 */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(120,100,70,.08) 1px, transparent 1px); background-size: 4px 4px;
}
.stampcard .sc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; position: relative; }
.stampcard .sc-title { font-family: var(--brush); font-size: 40px; line-height: .9; }
.stampcard .sc-store { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; margin-top: 6px; }
.stampcard .sc-meta { font-size: 12.5px; color: var(--muted); }
.stampcard .sc-seal { flex: none; width: 58px; height: 58px; font-size: 20px; }
.stampcard .dow7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; position: relative; }
.stampcard .board { position: relative; }
.stampcard .sc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px dashed #ddd5c6; font-size: 13.5px; position: relative; }
.stampcard .sc-foot b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--seal); }

.lp-story { background: var(--bg); color: var(--ink); }
.lp-story .in { max-width: 1120px; margin: 0 auto; padding: 84px 20px 90px; }
.lp-story h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.01em; margin: 0 0 40px; }
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.frame { display: flex; flex-direction: column; align-items: center; text-align: center; }
.frame .no { font-family: var(--display); font-size: 15px; color: var(--seal); margin-bottom: 8px; }
.frame .cap { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; margin: 0 0 4px; }
.frame .cap2 { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.phone {
  position: relative; width: 260px; height: 540px; border-radius: 40px; background: #0d0d0d; padding: 10px;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.35), inset 0 0 0 1.5px #2a2a2a;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; border-radius: 12px; background: #0d0d0d; z-index: 2; }
.phone .screen { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--bg); position: relative; padding-top: 34px; }
.phone .screen::before { content: "9:41"; position: absolute; top: 11px; left: 26px; font-size: 12px; font-weight: 700; color: var(--ink); }
.phone .screen::after { content: ""; position: absolute; top: 14px; right: 24px; width: 22px; height: 10px; border-radius: 3px; border: 1.5px solid var(--ink); }
.phone iframe { width: 390px; height: 800px; border: 0; transform: scale(0.615); transform-origin: 0 0; pointer-events: none; }
.lp-foot { background: #0d0d0d; color: #8d877d; font-size: 12.5px; }
.lp-foot .in { max-width: 1120px; margin: 0 auto; padding: 28px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lp-foot a { color: #d8d3ca; }

/* ---------- 대표님 화면 v2: 도장판 카드 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 36px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, box-shadow .2s; }
.pcard:hover { border-color: #d3ccbf; }
.pcard.stamped { border-color: var(--seal-line); box-shadow: 0 0 0 3px var(--seal-bg); }
.pcard .ph { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pcard .ph .store-name { font-size: 17px; }
.pcard .day { flex: none; font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--line-2); border-radius: 6px; padding: 3px 8px; font-variant-numeric: tabular-nums; }
.pcard .board { gap: 5px; }
.pcard .pa { display: flex; gap: 8px; align-items: center; }
.pcard .pa .btn { flex: 1; height: 42px; }
.pcard .pa .peek { flex: none; }
.pcard .pa .btn.ghost { flex: none; height: 34px; }
.pcard .done-line { flex: 1; white-space: nowrap; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--seal); height: 42px; }
.admin-head.v2 { margin-bottom: 22px; }
.admin-head.v2 .sub { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; gap: 44px; padding: 44px 20px 72px; }
  .stampcard { max-width: 460px; margin: 0 auto; }
  .frames { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .lp-hero h1 { font-size: 40px; }
  .stampcard { padding: 20px 18px 18px; }
  .stampcard .sc-title { font-size: 34px; }
  .board.big { gap: 7px; }
  .board.big .dot .stamp { font-size: 11px; }
  .cards { grid-template-columns: 1fr; }
}

/* ---------- v3: 자동 확인 ---------- */
.legend2 { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); }
.legend2 span { display: inline-flex; align-items: center; gap: 6px; }
.legend2 i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.legend2 .lo { border: 2px solid var(--seal); background: var(--seal-bg); }
.legend2 .lr { border: 1.5px solid #e2b9b5; background: #fff6f5; }
.legend2 .lx { background: var(--ink); }
.legend2 .lh { background: repeating-linear-gradient(135deg, #ebe6dc 0 3px, #f6f2ea 3px 6px); }
.stampcard .legend2 { margin-top: 14px; position: relative; }
.autobadge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #1d7a48; background: #e5f1e9; border-radius: 999px; padding: 4px 10px; }
.autobadge i { width: 7px; height: 7px; border-radius: 50%; background: #1d7a48; display: inline-block; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.stampcard .autobadge { position: relative; }
.live { max-width: 1120px; margin: -40px auto 0; padding: 0 20px 70px; position: relative; }
.live-in { border: 1px solid #262626; border-radius: 16px; padding: 18px 22px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; background: #141414; }
.live-in .lt { font-size: 13px; color: #bdb7ad; flex: 1; min-width: 240px; line-height: 1.6; }
.live-in .lt b { color: #fff; font-size: 15px; display: block; margin-bottom: 2px; }
.live-in .nums { display: flex; gap: 22px; }
.live-in .nums div { text-align: left; }
.live-in .nums b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; color: #fff; line-height: 1.1; }
.live-in .nums span { font-size: 12px; color: #8d877d; }
.live-in a { color: #f4f1ea; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.report { padding: 14px 12px; background: #b2c7da; min-height: 100%; font-size: 12.5px; }
.report .day { text-align: center; font-size: 11px; color: #3c4b59; margin: 4px 0 12px; }
.report .from { display: flex; gap: 8px; align-items: flex-start; }
.report .av { flex: none; width: 34px; height: 34px; border-radius: 12px; background: #fff; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-size: 12px; }
.report .nm { font-size: 11.5px; color: #2b3640; margin-bottom: 4px; }
.report .msg { background: #fff; border-radius: 4px 14px 14px 14px; padding: 11px 12px; line-height: 1.55; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.report .msg b { font-weight: 800; }
.report .msg .sec { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #ddd; }
.report .msg .red { color: var(--seal); font-weight: 800; }
.report .tm { font-size: 10.5px; color: #3c4b59; margin: 4px 0 0 42px; }
.pcard .autoline { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 12px; }
.pcard .autoline b { color: var(--ink); }
.pcard .autoline .flag { color: #fff; background: var(--ink); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.brief { background: var(--ink); color: #f4f1ea; border-radius: 16px; padding: 18px 20px; margin: 0 0 22px; display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.brief .bt { font-family: var(--display); font-size: 18px; flex: none; }
.brief ul { margin: 0; padding: 0; list-style: none; flex: 1; min-width: 240px; font-size: 14px; line-height: 1.8; color: #d8d3ca; }
.brief ul b { color: #fff; }
.brief .red { color: #ff7a6e; font-weight: 800; }
.live-in .sorry { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #333; color: #a8a297; font-size: 12.5px; }

/* ---------- v4: 실제 데이터 ---------- */
.dot.n { border: 1px solid #eee9df; background: transparent; color: #d6cfc2; }
.dot.u { border: 1.5px dashed #d6cfc2; color: #b5ad9f; }
.dot.x { font-size: 9.5px; line-height: 1.1; text-align: center; }
.legend2 .ln { border: 1px solid #e0d9cc; background: transparent; }
.dow7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; }
.stampcard .dow7 { gap: 10px; }
.reg { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; width: 260px; min-height: 300px; text-align: left; box-shadow: 0 30px 60px -24px rgba(0,0,0,.18); }
.reg .rt { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.reg .rs { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.reg .chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
.reg .chips2 span { font-size: 12px; font-weight: 600; background: var(--line-2); border-radius: 999px; padding: 4px 9px; }
.reg .chips2 span.c { background: var(--seal-bg); color: var(--seal); }
.reg .url { margin-top: 14px; font-size: 11.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; word-break: break-all; }
.groupttl { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 4px; }
.groupttl h2 { font-size: 20px; }
.groupttl small { color: var(--muted); font-size: 13px; }
.gdesc { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.pcard .now { font-size: 13px; color: var(--ink-2); }
.pcard .now b { color: var(--ink); }
.pcard .foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.pcard .foot b { color: var(--seal); font-family: var(--display); font-weight: 400; font-size: 16px; }
.pcard a.place { font-size: 12.5px; color: var(--ink-2); }
.notice2 { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--seal); border-radius: 10px; padding: 12px 14px; color: var(--ink-2); font-size: 13.5px; line-height: 1.65; margin: 0 0 18px; }
.loading { color: var(--muted); padding: 30px 0; }
.dot.is-today.x { color: #fff; border: 2px solid var(--seal); }
.dot.is-today.h { border: 2px solid var(--ink); color: var(--ink-2); }
