/* 오늘사이 ONULSAI — 보도자료 톤: 아이보리 지면, 명조 제목, 더스티 로즈 포인트 */
:root {
  --bg: #f7f2ec;
  --paper: #fcfaf6;
  --ink: #4b3832;
  --ink-2: #7a6560;
  --muted: #a0908a;
  --rose: #c77f7a;
  --rose-deep: #a95f5a;
  --rose-wash: rgba(221, 150, 145, 0.32);
  --taupe: #d7bfb6;
  --line: #e4d8cf;
  --line-strong: #cdbdb3;
  --ok: #5f7a5a;
  --err: #a8443d;

  --serif: 'Gowun Batang', 'Nanum Myeongjo', 'AppleMyungjo', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --caps: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-family: var(--serif);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.caption {
  font-family: var(--caps);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--rose);
  margin: 24px auto;
}

.muted {
  color: var(--muted);
}

.pre {
  white-space: pre-wrap;
}

.nowrap {
  white-space: nowrap;
}

/* 붓 형광펜 — 보도자료의 로즈 붓터치 밑줄 */
.hl {
  background: linear-gradient(176deg, transparent 58%, var(--rose-wash) 60%, var(--rose-wash) 86%, transparent 88%);
  padding: 0 0.08em;
}

/* ───────────────── 공개 영역 ───────────────── */

body.public {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pub-header {
  padding: 20px 20px 0;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.mark {
  display: block;
  flex: none;
}

.pub-main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 랜딩 */
.hero {
  text-align: center;
  padding: 40px 0 8px;
}

.hero .logo {
  width: min(42vw, 168px);
  height: auto;
  margin: 0 auto 24px;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.hero .caption {
  margin-bottom: 20px;
}

.display {
  font-size: clamp(34px, 10vw, 46px);
  line-height: 1.25;
}

.display em {
  font-style: normal;
  color: var(--rose);
}

.hero .lead {
  font-family: var(--serif);
  font-size: 19px;
  margin-top: 14px;
}

.hero .body {
  color: var(--ink-2);
  font-size: 15px;
}

.entry-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.entry-list li {
  border-bottom: 1px solid var(--line-strong);
}

.entry-list a,
.entry-list .entry-disabled {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'cap arrow'
    'title arrow'
    'sub arrow';
  padding: 22px 4px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.entry-list a:hover,
.entry-list a:focus-visible {
  background: var(--paper);
}

.entry-list .caption {
  grid-area: cap;
  color: var(--rose-deep);
  font-size: 11px;
}

.entry-list strong {
  grid-area: title;
  font-family: var(--serif);
  font-size: 23px;
  margin-top: 2px;
}

.entry-list .sub {
  grid-area: sub;
  color: var(--ink-2);
  font-size: 14px;
}

.entry-list .arrow {
  grid-area: arrow;
  align-self: center;
  font-size: 22px;
  color: var(--rose);
  padding-left: 16px;
  transition: transform 0.15s;
}

.entry-list .entry-disabled {
  cursor: default;
}

/* 오픈 전: 글은 흐리게, 카운트다운 배지는 또렷하게 */
.entry-list .entry-disabled .caption,
.entry-list .entry-disabled strong,
.entry-list .entry-disabled .sub {
  opacity: 0.5;
}

.entry-list .arrow.soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding-left: 16px;
  line-height: 1;
}

.entry-list .soon-d {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--rose);
}

.entry-list .soon-label {
  font-family: var(--caps);
  font-size: 9px;
  letter-spacing: 0.2em;
  padding-left: 0.2em;
  color: var(--muted);
}

.entry-list a:hover .arrow {
  transform: translateX(4px);
}

/* 랜딩 하단 인스타그램 */
.insta-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 36px auto 0;
  padding: 12px 8px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}

.insta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.insta-icon {
  color: var(--rose);
  transition: transform 0.15s;
}

.insta-handle {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.insta-sub {
  font-size: 13px;
  color: var(--ink-2);
}

.insta-link:hover .insta-handle,
.insta-link:focus-visible .insta-handle {
  border-bottom-color: var(--ink);
}

.insta-link:hover .insta-icon {
  transform: rotate(-6deg) scale(1.06);
}

/* 폼 페이지 소개 */
.intro {
  text-align: center;
  padding: 36px 0 8px;
}

.intro .caption {
  color: var(--rose-deep);
  margin-bottom: 14px;
}

.intro h1 {
  font-size: clamp(26px, 7.4vw, 32px);
  line-height: 1.35;
}

.intro p {
  font-size: 16px;
  line-height: 1.75;
}

.intro .note {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
}

.intro.done {
  padding-top: 72px;
}

.text-link {
  display: inline-block;
  margin-top: 36px;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* 폼 */
.form {
  margin: 36px 0 24px;
  padding-top: 8px;
  border-top: 1px solid var(--line-strong);
}

.field {
  margin: 0;
  padding: 26px 0 0;
  border: 0;
  min-width: 0;
}

.field > label,
.field > legend {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  padding: 0;
}

.opt {
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-2);
  margin-left: 6px;
}

.hint {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 8px;
}

.field > label + .hint {
  margin: -4px 0 10px;
}

.error {
  font-size: 14px;
  font-weight: 500;
  color: var(--err);
  margin-top: 8px;
}

.form-error {
  margin-top: 20px;
  padding: 12px 14px;
  border-left: 3px solid var(--err);
  background: #fff;
  color: var(--err);
  font-size: 15px;
  font-weight: 500;
}

input:not([type='checkbox']):not([type='radio']):not([type='file']),
textarea,
select {
  width: 100%;
  font: inherit;
  font-size: 16px; /* iOS 확대 방지 */
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 12px;
  resize: vertical;
  margin-top: 4px;
  line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
  color: #ab9b94;
}

/* 공개 폼 입력칸: 칸이 분명히 보이도록 흰 상자 */
.form input:not([type='checkbox']):not([type='radio']):not([type='file']),
.form textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 13px 14px;
  font-size: 17px;
  line-height: 1.5;
  margin-top: 0;
}

.form input:focus,
.form textarea:focus {
  box-shadow: 0 0 0 1px var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ink) !important;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--err) !important;
}

