:root {
  color-scheme: light;
  --rose-900: #6f2138;
  --rose-700: #a7385b;
  --rose-600: #c4496d;
  --rose-500: #db6787;
  --rose-200: #f3c6d3;
  --rose-100: #fae8ed;
  --rose-50: #fff6f8;
  --ink-950: #19171b;
  --ink-800: #353038;
  --ink-600: #665f69;
  --ink-400: #9b949d;
  --paper: #fffdfa;
  --white: #ffffff;
  --line: #ebe4e7;
  --success: #23845e;
  --success-bg: #eaf7f1;
  --warning: #9a641a;
  --warning-bg: #fff5dd;
  --danger: #b33b4a;
  --danger-bg: #fff0f2;
  --blue: #2f6ea3;
  --blue-bg: #edf6fc;
  --shadow-soft: 0 12px 34px rgba(70, 38, 49, 0.08);
  --shadow-float: 0 18px 55px rgba(57, 24, 36, 0.15);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f6f1f3;
  color: var(--ink-950);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0;
  color: var(--rose-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 20px;
  background:
    radial-gradient(circle at 15% 10%, rgba(219, 103, 135, 0.18), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(111, 33, 56, 0.12), transparent 28%),
    #f9f5f6;
}

.portal-shell {
  width: min(900px, 100%);
  text-align: center;
}

.brand-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: white;
  background: linear-gradient(145deg, var(--rose-500), var(--rose-900));
  box-shadow: 0 14px 32px rgba(167, 56, 91, 0.28);
  font-family: Georgia, serif;
  font-size: 34px;
  font-style: italic;
}

.portal-shell h1 {
  margin: 8px 0 10px;
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.portal-lead {
  max-width: 650px;
  margin: 0 auto;
  color: var(--ink-600);
  line-height: 1.8;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  text-align: left;
}

.portal-card {
  min-height: 154px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius-xl);
  color: white;
  box-shadow: var(--shadow-float);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(57, 24, 36, 0.2);
}

.portal-card--rose {
  background: linear-gradient(140deg, #d05c7b, #7b2942);
}

.portal-card--ink {
  background: linear-gradient(140deg, #39343b, #171519);
}

.portal-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
}

.portal-card strong,
.portal-card small {
  display: block;
}

.portal-card strong {
  font-size: 20px;
}

.portal-card small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.portal-tip {
  margin: 22px 0 0;
  color: var(--ink-400);
  font-size: 13px;
}

/* H5 */
.h5-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(219, 103, 135, 0.18), transparent 32%),
    #ede7e9;
}

.phone-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 50px rgba(65, 31, 42, 0.12);
}

.h5-main {
  min-height: 100vh;
  padding-bottom: 92px;
}

.registration-required {
  overflow: hidden;
}

.registration-gate {
  width: min(430px, 100%);
  position: fixed;
  z-index: 1000;
  inset: 0 auto 0 50%;
  overflow-y: auto;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 82% 2%, rgba(219, 103, 135, 0.22), transparent 25%),
    var(--paper);
}

.registration-gate[hidden] {
  display: none;
}

.public-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  color: #5f4534;
  background: #fff3d9;
  border-bottom: 1px solid #f0dfba;
  font-size: 9px;
  line-height: 1.5;
}

.public-preview-banner[hidden] {
  display: none;
}

.public-preview-banner strong {
  display: block;
  color: #8a5717;
  font-size: 10px;
}

.public-preview-banner a {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: white;
  background: #9a641a;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.registration-panel {
  min-height: 100%;
  padding: 28px 22px calc(32px + env(safe-area-inset-bottom));
}

.registration-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.registration-brand strong,
.registration-brand small {
  display: block;
}

.registration-brand strong {
  font-family: "Songti SC", SimSun, serif;
  font-size: 16px;
}

