/* Layout: one long scroll — floating glass nav, rounded hero panel, alternating white cards on a cool grey ground, floating action bar pinned to the bottom. */
:root {
  --ground: #F4F5F8;
  --surface: #FFFFFF;
  --surface-2: #EDEFF3;
  --ink: #16171B;
  --ink-2: #4A4F5A;
  --muted: #8A909C;
  --line: #E3E6EC;
  --accent: #6A4F8E;
  --accent-soft: #EFEAF6;
  --pearl: #B9A3DE;
  --on-accent: #FFFFFF;
  --glass: rgba(255,255,255,.82);
  --shadow: 0 18px 40px -22px rgba(22,28,45,.28);
  --photo-a: #F7F7F5;
  --photo-b: #D9D9D6;
  --photo-glow: rgba(255,255,255,.95);
  --font-body: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-display: var(--font-body);
  --font-label: "Manrope", "Noto Sans KR", system-ui, sans-serif;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #111215; --surface: #1A1C21; --surface-2: #23262C; --ink: #F1F2F5; --ink-2: #C3C7D0; --muted: #8B919C;
    --line: #2C3038; --accent: #B8A2DD; --accent-soft: #2A2336; --on-accent: #1A1424; --pearl: #CDBCEB; --glass: rgba(26,28,33,.82);
    --shadow: 0 18px 40px -22px rgba(0,0,0,.7); --photo-a: #2A2C30; --photo-b: #17181B; --photo-glow: rgba(255,255,255,.18);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #111215; --surface: #1A1C21; --surface-2: #23262C; --ink: #F1F2F5; --ink-2: #C3C7D0; --muted: #8B919C;
  --line: #2C3038; --accent: #B8A2DD; --accent-soft: #2A2336; --on-accent: #1A1424; --pearl: #CDBCEB; --glass: rgba(26,28,33,.82);
  --shadow: 0 18px 40px -22px rgba(0,0,0,.7); --photo-a: #2A2C30; --photo-b: #17181B; --photo-glow: rgba(255,255,255,.18);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  background: var(--ground); color: var(--ink); font-family: var(--font-body);
  font-size: 16px; line-height: 1.7; letter-spacing: -0.01em; word-break: keep-all;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: 120px;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ground); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: 1160px; margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 14px); z-index: 50;
  max-width: 1200px; margin: 14px auto 0; display: flex; align-items: center; gap: 24px;
  padding: 12px 22px; border-radius: 20px; background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 22px; height: 37px; flex-shrink: 0; background: var(--ink-2); -webkit-mask: url(logo-mark.png) center / contain no-repeat; mask: url(logo-mark.png) center / contain no-repeat; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; font-weight: 700; }