/* 성별 선택 */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}

.seg label {
  position: relative;
}

.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}

.seg span {
  display: block;
  text-align: center;
  padding: 13px 0;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.seg label + label span {
  border-left: 0;
}

.seg input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.seg input:focus-visible + span {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

/* 사진 */
.photo-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.photo-previews {
  display: contents;
}

.photo-previews figure,
.photo-add {
  width: calc((100% - 16px) / 3);
  aspect-ratio: 3 / 4;
  margin: 0;
}

.photo-previews img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-previews .no-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--paper);
}

.photo-add {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--ink-2);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.photo-add input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-add span::before {
  content: '+';
  display: block;
  text-align: center;
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  margin-bottom: 4px;
}

.photo-picker.full .photo-add span::before {
  content: '↻';
  font-size: 18px;
}

/* 동의 */
.consent details {
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.consent summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.consent dl {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 4px 8px;
}

.consent dt {
  color: var(--ink-2);
}

.consent dd {
  margin: 0;
}

.field > label.check {
  display: flex;
  font-weight: 600;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 16px;
  cursor: pointer;
}

input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
  margin: 0;
  flex: none;
}

.cf-turnstile {
  margin-top: 24px;
  min-height: 65px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s;
}

.btn-primary:hover {
  background: #3a2a25;
}