.registration-brand small {
  margin-top: 2px;
  color: var(--ink-400);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.registration-panel > h1 {
  margin: 8px 0 8px;
  font-family: "Songti SC", SimSun, serif;
  font-size: 27px;
  line-height: 1.35;
}

.registration-lead {
  margin: 0 0 22px;
  color: var(--ink-600);
  font-size: 11px;
  line-height: 1.75;
}

.verification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.verification-row .secondary-button {
  white-space: nowrap;
}

.legal-documents {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.legal-documents details {
  border-bottom: 1px solid var(--line);
}

.legal-documents details:last-child {
  border-bottom: 0;
}

.legal-documents summary {
  padding: 13px 14px;
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.legal-documents p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.7;
}

.registration-consents {
  display: grid;
  gap: 10px;
  margin-top: 17px;
  padding: 14px;
  border-radius: 16px;
  background: var(--rose-50);
}

.registration-consents .consent {
  padding: 0;
  color: var(--ink-800);
}

.registration-error {
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.6;
}

.registration-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
}

.registration-submit:disabled {
  border-color: var(--line);
  color: var(--ink-400);
  background: #e9e4e6;
  cursor: not-allowed;
}

.registration-footnote {
  margin: 12px 8px 0;
  color: var(--ink-400);
  text-align: center;
  font-size: 9px;
  line-height: 1.6;
}

.h5-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 12px;
  background: rgba(255, 253, 250, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(235, 228, 231, 0.76);
}

.h5-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  text-align: left;
  color: inherit;
  background: transparent;
  appearance: none;
}

.h5-logo__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, var(--rose-500), var(--rose-900));
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
}

.h5-logo strong,
.h5-logo small {
  display: block;
}

.h5-logo strong {
  font-family: "Songti SC", SimSun, serif;
  font-size: 17px;
  letter-spacing: 0.06em;
}

.h5-logo small {
  margin-top: 1px;
  color: var(--ink-400);
  font-size: 9px;
  letter-spacing: 0.11em;
}

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

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--ink-800);
  background: var(--rose-50);
  font-size: 16px;
}

.lang-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--rose-900);
  background: var(--rose-100);
  font-size: 11px;
  font-weight: 800;
}

.h5-view {
  display: none;
  animation: view-in 220ms ease;
}

.h5-view.is-active {
  display: block;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  margin: 0 14px;
  padding: 22px 20px 20px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  color: white;
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.22), transparent 20%),
    linear-gradient(145deg, #d76886 0%, #8d304b 62%, #552233 100%);
  box-shadow: 0 18px 34px rgba(126, 46, 70, 0.2);
}

.hero::after {
  content: "SEOUL";
  position: absolute;
  right: -10px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.08);
  font-family: Georgia, serif;
  font-size: 76px;
  letter-spacing: -0.06em;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.hero h1 {
  max-width: 280px;
  margin: 10px 0 8px;
  font-family: "Songti SC", SimSun, serif;
  font-size: 27px;
  line-height: 1.38;
  letter-spacing: 0.03em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 1.65;
}

.hero-search {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 7px 7px 13px;
  border-radius: 15px;
  color: var(--ink-800);
  background: rgba(255, 255, 255, 0.95);
}

.hero-search input {
  min-width: 0;
  padding: 7px 0;
  border: 0;
  outline: 0;
  color: var(--ink-950);
  background: transparent;
  font-size: 13px;
}

.hero-search button {
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  color: white;
  background: var(--ink-950);
  font-size: 12px;
  font-weight: 700;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 16px 0;
}

.trust-item {
  padding: 10px 6px;
  text-align: center;
  border-radius: 12px;
  color: var(--ink-600);
  background: white;
  box-shadow: 0 7px 20px rgba(70, 38, 49, 0.05);
  font-size: 10px;
}

.trust-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--rose-700);
  font-size: 14px;
}

.h5-section {
  padding: 24px 18px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Songti SC", SimSun, serif;
  font-size: 20px;
  letter-spacing: 0.03em;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--ink-400);
  font-size: 11px;
}

.text-button {
  padding: 4px;
  border: 0;
  color: var(--rose-700);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.category-button {
  padding: 0;
  border: 0;
  color: var(--ink-600);
  background: transparent;
  font-size: 11px;
}

.category-button span {
  width: 56px;
  height: 56px;
  margin: 0 auto 7px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--rose-700);
  background: linear-gradient(145deg, white, var(--rose-100));
  box-shadow: 0 8px 20px rgba(97, 44, 61, 0.08);
  font-size: 22px;
}

.project-list {
  display: grid;
  gap: 13px;
}

.project-card {
  width: 100%;
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 13px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: left;
  color: inherit;
  background: white;
  box-shadow: 0 7px 22px rgba(70, 38, 49, 0.05);
}

