/* Central Medical — design system
   Light-first, editorial. One ink color, one accent, red only for prices. */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f1f2f0;
  --surface-3: #e8eae6;
  --text: #16181d;
  --text-2: #4a4f58;
  --muted: #8b909a;
  --line: #e4e6e2;
  --line-strong: #cfd3cc;
  --ink: #17233a;        /* primary buttons, active states */
  --ink-hover: #0f1729;
  --accent: #00a76f;     /* "오늘", verified, success */
  --accent-soft: #e6f7f0;
  --sale: #e5484d;       /* prices, discounts */
  --warn: #c9871a;
  --warn-soft: #fbf1dc;
  --danger: #d43d3d;
  --danger-soft: #fde8e8;
  --brand: var(--ink);   /* kept for older markup */
  --brand-2: var(--ink-hover);
  --brand-soft: #eceff5;
  --teal: var(--accent);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 8px 24px rgba(22, 24, 29, .06);
  --shadow-hover: 0 2px 4px rgba(22, 24, 29, .06), 0 14px 32px rgba(22, 24, 29, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
  --bg: #0f1114; --surface: #16191e; --surface-2: #1d2127; --surface-3: #262b33;
  --text: #eef0f2; --text-2: #b8bcc4; --muted: #7d838d; --line: #262b33; --line-strong: #3a414b;
  --ink: #eef0f2; --ink-hover: #ffffff; --brand-soft: #232a36;
  --accent-soft: #10291f; --warn-soft: #2b2313; --danger-soft: #2d1717;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.4), 0 14px 32px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
p a, .article a, .notice a, .small a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
p a:hover, .article a:hover, .notice a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0 0 .35em; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
ul { padding-left: 1.2em; } li { margin: .25em 0; }
b, strong { font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 720px) { .container { padding: 0 16px; } }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: #fff; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--text); }
.brand .logo { width: 30px; height: 30px; display: block; }
.brand .logo .c { stroke: var(--ink); }
.brand .logo .plus { stroke: var(--accent); }
.brand .wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.brand .wordmark small { font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: .12em; margin-top: 3px; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-2); font-weight: 600; font-size: .9rem; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.nav .who { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
@media (max-width: 720px) {
  .topbar .container { gap: 12px; height: 54px; }
  .nav a { padding: 6px 8px; font-size: .84rem; }
  .nav .who .small { display: none; }
  .brand .wordmark small { display: none; }
}

/* ---------- GNB (webtoon-style category tabs) ---------- */
.gnb { background: var(--surface); border-bottom: 1px solid var(--line); }
.gnb .container { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.gnb .container::-webkit-scrollbar { display: none; }
.gnb a, .gnb button {
  position: relative; padding: 13px 14px; font: inherit; font-weight: 700; font-size: .95rem; color: var(--muted);
  background: none; border: 0; cursor: pointer; white-space: nowrap; letter-spacing: -0.01em;
}
.gnb a::after, .gnb button::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--text); transform: scaleX(0); transition: transform .2s var(--ease); }
.gnb a:hover, .gnb button:hover { color: var(--text); }
.gnb a.active, .gnb button.active { color: var(--text); }
.gnb a.active::after, .gnb button.active::after { transform: scaleX(1); }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .9rem; letter-spacing: -0.01em;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn.primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
:root[data-theme="dark"] .btn.primary { color: #0f1114; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger-soft); }
.btn.sm { height: 32px; padding: 0 12px; font-size: .82rem; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.google svg { width: 18px; height: 18px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-2); margin: 0 0 6px; }
input, select, textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: .92rem; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-soft); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%238b909a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
textarea { height: auto; min-height: 104px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ink); }
input[type="date"], input[type="time"] { padding-right: 8px; }
.field { margin-bottom: 14px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 14px; }
.card.flat { background: var(--surface-2); border-color: transparent; }
.section { padding-top: 28px; padding-bottom: 28px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 14px; }
.section-head h2 { margin: 0; font-size: 1.15rem; }
.section-head .more { margin-left: auto; font-size: .84rem; color: var(--text-2); font-weight: 600; }
.section-head .more:hover { color: var(--text); }