.btn-primary[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.btn-primary.sm {
  width: auto;
  padding: 9px 16px;
  font-size: 14px;
  margin-top: 12px;
}

.btn-line {
  display: inline-block;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-line:hover {
  border-color: var(--ink);
}

.btn-text {
  font: inherit;
  font-size: 13px;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-text.danger {
  color: var(--err);
}

/* 푸터 — 보도자료 하단 서명 */
.site-footer {
  text-align: center;
  padding: 56px 20px 40px;
}

.site-footer .sig {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.site-footer .bar {
  color: var(--muted);
  font-weight: 400;
  margin: 0 4px;
}

.site-footer .latin {
  letter-spacing: 0.02em;
}

.site-footer .rule {
  margin: 10px auto;
  width: 28px;
  height: 1px;
}

.site-footer .tagline {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-2);
}

/* ───────────────── 관리자 ───────────────── */

body.admin {
  background: var(--bg);
}

.adm-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 5;
}

.adm-header .brand-link {
  font-size: 17px;
}

.adm-header .brand-link small {
  font-family: var(--caps);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--rose-deep);
  font-weight: 600;
}

.adm-nav {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.adm-nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.adm-nav a.on,
.adm-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--rose);
}

.adm-user {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.adm-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 24px;
}

.page-head h1 {
  font-size: 28px;
  margin-top: 6px;
}

.page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.back {
  font-size: 14px;
  margin-bottom: 18px;
}

.back a {
  text-decoration: none;
  color: var(--ink-2);
}

.flash {
  padding: 10px 14px;
  border-left: 2px solid var(--ok);
  background: var(--paper);
  font-size: 14px;
  margin-bottom: 20px;
}

.flash.err {
  border-left-color: var(--err);
  color: var(--err);
}

.notice {
  font-size: 14px;
  color: var(--ink-2);
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 24px;
}

.block {
  margin: 0 0 44px;
  scroll-margin-top: 96px;
}

.block > h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 14px;
}

.block > h2 small {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
}

.num {
  font-family: var(--caps);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--rose-deep);
}

.toggle {
  margin-left: auto;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-2);
}

.empty {
  color: var(--muted);
  font-size: 14px;
  padding: 18px 0;
}

.count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* 요약 수치 */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 44px;
  border-bottom: 1px solid var(--line-strong);
}

.stats > div {
  padding: 6px 0 22px;
}

.stats > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.stats dt {
  font-size: 13px;
  color: var(--ink-2);
}

.stats dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.1;
}

.stats dd a {
  text-decoration: none;
}

.stats dd small {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

/* 필터 */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 18px;
}

.filters select,
.filters input[type='search'] {
  width: auto;
  min-width: 120px;
  padding: 7px 0;
  font-size: 14px;
}

.filters input[type='search'] {
  flex: 1;
  min-width: 180px;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 5px) 55%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
  padding-right: 20px !important;
}

/* 표 */
.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tbl th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.tbl td {
  padding: 11px 10px 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.tbl td a {
  text-decoration: none;
  font-weight: 600;
}

.tbl td a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tbl tbody tr:hover {
  background: var(--paper);
}

.status {
  font-size: 12px;
  white-space: nowrap;
}

.status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  vertical-align: middle;
  background: var(--muted);
}

.s-new::before,
.s-active::before {
  background: var(--rose);
}

.s-confirmed::before,
.s-matched::before {
  background: var(--ok);
}

.s-canceled,
.s-paused {
  color: var(--muted);
}