.project-art {
  min-height: 118px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 10px;
  border-radius: 15px;
  color: white;
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.55), transparent 16%),
    linear-gradient(155deg, #f3c4d1, #b44a6a 58%, #62243a);
}

.project-art--gold {
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.55), transparent 15%),
    linear-gradient(155deg, #f5dfc1, #c28f61 58%, #785033);
}

.project-art--blue {
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.5), transparent 15%),
    linear-gradient(155deg, #c7e1ec, #6a9caf 58%, #375e70);
}

.project-art::before {
  content: "✦";
  position: absolute;
  top: 12px;
  right: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 28px;
}

.project-art small {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.project-card__body {
  min-width: 0;
}

.clinic-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-400);
  font-size: 10px;
}

.verified {
  color: var(--success);
  font-weight: 800;
}

.project-card h3 {
  margin: 8px 0 7px;
  font-size: 15px;
  line-height: 1.4;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-size: 9px;
}

.price-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.price-line strong {
  color: var(--rose-700);
  font-size: 17px;
}

.price-line small {
  color: var(--ink-400);
  font-size: 9px;
}

.rebate-label {
  color: var(--success) !important;
  font-weight: 800;
}

.invite-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, #292429, #5b3441);
  box-shadow: var(--shadow-soft);
}

.invite-banner h3 {
  margin: 0 0 6px;
  font-family: "Songti SC", SimSun, serif;
  font-size: 18px;
}

.invite-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.6;
}

.invite-banner button {
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  color: var(--ink-950);
  background: white;
  font-size: 11px;
  font-weight: 800;
}

.qr-invite-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-soft);
}

.qr-invite-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.qr-invite-heading h3 {
  margin: 6px 0 4px;
  font-family: "Songti SC", SimSun, serif;
  font-size: 18px;
}

.qr-invite-heading p {
  margin: 0;
  color: var(--ink-400);
  font-size: 10px;
}

.qr-code-label {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.qr-frame {
  width: min(230px, 78%);
  margin: 17px auto 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 30px rgba(38, 24, 29, 0.08);
}

.qr-frame canvas {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

.qr-invite-url {
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  color: var(--ink-400);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.qr-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.qr-actions .primary-button {
  grid-column: 1 / -1;
}

.qr-tip {
  margin: 10px 0 0;
  color: var(--ink-400);
  text-align: center;
  font-size: 9px;
  line-height: 1.5;
}

.page-heading {
  padding: 22px 18px 4px;
}

.page-heading h1 {
  margin: 7px 0 6px;
  font-family: "Songti SC", SimSun, serif;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.page-heading p {
  margin: 0;
  color: var(--ink-400);
  font-size: 12px;
  line-height: 1.6;
}

.filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 18px 4px;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-600);
  background: white;
  font-size: 11px;
}

.filter-chip.is-active {
  color: white;
  border-color: var(--ink-950);
  background: var(--ink-950);
}

.hospital-count {
  color: var(--rose-700);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.hospital-filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 7px 22px rgba(70, 38, 49, 0.04);
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-group + .filter-group {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.filter-label {
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 800;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-options .filter-chip {
  padding: 7px 10px;
  font-size: 10px;
}

.clinic-list {
  display: grid;
  gap: 13px;
}

.clinic-card {
  width: 100%;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: left;
  color: inherit;
  background: white;
  box-shadow: 0 8px 24px rgba(70, 38, 49, 0.05);
}

.clinic-art {
  min-height: 166px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  border-radius: 15px;
  color: white;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.52), transparent 17%),
    linear-gradient(155deg, #f3c4d1, #b44a6a 58%, #62243a);
}

.clinic-art::after {
  content: "✦";
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 30px;
}

.clinic-art--gold {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.52), transparent 17%),
    linear-gradient(155deg, #f5dfc1, #c28f61 58%, #785033);
}

.clinic-art--blue {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.5), transparent 17%),
    linear-gradient(155deg, #c7e1ec, #6a9caf 58%, #375e70);
}

.clinic-art small {
  position: relative;
  z-index: 1;
  font-size: 8px;
  line-height: 1.45;
  letter-spacing: 0.05em;
}

.clinic-art strong {
  position: relative;
  z-index: 1;
  font-family: "Songti SC", SimSun, serif;
  font-size: 25px;
}

.clinic-card__body {
  min-width: 0;
}

.clinic-card__body h3 {
  margin: 8px 0 7px;
  font-family: "Songti SC", SimSun, serif;
  font-size: 16px;
}

.clinic-card__body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 9px;
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.clinic-more {
  display: block;
  margin-top: 10px;
  color: var(--rose-700);
  font-size: 10px;
  font-weight: 800;
}

.detail-art--gold {
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.48), transparent 16%),
    radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(155deg, #f5dfc1, #c28f61 62%, #785033);
}

.detail-art--blue {
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.48), transparent 16%),
    radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(155deg, #c7e1ec, #6a9caf 62%, #375e70);
}