.hero { padding-top: 40px; padding-bottom: 28px; }
.hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.hero p { font-size: 1rem; max-width: 600px; color: var(--text-2); }
.search {
  display: grid; grid-template-columns: 1fr 170px 150px auto; gap: 8px; margin-top: 18px;
  background: var(--surface); padding: 8px; border-radius: 14px; border: 1px solid var(--line);
}
.search input, .search select { border-color: transparent; background: var(--surface-2); }
.search input:focus, .search select:focus { background: var(--surface); }
@media (max-width: 720px) { .search { grid-template-columns: 1fr 1fr; } .search input:first-child, .search .btn { grid-column: 1 / -1; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--text-2); transition: .15s; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
:root[data-theme="dark"] .chip.active { color: #0f1114; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: .74rem; font-weight: 600; margin: 0 4px 4px 0; }

.rating { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.rating::before { content: '★'; color: #f5a524; margin-right: 2px; }
.rating.plain::before { content: none; }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.badge.requested { background: var(--warn-soft); color: var(--warn); }
.badge.confirmed { background: var(--brand-soft); color: var(--ink); }
.badge.completed, .badge.active, .badge.published, .badge.verified { background: var(--accent-soft); color: var(--accent); }
.badge.cancelled, .badge.no_show, .badge.suspended, .badge.past_due { background: var(--danger-soft); color: var(--danger); }
.badge.pending, .badge.draft { background: var(--warn-soft); color: var(--warn); }
.badge.free { background: var(--surface-2); color: var(--text-2); }
.badge.external { background: var(--surface-2); color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
.table-wrap { overflow-x: auto; margin: 0 -8px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; background: none; border: 0; padding: 10px 12px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--text); transform: scaleX(0); transition: transform .2s var(--ease); }
.tabs button.active { color: var(--text); }
.tabs button.active::after { transform: scaleX(1); }

.stat { padding: 16px 18px; border-radius: 10px; background: var(--surface-2); }
.stat .label { font-size: .76rem; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); border-radius: 999px; transition: width .5s var(--ease); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(8px);
  background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 10px; font-weight: 600; font-size: .88rem;
  box-shadow: var(--shadow-hover); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: .92rem; }
.empty a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

/* skeleton loading */
.skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.4s infinite; }
:root[data-theme="dark"] .skel::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-poster { aspect-ratio: 3/4; border-radius: 10px; }
.skel-line { height: 12px; margin-top: 10px; width: 80%; }
.skel-line.short { width: 50%; }

/* steps (partner landing) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.step .n { font-size: .74rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; margin-bottom: 8px; }
.step b { display: block; font-size: 1rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--text-2); }

footer { padding: 40px 0 48px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); margin-top: 56px; background: var(--surface); }
footer a { color: var(--text-2); font-weight: 600; }
footer .fbrand { font-weight: 800; color: var(--text); font-size: .95rem; letter-spacing: -0.02em; margin-bottom: 8px; }
footer .flinks { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 14px; }
footer .fnote { max-width: 760px; line-height: 1.65; }

/* ---------- weekday strip ---------- */
.daystrip { display: grid; grid-template-columns: repeat(7, 1fr); margin: 18px 0 20px; border-bottom: 1px solid var(--line); }
.daystrip button {
  position: relative; padding: 12px 0 10px; border: 0; background: none; font: inherit; font-weight: 700; font-size: 1.02rem; color: var(--muted);
  cursor: pointer; transition: color .15s; letter-spacing: -0.01em;
}
.daystrip button .cnt { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); margin-top: 1px; font-variant-numeric: tabular-nums; }
.daystrip button::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px; background: var(--text); transform: scaleX(0); transition: transform .2s var(--ease); }
.daystrip button:hover { color: var(--text); }
.daystrip button.active { color: var(--text); }
.daystrip button.active::after { transform: scaleX(1); }
.daystrip button.today { color: var(--accent); }
.daystrip button.today.active::after { background: var(--accent); }
.daystrip button.today::before { content: ''; position: absolute; top: 8px; left: calc(50% + 12px); width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- featured (오늘의 병원) ---------- */
.featured {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 26px;
  transition: border-color .15s, box-shadow .2s;
}
.featured:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.featured .poster { aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--ink); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; }
.featured .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured .kicker { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: .74rem; font-weight: 700; margin-bottom: 10px; }
.featured .kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.featured h2 { font-size: 1.5rem; margin-bottom: 4px; }
.featured p { color: var(--text-2); }
@media (max-width: 720px) { .featured { grid-template-columns: 120px 1fr; gap: 14px; padding: 14px; } .featured h2 { font-size: 1.2rem; } .featured p { display: none; } }