/* 행 목록 */
.rows {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.rows a {
  text-decoration: none;
}

.rows a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rows li > .muted {
  font-size: 13px;
  white-space: nowrap;
}

/* 상세 */
.info {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  margin: 0 0 28px;
  font-size: 15px;
}

.info dt,
.info dd {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.info dt {
  color: var(--ink-2);
  font-size: 13px;
  padding-top: 12px;
}

.info a {
  text-decoration: none;
}

.sub-h {
  font-size: 16px;
  margin: 24px 0 8px;
}

.prose {
  font-size: 15px;
  line-height: 1.75;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.admin-form {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  max-width: 560px;
}

.admin-form .row {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.admin-form label {
  font-size: 13px;
  color: var(--ink-2);
  padding-top: 10px;
}

.admin-form select {
  width: auto;
  min-width: 140px;
}

.danger-zone {
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}

form.inline {
  display: inline;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
}

.inline-form input,
.inline-form select {
  width: auto;
  flex: 1 1 140px;
  font-size: 15px;
}

.inline-form input[type='date'] {
  flex: 0 1 160px;
}

.inline-form .btn-primary.sm,
.inline-form .btn-line {
  margin-top: 0;
}

.quiet {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

/* 소개팅풀 */
.pool-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 28px 18px;
}

.pool-grid a {
  display: block;
  text-decoration: none;
}

.pool-grid .ph {
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 10px;
}

.pool-grid .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.pool-grid a:hover .ph img {
  transform: scale(1.03);
}

.no-ph {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
}

.pool-grid .nm {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
}

.pool-grid .nm small {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-2);
  margin-left: 4px;
}

.pool-grid .co {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
}

.pool-detail {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 36px;
}

.pool-detail .photos {
  display: grid;
  gap: 10px;
  align-content: start;
}

.pool-detail .photos img {
  width: 100%;
  border: 1px solid var(--line);
}

.pool-detail .photos .heic {
  display: block;
  padding: 28px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
}

/* 회차 · 매칭 */
.participants input {
  padding: 6px 0;
  font-size: 15px;
}

.participants .seat {
  max-width: 3.2em;
}

.participants .alias {
  min-width: 6em;
  font-weight: 600;
}

.participants .realname {
  min-width: 6em;
}

.add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.add-box {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 0 16px;
}

.add-box summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
}

.add-box[open] {
  padding-bottom: 16px;
}

.pick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 320px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.pick-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  cursor: pointer;
}

.pick-list label > span {
  flex: 1;
}

.matrix-wrap + .matrix-wrap {
  margin-top: 28px;
}

.matrix-wrap h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.matrix {
  border-collapse: collapse;
  font-size: 14px;
}

.matrix th,
.matrix td {
  border: 1px solid var(--line);
  padding: 0;
  text-align: center;
  min-width: 52px;
  height: 42px;
}

.matrix thead th {
  font-weight: 600;
  padding: 6px 8px;
  background: var(--paper);
  white-space: nowrap;
}

.matrix .corner {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-align: left;
}

.matrix tbody th {
  text-align: left;
  padding: 0 12px;
  font-weight: 600;
  background: var(--paper);
  white-space: nowrap;
}

.matrix td label,
.matrix td input {
  cursor: pointer;
}

.matrix td:has(input:checked) {
  background: var(--rose-wash);
}

.matrix .cnt {
  font-size: 12px;
  color: var(--muted);
  min-width: 44px;
}

.matrix tr.full .cnt {
  color: var(--rose-deep);
  font-weight: 600;
}

.matrix tr.full input:not(:checked) {
  opacity: 0.3;
}

.result {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 20px 24px 8px;
}

.result > h2 {
  border-bottom-color: var(--line);
}

.couples {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  counter-reset: c;
}

.couples li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: c;
}

.couples li::before {
  content: counter(c, decimal-leading-zero);
  font-family: var(--caps);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  min-width: 2em;
}

.couples li:last-child {
  border-bottom: 0;
}

.heart {
  color: var(--rose);
  font-size: 0.8em;
}

/* 결과 크게 보기 (발표용) */
body.bare {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage {
  text-align: center;
  padding: 48px 24px;
  width: 100%;
  max-width: 900px;
}

.stage .mark {
  margin: 0 auto 24px;
}

.stage h1 {
  font-size: clamp(30px, 5vw, 48px);
  margin-top: 10px;
}

.stage-couples {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.stage-couples li {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 60px);
  line-height: 1.6;
}

.stage-empty {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-2);
}

.stage-foot {
  margin-top: 40px;
  font-family: var(--serif);
  color: var(--ink-2);
}