.detail-art p {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.clinic-detail-head {
  padding: 18px 18px 6px;
}

.clinic-detail-head h2 {
  margin: 8px 0 4px;
  font-size: 17px;
}

.clinic-detail-head p {
  margin: 0;
  color: var(--ink-400);
  font-size: 11px;
}

.clinic-info-list {
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.clinic-info-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.clinic-info-list span {
  color: var(--ink-400);
  font-size: 10px;
}

.clinic-info-list strong {
  color: var(--ink-800);
  font-size: 11px;
  line-height: 1.55;
}

.business-hours {
  overflow: hidden;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.business-hours div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.business-hours div:last-child {
  border-bottom: 0;
}

.business-hours span {
  color: var(--ink-600);
  font-size: 11px;
}

.business-hours strong {
  font-size: 11px;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.strength-card {
  min-height: 128px;
  padding: 13px;
  border: 1px solid var(--rose-100);
  border-radius: 15px;
  background: linear-gradient(145deg, var(--rose-50), white);
}

.strength-card > span,
.strength-card > strong {
  display: block;
}

.strength-card > span {
  color: var(--rose-500);
  font-family: Georgia, serif;
  font-size: 17px;
}

.strength-card > strong {
  margin-top: 8px;
  font-size: 12px;
}

.strength-card > p {
  margin: 7px 0 0;
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.6;
}

.feature-tags {
  margin-top: 10px;
}

.price-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.clinic-price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.clinic-price-table th,
.clinic-price-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.clinic-price-table th {
  color: var(--ink-400);
  background: #faf8f9;
  font-size: 9px;
}

.clinic-price-table th:last-child,
.clinic-price-table td:last-child {
  width: 36%;
  text-align: right;
}

.clinic-price-table tr:last-child td {
  border-bottom: 0;
}

.clinic-price-table td span,
.clinic-price-table td strong,
.clinic-price-table td small {
  display: block;
}

.clinic-price-table td span {
  margin-bottom: 4px;
  color: var(--rose-700);
  font-size: 9px;
  font-weight: 800;
}

.clinic-price-table td strong {
  color: var(--ink-950);
  font-size: 11px;
  line-height: 1.5;
}

.clinic-price-table td:last-child strong {
  color: var(--rose-700);
  font-size: 13px;
}

.clinic-price-table td small {
  margin-top: 5px;
  color: var(--ink-400);
  font-size: 8px;
  line-height: 1.45;
}

.price-note {
  margin: 8px 2px 0 !important;
  color: var(--ink-400) !important;
  font-size: 9px !important;
  line-height: 1.6 !important;
}

.doctor-list {
  display: grid;
  gap: 10px;
}

.doctor-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.doctor-avatar {
  width: 52px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: linear-gradient(145deg, var(--rose-500), var(--rose-900));
  font-family: Georgia, serif;
  font-size: 22px;
}

.doctor-card strong,
.doctor-card > div > span {
  display: block;
}

.doctor-card strong {
  font-size: 13px;
}

.doctor-card > div > span {
  margin-top: 4px;
  color: var(--rose-700);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.5;
}

.doctor-card p {
  margin: 7px 0 9px;
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.65;
}

.medical-note {
  margin-top: 18px !important;
  padding: 12px;
  border-radius: 12px;
  color: var(--ink-600) !important;
  background: var(--rose-50);
  font-size: 10px !important;
}

.list-padding {
  padding: 14px 18px 0;
}

.booking-card {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: 0 8px 22px rgba(70, 38, 49, 0.05);
}

.booking-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.booking-card__id {
  color: var(--ink-400);
  font-size: 10px;
}

.booking-card h3 {
  margin: 6px 0 4px;
  font-size: 15px;
}

.booking-card p {
  margin: 0;
  color: var(--ink-600);
  font-size: 11px;
  line-height: 1.65;
}

.booking-deposit-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink-600);
  background: var(--rose-50);
  font-size: 10px;
}

.booking-deposit-line strong {
  color: var(--rose-700);
  font-size: 11px;
}

.success-deposit {
  margin: -6px 0 16px;
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status--pending {
  color: var(--warning);
  background: var(--warning-bg);
}

.status--approved,
.status--completed {
  color: var(--success);
  background: var(--success-bg);
}

.status--review {
  color: var(--blue);
  background: var(--blue-bg);
}

.status--rejected {
  color: var(--danger);
  background: var(--danger-bg);
}

.booking-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
}

.timeline-step {
  position: relative;
  padding-top: 19px;
  color: var(--ink-400);
  text-align: center;
  font-size: 9px;
}

.timeline-step::before {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--line);
}

.timeline-step::after {
  content: "";
  height: 2px;
  position: absolute;
  z-index: 1;
  top: 3px;
  left: -50%;
  right: 50%;
  background: var(--line);
}

.timeline-step:first-child::after {
  display: none;
}

.timeline-step.is-done {
  color: var(--rose-700);
  font-weight: 800;
}

.timeline-step.is-done::before,
.timeline-step.is-done::after {
  background: var(--rose-600);
}

.wallet-hero {
  margin: 16px 18px 0;
  padding: 22px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  color: white;
  background: linear-gradient(145deg, #252126, #663446);
  box-shadow: var(--shadow-float);
}

.wallet-hero::after {
  content: "₩";
  position: absolute;
  right: 12px;
  bottom: -30px;
  color: rgba(255, 255, 255, 0.06);
  font-family: Georgia, serif;
  font-size: 130px;
}

.wallet-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.wallet-balance {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.wallet-stat {
  padding: 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.09);
}

.wallet-stat small,
.wallet-stat strong {
  display: block;
}

.wallet-stat small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.wallet-stat strong {
  margin-top: 5px;
  font-size: 15px;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 18px 0;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid var(--rose-700);
  color: white;
  background: var(--rose-700);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink-800);
  background: white;
}

.danger-button {
  border: 1px solid var(--danger-bg);
  color: var(--danger);
  background: var(--danger-bg);
}

.ledger-list {
  border-top: 1px solid var(--line);
}

.ledger-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--rose-700);
  background: var(--rose-50);
}

