/* 하루끝작업실 (workroom.saeharu.com)
   색은 saeharu.com/workroom/과 같다: 같은 잉크(#2c2422)를 농도만 달리해 면을 쌓고,
   본문 색 --sub는 페이지 배경 위에서도 4.5:1을 넘는 값이다. 굵기는 500까지만. */
:root {
  --text: #2c2422;
  --sub: #5f5b55;
  --tint-1: rgba(44, 36, 34, 0.028);
  --tint-2: rgba(44, 36, 34, 0.055);
  --tint-line: rgba(44, 36, 34, 0.07);
  --ring: rgba(44, 36, 34, 0.12);
  --page: #dfe2e5;
  --card: #f5f6f8;
  --kakao: #fee500;
  --bad: #a3352b;
  --font: 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 15px/1.7 var(--font);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
b { font-weight: 500; }
[hidden] { display: none !important; }

/* ── 머리 ── */
.top {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wide .top { max-width: 720px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
}
.brand img { border-radius: 8px; }
.top-tools { display: flex; align-items: center; gap: 8px; }
.who { color: var(--sub); font-size: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ring);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 5px 14px;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.pill:hover { background: var(--tint-2); }
.pill:disabled { opacity: 0.5; cursor: default; }
.pill--ink { background: var(--text); border-color: var(--text); color: var(--card); }
.pill--ink:hover { background: #463a37; }

/* ── 카드 ── */
.card {
  max-width: 480px;
  margin: 0 auto 40px;
  background: var(--card);
  border: 1px solid rgba(44, 36, 34, 0.08);
  border-radius: 26px;
  box-shadow: 0 20px 50px -30px rgba(44, 36, 34, 0.35);
  overflow: hidden;
}
.card--wide { max-width: 720px; }

.hero { margin: 0; }
.hero img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 62%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 62%, transparent 100%);
}
.hero + .content { margin-top: -9%; position: relative; }

.content { padding: 28px 24px 8px; }
.title { margin: 0; font-size: 26px; font-weight: 500; text-align: center; letter-spacing: -0.01em; }
.subtitle { margin: 2px 0 20px; text-align: center; color: var(--sub); }
.lead { color: var(--sub); }

.note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--tint-2);
  font-size: 14px;
}

.block {
  margin: 0 0 16px;
  padding: 18px 18px 14px;
  background: var(--tint-1);
  border: 1px solid var(--tint-line);
  border-radius: 16px;
}
.block p { margin: 0 0 12px; color: var(--sub); }
.block-title {
  width: fit-content;
  margin: 0 auto 14px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}
.block-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 8px auto 0;
  background: var(--ring);
}

.bullets { margin: 0 0 12px; padding: 0; list-style: none; color: var(--sub); }
.bullets li { display: flex; gap: 8px; margin-bottom: 6px; }
.bullets li::before { content: "·"; color: var(--text); }
.soon { font-size: 13px; text-align: center; }

.kakao-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--kakao);
  color: rgba(0, 0, 0, 0.85);
  text-decoration: none;
  font-weight: 500;
}
.kakao-btn svg { width: 20px; height: 20px; fill: currentColor; }

.go { display: block; text-align: center; text-decoration: none; font-weight: 500; }

/* ── 내 이용권 ── */
.pass-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}
.pass-left { color: var(--sub); }
.pass-left b { font-size: 40px; line-height: 1.1; color: var(--text); margin-right: 2px; }
.pass-until { font-size: 13px; color: var(--sub); }

.pass-list { margin: 0; padding: 0; list-style: none; }
.pass {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--tint-line);
  font-size: 14px;
}
.pass-count { font-weight: 500; }
.pass-dates { color: var(--sub); }
.pass.is-expired { opacity: 0.55; }
.pass-empty p:last-child { margin-bottom: 4px; }
.nick { color: var(--text); }