/* 모바일 */
@media (max-width: 720px) {
  .adm-header {
    padding: 12px 16px;
    gap: 6px 16px;
  }

  .adm-nav {
    order: 3;
    width: 100%;
    gap: 18px;
  }

  .adm-user {
    display: none;
  }

  .adm-main {
    padding: 24px 16px 64px;
  }

  .hide-sm {
    display: none;
  }

  .stats > div + div {
    padding-left: 14px;
  }

  .stats dd {
    font-size: 28px;
  }

  .pool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .pool-detail,
  .add-grid {
    grid-template-columns: 1fr;
  }

  .info {
    grid-template-columns: 7em 1fr;
  }

  .admin-form .row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .result {
    padding: 16px 16px 4px;
  }

  .couples li {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* 선택 표: 가로 스크롤 시 이름 열 고정 */
.matrix tbody th,
.matrix .corner {
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 1px 0 0 var(--line);
}

@media (max-width: 720px) {
  .matrix th,
  .matrix td {
    min-width: 44px;
  }

  .matrix .corner {
    font-size: 10px;
    max-width: 64px;
    white-space: normal;
  }
}

/* ───────── 신청서 (src/content/apply.ts 기반) ───────── */

.event-info {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  margin: 28px 0 0;
  border-top: 1px solid var(--line-strong);
  font-size: 15px;
}

.event-info dt,
.event-info dd {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.event-info dt {
  color: var(--ink-2);
  font-size: 14px;
}

.event-info dd {
  font-weight: 500;
}

.event-info a {
  color: var(--rose-deep);
  text-underline-offset: 3px;
}

.form-section {
  padding-top: 36px;
}

.form-section + .form-section {
  margin-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.form-section > .caption {
  color: var(--rose-deep);
}

.form-section > h2 {
  font-size: 22px;
  margin-top: 4px;
}

.choices {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.choices label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.choices input[type='radio'] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--ink);
}

.choices label:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  font-weight: 600;
}

.notice-box {
  margin: 10px 0 4px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}

.notice-item + .notice-item {
  margin-top: 12px;
}

.notice-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.with-unit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.with-unit input {
  max-width: 10em;
}

.with-unit span {
  font-size: 16px;
  color: var(--ink-2);
}

.done-body {
  text-align: left;
  font-size: 16px;
  line-height: 1.75;
}

.done-body p + p {
  margin-top: 16px;
}

/* 신청 완료: 카카오톡 채널 안내 강조 상자 */
/* 신청 완료 화면 — 담백하게, 메시지 형식과 카카오 버튼만 강조 */
.done2 {
  padding: 40px 0 8px;
}

.done2-head {
  text-align: center;
}

.done2-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rose-tint);
  color: var(--rose-deep);
  font-size: 24px;
  font-weight: 700;
}

.done2-head h1 {
  margin-top: 18px;
  font-size: clamp(24px, 6.6vw, 28px);
  line-height: 1.4;
}

.done2-thanks {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

.done2-card {
  margin-top: 32px;
  padding: 24px 20px 20px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.done2-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--rose-deep);
}

.done2-lead {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

/* 보낼 메시지 — 화면에서 가장 눈에 띄는 부분 */
.done2-message {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--r-ctl);
  background: var(--field-bg);
  text-align: center;
}

.done2-format {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.done2-example {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-2);
}

.btn-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #fee500;
  color: rgba(0, 0, 0, 0.85);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s, filter 0.15s;
}

.btn-kakao:hover {
  filter: brightness(0.97);
}

.btn-kakao:active {
  transform: scale(0.985);
}

.done2-warn {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  color: var(--err);
}

.done2-info {
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  text-align: center;
}

.done2-info p + p {
  margin-top: 8px;
}

.done2-closing {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
}

.done2-home {
  display: table;
  margin: 28px auto 0;
}

.info dd.warn {
  color: var(--err);
  font-weight: 600;
}

.answers .sub-h {
  margin-top: 8px;
}

/* fieldset 은 legend 아래에 padding 이 붙으므로 간격을 margin 으로 */
fieldset.field {
  padding-top: 0;
  margin-top: 26px;
}

.form-section > h2 + .field {
  margin-top: 18px;
}

.form-section > h2 + div.field {
  margin-top: 0;
  padding-top: 18px;
}

.event-info + .form {
  border-top: 0;
  margin-top: 12px;
}

/* ═════════ 공개 폼 v2 — 단계형 설문 UI (둥근 카드, 부드러운 그림자) ═════════ */