/* ---------- posters ---------- */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 22px 16px; }
@media (max-width: 720px) { .poster-grid { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; } }
.poster-card { display: block; color: var(--text); }
.poster-card .poster {
  aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-2); display: grid; place-items: center; color: var(--ink); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em;
  position: relative; transition: transform .2s var(--ease), box-shadow .2s, border-color .15s;
}
.poster-card:hover .poster { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.poster-card .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-card .poster .flag { position: absolute; top: 8px; left: 8px; height: 20px; padding: 0 6px; border-radius: 5px; font-size: .66rem; font-weight: 800; color: #fff; background: var(--ink); display: inline-flex; align-items: center; letter-spacing: .02em; }
.poster-card .poster .flag.new { background: var(--sale); }
.poster-card .poster .flag.up { background: var(--accent); }
.poster-card .title { font-weight: 700; margin-top: 9px; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.015em; }
.poster-card .sub { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.poster-card .rating { font-size: .78rem; margin-top: 2px; }

/* ---------- posts (성형정보) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--text); display: block; transition: transform .2s var(--ease), box-shadow .2s, border-color .15s; }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card .cover { aspect-ratio: 16/9; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: .9rem; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .body { padding: 12px 14px 14px; }
.post-card .cat { font-size: .72rem; font-weight: 700; color: var(--accent); }
.post-card .title { font-weight: 700; margin: 3px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.post-card .sum { font-size: .8rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article { max-width: 720px; margin: 0 auto; }
.article .body { white-space: pre-wrap; line-height: 1.85; font-size: 1rem; color: var(--text); }
.article .cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; margin: 14px 0; }
.daychecks { display: flex; gap: 6px; flex-wrap: wrap; }
.daychecks label { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 600; color: var(--text); cursor: pointer; margin: 0; background: var(--surface); }
.daychecks label:has(input:checked) { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.daychecks input { width: auto; height: auto; }

/* ---------- events & landing ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
@media (max-width: 720px) { .event-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.event-card { display: block; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, border-color .15s; }
.event-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.event-card .thumb { aspect-ratio: 4/3; background: var(--surface-2); position: relative; }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card .thumb .period { position: absolute; left: 8px; bottom: 8px; height: 20px; padding: 0 7px; border-radius: 5px; background: rgba(22,24,29,.72); color: #fff; font-size: .68rem; font-weight: 600; display: inline-flex; align-items: center; backdrop-filter: blur(4px); }
.event-card .body { padding: 10px 12px 12px; }
.event-card .hosp { font-size: .72rem; color: var(--muted); font-weight: 600; }
.event-card .title { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 5px; line-height: 1.4; font-size: .92rem; }
.price { font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price .orig { font-weight: 500; color: var(--muted); text-decoration: line-through; font-size: .78rem; margin-right: 6px; }
.price .off { color: var(--sale); font-size: .82rem; margin-left: 6px; font-weight: 800; }

.landing { max-width: 720px; margin: 0 auto; }
.landing .hero { width: 100%; border-radius: 14px; display: block; max-height: 520px; object-fit: cover; padding: 0; background: var(--surface-2); }
.landing .body { white-space: pre-wrap; line-height: 1.85; font-size: 1rem; margin: 18px 0; }
.landing .gallery img { width: 100%; border-radius: 12px; display: block; margin-bottom: 12px; }
.landing .cta { position: sticky; bottom: 16px; margin-top: 18px; }
.landing .cta .btn { width: 100%; height: 52px; font-size: 1rem; box-shadow: var(--shadow-hover); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: .8rem; line-height: 1.6; }
.notice b { color: var(--text); }

.dropzone { border: 1.5px dashed var(--line-strong); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; background: var(--surface); font-size: .86rem; }
.dropzone:hover, .dropzone.over { border-color: var(--ink); color: var(--text); background: var(--surface-2); }
.dropzone input { display: none; }
.thumb-preview { width: 100%; max-width: 320px; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; margin-top: 10px; background: var(--surface-2); }
.img-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.img-list .item { position: relative; width: 92px; height: 92px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.img-list .item img { width: 100%; height: 100%; object-fit: cover; }
.img-list .item button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(22,24,29,.7); color: #fff; cursor: pointer; font-size: .8rem; line-height: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--text); font-weight: 500; cursor: pointer; line-height: 1.55; }
.check input { flex: none; margin-top: 3px; }

.link-preview { display: grid; grid-template-columns: 88px 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); color: var(--text); margin-top: 8px; transition: border-color .15s; }
.link-preview:hover { border-color: var(--line-strong); }
.link-preview img { width: 88px; height: 88px; object-fit: cover; display: block; }
.link-preview .noimg { width: 88px; height: 88px; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); font-size: 1.2rem; }
.link-preview .t { padding: 9px 10px 9px 0; min-width: 0; }
.link-preview .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.link-preview .t span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .78rem; color: var(--text-2); }
.link-preview .t small { color: var(--muted); font-weight: 600; font-size: .7rem; }

/* review list */
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .who { display: flex; align-items: center; gap: 8px; }
.review .who .av { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); font-weight: 700; font-size: .78rem; display: grid; place-items: center; }
.review p { margin: 8px 0 0; white-space: pre-wrap; }
.review .meta { font-size: .74rem; color: var(--muted); margin-top: 6px; }

.badge.unpaid { background: var(--warn-soft); color: var(--warn); }
.badge.paid { background: var(--accent-soft); color: var(--accent); }
.badge.failed, .badge.overdue { background: var(--danger-soft); color: var(--danger); }
.badge.void { background: var(--surface-2); color: var(--muted); }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-pick label { display: block; padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; color: var(--text); margin: 0; font-weight: 500; }
.plan-pick label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.plan-pick input { width: auto; height: auto; margin-right: 6px; }
.plan-pick .p { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-pick .save { color: var(--accent); font-weight: 700; font-size: .8rem; margin-left: 6px; }
@media (max-width: 720px) { .plan-pick { grid-template-columns: 1fr; } }

/* misc */
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; font-size: .9rem; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* hospital detail layout */
.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.detail .book { position: sticky; top: 76px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail .book { position: static; } }

/* mobile bottom tab bar */
.tabbar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 64px; }
  .nav > a:not(.btn) { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 60px; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .66rem; font-weight: 600; color: var(--muted); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--text); }
  .landing .cta { bottom: 72px; }
  .toast { bottom: 76px; }
}