/* ── 다음 작업실 ── */
.next-when { margin: 0 0 12px !important; text-align: center; font-size: 20px; font-weight: 500; color: var(--text) !important; }
.next-zoom p { margin-bottom: 4px; }
.center { text-align: center; }

.big-btn {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--text);
  color: var(--card);
  font: inherit;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.big-btn:hover { background: #463a37; }
.big-btn:disabled { background: var(--tint-2); color: var(--sub); cursor: default; }

/* ── 작업실 예약 ── */
.days { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.day {
  flex: 1 1 0;
  min-width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 4px;
  border: 1px solid var(--ring);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  cursor: pointer;
}
.day.is-on { background: var(--text); border-color: var(--text); color: var(--card); }
.day-date { font-weight: 500; }
.day-state { font-size: 12px; opacity: 0.75; }

/* 위에서 내려다본 테이블: 왼쪽 1–3, 오른쪽 4–6 */
.room {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.room .table {
  border-radius: 14px;
  background: #c9a582;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 12px, rgba(80, 50, 30, 0.07) 12px 13px, transparent 13px 26px);
  box-shadow: inset 0 0 0 4px rgba(120, 84, 56, 0.3);
}
.room.is-closed { opacity: 0.45; }
.side { display: flex; flex-direction: column; gap: 8px; }
.seat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px dashed var(--ring);
  border-radius: 12px;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.3;
}
.seat.is-taken { border-style: solid; border-color: var(--tint-line); background: #fff; color: var(--text); }
.seat.is-host { background: var(--tint-2); }
.seat.is-me { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.seat-n {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tint-2);
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  color: var(--text);
}
.seat-name { min-width: 0; overflow-wrap: anywhere; }
#bookNote { margin: 10px 0 2px; }

/* ── 내 예약 ── */
.rows { margin: 0; padding: 0; list-style: none; }
.rows--past { margin-top: 6px; }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--tint-line);
  font-size: 14px;
}
.row-main { font-weight: 500; }
.row-sub { color: var(--sub); font-size: 13px; }
.rows--past .row-main { font-weight: 400; color: var(--sub); }

/* ── 운영자 ── */
.section-title { margin: 24px 0 10px; font-size: 16px; font-weight: 500; }
.admin-row.is-closed { opacity: 0.6; }
.admin-seats { margin: 6px 0 0; color: var(--sub); font-size: 14px; }

.admin-tools { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; }
.admin-tools input {
  flex: 1;
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid var(--ring);
  border-radius: 999px;
  background: #fff;
  font: inherit;
}
.admin-count { color: var(--sub); font-size: 14px; white-space: nowrap; }

.admin-list { margin: 0; padding: 0; list-style: none; }
.admin-row {
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--tint-1);
  border: 1px solid var(--tint-line);
  border-radius: 14px;
}
.admin-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.admin-name { font-weight: 500; }
.admin-meta { color: var(--sub); font-size: 13px; }
.badge { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--tint-2); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 12px;
  border-radius: 999px;
  background: var(--tint-2);
  font-size: 13px;
}
.chip.is-expired { opacity: 0.55; }
.chip-x {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sub);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.chip-x:hover { background: var(--ring); color: var(--text); }

.charge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.charge input {
  padding: 5px 10px;
  border: 1px solid var(--ring);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
}
.charge-total { width: 64px; }
.charge-memo { flex: 1; min-width: 120px; }
.admin-state { color: var(--sub); font-size: 13px; }
.admin-state.is-bad { color: var(--bad); }

.fine { color: var(--sub); font-size: 13px; }

/* ── 바닥 ── */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 8px 24px 24px;
  color: var(--sub);
  font-size: 13px;
}
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ── 개인정보처리방침 ── */
.policy h2 { font-size: 16px; font-weight: 500; margin: 24px 0 6px; }
.policy p, .policy li { color: var(--sub); }
.policy ul { padding-left: 20px; margin: 0; }

@media (max-width: 520px) {
  .card { margin: 0 12px 32px; }
  .content { padding: 24px 18px 8px; }
}