.public {
  --card: #ffffff;
  --field-bg: #faf6f2;
  --rose-tint: #fbf0ee;
  --track: #ebe0d8;
  --r-card: 18px;
  --r-ctl: 12px;
  --shadow-card: 0 1px 2px rgba(75, 56, 50, 0.04), 0 8px 24px rgba(75, 56, 50, 0.06);
  --shadow-btn: 0 8px 20px rgba(75, 56, 50, 0.2);
}

.public .btn-primary {
  border-radius: 14px;
  padding: 17px;
  font-size: 17px;
  box-shadow: var(--shadow-btn);
  transition: transform 0.12s, background-color 0.15s;
}

.public .btn-primary:active {
  transform: scale(0.985);
}

/* 진행 표시줄 */
.stepbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0 -20px;
  padding: 12px 20px;
  background: rgba(247, 242, 236, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.step-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--card);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.step-back:disabled {
  opacity: 0.35;
  cursor: default;
}

.progress {
  height: 6px;
  border-radius: 99px;
  background: var(--track);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--rose);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* 머리말 (1단계에서만) */
.apply-head {
  text-align: center;
  padding: 28px 0 8px;
}

.apply-head .caption {
  color: var(--rose-deep);
}

.apply-head h1 {
  font-size: clamp(25px, 7vw, 30px);
  line-height: 1.35;
  margin-top: 10px;
}

.apply-head .lead {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 16px;
}

.apply-head .event-info {
  text-align: left;
  margin: 24px 0 0;
  padding: 6px 20px;
  border: 0;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.apply-head .event-info dt,
.apply-head .event-info dd {
  padding: 13px 0;
}

.apply-head .event-info dt:last-of-type,
.apply-head .event-info dd:last-of-type {
  border-bottom: 0;
}

/* 폼 컨테이너 */
.form {
  border-top: 0 !important;
  margin-top: 8px;
  padding-top: 0;
}

.form-section,
.form-section + .form-section {
  border-top: 0;
  margin-top: 0;
  padding-top: 28px;
  animation: step-in 0.35s ease both;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form-section > .caption {
  font-size: 11px;
  color: var(--rose-deep);
}

.form-section > h2 {
  font-size: 24px;
  margin: 6px 0 4px;
  outline: none;
}

/* 질문 카드 */
.form .field,
.form fieldset.field,
.form-section > h2 + .field,
.form-section > h2 + div.field {
  margin: 14px 0 0;
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.form .field.has-error {
  border-color: rgba(168, 68, 61, 0.45);
}

/* fieldset 의 legend 를 카드 안쪽에 두기 */
.form fieldset.field > legend {
  float: left;
  width: 100%;
  margin-bottom: 8px;
}

.form fieldset.field > legend + * {
  clear: both;
}

.form .field > label,
.form .field > legend {
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.form .field > label + .hint,
.form .field > legend + .hint {
  margin: -4px 0 12px;
}

/* 입력칸 */
.form input:not([type='checkbox']):not([type='radio']):not([type='file']),
.form textarea {
  background: var(--field-bg);
  border: 1.5px solid transparent;
  border-radius: var(--r-ctl);
  padding: 14px 16px;
  font-size: 17px;
  box-shadow: none;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.form input:not([type='checkbox']):not([type='radio']):not([type='file']):focus,
.form textarea:focus {
  background: #fff;
  border-color: var(--rose) !important;
  box-shadow: 0 0 0 4px rgba(199, 127, 122, 0.16);
}

.form .field.has-error input:not([type='radio']):not([type='checkbox']),
.form .field.has-error textarea {
  border-color: rgba(168, 68, 61, 0.6) !important;
}

/* 선택 카드 */
.form .choices {
  gap: 10px;
  margin-top: 4px;
}

.form .choices label {
  padding: 15px 16px;
  border: 1.5px solid var(--track);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  font-weight: 500;
}

.form .choices label:hover {
  border-color: var(--taupe);
}

.form .choices label:has(input:checked) {
  border-color: var(--rose-deep);
  background: var(--rose-tint);
  box-shadow: none;
  font-weight: 600;
}

/* 라디오 동그라미 */
.form .choices input[type='radio'] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--taupe);
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form .choices input[type='radio']:checked {
  border-color: var(--rose-deep);
  background: var(--rose-deep);
  box-shadow: inset 0 0 0 4px #fff;
}

.form .choices input[type='radio']:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

/* 두 개짜리 선택 (성별 등) */
.form .seg {
  gap: 10px;
  margin-top: 4px;
}

.form .seg span {
  padding: 16px 0;
  border: 1.5px solid var(--track);
  border-radius: 14px;
  background: #fff;
  font-size: 17px;
}

.form .seg label + label span {
  border-left: 1.5px solid var(--track);
}

.form .seg input:checked + span {
  background: var(--rose-tint);
  border-color: var(--rose-deep);
  color: var(--ink);
  font-weight: 700;
}

/* 안내 상자 */
.form .notice-box {
  margin: 4px 0 14px;
  padding: 16px;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--field-bg);
  font-size: 14px;
}

.form .with-unit input {
  max-width: 9em;
}

/* 소개팅풀 폼의 사진·동의도 같은 톤으로 */
.form .photo-add,
.form .photo-previews figure {
  border-radius: 14px;
  overflow: hidden;
}

.form .photo-add {
  border: 1.5px dashed var(--taupe);
  background: var(--field-bg);
}

.form .consent details {
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--field-bg);
}

.form .cf-turnstile {
  margin: 20px 0 0;
}

.form > .form-error {
  border-radius: var(--r-ctl);
  border-left-width: 4px;
  margin-top: 16px;
}

/* 하단 고정 버튼 */
.step-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 8px -20px 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(247, 242, 236, 0), var(--bg) 28%);
}