.ledger-item strong,
.ledger-item small {
  display: block;
}

.ledger-item strong {
  font-size: 12px;
}

.ledger-item small {
  margin-top: 4px;
  color: var(--ink-400);
  font-size: 9px;
}

.ledger-amount {
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 18px 18px;
}

.avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: white;
  background: linear-gradient(145deg, var(--rose-500), var(--rose-900));
  font-family: "Songti SC", SimSun, serif;
  font-size: 24px;
}

.profile-hero h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.profile-hero p {
  margin: 0;
  color: var(--ink-400);
  font-size: 11px;
}

.profile-panel {
  margin: 0 18px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
}

.profile-link {
  width: 100%;
  min-height: 53px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--ink-800);
  background: white;
  font-size: 12px;
}

.profile-link:last-child {
  border-bottom: 0;
}

.profile-link__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--rose-700);
  background: var(--rose-50);
}

.profile-link small {
  color: var(--ink-400);
  font-size: 10px;
}

.bottom-nav {
  width: min(430px, 100%);
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 250, 0.94);
  border-top: 1px solid rgba(235, 228, 231, 0.86);
  backdrop-filter: blur(18px);
}

.bottom-nav[hidden] {
  display: none;
}

.nav-button {
  padding: 5px 2px;
  border: 0;
  color: var(--ink-400);
  background: transparent;
  font-size: 9px;
}

.nav-button span {
  display: block;
  margin-bottom: 3px;
  font-size: 19px;
  line-height: 1;
}

.nav-button.is-active {
  color: var(--rose-700);
  font-weight: 800;
}

.back-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 0;
}

.back-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-800);
  background: white;
}

.detail-art {
  min-height: 220px;
  margin: 16px 18px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 20px;
  border-radius: 26px;
  color: white;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.48), transparent 16%),
    radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(155deg, #f1c0ce, #a53e5d 62%, #572133);
  box-shadow: var(--shadow-soft);
}

