:root {
  --ink: #2f2935;
  --muted: #756d7c;
  --paper: #fbf8f2;
  --paper-deep: #f2ecdf;
  --plum: #5b4678;
  --plum-dark: #3d2c56;
  --lavender: #d9cbea;
  --lavender-soft: #eee7f5;
  --gold: #b89352;
  --line: rgba(72, 55, 91, 0.13);
  --green: #4f8064;
  --red: #a45c62;
  --shadow: 0 22px 60px rgba(64, 48, 76, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
.hidden { display: none !important; }
.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .34;
  background-image: radial-gradient(rgba(91, 70, 120, .08) .7px, transparent .7px);
  background-size: 7px 7px;
}
.page-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.topbar {
  height: 78px;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 242, .9);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--plum);
  color: #fff;
  font: 24px/1 Georgia, serif;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.26);
}
.brand b { display: block; font-family: Georgia, "Noto Serif KR", serif; letter-spacing: -.03em; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: -2px; }
.ghost-button, .back-button {
  border: 1px solid var(--line);
  color: var(--plum-dark);
  background: rgba(255,255,255,.6);
  border-radius: 12px;
  font-weight: 750;
  padding: 12px 16px;
}
.ghost-button:hover, .back-button:hover { border-color: var(--lavender); background: #fff; }
.compact { padding: 10px 14px; font-size: 14px; }
.top-actions { display: flex; align-items: center; gap: 7px; }
.page-link { display: inline-flex; align-items: center; text-decoration: none; }
.top-status { color: var(--plum); background: var(--lavender-soft); border-radius: 999px; padding: 8px 12px; font-size: 11px; font-weight: 800; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.hero {
  min-height: 370px;
  padding: 72px 0 54px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 56px;
  position: relative;
}
.hero::before {
  content: "✦";
  position: absolute;
  right: 10%;
  top: 43px;
  font: 94px/1 Georgia, serif;
  color: rgba(184, 147, 82, .13);
  transform: rotate(13deg);
}
.hero-copy { max-width: 650px; }
.eyebrow { color: var(--plum); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.eyebrow i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #6f9a78; margin-right: 7px; box-shadow: 0 0 0 5px rgba(111,154,120,.12); }
.hero h1 { margin: 15px 0 18px; font: 700 clamp(41px, 6vw, 68px)/1.12 Georgia, "Noto Serif KR", serif; letter-spacing: -.055em; }
.hero h1 em { color: var(--plum); font-style: normal; }
.hero-copy > p { color: var(--muted); font-size: 17px; max-width: 590px; margin: 0; }
.hero-note {
  min-width: 260px;
  border-left: 1px solid var(--lavender);
  padding-left: 24px;
  margin-bottom: 10px;
}
.hero-note div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hero-note span { color: var(--muted); font-size: 13px; }
.hero-note strong { font-size: 14px; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; padding-bottom: 90px; }
.booking-layout.summary-collapsed { grid-template-columns: minmax(0, 1fr) 132px; }
.booking-main { display: grid; gap: 20px; }
.panel { background: rgba(255,255,255,.68); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: 0 8px 28px rgba(80,60,90,.035); }
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 25px; }
.section-heading > span { color: var(--gold); font: italic 18px/1 Georgia, serif; margin-top: 5px; }
.section-heading h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.schedule-heading { align-items: center; }
.schedule-heading > div { min-width: 0; }
.punctuality-note { margin-left: auto; padding: 8px 12px; border: 1px solid rgba(184,147,82,.34); border-radius: 999px; color: var(--plum-dark); background: rgba(255,242,201,.68); font-size: 13px; line-height: 1.25; white-space: nowrap; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 4px 0 10px; }
.legend-dot:first-child { margin-left: 0; }
.legend-dot.available { background: var(--green); }
.legend-dot.closed { background: #c8c2ca; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.service-card {
  position: relative;
  min-height: 153px;
  padding: 18px;
  text-align: left;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(251,248,242,.7);
  transition: .2s ease;
}
.service-card:hover { transform: translateY(-2px); border-color: var(--lavender); }
.service-card.selected { color: #fff; background: var(--plum); border-color: var(--plum); box-shadow: 0 12px 28px rgba(91,70,120,.22); }
.service-card .badge { position: absolute; right: 12px; top: 12px; border-radius: 999px; padding: 4px 7px; font-size: 10px; font-weight: 800; color: var(--plum-dark); background: var(--lavender); }
.service-card strong { display: block; font-size: 17px; margin-top: 20px; }
.service-card > span { display: block; font: 700 23px/1.2 Georgia, serif; margin: 7px 0; }
.service-card small { color: var(--muted); font-size: 11px; }
.service-card.selected small { color: rgba(255,255,255,.72); }
.overtime-notice { margin: 13px 0 0; padding: 12px 14px; border: 1px solid rgba(184,147,82,.38); border-radius: 12px; color: #654e1e; background: #fff2c9; font-size: 13px; font-weight: 650; line-height: 1.5; }
.overtime-notice b { color: var(--plum-dark); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.topic-wrap { margin-top: 24px; padding: 18px; border: 2px solid rgba(91,70,120,.22); border-radius: 17px; background: linear-gradient(135deg, rgba(238,231,245,.82), rgba(255,255,255,.72)); transition: border-color .2s ease, box-shadow .2s ease; }
.topic-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.topic-heading > span { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: #fff; background: var(--plum); font-size: 10px; font-weight: 850; }
.topic-heading strong, .topic-heading small { display: block; }
.topic-heading strong { color: var(--plum-dark); font-size: 16px; }
.topic-heading small { margin-top: 1px; color: var(--muted); font-size: 11px; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.topic-button { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 10px 11px; border: 1px solid rgba(91,70,120,.18); border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.88); font-size: 12px; font-weight: 750; text-align: left; }
.topic-button b { color: var(--plum); font-size: 15px; }
.topic-button:hover { border-color: var(--plum); }
.topic-button.selected { color: #fff; border-color: var(--plum); background: var(--plum); box-shadow: 0 8px 18px rgba(91,70,120,.18); }
.topic-button.selected b { color: #fff; }
.topic-wrap.needs-attention { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184,147,82,.15); }
label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 750; }
input, select, textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.9);
  padding: 13px 14px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(91,70,120,.1); }
textarea { resize: vertical; min-height: 130px; }
label small { color: var(--muted); font-weight: 500; text-align: right; }
.question-example { padding: 16px 17px; border: 1px solid rgba(91,70,120,.16); border-radius: 14px; background: rgba(238,231,245,.46); color: #5e5663; font-size: 13px; line-height: 1.7; }
.question-example > strong { display: block; color: var(--plum); margin-bottom: 9px; font-size: 14px; }
.question-example p { margin: 0; }
.question-example p + p { margin-top: 12px; }
.question-example b { color: var(--ink); }
.booking-notice { padding: 17px 18px; border: 2px solid rgba(164,92,98,.3); border-radius: 15px; color: #5c4c55; background: linear-gradient(135deg, #fff4e2, #fff9f2); text-align: left; }
.booking-notice-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.booking-notice-title span { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #fff; background: var(--red); font-size: 10px; font-weight: 850; }
.booking-notice-title strong { color: var(--plum-dark); font-size: 15px; }
.booking-notice ul { margin: 0; padding-left: 19px; font-size: 13px; line-height: 1.65; }
.booking-notice li + li { margin-top: 5px; }
.booking-notice li b { color: #8a4148; }
.date-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 68px; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.date-card { height: 78px; border: 1px solid var(--line); background: var(--paper); border-radius: 14px; color: inherit; display: grid; place-content: center; gap: 1px; text-align: center; }
.date-card small { font-size: 11px; color: var(--muted); }
.date-card strong { font: 700 20px/1 Georgia, serif; }
.date-card.selected { background: var(--plum); border-color: var(--plum); color: #fff; }
.date-card.selected small { color: rgba(255,255,255,.7); }
.date-card:disabled { opacity: .36; cursor: not-allowed; }
.slot-header { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 12px; font-size: 13px; }
.slot-header span { color: var(--green); font-size: 12px; }
.slot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.slot-button { height: 43px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font-weight: 700; font-size: 13px; }
.slot-button.next-day { height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.slot-button.next-day small { font-size: 10px; line-height: 1; font-weight: 600; color: #7b7180; }
.slot-button.next-day.selected small { color: #eee7f5; }
.slot-button:hover:not(:disabled) { border-color: var(--plum); color: var(--plum); }
.slot-button.selected { background: var(--plum); border-color: var(--plum); color: #fff; }
.slot-button:disabled { color: #aaa3ac; background: #f0ecec; text-decoration: line-through; cursor: not-allowed; }
.overnight-note { margin: -5px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.empty-state { padding: 32px; text-align: center; color: var(--muted); background: var(--paper); border-radius: 14px; }
.empty-state span, .empty-state strong { display: block; }
.empty-state span { font: 28px Georgia, serif; color: var(--lavender); }
.empty-state p { margin: 3px 0 0; font-size: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#bookingForm { display: grid; gap: 16px; }
.check-label { grid-template-columns: 17px minmax(0, 1fr); align-items: start; gap: 10px; padding: 3px 0; cursor: pointer; font-weight: 500; color: var(--muted); line-height: 1.45; }
.check-label input {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  min-width: 17px;
  height: 17px;
  margin: 2px 0 0;
  padding: 0;
  border: 1.5px solid #8d8392;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}
.check-label input:checked {
  border-color: var(--plum);
  background-color: var(--plum);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.2 2.7 2.7 6.3-6.2' fill='none' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 13px;
}
.check-label input:focus-visible { outline: 2px solid rgba(91,70,120,.3); outline-offset: 2px; box-shadow: none; }
.policy-details { border: 1px solid var(--line); border-radius: 14px; background: rgba(251,248,242,.7); overflow: hidden; }
.policy-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; cursor: pointer; list-style: none; color: var(--plum-dark); font-size: 13px; font-weight: 750; }
.policy-details summary::-webkit-details-marker { display: none; }
.policy-details summary b { font-size: 18px; font-weight: 500; transition: transform .18s ease; }
.policy-details[open] summary b { transform: rotate(45deg); }
.policy-content { padding: 0 15px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.65; }
.policy-content h3 { margin: 14px 0 5px; color: var(--ink); font-size: 13px; }
.policy-content ul { margin: 0; padding-left: 18px; }
.policy-content li + li { margin-top: 5px; }
.policy-content li b { color: var(--ink); }
.policy-content p { margin: 0; }
.primary-button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--plum);
  color: #fff;
  padding: 15px 18px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(91,70,120,.2);
}
.primary-button:hover { background: var(--plum-dark); }
.primary-button span { float: right; }
.desktop-submit { margin-top: 4px; }
.mobile-submit { display: none; }
.summary-card {
  position: sticky;
  top: 98px;
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(91, 70, 120, .16);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 38px rgba(64, 48, 76, .11);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: width .22s ease, border-radius .22s ease, padding .22s ease;
}
.summary-card.collapsed { width: 132px; justify-self: end; border-radius: 999px; padding: 0; }
.summary-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.summary-toggle { min-width: 0; padding: 0; border: 0; color: var(--plum-dark); background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 800; text-align: left; }
.summary-toggle b { font-size: 18px; line-height: 1; }
.summary-card.collapsed .summary-toggle { width: 132px; padding: 12px 14px; }
.summary-card.collapsed .summary-top i, .summary-card.collapsed .summary-content { display: none; }
.summary-top i { font-style: normal; font-size: 10px; padding: 5px 8px; color: var(--plum-dark); background: var(--lavender); border-radius: 999px; }
.summary-service { margin: 32px 0 24px; position: relative; z-index: 1; }
.summary-service > span { font: 700 53px/1 Georgia, serif; }
.summary-service small { color: var(--muted); margin-left: 3px; }
.summary-service strong { display: block; color: var(--plum); font-size: 17px; margin-top: 8px; }
.summary-card dl { margin: 0; padding: 18px 0; border-block: 1px solid var(--line); position: relative; z-index: 1; }
.summary-card dl div { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 6px 0; font-size: 13px; }
.summary-card dt { color: var(--muted); }
.summary-card dd { margin: 0; text-align: right; font-weight: 700; }
.summary-content > p { color: var(--muted); font-size: 11px; margin: 17px 0 0; position: relative; z-index: 1; }
footer { border-top: 1px solid var(--line); padding: 28px 20px 40px; text-align: center; color: var(--muted); font-size: 11px; }
footer span { display: block; color: var(--plum); font: bold 16px Georgia, serif; }
footer p { margin: 4px 0 0; }
footer button, footer a { margin-top: 12px; border: 0; background: transparent; color: #aaa1ad; font-size: 10px; text-decoration: underline; }
footer a + a { margin-left: 14px; }

/* 관리 화면 */
.manage-view { min-height: calc(100vh - 78px); background: #f5f0e8; }
.manage-shell { padding: 58px 0 90px; }
.manage-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.heading-actions { display: flex; gap: 7px; }
.back-button { border: 0; padding: 0; background: transparent; color: var(--plum); margin-bottom: 12px; }
.manage-heading h1 { font: 700 40px/1.1 Georgia, "Noto Serif KR", serif; margin: 0; letter-spacing: -.04em; }
.manage-heading p { margin: 7px 0 0; color: var(--muted); }
.admin-refresh-status { display: block; margin-top: 7px; color: var(--green); font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.stats-grid article { background: var(--plum-dark); color: #fff; border-radius: 18px; padding: 20px 22px; display: flex; align-items: end; justify-content: space-between; }
.stats-grid span { color: rgba(255,255,255,.65); font-size: 12px; }
.stats-grid strong { font: 700 32px/1 Georgia, serif; }
.manage-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .8fr); gap: 18px; align-items: start; }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.panel-title h2 { margin: 0; font-size: 19px; }
.panel-title p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.panel-title select { width: auto; padding: 9px 34px 9px 12px; }
.request-list { display: grid; gap: 10px; }
.admin-type-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: -8px 0 22px; padding: 5px; border-radius: 13px; background: var(--paper); }
.admin-type-tabs button { min-height: 42px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 800; }
.admin-type-tabs button.selected { color: #fff; background: var(--plum); box-shadow: 0 7px 18px rgba(91,70,120,.18); }
.request-card { border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 16px; }
.request-card-top { display: flex; justify-content: space-between; gap: 10px; }
.request-card h3 { margin: 0; font-size: 15px; }
.request-card h3 span { color: var(--muted); font-weight: 500; margin-left: 5px; }
.status-chip { border-radius: 999px; padding: 4px 8px; height: fit-content; font-size: 10px; font-weight: 800; }
.status-chip.pending { color: #856523; background: #f5e9be; }
.status-chip.awaiting_payment { color: #856523; background: #f5e9be; }
.status-chip.confirmed { color: #376149; background: #dcecdf; }
.status-chip.preparing { color: #765d21; background: #fff2c9; }
.status-chip.completed { color: var(--plum-dark); background: var(--lavender-soft); }
.status-chip.cancelled { color: #87555a; background: #f0dcde; }
.status-chip.rejected, .status-chip.expired { color: #6f6871; background: #ebe7eb; }
.request-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 11px; margin: 10px 0; }
.request-meta span { padding: 4px 7px; background: var(--paper); border-radius: 6px; }
.request-question { margin: 0; color: #5e5663; font-size: 12px; white-space: pre-wrap; }
.request-completion-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.request-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 13px; }
.request-actions button { border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 8px; font-size: 11px; font-weight: 750; }
.request-actions .confirm { color: var(--green); }
.request-actions .complete { color: var(--plum); background: var(--lavender-soft); }
.request-actions .restore { color: var(--plum); }
.request-actions .cancel { color: var(--red); }
.request-admin-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.admin-memo { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.admin-memo summary { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 10px; cursor: pointer; list-style: none; color: var(--plum-dark); font-size: 12px; font-weight: 750; }
.admin-memo summary::-webkit-details-marker { display: none; }
.admin-memo summary i { border-radius: 999px; padding: 3px 6px; color: var(--green); background: #dcecdf; font-size: 9px; font-style: normal; }
.admin-memo summary b { margin-left: auto; font-size: 16px; font-weight: 500; }
.admin-memo[open] summary b { transform: rotate(45deg); }
.admin-memo-body { display: grid; gap: 8px; padding: 0 10px 10px; }
.admin-memo textarea { min-height: 84px; resize: vertical; background: #fff; font-size: 13px; line-height: 1.55; }
.admin-memo-body > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-memo-body small { color: var(--muted); font-size: 10px; }
.admin-memo-body button, .delete-booking { border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 8px 10px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.admin-memo-body button { color: var(--plum); }
.delete-booking { color: var(--red); }
.settings-panel form { display: grid; gap: 15px; }
.notification-setup { display: grid; gap: 10px; margin: -4px 0 20px; padding: 14px; border: 1px solid rgba(91,70,120,.16); border-radius: 14px; background: var(--lavender-soft); }
.notification-setup strong, .notification-setup span { display: block; }
.notification-setup strong { color: var(--plum-dark); font-size: 14px; }
.notification-setup span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.notification-setup code { overflow-wrap: anywhere; padding: 9px 10px; border-radius: 9px; color: var(--plum-dark); background: rgba(255,255,255,.76); font-size: 11px; }
.notification-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.notification-actions .ghost-button { display: grid; place-items: center; padding: 9px 7px; text-align: center; text-decoration: none; font-size: 10px; }
.admin-login { max-width: 420px; margin: 40px auto; text-align: center; }
.admin-login h1 { margin: 10px 0 4px; font: 700 32px/1.2 Georgia, "Noto Serif KR", serif; }
.admin-login p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.admin-login form { display: grid; gap: 9px; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { font-size: 13px; font-weight: 750; margin-bottom: 8px; }
.day-checks { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day-checks label { display: block; }
.day-checks input { position: absolute; opacity: 0; pointer-events: none; }
.day-checks span { height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--paper); border: 1px solid var(--line); font-size: 11px; }
.day-checks input:checked + span { color: #fff; background: var(--plum); border-color: var(--plum); }
.add-date-button { padding: 10px; font-size: 12px; }
.closed-date-list { display: flex; flex-wrap: wrap; gap: 5px; }
.closed-date-chip { border: 0; background: var(--lavender-soft); color: var(--plum-dark); padding: 6px 8px; border-radius: 7px; font-size: 10px; }
.no-requests { text-align: center; padding: 48px 20px; color: var(--muted); background: var(--paper); border-radius: 14px; }

dialog { width: min(430px, calc(100% - 32px)); max-height: calc(100dvh - 24px); overflow-y: auto; border: 0; border-radius: 24px; padding: 32px; text-align: center; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(38,29,45,.58); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 15px; top: 12px; border: 0; background: transparent; color: var(--muted); font-size: 25px; }
.dialog-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 17px; border-radius: 50%; color: #fff; background: var(--green); font-weight: 900; }
dialog h2 { margin: 9px 0 19px; font-size: 23px; }
.confirmation-detail { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 13px; font-weight: 750; }
.lookup-credentials { display: grid; gap: 6px; margin: 15px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(238,231,245,.5); }
.booking-number { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: 12px; color: var(--muted); }
.booking-number b { color: var(--plum); letter-spacing: .03em; overflow-wrap: anywhere; }
.dialog-note { font-size: 11px; color: var(--muted); margin: 18px 0; }
.dialog-actions { display: grid; gap: 8px; }
.kakao-button { background: #fee500; color: #281c00; box-shadow: 0 10px 25px rgba(71,59,0,.12); }
.kakao-button:hover { background: #f5dc00; }
.text-button { margin-top: 12px; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; }
.countdown-box { display: flex; align-items: center; justify-content: space-between; margin: 13px 0; padding: 11px 13px; color: #765d21; background: #fff2c9; border-radius: 11px; }
.countdown-box span { font-size: 11px; font-weight: 750; }
.countdown-box strong { font: 700 21px/1 Georgia, serif; }
.bank-box { display: grid; gap: 3px; padding: 15px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.bank-box span { color: var(--muted); font-size: 11px; }
.bank-box strong { font-size: 17px; letter-spacing: .01em; }
.bank-box small { color: var(--muted); }
.bank-box button { margin-top: 8px; padding: 9px; }
.dialog-booking-notice { margin-top: 13px; padding: 13px 14px; }
.dialog-booking-notice .booking-notice-title { margin-bottom: 7px; }
.dialog-booking-notice .booking-notice-title strong { font-size: 13px; }
.dialog-booking-notice ul { font-size: 11px; line-height: 1.55; }
#lookupForm { display: grid; gap: 12px; text-align: left; }
.lookup-result { margin-top: 16px; padding: 17px; border-radius: 14px; background: var(--lavender-soft); text-align: left; }
.lookup-result strong { display: block; color: var(--plum); font-size: 18px; }
.lookup-result p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.request-contact { margin: 9px 0 0; font-size: 12px; font-weight: 750; }
.request-birth-info { width: fit-content; margin: 7px 0 0; padding: 6px 9px; border-radius: 9px; background: var(--paper); color: #5e5663; font-size: 12px; }
.request-expiry { color: var(--red); font-size: 10px; }
.async-due { margin: 10px 0; padding: 9px 11px; border-radius: 9px; color: #765d21; background: #fff2c9; font-size: 12px; font-weight: 800; }
.request-actions.three { grid-template-columns: repeat(3, 1fr); }
.request-actions.one { grid-template-columns: 1fr; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; color: #fff; background: #2f2935; padding: 11px 16px; border-radius: 10px; font-size: 12px; transition: .24s ease; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* 비실시간 상담 */
.async-main { padding: 54px 0 86px; }
.async-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 36px; margin-bottom: 24px; }
.async-hero h1 { margin: 13px 0 0; font: 700 clamp(38px, 5vw, 58px)/1.16 Georgia, "Noto Serif KR", serif; letter-spacing: -.05em; }
.async-hero h1 em { color: var(--plum); font-style: normal; }
.async-product-card { min-height: 190px; display: flex; flex-direction: column; justify-content: center; padding: 27px; border-radius: 24px; color: #fff; background: var(--plum); box-shadow: 0 18px 42px rgba(91,70,120,.2); }
.async-product-card span { font-size: 15px; font-weight: 800; }
.async-product-card strong { margin: 4px 0 13px; font: 700 38px/1.1 Georgia, serif; }
.async-product-card > b { margin: -6px 0 13px; color: #eee7f5; font-size: 13px; }
.async-product-card small { color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.65; }
.async-availability { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 15px 18px; border: 1px solid rgba(79,128,100,.2); border-radius: 16px; background: #eef6ef; }
.async-availability > i { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(79,128,100,.12); }
.async-availability strong, .async-availability span { display: block; }
.async-availability strong { color: #376149; font-size: 14px; }
.async-availability span { margin-top: 1px; color: var(--muted); font-size: 12px; }
.async-availability.closed { border-color: rgba(164,92,98,.16); background: #f8eeee; }
.async-availability.closed > i { background: var(--red); box-shadow: 0 0 0 6px rgba(164,92,98,.1); }
.async-availability.closed strong { color: var(--red); }
.async-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 18px; padding-block: 23px; }
.async-guide > div { display: flex; gap: 11px; }
.async-guide b { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--plum); font: 700 14px Georgia, serif; }
.async-guide strong, .async-guide small { display: block; }
.async-guide strong { font-size: 14px; }
.async-guide small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.async-form-panel { max-width: 820px; margin-inline: auto; }
#asyncForm { display: grid; gap: 17px; }
#asyncForm .topic-wrap { margin-top: 0; }
.async-package-wrap { padding: 18px; border: 2px solid rgba(91,70,120,.22); border-radius: 17px; background: linear-gradient(135deg, rgba(255,242,201,.58), rgba(255,255,255,.76)); transition: border-color .2s ease, box-shadow .2s ease; }
.async-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.async-package-button { min-height: 82px; position: relative; display: grid; align-content: center; justify-items: start; gap: 4px; padding: 13px; border: 1px solid rgba(91,70,120,.18); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.9); text-align: left; }
.async-package-button strong { font-size: 16px; }
.async-package-button span { color: var(--muted); font-size: 12px; }
.async-package-button b { position: absolute; right: 10px; top: 9px; color: var(--plum); }
.async-package-button.selected { color: #fff; border-color: var(--plum); background: var(--plum); box-shadow: 0 8px 18px rgba(91,70,120,.18); }
.async-package-button.selected span, .async-package-button.selected b { color: #fff; }
.async-package-wrap.needs-attention { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184,147,82,.15); }
.async-confirmation-detail { margin: 10px 0; padding: 10px 12px; border-radius: 10px; color: var(--plum-dark); background: var(--lavender-soft); font-weight: 850; }
.async-submit { margin-top: 3px; }
.kakao-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.kakao-copy-button, .kakao-open-button { min-height: 46px; display: grid; place-items: center; border: 0; border-radius: 13px; padding: 12px; font-size: 13px; font-weight: 850; text-decoration: none; }
.kakao-copy-button { color: var(--plum-dark); background: var(--lavender-soft); }
.kakao-open-button { color: #281c00; background: #fee500; }
.kakao-open-button.full { width: 100%; margin-top: 8px; }
.kakao-required-guide { margin-top: 11px; padding: 13px 14px; border: 2px solid rgba(91,70,120,.34); border-radius: 13px; text-align: left; background: #fff5cf; box-shadow: 0 7px 18px rgba(91,70,120,.08); }
.kakao-required-guide > strong { display: flex; align-items: center; gap: 7px; color: var(--plum-dark); font-size: 14px; line-height: 1.45; }
.kakao-required-guide > strong span { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; color: #fff; background: var(--red); font-size: 10px; letter-spacing: .04em; }
.kakao-required-guide p { margin: 8px 0 0; color: #5b4f61; font-size: 12px; font-weight: 650; line-height: 1.7; }
.kakao-required-guide p b { color: var(--plum-dark); }
.kakao-required-guide p i { margin-inline: 3px; color: var(--gold); font-style: normal; }

@media (max-width: 820px) {
  .page-shell { width: calc(100% - 28px); max-width: 680px; }
  main, #bookingView, .booking-main, .panel { min-width: 0; max-width: 100%; }
  .topbar { width: 100%; max-width: 100vw; height: 60px; padding-inline: 14px; }
  .brand { gap: 9px; }
  .brand-mark { width: 34px; height: 34px; font-size: 21px; }
  .brand small { display: none; }
  .compact { padding: 9px 12px; font-size: 13px; }
  .top-actions { gap: 5px; }
  .hero { min-height: 0; padding: 30px 0 24px; display: block; }
  .hero::before { top: 46px; right: 5%; font-size: 58px; }
  .hero h1 { margin: 11px 0 14px; font-size: clamp(32px, 8.8vw, 44px); line-height: 1.13; }
  .hero-copy > p { font-size: 14px; line-height: 1.65; }
  .hero-note { margin-top: 19px; margin-bottom: 0; min-width: 0; padding-left: 13px; }
  .hero-note div { gap: 12px; padding: 9px 0; }
  .hero-note span { font-size: 12px; }
  .hero-note strong { min-width: 0; text-align: right; font-size: 13px; overflow-wrap: anywhere; }
  .booking-layout, .booking-layout.summary-collapsed { display: block; padding-bottom: 24px; }
  .booking-main { gap: 13px; }
  .panel { border-radius: 18px; padding: 21px 17px; }
  .section-heading { margin-bottom: 19px; }
  .schedule-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .schedule-heading .punctuality-note { grid-column: 2; margin: 11px 0 0; width: fit-content; padding: 7px 10px; font-size: 12px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 16px; }
  .service-card strong { margin: 0; }
  .service-card > span { margin: 0; grid-row: 1 / span 2; grid-column: 2; }
  .service-card small { grid-column: 1; }
  .service-card .badge { position: static; width: fit-content; grid-column: 1; grid-row: 3; margin-top: 8px; }
  .topic-wrap { margin-top: 20px; padding: 15px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-grid { grid-template-columns: repeat(4, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .desktop-submit { display: none; }
  .summary-card { position: fixed; inset: auto 14px calc(10px + env(safe-area-inset-bottom)); z-index: 25; width: auto; max-width: calc(100vw - 28px); max-height: calc(100vh - 82px); border-radius: 20px; padding: 18px; overflow-y: auto; background: rgba(251, 248, 242, .9); box-shadow: 0 12px 38px rgba(45,34,56,.2); }
  .summary-card.collapsed { left: 14px; right: 14px; width: auto; border-radius: 18px; padding: 8px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
  .summary-card.collapsed .summary-toggle { width: auto; padding: 10px 11px; font-size: 13px; white-space: nowrap; }
  .summary-service { margin: 25px 0 18px; }
  .summary-service > span { font-size: 42px; }
  .mobile-submit { display: block; margin-top: 14px; padding: 14px; background: rgba(91,70,120,.96); color: #fff; box-shadow: 0 8px 24px rgba(45,34,56,.16); }
  .summary-card.collapsed .mobile-submit { margin: 0; padding: 12px 14px; border-radius: 13px; }
  footer { width: 100%; max-width: 100vw; padding: 22px 14px calc(88px + env(safe-area-inset-bottom)); }
  .async-page footer { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
  footer span { font-size: 15px; }
  footer p { max-width: 420px; margin: 4px auto 0; }
  footer button { margin-top: 8px; }
  .manage-shell { padding: 36px 0 70px; }
  .manage-heading { align-items: start; }
  .manage-heading { gap: 14px; }
  .heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .manage-heading h1 { font-size: 32px; }
  .manage-heading > .ghost-button { font-size: 11px; padding: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .stats-grid article { display: block; padding: 15px; }
  .stats-grid strong { display: block; margin-top: 7px; }
  .manage-grid { grid-template-columns: 1fr; }
  .async-main { padding: 31px 0 55px; }
  .async-hero { grid-template-columns: 1fr; gap: 20px; }
  .async-hero h1 { font-size: clamp(31px, 8vw, 42px); }
  .async-product-card { min-height: 0; padding: 21px; }
  .async-product-card strong { font-size: 32px; }
  .async-guide { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
}

@media (max-width: 520px) {
  .manage-heading { display: grid; }
  .heading-actions { justify-content: stretch; }
  .heading-actions .ghost-button { flex: 1; padding-inline: 9px; }
  .request-admin-tools { grid-template-columns: 1fr; }
  .delete-booking { width: 100%; }
  .notification-actions { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .page-shell { width: calc(100% - 22px); }
  .brand b { font-size: 14px; }
  .topbar { height: 58px; padding-inline: 11px; }
  .brand-mark { width: 32px; height: 32px; font-size: 19px; }
  .compact { padding: 8px 9px; font-size: 11px; }
  .hero { padding: 27px 0 21px; }
  .hero::before { right: 1%; top: 42px; font-size: 50px; }
  .hero h1 { font-size: 32px; }
  .hero-note div { gap: 10px; }
  .panel { padding: 20px 15px; }
  .topic-heading { align-items: flex-start; }
  .topic-heading strong { font-size: 15px; }
  .topic-button { min-height: 44px; padding: 9px 10px; font-size: 11px; }
  .section-heading h2 { font-size: 18px; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .summary-card { inset-inline: 11px; }
  .summary-card.collapsed { left: 11px; right: 11px; }
  .summary-service small { font-size: 11px; }
  .summary-service strong { font-size: 15px; }
  .mobile-submit { font-size: 14px; }
  .summary-card.collapsed .summary-toggle { padding-inline: 9px; font-size: 12px; }
  .summary-card.collapsed .mobile-submit { padding-inline: 12px; }
  .stats-grid span { font-size: 10px; }
  .stats-grid strong { font-size: 27px; }
  .manage-heading p { font-size: 12px; }
  .async-main { padding-top: 25px; }
  .async-hero h1 { font-size: 30px; }
  .async-availability { align-items: flex-start; padding: 14px; }
  .kakao-actions { grid-template-columns: 1fr; }
  .kakao-required-guide { padding: 12px; }
  .kakao-required-guide > strong { align-items: flex-start; font-size: 13px; }
  .kakao-required-guide p { font-size: 11px; }
}