.brand-text span { font-size: 12px; color: var(--muted); }
.brand-text .open { color: var(--ink-2); }
.brand-text .open::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: 2px; }
.brand-text .open.is-open::before { background: #3BA55C; }
.menu { display: flex; gap: 26px; margin: 0 auto; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.menu a:hover { color: var(--accent); }
.nav-call { flex-shrink: 0; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
@media (max-width: 1100px) { .menu { display: none; } .nav { justify-content: space-between; } }

/* ---------- Shared type ---------- */
.eyebrow { font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.h-split { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 48px); line-height: 1.28; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.h-split .thin { display: block; font-weight: 200; }
.h-split .bold { display: block; font-weight: 700; }
.lead { color: var(--ink-2); font-size: 16px; max-width: 60ch; margin: 18px 0 0; }
.section { padding-block: 120px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head .lead { margin-top: 0; max-width: 42ch; }
.text-link { font-size: 14px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.text-link::after { content: "→"; color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; max-width: 1200px; margin: 24px auto 0; border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(180deg, var(--photo-a), var(--surface-2)); box-shadow: var(--shadow);
}
.hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-photo .arch {
  position: absolute; left: -8%; top: 8%; width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, var(--photo-a), var(--photo-b));
  box-shadow: inset -2px 0 0 var(--photo-glow), 18px 0 60px -10px var(--photo-glow); opacity: .9;
}
.hero-photo .arch.two { left: auto; right: 10%; top: 26%; width: 14%; border-radius: 999px; aspect-ratio: .4; opacity: .7; }
.hero-photo .floor { position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(180deg, transparent, var(--surface-2)); }
.photo-tag { position: absolute; right: 22px; top: 22px; font-size: 12px; color: var(--muted); background: var(--glass); padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line); }
.hero-inner { position: relative; padding: clamp(110px, 16vw, 180px) clamp(20px, 6vw, 72px) 56px; text-align: center; }
.hero .h-split { font-size: clamp(34px, 5.6vw, 60px); }
.hero .lead { margin: 22px auto 0; }
.hero-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.chip { font-size: 13px; padding: 6px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); }

/* doctor block inside hero */
.doctor { position: relative; display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: 24px clamp(20px, 6vw, 72px) 72px; }
.portrait {
  aspect-ratio: 3 / 4; max-width: 100%; border-radius: 26px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #C9CFD8, #E9ECF1); box-shadow: var(--shadow);
}
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait .silhouette { position: absolute; inset: auto 0 0; height: 78%; display: grid; justify-items: center; }
.portrait .silhouette::before { content: ""; width: 34%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.7); margin-top: 6%; }
.portrait .silhouette::after { content: ""; position: absolute; bottom: 0; width: 76%; height: 52%; border-radius: 48% 48% 0 0; background: #fff; }
.portrait .photo-tag { left: 12px; right: auto; top: 12px; color: #5A606B; background: rgba(255,255,255,.85); border-color: rgba(0,0,0,.08); }
.doctor-copy h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.4; letter-spacing: -0.03em; margin: 0 0 18px; }
.doctor-copy h2 .thin { font-weight: 300; display: block; }
.doctor-copy h2 .bold { font-weight: 700; display: block; }
.doctor-copy p { color: var(--ink-2); margin: 0; max-width: 56ch; }
.sign { margin-top: 22px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sign strong { font-size: 18px; }
.sign span { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .doctor { grid-template-columns: 1fr; } .portrait { width: 220px; } }

/* principles */
.principles { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0 clamp(20px, 6vw, 72px) 72px; }
.principle .tag { font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.principle h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.45; margin: 10px 0 8px; letter-spacing: -0.02em; }
.principle p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Conditions grid ---------- */
.conditions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cond {
  position: relative; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cond:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cond .motif { position: absolute; top: 20px; right: 20px; width: 84px; height: 84px; border-radius: 50%; background: var(--surface-2); }
.cond .motif i { position: absolute; border-radius: 50%; background: var(--accent); opacity: .18; }
.cond .area { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cond h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 0; letter-spacing: -0.02em; }
.cond p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.cond .rx-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cond .rx { display: inline-flex; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.cond.primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cond.primary p, .cond.primary .area { color: color-mix(in srgb, var(--surface) 72%, transparent); }
.cond.primary .motif { background: color-mix(in srgb, var(--surface) 10%, transparent); }
.cond.primary .motif i { opacity: .8; background: var(--pearl); }
.cond.wide { grid-column: 1 / -1; min-height: 170px; }
.cond.wide p { max-width: 52ch; }
@media (max-width: 900px) { .conditions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .conditions { grid-template-columns: 1fr; } .cond { min-height: 170px; } }

/* ---------- Statement band ---------- */
.statement {
  margin-top: 120px; border-radius: var(--radius-xl); padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 72px); text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 30% 40%, var(--photo-glow), transparent 60%),
    radial-gradient(ellipse 50% 60% at 75% 60%, var(--photo-a), transparent 70%),
    linear-gradient(135deg, var(--surface-2), var(--photo-b));
}
.statement .h-split { font-size: clamp(28px, 4.4vw, 46px); }

/* ---------- Treatments ---------- */
.treatments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tx { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.tx-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; }
.tx-icon svg { width: 28px; height: 28px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tx h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0; letter-spacing: -0.02em; }
.tx h3 small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.tx p { margin: 0; font-size: 14px; color: var(--ink-2); }
.tx .for { margin-top: auto; font-size: 12.5px; color: var(--accent); font-weight: 700; }
@media (max-width: 980px) { .treatments { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .treatments { grid-template-columns: 1fr; } }

/* ---------- Diet ---------- */
.diet { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); }
.diet-points { display: grid; gap: 12px; }
.diet-point { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--surface-2); }
.diet-point b { font-size: 15px; display: block; }
.diet-point span { font-size: 13.5px; color: var(--ink-2); }
.diet-point .dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
@media (max-width: 820px) { .diet { grid-template-columns: 1fr; } }

/* ---------- Space ---------- */
.space { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.room { position: relative; aspect-ratio: 3 / 4; max-width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(170deg, var(--photo-a), var(--photo-b)); }
.room::before { content: ""; position: absolute; left: 18%; top: 14%; width: 64%; height: 58%; border-radius: 999px 999px 0 0; border: 2px solid var(--photo-glow); box-shadow: 0 0 40px var(--photo-glow); opacity: .8; }
.room .cap { position: absolute; left: 18px; bottom: 16px; color: var(--ink); }
.room .cap b { display: block; font-size: 15px; }
.room .cap span { font-family: var(--font-label); font-size: 12px; color: var(--muted); }
.room .photo-tag { top: 12px; right: 12px; }
@media (max-width: 900px) { .space { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Before & After ---------- */
.ba-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ba-tab { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.ba-tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ba-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; display: grid; gap: 12px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba-shot { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.ba-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-shot .lbl { z-index: 1; position: absolute; left: 8px; top: 8px; font-family: var(--font-label); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 999px; background: var(--glass); color: var(--ink-2); }
.ba-shot.after .lbl { background: var(--accent); color: var(--on-accent); }
.ba-shot .empty-shot { font-size: 12px; color: var(--muted); text-align: center; padding: 0 8px; }
.ba-cap { padding: 0 4px 4px; }
.ba-cap b { display: block; font-size: 15px; }
.ba-cap span { font-size: 13px; color: var(--muted); }
.ba-note { margin: 20px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ba-grid { grid-template-columns: 1fr; } }

/* ---------- InBody ---------- */
.inbody { margin-top: 16px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); }
.inbody-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.inbody-head h3 { font-family: var(--font-display); font-weight: 700; margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.inbody-head p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.ib-compare { margin: 0; display: grid; gap: 16px; }
.ib-compare + .ib-compare { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.ib-sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ib-sheet { position: relative; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); overflow: hidden; padding: 36px 10px 10px; }
.ib-sheet img { width: 100%; height: auto; display: block; }
.ib-sheet .lbl { position: absolute; left: 10px; top: 9px; font-family: var(--font-label); font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; background: #EEF0F3; color: #4A4F5A; }
.ib-sheet.after .lbl { background: var(--accent); color: var(--on-accent); }
.ib-changes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-variant-numeric: tabular-nums; }
.ib-change { border-radius: var(--radius-md); background: var(--surface-2); padding: 14px 16px; display: grid; gap: 2px; }
.ib-change small { font-size: 12.5px; color: var(--muted); }
.ib-change .from { font-size: 14px; color: var(--ink-2); }
.ib-change b { font-size: 22px; letter-spacing: -0.02em; }
.ib-change b.down { color: var(--accent); }
.ib-change b.keep { color: var(--ink); font-size: 18px; }
.ib-period { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 720px) { .ib-sheets { grid-template-columns: 1fr; } .ib-changes { grid-template-columns: 1fr; } }

/* ---------- Columns ---------- */
.columns-box { padding: 28px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.columns-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.columns-top h3 { margin: 0; font-size: 17px; }
.columns-top h3 span { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.search { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface-2); min-width: 0; flex: 0 1 320px; }
.search svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; flex-shrink: 0; }
.search input { border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); width: 100%; min-width: 0; outline: none; }
.col-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.col-list li { min-width: 0; border-bottom: 1px solid var(--line); }
.col-list a { display: block; padding: 13px 0 13px 14px; font-size: 14.5px; color: var(--ink-2); position: relative; }
.col-list a::before { content: ""; position: absolute; left: 0; top: 23px; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.col-list a:hover { color: var(--accent); }
.col-list .kw { color: var(--muted); font-size: 13px; }
.empty { font-size: 14px; color: var(--muted); padding: 16px 0; }
.note { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 760px) { .col-list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 20px 22px; font-weight: 500; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { color: var(--accent); font-weight: 700; font-family: var(--font-label); }
.faq summary::after { content: "+"; margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 22px 22px 50px; color: var(--ink-2); font-size: 15px; }
.faq .a p { margin: 0; }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.loc-card { padding: 30px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 22px; align-content: start; }
.loc-row .label { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 4px; }
.loc-row .value { font-size: 17px; font-weight: 500; }
.loc-row .value.big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.loc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--surface-2); border: 0; color: var(--ink); cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours th { font-weight: 500; color: var(--ink-2); width: 42%; }
.hours tr.today th, .hours tr.today td { color: var(--accent); font-weight: 700; }
.hours td.off { color: var(--muted); }
@media (max-width: 820px) { .location { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { margin-top: 120px; padding-block: 40px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: grid; gap: 8px; }
.footer strong { color: var(--ink-2); }
.footer .warn { margin-top: 10px; font-size: 12px; }

/* ---------- Floating bar ---------- */
.dock {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  width: min(660px, calc(100% - 2 * max(16px, env(safe-area-inset-left, 0px)))); display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.dock-notice { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; overflow: hidden; }
.dock-notice .pulse { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--pearl); animation: pulse 2s infinite; }
.dock-notice span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.dock-notice span::after { content: " →"; color: var(--muted); }
@keyframes pulse { 50% { opacity: .3; } }
.dock-actions { display: flex; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.dock-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.dock-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dock-btn.call { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.dock-btn.kakao svg { fill: currentColor; stroke: none; }
@media (max-width: 420px) { .dock { padding-left: 14px; } .dock-btn { width: 36px; height: 36px; } }

/* Clickable cards: the heading link stretches over the whole card */
.cond, .tx { position: relative; }
.card-link { color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.cond:has(.card-link), .tx:has(.card-link) { cursor: pointer; }
.cond:has(.card-link) h3::after, .tx:has(.card-link) h3 .card-link::before { content: none; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent); }
.more::after { content: "→"; }
.cond.primary .more { color: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.tx:has(.card-link):hover, .cond:has(.card-link):hover { border-color: var(--accent); }