.detail-art::before {
  content: "SEOUL BEAUTY";
  position: absolute;
  top: 18px;
  right: -22px;
  color: rgba(255, 255, 255, 0.12);
  font-family: Georgia, serif;
  font-size: 44px;
  letter-spacing: -0.04em;
  transform: rotate(90deg);
}

.detail-art h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Songti SC", SimSun, serif;
  font-size: 25px;
  line-height: 1.35;
}

.detail-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px 8px;
}

.detail-price strong {
  color: var(--rose-700);
  font-size: 26px;
}

.detail-price small {
  display: block;
  margin-top: 4px;
  color: var(--ink-400);
  font-size: 10px;
}

.rebate-box {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--success);
  background: var(--success-bg);
  text-align: right;
  font-size: 10px;
}

.rebate-box strong {
  display: block;
  color: var(--success);
  font-size: 14px;
}

.detail-copy {
  padding: 0 18px;
}

.detail-copy h2 {
  margin: 22px 0 8px;
  font-size: 15px;
}

.detail-copy p,
.detail-copy li {
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.8;
}

.detail-copy ul {
  margin: 0;
  padding-left: 18px;
}

.sticky-action {
  width: min(430px, 100%);
  position: fixed;
  z-index: 45;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 250, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.sticky-action .secondary-button,
.sticky-action .primary-button {
  min-height: 48px;
}

.form-shell {
  padding: 12px 18px 110px;
}

.form-card {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
}

.form-card h2 {
  margin: 0 0 14px;
  font-size: 15px;
}

.deposit-card {
  border-color: var(--rose-200);
  background: linear-gradient(145deg, var(--rose-50), white 72%);
}

.deposit-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.deposit-heading h2 {
  margin: 5px 0 0;
}

.deposit-heading > strong {
  color: var(--rose-700);
  font-size: 21px;
  white-space: nowrap;
}

.deposit-benefits {
  margin: 14px 0;
  padding: 12px 12px 12px 28px;
  border-radius: 12px;
  color: var(--ink-600);
  background: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  line-height: 1.75;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-logo {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.payment-logo--wechat {
  background: #16a66a;
}

.payment-logo--alipay {
  background: #2875e8;
}

.deposit-consent {
  margin-top: 12px;
  padding: 11px;
  border-radius: 12px;
  background: white;
}

.payment-backdrop {
  width: min(430px, 100%);
  position: fixed;
  z-index: 900;
  inset: 0 auto 0 50%;
  display: flex;
  align-items: end;
  transform: translateX(-50%);
  background: rgba(25, 23, 27, 0.38);
  backdrop-filter: blur(3px);
}

.payment-backdrop[hidden] {
  display: none;
}

.payment-sheet {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background: var(--paper);
  box-shadow: 0 -18px 50px rgba(40, 26, 31, 0.18);
  animation: payment-sheet-in 220ms ease;
}

@keyframes payment-sheet-in {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.payment-sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 17px;
  border-radius: 999px;
  background: var(--line);
}

.payment-sheet-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.payment-sheet-heading h2 {
  margin: 6px 0 0;
  font-family: "Songti SC", SimSun, serif;
  font-size: 21px;
}

.payment-order-summary {
  margin-top: 18px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.payment-order-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.payment-order-summary > div:last-child {
  border-bottom: 0;
}

.payment-order-summary span {
  color: var(--ink-400);
  font-size: 10px;
}

.payment-order-summary strong {
  text-align: right;
  font-size: 11px;
}

.payment-order-summary .payment-total strong {
  color: var(--rose-700);
  font-size: 20px;
}

.payment-protection {
  margin-top: 12px;
  padding: 13px;
  border-radius: 14px;
  color: var(--success);
  background: var(--success-bg);
}

.payment-protection strong {
  font-size: 11px;
}

.payment-protection p {
  margin: 5px 0 0;
  color: #356b57;
  font-size: 9px;
  line-height: 1.6;
}

.payment-confirm-button {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
}

.payment-cancel-button {
  width: 100%;
  min-height: 38px;
  margin-top: 6px;
}

.payment-demo-note {
  margin: 4px 0 0;
  color: var(--ink-400);
  text-align: center;
  font-size: 9px;
  line-height: 1.55;
}

.form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-field label,
.field-label {
  color: var(--ink-600);
  font-size: 11px;
  font-weight: 700;
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  color: var(--ink-950);
  background: var(--paper);
  font-size: 12px;
}

.form-control:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 3px rgba(219, 103, 135, 0.12);
}

textarea.form-control {
  min-height: 84px;
  resize: vertical;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-600);
  font-size: 11px;
}

.option-card:has(input:checked) {
  border-color: var(--rose-500);
  color: var(--rose-700);
  background: var(--rose-50);
}

.option-card input {
  accent-color: var(--rose-700);
}

.consent {
  display: flex;
  align-items: start;
  gap: 8px;
  padding: 4px 2px 0;
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.6;
}

.consent input {
  margin-top: 2px;
  accent-color: var(--rose-700);
}

.success-view {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  color: white;
  background: linear-gradient(145deg, #4ba27f, #1e7655);
  box-shadow: 0 16px 34px rgba(35, 132, 94, 0.22);
  font-size: 34px;
}

.success-view h1 {
  margin: 0;
  font-family: "Songti SC", SimSun, serif;
  font-size: 27px;
}

.success-view p {
  margin: 12px 0 20px;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.8;
}

.success-code {
  margin-bottom: 18px;
  padding: 13px;
  border-radius: 13px;
  color: var(--ink-600);
  background: white;
  border: 1px solid var(--line);
  font-size: 11px;
}

.toast {
  max-width: calc(100% - 36px);
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 14px);
  padding: 11px 15px;
  border-radius: 12px;
  color: white;
  background: rgba(25, 23, 27, 0.92);
  box-shadow: var(--shadow-float);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Admin */
.admin-page {
  min-height: 100vh;
  background: #f4f1f2;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  color: white;
  background:
    radial-gradient(circle at 20% 0%, rgba(219, 103, 135, 0.25), transparent 30%),
    #1d1a1e;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 22px;
}

.admin-brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, var(--rose-500), var(--rose-900));
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: italic;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand strong {
  font-family: "Songti SC", SimSun, serif;
  font-size: 16px;
}

.admin-brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.nav-group-label {
  margin: 15px 10px 7px;
  color: rgba(255, 255, 255, 0.33);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-link {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.58);
  text-align: left;
  background: transparent;
  font-size: 12px;
}

.side-link:hover,
.side-link.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.09);
}

