/* 디자인 시스템 v0.5 — docs/디자인시스템.md */
:root {
  color-scheme: light;
  --brand: #1a44e8;
  --brand-strong: #1236c4;
  --brand-soft: #eaf0ff;
  --navy: #072567;
  --blue: #1c5bab;
  --sky: #def5fd;
  --sky-soft: #eef7fe;
  --chip-text: #4279bb;

  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #cddce7;
  --disabled-bg: #f1f5f9;

  --ok: #0e9f6e;
  --ok-text: #047857;
  --ok-soft: #e7f7f0;
  --warn: #f59e0b;
  --warn-text: #b45309;
  --warn-soft: #fff6e5;
  --danger: #e5322d;
  --danger-text: #c81e1e;
  --danger-soft: #fdecec;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgb(7 37 103 / 0.06), 0 4px 12px rgb(7 37 103 / 0.06);
  --shadow-up: 0 -4px 16px rgb(7 37 103 / 0.1);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 500 16px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
.app:has(#view-admin:not([hidden])) { max-width: 1080px; }

/* ---------- hero ---------- */
.hero { padding: 24px 4px 16px; }
.pill {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
}
.hero-title { margin: 10px 0 0; font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--navy); letter-spacing: -0.03em; }
.hero-sub { margin: 4px 0 0; font-size: 16px; font-weight: 700; color: var(--brand); }
.hero.compact { padding: 14px 4px 10px; }
.hero.compact .hero-title { font-size: 20px; }
.hero.compact .hero-sub { display: none; }

.steps { display: flex; gap: 6px; list-style: none; margin: 16px 0 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.steps li { display: flex; align-items: center; gap: 6px; flex: 1; }
.steps li + li::before { content: ""; flex: 0 0 10px; height: 2px; background: var(--line); margin-right: 2px; }
.steps .dot {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--line); font-size: 12px; font-weight: 800;
}
.steps li.current { color: var(--brand); }
.steps li.current .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li.done { color: var(--ok-text); }
.steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; font-size: 0; }
.steps li.done .dot::after { content: "✓"; font-size: 12px; }

/* ---------- basics ---------- */
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.pad { padding: 24px 20px; }
.title { margin: 0 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.muted { color: var(--ink-2); margin: 0 0 20px; font-size: 15px; }
.small { font-size: 13px; }
.label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.input {
  width: 100%; height: 56px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; outline: none;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(26 68 232 / 0.15); }
select.input { font-size: 16px; height: 48px; }
.error {
  margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--danger-soft); color: var(--danger-text); font-size: 15px; font-weight: 600;
}
.footnote { text-align: center; color: var(--ink-2); font-size: 13px; margin-top: 16px; }
.center { text-align: center; margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 0 20px; border-radius: var(--radius-md); border: 1.5px solid transparent;
  font-size: 17px; font-weight: 700; transition: background 0.15s, transform 0.05s;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn.block { width: 100%; margin-top: 16px; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--brand-strong); }