.step-actions .btn-primary {
  margin-top: 12px;
}

/* 단계형일 때 Turnstile 은 마지막 단계에서만 보이게 (렌더링은 미리) */
.form.is-stepper:not(.on-last) .cf-turnstile {
  position: absolute;
  left: -9999px;
}

@media (prefers-reduced-motion: reduce) {
  .form-section {
    animation: none;
  }
}

.apply-head .note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-2);
}

/* 행사 정보 이모지 */
.event-info .emoji {
  display: inline-block;
  width: 1.5em;
  font-size: 15px;
}

.apply-head .event-info {
  grid-template-columns: 7em 1fr;
}

/* 드롭다운 */
.form select {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background-color: var(--field-bg);
  border: 1.5px solid transparent;
  border-radius: var(--r-ctl);
  padding: 14px 44px 14px 16px !important;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.form select:focus {
  background-color: #fff;
  border-color: var(--rose) !important;
  box-shadow: 0 0 0 4px rgba(199, 127, 122, 0.16);
}

.form select:invalid {
  color: #ab9b94;
}

.form .field.has-error select {
  border-color: rgba(168, 68, 61, 0.6) !important;
}

.apply-head .event-info {
  grid-template-columns: max-content 1fr;
  column-gap: 16px;
}

.apply-head .event-info dt {
  white-space: nowrap;
}

/* 구분선이 끊기지 않도록 간격은 dt 안쪽 여백으로 */
.apply-head .event-info {
  column-gap: 0;
}

.apply-head .event-info dt {
  padding-right: 16px;
}

.done2-sub {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  color: var(--ink-2);
}

/* 안내 문단과 맺음말 사이 여백 */
.done2-info + .done2-closing {
  margin-top: 52px;
}

/* ───────── 관리자: 회차 일정·모집 설정 ───────── */
.event-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  max-width: 720px;
}

.event-form label {
  display: grid;
  gap: 2px;
  font-size: 13px;
  color: var(--ink-2);
}

.event-form .wide {
  grid-column: 1 / -1;
}

.event-form .check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  margin-top: 4px;
}

.event-form .hint {
  margin: 0;
}

.event-settings {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 0 20px;
}

.event-settings[open] {
  padding-bottom: 20px;
}

.event-settings > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.event-settings > summary .status {
  font-family: var(--sans);
  font-weight: 500;
}