.side-link__icon {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.side-badge {
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 999px;
  color: white;
  text-align: center;
  background: var(--rose-600);
  font-size: 9px;
  font-weight: 800;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  line-height: 1.6;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  height: 70px;
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 242, 0.9);
  backdrop-filter: blur(18px);
}

.global-search {
  width: min(430px, 50vw);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

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

.operator-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--rose-700);
  font-size: 12px;
  font-weight: 800;
}

.operator strong,
.operator small {
  display: block;
}

.operator strong {
  font-size: 11px;
}

.operator small {
  margin-top: 2px;
  color: var(--ink-400);
  font-size: 9px;
}

.admin-content {
  padding: 28px;
}

.admin-view {
  display: none;
  animation: view-in 180ms ease;
}

.admin-view.is-active {
  display: block;
}

.admin-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-page-heading h1 {
  margin: 5px 0 4px;
  font-family: "Songti SC", SimSun, serif;
  font-size: 28px;
  letter-spacing: 0.03em;
}

.admin-page-heading p {
  margin: 0;
  color: var(--ink-400);
  font-size: 11px;
}

.heading-actions,
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-800);
  background: white;
  font-size: 11px;
  font-weight: 700;
}

.admin-button--primary {
  color: white;
  border-color: var(--ink-950);
  background: var(--ink-950);
}

.admin-button--rose {
  color: white;
  border-color: var(--rose-700);
  background: var(--rose-700);
}

.admin-button--danger {
  color: var(--danger);
  border-color: var(--danger-bg);
  background: var(--danger-bg);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: 0 8px 24px rgba(70, 38, 49, 0.035);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-400);
  font-size: 10px;
}

.metric-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-size: 14px;
}

.metric-value {
  margin-top: 16px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.metric-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--ink-400);
  font-size: 9px;
}

.metric-delta {
  color: var(--success);
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: 0 8px 24px rgba(70, 38, 49, 0.035);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 14px;
}

.panel-heading p {
  margin: 4px 0 0;
  color: var(--ink-400);
  font-size: 9px;
}

.period-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: #f4f1f2;
}