.btn.secondary { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn:disabled { background: var(--disabled-bg); color: var(--ink-3); border-color: transparent; cursor: default; }
.btn.loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite;
}
.link { background: none; border: 0; padding: 4px; color: var(--ink-2); text-decoration: underline; font-size: 14px; }
.link.light { color: #fff; }

.badge {
  display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1.3;
  background: var(--disabled-bg); color: var(--ink-2);
}
.badge.ok { background: var(--ok-soft); color: var(--ok-text); }
.badge.warn { background: var(--warn-soft); color: var(--warn-text); }
.badge.danger { background: var(--danger-soft); color: var(--danger-text); }
.badge.brand { background: var(--brand); color: #fff; }

.loading { text-align: center; padding: 48px 0; color: var(--ink-2); }

/* ---------- select view ---------- */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 15px; }
.hello p { margin: 0; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 8px 12px;
  border: 0; border-radius: 10px; background: transparent; text-align: left;
}
.tab-title { font-size: 16px; font-weight: 800; }
.tab-title small { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-left: 2px; }
.tab-pick { font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tab-pick.set { color: var(--ok-text); }
.tab[aria-selected="true"] { background: var(--brand); color: #fff; }
.tab[aria-selected="true"] small, .tab[aria-selected="true"] .tab-pick { color: rgb(255 255 255 / 0.85); }

.toolbar { position: sticky; top: 0; z-index: 5; background: var(--sky); padding: 10px 0 8px; margin-top: 4px; }
.refresh { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.refresh-text { flex: 1; }
.refresh.fail .refresh-text { color: var(--warn-text); }
.ring { width: 22px; height: 22px; transform: rotate(-90deg); flex: none; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.refresh.fail .ring-fg { stroke: var(--warn); }
#refresh-btn.spinning .spin-icon { display: inline-block; animation: spin 0.7s linear infinite; }

.search {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 0 12px; height: 46px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md);
}
.search:focus-within { border-color: var(--brand); }
.search input { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; min-width: 0; }
.search .clear { border: 0; background: var(--disabled-bg); border-radius: 50%; width: 26px; height: 26px; font-size: 12px; color: var(--ink-2); }

.session-guide { margin: 6px 2px 8px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }

.mentor-list { list-style: none; margin: 0; padding: 0 0 180px; display: grid; gap: 10px; }
.mentor {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%;
  padding: 14px 14px 14px 12px; background: var(--surface); border: 2px solid transparent; border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); text-align: left; transition: border-color 0.15s, background 0.15s;
}
.mentor .num {
  align-self: start; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--sky-soft); color: var(--chip-text); font-size: 16px; font-weight: 800;
}
.mentor .body { min-width: 0; }
.mentor .company { font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.mentor .job {
  margin-top: 4px; padding-left: 8px; border-left: 3px solid var(--brand);
  font-size: 15px; font-weight: 700; color: var(--brand); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mentor .who { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.mentor mark { background: #dfe7ff; color: inherit; border-radius: 3px; padding: 0 1px; }
.mentor .seat {
  display: grid; justify-items: center; min-width: 66px; padding: 6px 8px; border-radius: 10px; background: var(--ok-soft); color: var(--ok-text);
}
.mentor .seat small { font-size: 11.5px; font-weight: 700; }
.mentor .seat b { font-size: 22px; font-weight: 800; line-height: 1.1; }
.mentor .seat b span { font-size: 13px; font-weight: 700; margin-left: 1px; }
.mentor.low .seat { background: var(--warn-soft); color: var(--warn-text); }
.mentor.selected { border-color: var(--brand); background: var(--brand-soft); }
.mentor.selected .num { background: var(--brand); color: #fff; }
.mentor.selected .seat::after { content: "✓ 선택"; font-size: 11.5px; font-weight: 800; color: var(--brand); margin-top: 2px; }
.mentor.full, .mentor.other { background: var(--disabled-bg); box-shadow: none; cursor: default; }
.mentor.full .company, .mentor.full .job, .mentor.full .who,
.mentor.other .company, .mentor.other .job, .mentor.other .who { color: var(--ink-3); }
.mentor.full .job, .mentor.other .job { border-left-color: var(--line); }
.mentor.full .seat { background: var(--danger-soft); color: var(--danger-text); }
.mentor.other .seat { background: var(--surface); color: var(--ink-2); }
.mentor.flash { animation: flash 0.8s ease; }
.empty { text-align: center; color: var(--ink-2); padding: 24px 0 160px; }

.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: var(--shadow-up);
}
.bottom-bar > * { max-width: 528px; margin-left: auto; margin-right: auto; }
.picked { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.picked > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
.bar-val.set { color: var(--ink); }
.bottom-bar .btn.block { margin-top: 10px; }
.tag { flex: none; display: inline-grid; place-items: center; min-width: 36px; height: 22px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 800; color: #fff; }
.tag.n { background: var(--navy); }
.tag.b { background: var(--brand); }

/* ---------- done ---------- */
.ticket { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px 18px; text-align: center; }
.ticket-head { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ticket-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--ok-text); }
.check { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; font-weight: 900; }
.ticket-name { font-size: 22px; margin: 10px 0 6px; }
.ticket-name strong { font-weight: 800; }
.slot { margin-top: 14px; border-radius: var(--radius-md); overflow: hidden; border: 1.5px solid var(--line); text-align: left; }
.slot-head { display: flex; justify-content: space-between; gap: 8px; padding: 8px 14px; color: #fff; font-size: 14px; font-weight: 700; }
.slot.s1 .slot-head { background: var(--navy); }
.slot.s2 .slot-head { background: var(--brand); }
.slot-body { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 12px 14px 14px; }
.slot-info { min-width: 0; }
.slot-num { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.slot.s1 .slot-num { color: var(--navy); }
.slot.s2 .slot-num { color: var(--brand); }
.slot-company { font-size: 19px; font-weight: 800; line-height: 1.3; }
.slot-job { font-size: 15px; font-weight: 700; color: var(--brand); margin-top: 2px; word-break: keep-all; }
.slot-who { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.slot-place { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--navy); font-size: 15px; font-weight: 800; }
.ticket { position: relative; }
.ticket-guide { margin: 12px 0 4px; padding: 14px 12px; border-radius: var(--radius-md); background: var(--warn-soft); color: var(--warn-text); font-size: 17px; line-height: 1.55; font-weight: 600; }
.ticket-guide strong { font-weight: 800; }
.ticket.confirmed .ticket-guide { background: var(--sky-soft); color: var(--navy); }
.state-badges { display: flex; gap: 6px; justify-content: center; margin: 0 0 4px; }
.state-badges .badge { font-size: 14px; padding: 4px 10px; border-radius: 999px; }
.ticket.confirmed .ticket-head h2 { color: var(--danger-text); }
.ticket.confirmed .check { background: var(--danger); }
/* 멘토별 도장: 확정 전 회색 흐린 '참여 확정 필요' → 확정 시 빨간 '참가확정' */
.stamp {
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; flex: none;
  border: 5px double var(--danger); color: var(--danger); text-align: center;
  transform: rotate(-14deg); animation: stamp 0.45s cubic-bezier(.2,1.6,.4,1) both;
}
.stamp span { font-size: 15px; font-weight: 900; letter-spacing: 0.02em; border-top: 2px solid; border-bottom: 2px solid; padding: 2px 0; line-height: 1.2; }
.stamp.pending { border: 3px dashed #b8c2cf; color: #9aa6b5; opacity: 0.75; animation: none; }
.stamp.pending span { font-size: 11.5px; font-weight: 800; border-width: 1.5px; }
@keyframes stamp { from { transform: rotate(-14deg) scale(2.2); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: 1; } }

/* ---------- mentor ---------- */
.mentor-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.numbig { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 30px; font-weight: 900; }
.mentor-head p { margin: 0; }
.m-hello { font-size: 18px; }
.m-company { font-size: 20px; font-weight: 800; }
.m-job { font-size: 15px; font-weight: 700; color: var(--brand); }
.m-refresh { margin: 12px 2px 8px; }
.done-refresh { margin: 0 2px 10px; }
.m-session { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; margin-bottom: 12px; }
.slot-head.n { background: var(--navy); }
.slot-head.b { background: var(--brand); }
.m-body { padding: 10px 14px 12px; }
.m-count { margin: 0 0 6px; font-size: 15px; }
.m-count b { font-size: 24px; font-weight: 900; }
.m-count span { color: var(--ink-2); font-size: 13.5px; }
.m-list { margin: 0; padding: 0; list-style: none; }
.m-list i { display: inline-block; width: 26px; font-style: normal; color: var(--ink-3); font-weight: 700; }
.m-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; }
.m-list li:last-child { border-bottom: 0; }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgb(7 37 103 / 0.45); }
.modal-card {
  position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); animation: up 0.2s ease;
}
@media (min-width: 600px) { .modal { align-items: center; } .modal-card { border-radius: var(--radius-lg); } }
.modal h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.sum { display: grid; gap: 8px; }
.sum-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: var(--sky-soft); }
.sum-row .t { font-size: 12px; color: var(--ink-2); }
.sum-row strong { display: block; font-size: 16px; }
.sum-row .j { font-size: 14px; color: var(--brand); font-weight: 700; }
.warn-box { margin: 14px 0 0; padding: 12px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn-text); font-size: 14.5px; font-weight: 600; }
.modal-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 16px; }
.modal-actions .btn { width: 100%; }
.full-title { color: var(--danger-text); }
.full-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.full-list li { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger-text); font-weight: 700; font-size: 15px; }
.avail-head { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0; font-weight: 800; }
.avail-tabs { grid-template-columns: 1fr 1fr; box-shadow: none; background: var(--disabled-bg); margin-bottom: 8px; }
.avail-tabs .tab { min-height: 40px; align-items: center; }
.avail { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 38vh; overflow: auto; }
.avail li { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.avail .n { font-weight: 800; color: var(--chip-text); }
.avail .c { font-weight: 700; font-size: 15px; line-height: 1.3; }
.avail .c small { display: block; color: var(--brand); font-size: 13px; }
.avail .l { font-weight: 800; color: var(--ok-text); white-space: nowrap; }
.avail .l.low { color: var(--warn-text); }

.toast {
  position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: var(--radius-md); background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.2); animation: down 0.2s ease;
}
.toast.danger { background: var(--danger-text); }

/* ---------- admin ---------- */
.admin-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px; border-radius: var(--radius-md); background: var(--navy); color: #fff;
}
.admin-bar .badge { margin-left: 4px; }
.admin-actions { display: flex; align-items: center; gap: 8px; }
.admin-actions .muted { margin: 0; color: rgb(255 255 255 / 0.8); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } .tile { padding: 10px; } .tile b { font-size: 20px; } }
.tile { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 12px 14px; }
.tile small { display: block; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.tile b { font-size: 24px; font-weight: 800; }
.tile b span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.admin-tabs { grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.admin-tabs .tab { min-height: 44px; align-items: center; }
.apanel { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 12px; }
.apanel .search { margin: 0 0 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.atable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.atable th { text-align: left; font-size: 12.5px; color: var(--ink-2); font-weight: 700; padding: 8px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.atable td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable td.c { white-space: nowrap; font-weight: 700; }
.atable.people td { white-space: nowrap; }
.alist .stages { display: flex; gap: 4px; }
.atable .mc { font-size: 13.5px; font-weight: 600; }
.muted-cell { color: var(--ink-3); font-size: 13px; }
.atable .sub { display: block; font-size: 12.5px; color: var(--brand); font-weight: 600; }
.atable .cell-ok { background: var(--surface); }
.atable .cell-low { background: var(--warn-soft); color: var(--warn-text); }
.atable .cell-full { background: var(--danger-soft); color: var(--danger-text); }
.numchip { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 5px; border-radius: 6px; background: var(--sky-soft); color: var(--chip-text); font-weight: 800; font-size: 13px; }
.numchip.none { background: var(--disabled-bg); color: var(--ink-3); }
.alist { list-style: none; margin: 0; padding: 0; }
.alist li { display: flex; align-items: center; gap: 8px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.alist li .nm { flex: 1; font-weight: 700; }
.alist li .nm small { color: var(--ink-2); font-weight: 600; margin-left: 4px; }
.alist li .meta { font-size: 12.5px; color: var(--ink-2); }
.bym-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.bym-grid h4 { margin: 0 0 4px; font-size: 15px; }
.count-line { color: var(--ink-2); font-size: 13px; margin: 4px 0 8px; }
.table-scroll { overflow-x: auto; }
@media (max-width: 640px) {
  .bym-grid { grid-template-columns: 1fr; }
  .atable .hide-sm { display: none; }
  /* 신청자 명단: 폰에서는 카드형 (이름·번호·확정 / 신청시간 / 1차 / 2차) */
  .atable.people thead { display: none; }
  .atable.people tr { display: grid; grid-template-columns: auto auto 1fr; gap: 2px 8px; padding: 10px 2px; border-bottom: 1px solid var(--line); align-items: center; }
  .atable.people td { border: 0; padding: 0; }
  .atable.people .p-name { font-size: 16px; }
  .atable.people .p-4 { color: var(--ink-2); }
  .atable.people .p-ok { grid-row: 1; grid-column: 3; justify-self: end; }
  .atable.people .p-time, .atable.people .p-s1, .atable.people .p-s2 { grid-column: 1 / -1; font-size: 14px; }
  .atable.people td[data-label]::before { content: attr(data-label); display: inline-block; width: 34px; color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
}
.admin-actions .btn, .admin-actions .link { white-space: nowrap; }
.admin-links { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-links a {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px;
  background: rgb(255 255 255 / 0.14); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.admin-links a:hover { background: rgb(255 255 255 / 0.26); }
.admin-actions { flex-wrap: wrap; }

/* ---------- motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@keyframes down { from { transform: translate(-50%, -12px); opacity: 0; } }
@keyframes flash { 0%, 100% { background: var(--disabled-bg); } 30% { background: var(--danger-soft); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