.tag {
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--rose);
  color: var(--rose-deep);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .event-form {
    grid-template-columns: 1fr;
  }
}

/* ───────── 공개: 일정 선택 ───────── */
.choose-title {
  font-size: 20px;
  margin: 28px 0 12px;
}

.date-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.date-list a {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 20px 52px 20px 20px;
  background: var(--card);
  border: 1.5px solid transparent;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.12s;
}

.date-list a:hover {
  border-color: var(--rose);
}

.date-list a:active {
  transform: scale(0.99);
}

.date-main {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}

.date-time {
  color: var(--rose-deep);
}

.date-sub {
  font-size: 14px;
  color: var(--ink-2);
}

.date-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--rose);
}

.choose-notice {
  margin-top: 20px;
}

.choose-empty {
  margin-top: 28px;
  padding: 28px 20px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  text-align: center;
  color: var(--ink-2);
  font-size: 15px;
}

.choose-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.choose-empty .text-link {
  display: table;
  margin: 16px auto 0;
}

.change-date {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}

/* 참가자 애프터 신청 여부 */
.after-sum {
  margin-left: auto;
}

.participants select.after-select {
  width: auto;
  min-width: 5.5em;
  padding: 6px 22px 6px 8px !important;
  font-size: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background-color: #fff;
}

.participants select.a-yes {
  border-color: var(--ok);
  color: var(--ok);
  font-weight: 600;
}

.participants select.a-no {
  color: var(--muted);
}

/* ───────── 관리자: 회차 한 화면 (회차 바 + 탭) ───────── */
.session-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  margin: -8px -24px 24px;
  padding: 4px 24px 12px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.chip small {
  font-weight: 400;
  color: var(--ink-2);
}

.chip:hover {
  border-color: var(--ink);
}

.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip.on small {
  color: var(--taupe);
}

.chip.past:not(.on) {
  opacity: 0.6;
}

.chip-new {
  border-style: dashed;
  color: var(--rose-deep);
}

.chip-sep {
  flex: none;
  font-size: 11px;
  color: var(--muted);
  padding: 0 4px 0 8px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.d-open {
  background: var(--ok);
}

.d-closed {
  background: var(--rose);
}

.session-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.session-head h1 {
  font-size: 28px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.session-head h1 .status {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}

.tabs {
  display: flex;
  gap: 4px;
  margin: 20px 0 24px;
  border-bottom: 1px solid var(--ink);
  overflow-x: auto;
}

.tabs a {
  flex: none;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.tabs a b {
  margin-left: 4px;
  font-size: 13px;
  color: var(--rose-deep);
}

.tabs a.on {
  color: var(--ink);
  border-bottom-color: var(--rose);
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0 0 18px;
}

.mini-stats dt {
  font-size: 12px;
  color: var(--ink-2);
}

.mini-stats dd {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.form-actions .btn-primary.sm {
  margin-top: 0;
}

.tbl tr.is-canceled td {
  color: var(--muted);
}

.tbl tr.is-canceled td a {
  color: var(--muted);
  text-decoration: line-through;
}

select.status-select {
  width: auto;
  min-width: 5em;
  padding: 5px 22px 5px 8px !important;
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background-color: #fff;
}

@media (max-width: 720px) {
  .session-bar {
    margin: -8px -16px 20px;
    padding: 4px 16px 12px;
  }
}

/* ───────── 관리자 로그인 ───────── */
.login {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

.login .mark {
  margin: 0 auto 20px;
}

.login h1 {
  font-size: 26px;
  margin-top: 6px;
}

.login-sub {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
}

.login-google {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  min-height: 44px;
}

.login-notice,
.login-error {
  margin-top: 20px;
  padding: 10px 14px;
  font-size: 14px;
  background: var(--paper);
  border-left: 3px solid var(--ok);
  text-align: left;
}

.login-error {
  border-left-color: var(--err);
  color: var(--err);
}

.login-dev {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.login-foot {
  margin-top: 36px;
  font-size: 13px;
}

.login-foot a {
  color: var(--ink-2);
  text-decoration: none;
}

.adm-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