.period-tabs button {
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  color: var(--ink-400);
  background: transparent;
  font-size: 9px;
}

.period-tabs button.is-active {
  color: var(--ink-950);
  background: white;
  box-shadow: 0 2px 6px rgba(40, 26, 31, 0.08);
}

.bar-chart {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
  padding-top: 12px;
}

.bar-column {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 8px;
  color: var(--ink-400);
  text-align: center;
  font-size: 9px;
}

.bar-track {
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.bar {
  width: min(30px, 72%);
  min-height: 12px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--rose-500), var(--rose-700));
  transition: height 220ms ease;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border-radius: 12px;
  background: #faf8f9;
}

.task-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rose-600);
  box-shadow: 0 0 0 5px var(--rose-50);
}

.task-item strong,
.task-item small {
  display: block;
}

.task-item strong {
  font-size: 11px;
}

.task-item small {
  margin-top: 3px;
  color: var(--ink-400);
  font-size: 9px;
}

.task-count {
  font-size: 16px;
  font-weight: 800;
}

.wide-panel {
  margin-top: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--ink-400);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fcfafb;
}

.cell-primary {
  display: block;
  color: var(--ink-950);
  font-weight: 700;
}

.cell-secondary {
  display: block;
  margin-top: 3px;
  color: var(--ink-400);
  font-size: 9px;
}

.table-action {
  padding: 5px 7px;
  border: 0;
  color: var(--rose-700);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.toolbar-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-control {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: var(--ink-800);
  background: white;
  font-size: 10px;
}

.admin-control:focus {
  border-color: var(--rose-500);
}

.drawer-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: none;
  justify-content: end;
  background: rgba(25, 23, 27, 0.3);
  backdrop-filter: blur(2px);
}

.drawer-backdrop.is-open {
  display: flex;
}

.drawer {
  width: min(520px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: var(--paper);
  box-shadow: -18px 0 50px rgba(40, 26, 31, 0.16);
  animation: drawer-in 220ms ease;
}

@keyframes drawer-in {
  from { transform: translateX(32px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.drawer-heading h2 {
  margin: 6px 0 4px;
  font-family: "Songti SC", SimSun, serif;
  font-size: 23px;
}

.drawer-heading p {
  margin: 0;
  color: var(--ink-400);
  font-size: 10px;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-800);
  background: white;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.detail-field {
  padding: 12px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
}

.detail-field small,
.detail-field strong {
  display: block;
}

.detail-field small {
  color: var(--ink-400);
  font-size: 9px;
}

.detail-field strong {
  margin-top: 6px;
  font-size: 11px;
}

.drawer-section {
  margin-top: 20px;
}

.drawer-section h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.document-preview {
  min-height: 126px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--rose-200);
  border-radius: 16px;
  color: var(--rose-700);
  background: var(--rose-50);
  text-align: center;
  font-size: 11px;
}

.document-preview small {
  display: block;
  margin-top: 5px;
  color: var(--ink-400);
}

.drawer-note {
  width: 100%;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: white;
  resize: vertical;
  font-size: 11px;
}

.drawer-actions {
  display: flex;
  justify-content: end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.empty-state {
  padding: 42px 20px;
  text-align: center;
  color: var(--ink-400);
  font-size: 11px;
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-800);
  font-size: 13px;
}

.funnel {
  display: grid;
  gap: 12px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 84px 1fr 60px;
  align-items: center;
  gap: 12px;
  font-size: 10px;
}

.funnel-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f3eff0;
}

.funnel-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose-700), var(--rose-500));
}

.funnel-row strong {
  text-align: right;
}

.mobile-admin-toggle {
  display: none;
}

@media (max-width: 980px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    display: block;
  }

  .sidebar {
    width: min(290px, 86vw);
    position: fixed;
    z-index: 60;
    left: 0;
    transform: translateX(-100%);
    transition: transform 200ms ease;
  }

  .admin-page.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .admin-topbar {
    padding: 0 16px;
  }

  .mobile-admin-toggle {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
  }

  .global-search {
    width: min(360px, 52vw);
  }

  .operator > span {
    display: none;
  }

  .admin-content {
    padding: 20px 14px;
  }

  .admin-page-heading {
    align-items: start;
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .phone-shell {
    box-shadow: none;
  }

  .project-card {
    grid-template-columns: 92px 1fr;
  }

  .project-art {
    min-height: 112px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
