:root {
  --bg: #ffffff; --blush: #fff5f8; --soft: #fcf0f4; --line: #f2e1e7; --ink: #2b1d24; --sub: #8b7480; --body: #4a3a42;
  --accent: #e0457b; --accent-d: #c22f65; --accent-l: #fde4ed; --red: #d93a3a; --gold: #b08d3a;
  --shadow: 0 12px 32px rgba(194,47,101,.10); --max: 1180px;
  --serif: "Noto Serif TC", "Songti TC", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang HK", "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

/* header */
.top { position: sticky; top: 0; z-index: 900; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); }
.brand { display: flex; gap: 12px; align-items: center; }
.logo { width: 32px; height: 32px; color: var(--accent); }
.name { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.demo { font-size: 11px; font-weight: 500; color: var(--accent); border: 1px solid var(--accent); border-radius: 20px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.tag { font-size: 12px; color: var(--sub); }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 20px; font-size: 14.5px; color: var(--body); }
.nav a.on, .nav a:hover { background: var(--soft); color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 28px 24px 40px; }
.foot { max-width: var(--max); margin: 0 auto; padding: 24px; font-size: 12px; line-height: 1.8; color: var(--sub); border-top: 1px solid var(--line); }
.foot a { color: var(--accent); }
body.mapmode .foot { display: none; }

/* home */
.hero { background: linear-gradient(180deg, #f5f8ff 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { padding: 56px 24px 40px; text-align: center; }
.hero h1 { font-size: 40px; font-weight: 700; margin: 0; letter-spacing: 1px; }
.hero p { font-size: 17px; color: var(--sub); margin: 12px 0 28px; }
.bigsearch { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: 1fr 200px 180px 120px; gap: 8px; background: #fff; padding: 8px; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.bigsearch input, .bigsearch select { height: 50px; border: 0; background: var(--soft); border-radius: 12px; padding: 0 14px; font-size: 15px; outline: none; }
.bigsearch button { border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 500; font-size: 16px; cursor: pointer; }
.quick { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: 13.5px; color: var(--sub); }
.quick a { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 5px 14px; color: var(--ink); }
.quick a:hover { border-color: var(--accent); color: var(--accent); }
.kpis { display: flex; justify-content: center; gap: 40px; margin-top: 30px; color: var(--sub); font-size: 13px; }
.kpis b { display: block; font-size: 26px; font-weight: 500; color: var(--ink); }
h2.sec { font-size: 24px; margin: 8px 0 18px; }
.sec-sub { color: var(--sub); font-size: 14px; margin: -10px 0 18px; }
.specgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.speccard { border: 1px solid var(--line); border-radius: 16px; padding: 18px; transition: box-shadow .2s, transform .2s; background: #fff; }
.speccard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.speccard .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.speccard h3 { margin: 12px 0 2px; font-size: 18px; }
.speccard .en { font-size: 12px; color: var(--sub); }
.speccard p { font-size: 13.5px; color: var(--body); margin: 10px 0 12px; line-height: 1.55; min-height: 42px; }
.speccard .n { font-size: 13px; color: var(--accent); }
.mapcta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; padding: 26px 28px; border-radius: 18px; background: var(--soft); }
.mapcta b { font-size: 19px; }
.mapcta p { margin: 6px 0 0; color: var(--sub); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.districts { display: flex; flex-wrap: wrap; gap: 8px; }
.districts a { border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; font-size: 14px; }
.districts a span { color: var(--sub); font-size: 12px; margin-left: 4px; }

/* listing */
.crumb { font-size: 13px; color: var(--sub); margin-bottom: 10px; }
.crumb a { color: var(--accent); }
.lhead h1 { margin: 0; font-size: 28px; }
.lhead p { color: var(--sub); margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; }
.lgrid { display: grid; grid-template-columns: 270px 1fr; gap: 28px; margin-top: 24px; align-items: start; }
.filters { position: sticky; top: 84px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; max-height: calc(100vh - 100px); overflow-y: auto; }
.fg { padding: 12px 0; border-bottom: 1px solid var(--soft); }
.fg:last-child { border: 0; }
.fg h4 { margin: 0 0 8px; font-size: 13.5px; color: var(--sub); font-weight: 500; }
.fg label { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; cursor: pointer; }
.fg label .c { margin-left: auto; color: var(--sub); font-size: 12px; }
.fg select, .fg input[type=search] { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 0 10px; font-size: 14px; }
.fg input[type=checkbox], .fg input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.reset { width: 100%; margin-top: 8px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13.5px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.toolbar .count { font-size: 14px; color: var(--sub); }
.toolbar select { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 0 10px; }
.sortnote { font-size: 12px; color: var(--sub); margin: -4px 0 12px; }
.ftoggle { display: none; }
.card { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; background: #fff; transition: box-shadow .2s; }
.card:hover { box-shadow: var(--shadow); }
.av { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 500; }
.card h3 { margin: 0; font-size: 18px; }
.card .en { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tagS { font-size: 11.5px; padding: 2px 9px; border-radius: 10px; color: #fff; white-space: nowrap; }
.cred { font-size: 11.5px; padding: 2px 9px; border-radius: 10px; background: var(--soft); color: var(--body); white-space: nowrap; }
.card .facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 13px; color: var(--body); }
.card .facts span::before { content: "· "; color: var(--sub); }
.card .facts span:first-child::before { content: ""; }
.rate { text-align: right; min-width: 110px; }
.stars { color: #d1d1d6; letter-spacing: 1px; font-size: 15px; }
.stars.full { color: #f5a623; }
.rate .nr { font-size: 12px; color: var(--sub); margin-top: 2px; }
.rate .btn { height: 36px; margin-top: 12px; font-size: 13.5px; padding: 0 14px; }
.more { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.empty { padding: 40px; text-align: center; color: var(--sub); border: 1px dashed var(--line); border-radius: 16px; }

/* profile */
.phead { display: grid; grid-template-columns: 112px 1fr auto; gap: 24px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.phead .av { width: 112px; height: 112px; font-size: 40px; }
.phead h1 { margin: 0; font-size: 32px; }
.phead .en { color: var(--sub); margin-top: 4px; }
.phead .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; color: var(--body); }
.pgrid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; margin-top: 26px; align-items: start; }
.box2 { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 18px; background: #fff; }
.box2 h2 { margin: 0 0 14px; font-size: 19px; }
.qual { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--soft); font-size: 14px; line-height: 1.55; }
.qual:first-of-type { border-top: 0; }
.qual .y { color: var(--accent); font-weight: 500; }
.loc { padding: 12px 0; border-top: 1px solid var(--soft); font-size: 14px; line-height: 1.55; }
.loc:first-of-type { border-top: 0; }
.loc .d { color: var(--sub); font-size: 12.5px; }
.loc .acts { margin-top: 8px; display: flex; gap: 8px; }
.loc .acts .btn { height: 34px; font-size: 13px; padding: 0 12px; }
#pmap { height: 240px; border-radius: 12px; margin-bottom: 8px; background: #eef1f4; }
.rsum { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; }
.rsum .big { font-size: 44px; font-weight: 500; text-align: center; color: #c7c7cc; }
.bar { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; font-size: 12px; color: var(--sub); margin: 4px 0; }
.bar i { display: block; height: 7px; border-radius: 4px; background: var(--soft); }
.rempty { margin-top: 16px; padding: 18px; border-radius: 12px; background: var(--soft); font-size: 14px; line-height: 1.7; color: var(--body); }
.verified { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: #30a46c; margin-top: 8px; }
.side .box2 { position: sticky; top: 84px; }
.rel { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--soft); }
.rel:first-of-type { border-top: 0; }
.rel .av { width: 40px; height: 40px; font-size: 15px; }
.rel b { font-size: 14.5px; font-weight: 500; }
.rel div div { font-size: 12px; color: var(--sub); }

/* map page */
.maplayout { display: grid; grid-template-columns: 400px 1fr; height: calc(100vh - 64px); }
.mpanel { overflow-y: auto; padding: 16px; border-right: 1px solid var(--line); }
.mapwrap { position: relative; }
#map { position: absolute; inset: 0; background: #eef1f4; }
.msearch { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); padding: 0 14px; font-size: 15px; outline: none; }
.emerg { width: 100%; margin-top: 10px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid #fbd5d6; background: #fff5f5; cursor: pointer; text-align: left; }
.emerg b { color: var(--red); }
.emerg span:last-child { color: var(--sub); font-size: 13px; margin-left: auto; }
.emerg .dot { width: 10px; height: 10px; background: var(--red); box-shadow: 0 0 0 4px rgba(229,72,77,.18); }
.emerg.on { background: var(--red); border-color: var(--red); }
.emerg.on b, .emerg.on span { color: #fff !important; }
.emerg.on .dot { background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mrow { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.mrow select { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 0 8px; }
.mrow .count { margin-left: auto; color: var(--sub); font-size: 13px; }
.notice { margin-top: 10px; background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.6; }
.mitem { padding: 12px 10px; border-radius: 12px; cursor: pointer; border-bottom: 1px solid var(--soft); }
.mitem:hover, .mitem.sel { background: var(--soft); }
.mitem .addr { font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.mitem .meta { font-size: 12px; color: var(--sub); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mitem .docs { font-size: 12.5px; margin-top: 4px; }
.mitem .docs a { color: var(--accent); }
.legend { position: absolute; right: 14px; bottom: 22px; z-index: 500; background: rgba(255,255,255,.95); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 12px; line-height: 1.9; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.leaflet-container { font-family: inherit; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .box { position: relative; background: #fff; border-radius: 18px; padding: 26px; max-width: 460px; width: 100%; box-shadow: var(--shadow); line-height: 1.7; font-size: 15px; }
.modal h3 { margin: 0 0 6px; font-size: 20px; }
.modal .x { position: absolute; right: 12px; top: 10px; border: 0; background: var(--soft); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.pick { display: flex; gap: 6px; margin: 12px 0; font-size: 30px; cursor: pointer; color: #d1d1d6; }
.pick span.on { color: #f5a623; }
.modal textarea { width: 100%; min-height: 110px; border-radius: 12px; border: 1px solid var(--line); padding: 10px 12px; font: inherit; font-size: 14.5px; }
.modal .btn { width: 100%; margin-top: 12px; }
.small { font-size: 12.5px; color: var(--sub); }

@media (max-width: 900px) {
  .nav a { padding: 6px 9px; font-size: 13.5px; }
  .tag { display: none; }
  .top { padding: 0 14px; }
  .wrap { padding: 20px 16px 32px; }
  .hero h1 { font-size: 28px; }
  .bigsearch { grid-template-columns: 1fr 1fr; }
  .bigsearch input { grid-column: 1 / -1; }
  .bigsearch button { grid-column: 1 / -1; height: 48px; }
  .kpis { gap: 18px; }
  .specgrid { grid-template-columns: 1fr 1fr; }
  .lgrid, .pgrid { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: block; }
  .ftoggle { display: block; width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; margin-bottom: 12px; }
  .card { grid-template-columns: 48px 1fr; }
  .card .av { width: 48px; height: 48px; font-size: 17px; }
  .rate { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; gap: 10px; min-width: 0; }
  .rate .btn { margin: 0 0 0 auto; }
  .phead { grid-template-columns: 72px 1fr; }
  .phead .av { width: 72px; height: 72px; font-size: 26px; }
  .phead h1 { font-size: 24px; }
  .phead > .btn { grid-column: 1 / -1; }
  .mapcta { flex-direction: column; align-items: flex-start; }
  .maplayout { grid-template-columns: 1fr; grid-template-rows: 42vh auto; height: auto; }
  .mapwrap { height: 42vh; grid-row: 1; }
  .mpanel { grid-row: 2; border: 0; }
  .legend { display: none; }
}

/* header on small phones */
.nav a, .name { white-space: nowrap; }
@media (max-width: 600px) {
  .top { padding: 0 10px; gap: 8px; }
  .brand { gap: 8px; }
  .logo { width: 26px; height: 26px; }
  .name { font-size: 16px; }
  .demo { font-size: 9px; padding: 0 5px; margin-left: 3px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 7px; font-size: 13px; }
}

/* emergency coming-soon page */
.wrap.narrow { max-width: 760px; }
.soon { display: inline-block; font-size: 12.5px; font-weight: 500; color: var(--red); border: 1px solid var(--red); border-radius: 20px; padding: 2px 10px; }
.lead { font-size: 16.5px; line-height: 1.7; color: var(--body); margin: 0; }
.phases { list-style: none; padding: 0; margin: 0; counter-reset: ph; }
.phases li { display: grid; gap: 4px; padding: 14px 16px 14px 52px; position: relative; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.phases li::before { counter-increment: ph; content: counter(ph); position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 500; display: grid; place-items: center; }
.phases span { color: var(--sub); font-size: 14px; line-height: 1.6; }
.muted { color: var(--sub); font-size: 13.5px; line-height: 1.6; }
.alert { background: rgba(229,72,77,.08); border: 1px solid rgba(229,72,77,.35); border-radius: 14px; padding: 14px 16px; line-height: 1.7; font-size: 14.5px; }
.alert b { color: var(--red); }
.tips { padding-left: 20px; line-height: 1.8; font-size: 14.5px; }
.tips a, .wrap.narrow p a { color: var(--accent); }

/* phones: menu moves to its own row under the brand */
@media (max-width: 600px) {
  .top { height: auto; flex-wrap: wrap; padding: 8px 10px 0; row-gap: 4px; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 10px; font-size: 14px; }
}

/* membership tiers */
.tier { display: inline-block; font-size: 11.5px; font-weight: 500; border-radius: 20px; padding: 1px 8px; border: 1px solid; vertical-align: 1px; white-space: nowrap; }
.t-basic { color: #6e6e73; border-color: #c7c7cc; }
.t-green { color: #218358; border-color: #30a46c; background: rgba(48,164,108,.08); }
.t-gold { color: #8a6a1f; border-color: var(--gold); background: rgba(176,141,58,.1); }
.t-prem { color: var(--accent); border-color: rgba(0,113,227,.45); }
.svcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.svc { font-size: 12.5px; background: var(--soft); border-radius: 8px; padding: 2px 9px; color: var(--body); }
.card.feat { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(176,141,58,.25); }
.featlab { font-size: 11.5px; color: #8a6a1f; margin-bottom: 4px; }
.bio { margin: 0 0 6px; line-height: 1.7; }
.box2 h4.sub { margin: 14px 0 0; font-size: 14px; color: var(--sub); font-weight: 500; }
.kv { margin-top: 12px; font-size: 14px; line-height: 1.9; }
.kv span { display: inline-block; min-width: 72px; color: var(--sub); }
.freebox { background: var(--soft); border: 0; font-size: 14px; line-height: 1.7; }
.freebox a { color: var(--accent); margin-left: 6px; }
.loc .cname { font-weight: 500; color: var(--ink); }
.av.clinic { border-radius: 22px; background: var(--body); }
.emergbox { border-color: rgba(229,72,77,.35); }
.emergbox a { color: var(--accent); }
.draft { display: inline-block; font-size: 13px; color: #8a6a1f; background: rgba(176,141,58,.1); border-radius: 10px; padding: 6px 12px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plans.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: #fff; }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { font-size: 26px; font-weight: 700; margin: 8px 0 12px; }
.plan .price span { font-size: 14px; font-weight: 400; color: var(--sub); }
.plan ul { margin: 0; padding-left: 18px; line-height: 1.8; font-size: 14px; }
.p-green { border-color: #30a46c; }
.p-gold { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(176,141,58,.25); }
.p-premium { border-color: rgba(0,113,227,.45); }
.wrap .muted a { color: var(--accent); }
@media (max-width: 900px) { .plans, .plans.two { grid-template-columns: 1fr; } }

/* ===== pink and white theme (2026-11-10) ===== */
h1, h2.sec, .box2 h2, .speccard h3, .plan h3, .name, .mapcta b { font-family: var(--serif); letter-spacing: .5px; }
.name { font-weight: 700; }
.nav a.on, .nav a:hover { background: var(--accent-l); color: var(--accent-d); }
.hero { background: radial-gradient(620px 320px at 10% 0%, #ffdbe8 0%, transparent 70%), radial-gradient(520px 300px at 92% 35%, #ffe9f0 0%, transparent 70%), linear-gradient(180deg, var(--blush), #fff); border-bottom: 0; }
.hero .wrap { padding: 72px 24px 52px; }
.eyebrow { display: inline-block; font-size: 13px; color: var(--accent-d); background: #fff; border: 1px solid var(--accent-l); border-radius: 999px; padding: 4px 14px; margin-bottom: 18px; }
.hero h1 { font-size: 50px; font-weight: 700; letter-spacing: 3px; line-height: 1.25; }
.hero h1 em { font-style: normal; color: var(--accent); }
.bigsearch { border-radius: 999px; grid-template-columns: 1fr 180px 160px 120px; border-color: var(--line); }
.bigsearch input, .bigsearch select { border-radius: 999px; background: var(--blush); }
.btn, .bigsearch button, .quick a, .districts a, .tagS, .reset, .more, .ftoggle { border-radius: 999px; }
.btn:hover, .bigsearch button:hover { background: var(--accent-d); }
.btn.ghost:hover { background: var(--blush); color: var(--accent-d); border-color: var(--accent-l); }
.quick a:hover, .districts a:hover { border-color: var(--accent); color: var(--accent-d); }
.districts a { background: #fff; }
.kpis b { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--accent-d); }
.speccard, .card, .box2, .plan, .filters { border-radius: 22px; }
.speccard:hover, .card:hover { border-color: var(--accent-l); }
.speccard .ic { border-radius: 14px; }
.mapcta { background: linear-gradient(120deg, var(--blush), #fff 75%); border: 1px solid var(--line); border-radius: 24px; }
.cred, .svc, .rempty, .freebox, .notice { background: var(--blush); }
.t-prem { color: var(--accent-d); border-color: rgba(224,69,123,.45); background: var(--blush); }
.p-premium { border-color: rgba(224,69,123,.45); }
.chip.on { background: var(--accent); border-color: var(--accent); }
.mitem:hover, .mitem.sel { background: var(--blush); }
.msearch { background: var(--blush); border-radius: 999px; }
.qual .y { color: var(--accent-d); }
.stars { color: #ead9df; }
.av { overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.photo { background: var(--soft) !important; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--accent-l); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin: 22px 0 4px; }
.gallery.one { grid-template-columns: 1fr; }
.gallery img { width: 100%; height: 300px; object-fit: cover; border-radius: 22px; display: block; }
.mitem .thumb { float: right; width: 72px; height: 54px; object-fit: cover; border-radius: 12px; margin-left: 10px; }
@media (max-width: 900px) {
  .hero .wrap { padding: 44px 16px 34px; }
  .hero h1 { font-size: 32px; letter-spacing: 1px; }
  .bigsearch { border-radius: 24px; grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 220px; }
}
.av.clinic { background: var(--accent); }

/* advertising products: banner and top slot */
.adslot { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin: 0 0 34px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #fff; position: relative; min-height: 190px; }
.adslot img { width: 100%; height: 100%; object-fit: cover; grid-column: 2; grid-row: 1; min-height: 190px; }
.adtxt { grid-column: 1; grid-row: 1; padding: 22px 28px; }
.adtxt b { display: block; font-family: var(--serif); font-size: 22px; margin: 8px 0 6px; }
.adtxt p { margin: 0 0 14px; color: var(--sub); font-size: 13.5px; }
.adlab { font-size: 11px; color: var(--sub); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.adslot.inguide { margin: 24px 0 8px; }
.topbox { border: 1px solid var(--gold); background: linear-gradient(180deg, rgba(176,141,58,.06), #fff); border-radius: 22px; padding: 14px 16px; margin-bottom: 14px; }
.toplab { font-size: 12px; color: #8a6a1f; font-weight: 500; margin-bottom: 10px; }
.toplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.topclinic { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.topclinic img { width: 72px; height: 56px; object-fit: cover; border-radius: 12px; flex: none; }
.topclinic b { font-size: 14px; }
.topclinic .svcs { margin-top: 4px; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.guidecard { display: grid; grid-template-columns: 140px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; }
.guidecard img { width: 100%; height: 100%; object-fit: cover; min-height: 120px; }
.guidecard > div { padding: 14px 14px 14px 0; }
.guidecard b { font-family: var(--serif); font-size: 16px; }
.guidecard p { margin: 6px 0; font-size: 13px; color: var(--sub); }
.sponsor { font-size: 11.5px; color: var(--sub); }
.sponsorbar { font-size: 12.5px; color: var(--sub); background: var(--blush); border-radius: 999px; display: inline-block; padding: 4px 14px; }
.guidehero { width: 100%; height: 280px; object-fit: cover; border-radius: 22px; margin: 8px 0 18px; display: block; }
@media (max-width: 700px) {
  .adslot { grid-template-columns: 1fr; }
  .adslot img { grid-column: 1; grid-row: 1; min-height: 150px; height: 150px; }
  .adtxt { grid-row: 2; padding: 16px 18px; }
  .guidehero { height: 200px; }
}
@media (min-width: 701px) { .adslot { height: 220px; } .adslot img { height: 220px; min-height: 0; } }
@media (max-width: 700px) { .adslot { height: auto; } }

/* emergency triage demo */
.triage { margin-top: 22px; border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px; background: linear-gradient(180deg, var(--blush), #fff 60%); }
.tstep { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; font-size: 16px; }
.tnum { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.tchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14.5px; cursor: pointer; }
.tchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tflag { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--red); margin: 12px 0 18px; line-height: 1.5; }
.tflag input { accent-color: var(--red); margin-top: 3px; }
#tdz { width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 16px; font-size: 15px; }
.tgo { width: 100%; margin-top: 14px; height: 50px; font-size: 16px; }
.tresult { margin-top: 18px; }
.thead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.thead span { font-size: 13px; color: var(--sub); }
.ttip { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; line-height: 1.6; margin-bottom: 10px; }
.tclinic { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin-bottom: 10px; }
.tclinic img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; flex: none; }
.tinfo { flex: 1; min-width: 0; }
.tinfo a { color: var(--ink); }
.tslots { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tslot { border: 1px solid var(--accent); color: var(--accent-d); background: var(--blush); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 500; cursor: pointer; }

/* emergency network (2026-11-20) */
:root { --duty: #22a06b; }
.navsos { color: var(--accent-d) !important; font-weight: 500; }
.navsos::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--duty); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(34,160,107,.18); }
.live { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--duty); box-shadow: 0 0 0 4px rgba(34,160,107,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34,160,107,.05); } }
.ehero .bigsearch { grid-template-columns: 1fr 1fr 170px; max-width: 680px; }
.bigsearch.inline { margin: 0; max-width: 680px; grid-template-columns: 1fr 180px 110px; box-shadow: none; }
.dutynow { margin-top: 18px; font-size: 14.5px; color: var(--body); display: flex; gap: 10px; align-items: center; justify-content: center; }
.dutynow b { color: #1a8a59; font-size: 18px; }
.redline { margin-top: 10px; font-size: 13px; color: var(--red); }
.areas { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-bottom: 30px; }
.area { border: 1px solid var(--line); border-radius: 22px; padding: 20px; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.area:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.area.core { background: linear-gradient(160deg, var(--blush), #fde4ed); border-color: var(--accent-l); }
.anum { font-size: 22px; color: var(--accent); }
.area h3 { margin: 6px 0 0; font-family: var(--serif); font-size: 21px; }
.area .en { font-size: 12px; color: var(--sub); }
.area p { font-size: 13.5px; line-height: 1.65; color: var(--body); flex: 1; }
.area .go { font-size: 13.5px; color: var(--accent-d); font-weight: 500; }
.eh1 { font-size: 20px; margin: 10px 0 6px; font-family: var(--serif); }
.estatus { display: flex; gap: 10px; align-items: center; font-size: 13.5px; margin-bottom: 14px; }
.estatus b { color: #1a8a59; }
.estatus span:last-child { color: var(--sub); margin-left: auto; font-size: 12.5px; }
.mpanel .tflag { margin: 10px 0 14px; }
.mpanel .mrow #tdz { flex: 1; width: auto; height: 40px; }
.btn.sm { height: 40px; font-size: 13px; padding: 0 14px; }
.elegend { display: flex; gap: 16px; font-size: 12.5px; color: var(--sub); margin: 14px 0 10px; }
.elegend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.elegend i.g { background: var(--duty); } .elegend i.x { background: #b9adb3; }
.eitem { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.eitem.on { border-color: rgba(34,160,107,.35); }
.eitem:hover, .eitem.sel { box-shadow: var(--shadow); }
.eitem .eh { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.eitem .light { width: 10px; height: 10px; border-radius: 50%; background: #b9adb3; flex: none; }
.eitem.on .light { background: var(--duty); box-shadow: 0 0 0 3px rgba(34,160,107,.18); }
.eitem .dist { margin-left: auto; font-size: 12.5px; color: var(--accent-d); white-space: nowrap; }
.eitem .meta { font-size: 12.5px; color: var(--sub); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.eitem .meta .ok { color: #1a8a59; font-weight: 500; }
.eacts { font-size: 12.5px; margin-top: 8px; }
.eacts a { color: var(--accent-d); }
.epop .eitem { border: 0; padding: 0; margin: 0; box-shadow: none; cursor: default; }
.edet { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13.5px; }
.edet summary { cursor: pointer; font-weight: 500; }
.edet .phases, .edet .tips { font-size: 13px; }
.minput { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; margin-bottom: 10px; background: #fff; }
.chead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.switch { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.switch input { display: none; }
.switch .sw { width: 46px; height: 26px; border-radius: 99px; background: #d9cfd4; position: relative; transition: background .2s; }
.switch .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch input:checked + .sw { background: var(--duty); }
.switch input:checked + .sw::after { left: 23px; }
.cgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.creq { border: 2px solid var(--line); border-radius: 20px; padding: 16px 18px; margin-bottom: 14px; background: #fff; }
.creq.new { border-color: var(--accent); box-shadow: var(--shadow); }
.creq.ok { border-color: rgba(34,160,107,.5); }
.creq .ctop { display: flex; gap: 8px; align-items: center; font-size: 12.5px; letter-spacing: .5px; color: var(--accent-d); }
.creq.ok .ctop { color: #1a8a59; }
.creq .ctop .small { margin-left: auto; }
.cdot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.creq h3 { font-size: 22px; margin: 8px 0 4px; }
.cnote { background: var(--blush); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-top: 10px; line-height: 1.6; }
.cacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cacts .btn { height: 38px; font-size: 13.5px; padding: 0 16px; }
.srow { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--soft); }
.spill { border: 0; border-radius: 99px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; }
.spill.open { background: #e8f6ef; color: #1a8a59; } .spill.req { background: var(--accent-l); color: var(--accent-d); }
.spill.booked { background: #f3eef0; color: var(--sub); } .spill.off { background: #f3eef0; color: var(--sub); text-decoration: line-through; }
.roster { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.roster th { font-weight: 500; color: var(--sub); padding: 4px; }
.roster td { padding: 3px; text-align: center; }
.roster td:first-child { text-align: left; white-space: nowrap; padding-right: 8px; }
.rcell { width: 100%; min-width: 34px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--sub); cursor: pointer; font-size: 11.5px; }
.rcell.on { background: #e8f6ef; border-color: rgba(34,160,107,.4); color: #1a8a59; font-weight: 500; }
.planned { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.planned div { border: 1px dashed var(--line); border-radius: 16px; padding: 14px; font-size: 14.5px; }
.planned span { display: block; font-size: 11.5px; color: var(--sub); margin-bottom: 4px; }
@media (max-width: 900px) {
  .areas, .cgrid { grid-template-columns: 1fr; }
  .ehero .bigsearch, .bigsearch.inline { grid-template-columns: 1fr 1fr; }
  .ehero .bigsearch button, .bigsearch.inline button { grid-column: 1 / -1; height: 48px; }
  .bigsearch.inline input { grid-column: 1 / -1; }
  .nav { gap: 0; } .nav a { padding: 8px 9px; font-size: 13.5px; }
}
@media (max-width: 600px) {
  .top .tag { display: none; } .name { font-size: 15px; }
}

/* clinic console app (2026-11-20) */
body.appmode .top, body.appmode .foot { display: none; }
body.appmode { background: #faf6f8; }
.capp { min-height: 100vh; display: flex; flex-direction: column; }
.cbar { position: sticky; top: 0; z-index: 800; height: 60px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 20px; }
.cburger { display: none; border: 0; background: none; font-size: 22px; cursor: pointer; }
.cbrand { display: flex; gap: 10px; align-items: center; }
.cbrand b { display: block; font-size: 15px; } .cbrand small { display: block; font-size: 11px; color: var(--sub); }
.cmark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.cclinic { font-size: 13.5px; color: var(--body); border-left: 1px solid var(--line); padding-left: 16px; }
.cright { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.cdemo { font-size: 11.5px; color: var(--red); border: 1px solid var(--red); border-radius: 99px; padding: 2px 9px; }
.cbell { position: relative; border: 1px solid var(--line); background: #fff; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--body); }
.cbadge { position: absolute; top: -3px; right: -3px; background: var(--accent); color: #fff; font-size: 10.5px; min-width: 17px; height: 17px; border-radius: 99px; display: grid; place-items: center; font-style: normal; }
.ci { width: 18px; height: 18px; flex: none; }
.cuser { position: relative; display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 99px; }
.cuser:hover { background: var(--soft); }
.cav { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-l); color: var(--accent-d); display: grid; place-items: center; font-weight: 700; }
.cun b { display: block; font-size: 13.5px; } .cun small { display: block; font-size: 11px; color: var(--sub); }
.caret { font-size: 11px; color: var(--sub); }
.cmenu { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 170px; padding: 6px; z-index: 900; }
.cmenu a, .cmenu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; border: 0; background: none; cursor: pointer; }
.cmenu a:hover, .cmenu button:hover { background: var(--soft); }
.cbody { flex: 1; display: grid; grid-template-columns: 230px 1fr; }
.cside { background: #fff; border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 60px; height: calc(100vh - 60px); }
.cside a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; font-size: 14.5px; color: var(--body); }
.cside a:hover { background: var(--soft); }
.cside a.on { background: var(--accent-l); color: var(--accent-d); font-weight: 500; }
.cside a em { margin-left: auto; font-style: normal; background: var(--accent); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 7px; }
.cside-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 6px 4px; }
.cside-foot b { font-size: 13px; }
.cmain { padding: 26px 30px 40px; min-width: 0; }
.chd { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.chd h1 { margin: 0; font-size: 24px; font-family: var(--serif); } .chd p { margin: 4px 0 0; color: var(--sub); font-size: 13.5px; }
.kpi4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi4 > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.kpi4 span { font-size: 12.5px; color: var(--sub); } .kpi4 b { display: block; font-size: 28px; font-weight: 600; margin: 2px 0; } .kpi4 small { font-size: 12px; color: var(--sub); }
.kpi4 .hot { border-color: var(--accent); background: var(--blush); } .kpi4 .hot b { color: var(--accent-d); }
.c2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.c2.c2r { grid-template-columns: 1.2fr 1fr; }
.cpanel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-bottom: 14px; }
.cpanel h2, .cph h2 { font-size: 16px; margin: 0 0 10px; }
.cph { display: flex; justify-content: space-between; align-items: baseline; } .cph a { font-size: 13px; color: var(--accent-d); }
.ctable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ctable th { text-align: left; font-weight: 500; color: var(--sub); font-size: 12.5px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ctable td { padding: 10px 6px; border-bottom: 1px solid var(--soft); vertical-align: top; }
.ctable tbody tr { cursor: pointer; } .ctable tbody tr:hover { background: var(--blush); }
.bdg { display: inline-block; font-size: 12px; border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.b-green { background: #e8f6ef; color: #1a8a59; } .b-blue { background: #e8f0fd; color: #2c5fb8; } .b-grey { background: #f3eef0; color: var(--sub); }
.b-red { background: #fde8e8; color: var(--red); } .b-pink { background: var(--accent-l); color: var(--accent-d); }
.ctabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.ctabs a { padding: 7px 14px; border-radius: 99px; font-size: 13.5px; background: #fff; border: 1px solid var(--line); }
.ctabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cnarrow { max-width: 720px; }
.cday { font-size: 14px; margin: 14px 0 4px; color: var(--accent-d); } .cday:first-child { margin-top: 0; }
.cdel { border: 0; background: none; color: var(--sub); cursor: pointer; margin-left: 8px; }
.flab { display: block; font-size: 12.5px; color: var(--sub); margin: 4px 0 4px; }
.minput.ta { height: 70px; padding: 10px 12px; resize: vertical; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.roster.big .rcell { height: 52px; min-width: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.roster.big .rcell small { font-size: 10.5px; font-weight: 400; }
.rscroll { overflow-x: auto; }
.trow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--soft); cursor: pointer; }
.trow b { display: block; font-size: 14px; font-weight: 500; } .trow small { display: block; font-size: 12px; color: var(--sub); }
.pgal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pgal img { width: 100%; height: 110px; object-fit: cover; border-radius: 12px; }
.padd { height: 110px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--blush); color: var(--accent-d); cursor: pointer; }
.cfoot { font-size: 12px; color: var(--sub); margin-top: 24px; }
.clogin { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--blush), #fff); padding: 20px; }
.clcard { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.clcard h1 { font-size: 22px; margin: 22px 0 14px; }
#ctoast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; opacity: 0; transition: .25s; z-index: 2000; pointer-events: none; }
#ctoast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) {
  .cburger { display: block; } .cclinic, .cun, .caret, .cdemo { display: none; }
  .cbody { grid-template-columns: 1fr; }
  .cside { position: fixed; left: 0; top: 60px; width: 240px; z-index: 700; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .cside.open { transform: none; }
  .cmain { padding: 18px 14px 30px; }
  .kpi4 { grid-template-columns: 1fr 1fr; } .c2, .c2.c2r { grid-template-columns: 1fr; }
  .ctable th:nth-child(4), .ctable td:nth-child(4) { display: none; }
}
