/* Shared account presentation, matched to the approved JR reference. */
.jr-editorial-account {
  --account-paper: #f6f5ed;
  --account-cream: #f6f5ed;
  --account-card: #f6f5ed;
  --account-ink: #30382d;
  --account-ink-hover: #3f4d38;
  --account-text: #30382d;
  --account-muted: #59624f;
  --account-moss: #4b5b43;
  --account-sage: #b8c2ad;
  --account-card-border: #d5d8ca;
  --account-field-border: #bcc3b4;
  --account-control-radius: 0px;
  --account-card-radius: 0px;
  --account-heading-font: "Cormorant Garamond", "Noto Serif TC", "Songti TC", serif;
  --account-body-font: Inter, "Noto Sans TC", system-ui, sans-serif;
  --editorial-sidebar: 260px;
  background: var(--account-paper);
  color: var(--account-text);
}
.jr-editorial-account.m-shell { gap:0!important; font-weight:400!important; }
body:has(.jr-editorial-account.m-shell)::before { display:none!important; }
.jr-member-mobilebar,.jr-member-menu-mask { display:none; }
.jr-editorial-account.m-shell .m-side-brand :is(h1,small),
.jr-editorial-account.m-shell .m-side-nav i,
.jr-editorial-account.m-shell .m-side-user :is(b,span) { color:#f6f5ed!important; }
.jr-editorial-account.m-shell .m-side-user { background:transparent!important;border:0!important;border-radius:0!important;padding:12px 0!important; }
.jr-editorial-account .jr-brand > span { display:flex;flex-direction:column;gap:2px; }
.jr-editorial-account #portal-sidebar .text-slate-500 { color:#d5ddcc!important; }
.jr-editorial-heading { display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:12px;border-bottom:1px solid #bcc3b4;margin-bottom:28px;padding-bottom:22px; }
.jr-editorial-heading h1 { font-size:30px; }
.jr-editorial-eyebrow,.jr-editorial-date { font-size:12px;color:#737b6f; }
.jr-editorial-brand { padding-bottom:22px;border-bottom:1px solid #7c8971; }
.jr-editorial-account.jr-portal .stat-card :is(p,i) { color:#30382d!important; }
.jr-editorial-account.jr-portal button:is(.bg-emerald-600,.bg-purple-600,.bg-cyan-600,.bg-green-600,.bg-blue-600,.bg-indigo-600,.bg-teal-600,.bg-violet-600,.bg-sky-600,.bg-slate-800) { --action-background:#4b5b43; }
.jr-editorial-account :is(h1,h2,h3,h4,.jr-account-heading,.jr-account-section) {
  font-family: var(--account-heading-font);
  font-weight: 500;
}
.jr-editorial-account :is(button,input,select,textarea) { font: inherit; }
.jr-editorial-account :is(button,a,input,select,textarea):focus-visible {
  outline: 2px solid #8a9c7c;
  outline-offset: 3px;
}
.jr-editorial-account :is(.m-card,.stat-card,.card,.jr-account-service) {
  box-shadow: none !important;
  border-radius: 0 !important;
}
.jr-editorial-account.m-shell :is(.m-panel,.m-hero,.m-box,.m-info-banner,.m-aside-panel) {
  border-radius:0!important;box-shadow:none!important;background:#f6f5ed!important;border-color:#d5d8ca!important;
}
.jr-editorial-account.m-shell .m-hero { color:#30382d!important; }
.jr-editorial-account.m-shell .m-hero::before { display:none; }
.jr-editorial-account.m-shell button { border-radius:0!important;box-shadow:none!important; }
.jr-editorial-account.jr-portal { background:var(--account-paper)!important; }
.jr-editorial-account.jr-portal #portal-sidebar,
.jr-editorial-account.m-shell .m-sidebar {
  background:#4b5b43 !important;
  color:#f6f5ed !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:24px !important;
  gap:0;
}
.jr-editorial-account :is(.jr-editorial-sidebar-brand,.m-side-brand) {
  padding:0 0 22px !important;
  border-bottom:1px solid #7c8971 !important;
  color:#f6f5ed !important;
}
.jr-editorial-account #portal-sidebar :is(.jr-brand,.jr-brand b,.jr-brand small,.jr-account-role),
.jr-editorial-account.m-shell :is(.m-side-brand,.m-side-brand-title) { color:#f6f5ed !important; }
/* 品牌 logo 統一用真實圖案（深底用白、淺底用深），不再用文字 JR */
.jr-editorial-account :is(.jr-editorial-sidebar-brand .jr-brand-logo,.m-side-brand-logo){
  width:auto!important;height:1.6rem!important;object-fit:contain!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;
  display:block!important;
}
.jr-editorial-account.m-shell .m-side-brand img.m-side-brand-logo.jr-brand-logo{
  width:auto!important;height:1.6rem!important;max-width:none!important;min-width:0!important;
}
.jr-editorial-account.jr-portal #portal-sidebar nav { padding:16px 0; }
.jr-editorial-account.jr-portal #portal-sidebar nav button,
.jr-editorial-account.jr-portal #portal-sidebar nav a,
.jr-editorial-account.m-shell .m-side-nav :is(a,button) {
  color:#e2e6da !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  border-inline-start:3px solid transparent !important;
  min-height:38px;
  padding:9px 12px !important;
  text-align:start;
  white-space:normal;
}
.jr-editorial-account.jr-portal #portal-sidebar nav button:is(.active,.bg-emerald-600),
.jr-editorial-account.m-shell .m-side-nav :is(.active,.is-active,.on) {
  background:#5e6c55 !important;
  border-inline-start-color:#dce1d0 !important;
  color:white !important;
}
.jr-editorial-account.jr-portal #portal-sidebar nav button:hover,
.jr-editorial-account.m-shell .m-side-nav :is(a,button):hover { background:#5e6c55 !important; }
.jr-editorial-account.jr-portal #portal-sidebar nav button i,
.jr-editorial-account.jr-portal #portal-sidebar nav a i { color:#cbd4c2 !important; }
.jr-editorial-account.jr-portal #portal-sidebar > div:last-child button { border-radius:0!important;background:transparent!important;color:#f6f5ed!important; }
.jr-editorial-account.jr-portal #portal-sidebar > div:last-child button.bg-emerald-600 { background:#5e6c55!important; }
.jr-editorial-account.jr-portal #portal-sidebar > div:last-child > div { border-radius:0!important;background:transparent!important;border-color:#7c8971!important; }
.jr-editorial-account.jr-portal .jr-editorial-account-actions { border-color:#7c8971!important; }
.jr-editorial-account.jr-portal .jr-editorial-account-actions > div { background:transparent!important;border-color:#7c8971!important; }
.jr-editorial-account.jr-portal .jr-editorial-account-actions button { background:transparent!important;color:#f6f5ed!important; }
.jr-editorial-account.jr-portal .jr-editorial-account-actions button.bg-emerald-600 { background:#5e6c55!important; }
.jr-editorial-account.jr-portal #portal-sidebar > .text-slate-300 { color:#d5ddcc!important; }
.jr-editorial-account.m-shell .m-side-foot {
  display:block!important;
  position:static !important;
  background:transparent !important;
  border-color:#7c8971 !important;
  color:#e2e6da !important;
}
.jr-editorial-account.m-shell .m-side-logout { display:inline-flex!important;align-items:center;width:auto!important;min-height:44px;margin-inline-end:16px;padding:0!important;border:0!important;background:transparent!important; }
.jr-editorial-account .m-side-foot :is(button,a,.m-side-user,.m-side-name) { color:inherit !important; }
.jr-editorial-account.jr-portal .jr-bar {
  background:var(--account-paper);
  box-shadow:none;
  border-color:var(--account-card-border);
}
.jr-editorial-account.jr-portal main { min-width:0; }
.jr-editorial-account.jr-portal main :is(.text-slate-400,.text-slate-500,.text-slate-600,.text-gray-500) { color:var(--account-muted)!important; }
.jr-editorial-account.jr-portal main .text-slate-300 { color:#bcc3b4!important; }
.jr-editorial-account :is(.border-slate-100,.border-slate-200,.border-slate-300) { border-color:var(--account-card-border)!important; }
.jr-editorial-account.jr-portal :is(.bg-white,.bg-slate-50,.bg-gray-50) {
  background-color:var(--account-paper)!important;
}
.jr-editorial-account.jr-portal :is([class*="shadow"],[class*="rounded"]) {
  box-shadow:none !important;
  border-radius:0!important;
}
.jr-editorial-account.jr-portal :is(.stat-card,.jr-report-card) {
  border:0 !important;
  border-top:1px solid var(--account-card-border)!important;
  background:transparent !important;
}
.jr-editorial-account.jr-portal .stat-card { padding:20px 16px !important; }
.jr-editorial-account :is(.btn-solid,.m-btn-primary,.m-btn,.jr-editorial-primary) {
  border-radius:0 !important;
  background:#4b5b43 !important;
  color:#fff !important;
  box-shadow:none !important;
}
.jr-editorial-account :is(.overflow-x-auto,.table-wrap,.m-table-wrap) {
  max-width:100%;
  overscroll-behavior-inline:contain;
}
.jr-editorial-account th { background:#eceee4 !important; color:#414c3b !important; }
.jr-editorial-account :is(th,td) { border-color:var(--account-card-border)!important; }
jr-account-calendar { display:block; color:#f6f5ed; padding:22px 0; border-bottom:1px solid #7c8971; }
.jr-account-date-month { display:flex;justify-content:space-between;align-items:baseline;font-family:var(--account-heading-font);font-size:22px; }
.jr-account-date-month small { font-size:13px;letter-spacing:.08em; }
.jr-account-date-day { font-family:var(--account-heading-font);font-size:84px;line-height:1.1; }
.jr-account-date-weekday { text-align:right;font-size:14px;margin-top:-8px;margin-bottom:24px; }
.jr-account-mini-calendar { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px 0;border-top:1px solid #7c8971;padding-top:12px; }
.jr-account-mini-calendar span { display:grid;place-items:center;min-height:25px;font:12px/1.5 var(--account-heading-font); }
.jr-account-mini-calendar .is-today { background:#e7e9dc;color:#4b5b43;border-radius:50%;width:25px;justify-self:center; }
.jr-account-home { padding:0; }
.jr-account-heading { line-height:1.35; }
.jr-account-section { line-height:1.4; }
.jr-account-home-header { padding-bottom:24px;border-bottom:1px solid #bcc3b4; }
.jr-next-booking { border-block:1px solid #bcc3b4;padding:24px 0 28px;margin-top:24px; }
.jr-booking-facts { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:24px 0; }
.jr-booking-facts > * { padding:0 24px;border-inline-start:1px solid #d5d8ca;min-width:0; }
.jr-booking-facts > :first-child { border-inline-start:0;padding-inline-start:0; }
.jr-account-history { margin:28px 0 44px; }
.jr-account-history :is(td,th) { padding:18px 8px;background:transparent!important; }
.jr-account-services { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px; }
.jr-account-service { display:block;border-top:1px solid #bcc3b4;padding:18px 0;text-align:start;background:transparent; }
@media(min-width:768px) {
  .jr-editorial-account.m-shell .member-menu-toggle { display:none!important; }
  .jr-editorial-account.m-shell .m-side-nav { display:flex!important;flex-direction:column; }
  .jr-editorial-account.m-shell .m-side-foot { display:block!important; }
  .jr-editorial-account.m-shell .m-sidebar:not(.menu-open) .m-side-nav { display:flex!important; }
  .jr-editorial-account.m-shell .m-sidebar:not(.menu-open) .m-side-foot { display:block!important; }
  .jr-editorial-account.jr-portal #portal-sidebar nav,.jr-editorial-account.m-shell .m-side-nav { flex:0 0 auto!important;overflow:visible!important; }
  .jr-editorial-account :is(jr-account-calendar,.m-side-brand,.jr-editorial-brand,.jr-editorial-sidebar-heading) { flex-shrink:0; }
  .jr-editorial-account.jr-portal .jr-bar { margin-inline-start:var(--editorial-sidebar);width:calc(100% - var(--editorial-sidebar)); }
  .jr-editorial-account.jr-portal .jr-bar > .jr-brand { display:none; }
  .jr-editorial-account.jr-portal #portal-sidebar,
  .jr-editorial-account.m-shell .m-sidebar {
    position:fixed!important;inset:0 auto 0 0!important;top:0!important;
    width:var(--editorial-sidebar)!important;height:100dvh!important;max-height:100dvh!important;
    overflow-y:auto;
  }
  .jr-editorial-account.jr-portal #portal-sidebar ~ main { margin-inline-start:var(--editorial-sidebar); }
  .jr-editorial-account.m-shell { width:100%!important;max-width:none!important;margin:0!important;padding:0!important; }
  .jr-editorial-account.m-shell .m-content { margin-inline-start:var(--editorial-sidebar);min-width:0;padding:36px 44px!important; }
  .jr-editorial-account.m-shell .m-side-nav { padding-top:18px; }
  .jr-editorial-account .jr-editorial-main { padding:30px 44px!important; }
}
@media(min-width:768px) and (max-width:1100px) {
  .jr-editorial-account { --editorial-sidebar:220px; }
  .jr-editorial-account.m-shell .m-content,.jr-editorial-account .jr-editorial-main { padding:24px!important; }
  .jr-editorial-account.jr-portal #portal-sidebar,.jr-editorial-account.m-shell .m-sidebar { padding:18px!important; }
  .jr-booking-facts { grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 0; }
  .jr-booking-facts > :nth-child(odd) { border-inline-start:0;padding-inline-start:0; }
  .jr-account-services { grid-template-columns:1fr;gap:16px; }
}
@media(max-width:767px) {
  body:has(.jr-editorial-account .m-sidebar.menu-open),body.jr-editorial-account:has(#portal-sidebar.translate-x-0) { overflow:hidden; }
  .jr-editorial-account.m-shell .m-sidebar:not(.menu-open),.jr-editorial-account #portal-sidebar.-translate-x-full { visibility:hidden; }
  .jr-editorial-account.m-shell { margin:0!important;padding:0!important;width:100%!important;max-width:none!important; }
  .jr-editorial-account .jr-member-mobilebar { display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:12px 16px;border-bottom:1px solid #d5d8ca;background:#f6f5ed; }
  .jr-member-mobilebrand { display:flex;align-items:center;gap:10px;font-family:var(--account-heading-font); }
  .jr-member-mobilebrand .jr-brand-logo { display:block;width:auto;height:1.75rem;object-fit:contain; }
  .jr-member-mobilebrand small { display:block;font:10px/1.4 var(--account-body-font); }
  .jr-editorial-account .jr-member-menu-mask { display:block;position:fixed;inset:0;background:#0006;z-index:100; }
  .jr-editorial-account.m-shell .m-sidebar { position:fixed!important;inset:0 auto 0 0!important;height:100dvh!important;max-height:100dvh!important;width:min(300px,calc(100vw - 40px))!important;z-index:101!important;transform:translateX(-100%);overflow-y:auto; }
  .jr-editorial-account.m-shell .m-sidebar.menu-open { transform:translateX(0); }
  .jr-editorial-account.m-shell .m-sidebar .member-menu-toggle { color:#f6f5ed!important; }
  .jr-editorial-account.m-shell .m-sidebar.menu-open .m-side-nav { display:flex!important;flex-direction:column!important;overflow-y:auto;min-height:0; }
  .jr-editorial-account.m-shell .m-content { width:100%!important; }
  .jr-editorial-account.jr-portal #portal-sidebar { width:min(300px,calc(100vw - 40px))!important; }
  .jr-editorial-account.jr-portal #portal-sidebar jr-account-calendar { display:none; }
  .jr-editorial-account.m-shell .m-sidebar { padding:16px!important; }
  .jr-editorial-account.m-shell .m-sidebar jr-account-calendar { display:none; }
  .jr-editorial-account.m-shell .m-side-brand { border:0!important;padding:0!important; }
  .jr-editorial-account.m-shell .m-content { margin:0!important;padding:24px 16px!important; }
  .jr-editorial-account .jr-editorial-main { padding:20px 16px!important; }
  .jr-booking-facts { grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 0; }
  .jr-booking-facts > * { padding:0 12px; }
  .jr-booking-facts > :nth-child(odd) { border-inline-start:0;padding-inline-start:0; }
  .jr-account-services { grid-template-columns:minmax(0,1fr);gap:16px; }
}
@media print {
  .jr-editorial-account :is(.jr-editorial-content,.m-content) { margin:0!important;width:100%!important; }
  .jr-member-mobilebar,.jr-member-menu-mask { display:none!important; }
}
@media print {
  .jr-editorial-account :is(#portal-sidebar,.m-sidebar,.jr-bar) { display:none!important; }
  .jr-editorial-account.m-shell .m-content,.jr-editorial-account.jr-portal #portal-sidebar ~ main { margin:0!important; }
}
.jr-editorial-account.m-shell .m-side-nav button { font-weight:400!important; }
.jr-editorial-account.m-shell .m-side-nav button i { color:#dbe2d3!important; }
.jr-editorial-account.m-shell .m-side-brand h1 { color:#f6f5ed!important;font-weight:500!important; }
.jr-editorial-account.m-shell .m-side-brand small { color:#e2e6da!important; }
.jr-editorial-account.m-shell .m-side-user :is(b,span) { color:#f6f5ed!important; }
.jr-editorial-account .jr-account-home :is(h2,h3) { font-weight:500!important; }
.jr-editorial-account .jr-account-section > h3 { font-size:22px;margin-bottom:18px; }
.jr-editorial-sidebar-heading { padding:0 0 12px!important; border:0!important; }
.jr-editorial-sidebar-brand { flex-basis:100%; width:100%; }
.jr-editorial-account .jr-account-heading { font-size:inherit; padding-bottom:22px; border-bottom:1px solid #bcc3b4; }
.jr-editorial-account .jr-account-heading h2 { font-size:30px; margin:16px 0 10px; }
.jr-account-breadcrumb { font:12px/1.5 var(--account-body-font); color:var(--account-muted); }
.jr-account-heading > p:last-child { font:14px/1.6 var(--account-body-font); color:var(--account-muted); }
.jr-editorial-account .jr-account-section { font-size:inherit; margin-top:28px; }
.jr-account-section-heading { display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap; }
.jr-account-section-heading h3 { font-size:22px; }
.jr-account-section-heading > span { font-size:12px;color:var(--account-muted); }
.jr-booking-facts dt { font-size:12px;color:var(--account-muted);margin-bottom:8px; }
.jr-booking-facts dd { margin:0;font:26px/1.5 var(--account-heading-font);overflow-wrap:anywhere; }
.jr-booking-action { display:flex;justify-content:flex-end;align-items:center;gap:20px;flex-wrap:wrap; }
.jr-account-primary { background:#4b5b43!important;color:#fff!important;border:0;border-radius:0!important;padding:12px 18px;display:inline-flex;gap:32px;align-items:center; }
.jr-account-link { background:transparent;border:0;color:#4b5b43;padding:8px 0;font-size:13px; }
.jr-account-service > span { display:flex;justify-content:space-between;gap:12px;font:20px/1.5 var(--account-heading-font); }
.jr-account-service small { display:block;color:var(--account-muted);font-size:13px;margin-top:10px; }
.jr-account-empty { padding:24px 0;color:var(--account-muted); }
.jr-account-history > button,.jr-account-history > div { display:grid;grid-template-columns:1fr 2fr 1fr auto;gap:16px;border-bottom:1px solid #d5d8ca;padding:18px 4px;width:100%;text-align:start;background:transparent; }
.m-grid { display:block!important; }
@media(min-width:768px) {
  .jr-editorial-account .jr-editorial-content { margin-inline-start:var(--editorial-sidebar);width:calc(100% - var(--editorial-sidebar)); }
  .jr-editorial-account.m-shell .m-content { width:calc(100% - var(--editorial-sidebar)); }
}
@media(max-width:767px) {
  .jr-editorial-account .jr-account-heading h2 { font-size:25px; }
  .jr-booking-facts dd { font-size:21px; }
  .jr-account-history > button,.jr-account-history > div { grid-template-columns:1fr 1fr;gap:8px; }
}

/* ─── 色彩收斂：米白底、深綠主文字、灰綠次要字、統一框線與按鈕 ───
   僅作用於會員／醫師／櫃檯／管理員嘅主內容區，深綠側欄（白字）不受影響。 */
/* 只收斂真正的文字「顏色」class，唔好碰 text-sm / text-lg / text-center / font-mono
   呢啲尺寸、對齊、字型 class —— 否則會令深底白字框同特殊字型被誤改。 */
 .jr-editorial-account .jr-editorial-main :is([class*="text-slate-"],[class*="text-gray-"],[class*="text-zinc-"],[class*="text-neutral-"],[class*="text-stone-"],[class*="text-red-"],[class*="text-orange-"],[class*="text-amber-"],[class*="text-yellow-"],[class*="text-lime-"],[class*="text-green-"],[class*="text-emerald-"],[class*="text-teal-"],[class*="text-cyan-"],[class*="text-sky-"],[class*="text-blue-"],[class*="text-indigo-"],[class*="text-violet-"],[class*="text-purple-"],[class*="text-fuchsia-"],[class*="text-pink-"],[class*="text-rose-"]):not([class*="text-white"]):not(.peer):not([class*="text-white"] *),
.jr-editorial-account.m-shell .m-content :is([class*="text-slate-"],[class*="text-gray-"],[class*="text-zinc-"],[class*="text-neutral-"],[class*="text-stone-"],[class*="text-red-"],[class*="text-orange-"],[class*="text-amber-"],[class*="text-yellow-"],[class*="text-lime-"],[class*="text-green-"],[class*="text-emerald-"],[class*="text-teal-"],[class*="text-cyan-"],[class*="text-sky-"],[class*="text-blue-"],[class*="text-indigo-"],[class*="text-violet-"],[class*="text-purple-"],[class*="text-fuchsia-"],[class*="text-pink-"],[class*="text-rose-"]):not([class*="text-white"]):not(.peer):not([class*="text-white"] *) {
  color: var(--account-text) !important;
}
/* 統一舊品牌棕/紫/藍 inline 文字色，但保留深底白字（gradient / #fff / white）唔好改。
   呢個解決分流答案、推薦卡標題、會員編號等「唔同色」問題。 */
 .jr-editorial-account .jr-editorial-main :is([style*="color:var(--p"],[style*="color:var(--m"],[style*="color:var(--i"]):not([style*="#fff"]):not([style*="white"]):not([style*="gradient"]),
.jr-editorial-account.m-shell .m-content :is([style*="color:var(--p"],[style*="color:var(--m"],[style*="color:var(--i"]):not([style*="#fff"]):not([style*="white"]):not([style*="gradient"]) {
  color: var(--account-text) !important;
}
 .jr-editorial-account .jr-editorial-main :is([class*="text-slate-4"],[class*="text-slate-5"],[class*="text-slate-6"],[class*="text-gray-4"],[class*="text-gray-5"],[class*="text-gray-6"],[class*="text-zinc-4"],[class*="text-zinc-5"]),
.jr-editorial-account.m-shell .m-content :is([class*="text-slate-4"],[class*="text-slate-5"],[class*="text-slate-6"],[class*="text-gray-4"],[class*="text-gray-5"],[class*="text-gray-6"],[class*="text-zinc-4"],[class*="text-zinc-5"]) {
  color: var(--account-muted) !important;
}
 .jr-editorial-account .jr-editorial-main [class*="border-"]:not(.peer),
.jr-editorial-account.m-shell .m-content [class*="border-"]:not(.peer) {
  border-color: var(--account-card-border) !important;
}
 .jr-editorial-account .jr-editorial-main :is([class*="bg-slate-"],[class*="bg-gray-"],[class*="bg-zinc-"],[class*="bg-neutral-"],[class*="bg-red-"],[class*="bg-orange-"],[class*="bg-amber-"],[class*="bg-yellow-"],[class*="bg-lime-"],[class*="bg-green-"],[class*="bg-emerald-"],[class*="bg-teal-"],[class*="bg-cyan-"],[class*="bg-sky-"],[class*="bg-blue-"],[class*="bg-indigo-"],[class*="bg-violet-"],[class*="bg-purple-"],[class*="bg-fuchsia-"],[class*="bg-pink-"],[class*="bg-rose-"],[class*="bg-white"]):not(.peer):not(td):not(th):not([class*="after:"]):not([class*="peer-checked"]):not(button):not([role="button"]):not(a):not([class*="text-white"]):not([class*="text-emerald-100"]):not([class*="text-blue-100"]):not([class*="text-green-100"]):not([class*="text-purple-100"]):not([class*="text-slate-100"]),
.jr-editorial-account.m-shell .m-content :is([class*="bg-slate-"],[class*="bg-gray-"],[class*="bg-zinc-"],[class*="bg-neutral-"],[class*="bg-red-"],[class*="bg-orange-"],[class*="bg-amber-"],[class*="bg-yellow-"],[class*="bg-lime-"],[class*="bg-green-"],[class*="bg-emerald-"],[class*="bg-teal-"],[class*="bg-cyan-"],[class*="bg-sky-"],[class*="bg-blue-"],[class*="bg-indigo-"],[class*="bg-violet-"],[class*="bg-purple-"],[class*="bg-fuchsia-"],[class*="bg-pink-"],[class*="bg-rose-"],[class*="bg-white"]):not(.peer):not(td):not(th):not([class*="after:"]):not([class*="peer-checked"]):not(button):not([role="button"]):not(a):not([class*="text-white"]):not([class*="text-emerald-100"]):not([class*="text-blue-100"]):not([class*="text-green-100"]):not([class*="text-purple-100"]):not([class*="text-slate-100"]) {
  background-color: var(--account-paper) !important;
}
/* 只收斂「實色」動作按鈕。之前用 [class*="bg-"] 會連 hover:bg-slate-50、
   bg-white、bg-slate-100 呢啲淺底掣都變成深綠，令下面深綠字睇唔到。
   改用精確 class 比對：只有 500/600/700/800/900 同黑底先轉品牌深綠。 */
 .jr-editorial-account .jr-editorial-main :is(button,[role="button"],a):is([class~="bg-amber-500"],[class~="bg-amber-600"],[class~="bg-black"],[class~="bg-blue-500"],[class~="bg-blue-600"],[class~="bg-emerald-500"],[class~="bg-emerald-600"],[class~="bg-green-500"],[class~="bg-green-600"],[class~="bg-indigo-500"],[class~="bg-indigo-600"],[class~="bg-orange-500"],[class~="bg-purple-500"],[class~="bg-purple-600"],[class~="bg-red-500"],[class~="bg-red-600"],[class~="bg-rose-500"],[class~="bg-rose-600"],[class~="bg-sky-500"],[class~="bg-sky-600"],[class~="bg-slate-600"],[class~="bg-slate-700"],[class~="bg-slate-800"],[class~="bg-slate-900"],[class~="bg-teal-500"],[class~="bg-teal-600"],[class~="bg-violet-600"]):not([class*="peer"]):not(.aspect-square),
.jr-editorial-account.m-shell .m-content :is(button,[role="button"],a):is([class~="bg-amber-500"],[class~="bg-amber-600"],[class~="bg-black"],[class~="bg-blue-500"],[class~="bg-blue-600"],[class~="bg-emerald-500"],[class~="bg-emerald-600"],[class~="bg-green-500"],[class~="bg-green-600"],[class~="bg-indigo-500"],[class~="bg-indigo-600"],[class~="bg-orange-500"],[class~="bg-purple-500"],[class~="bg-purple-600"],[class~="bg-red-500"],[class~="bg-red-600"],[class~="bg-rose-500"],[class~="bg-rose-600"],[class~="bg-sky-500"],[class~="bg-sky-600"],[class~="bg-slate-600"],[class~="bg-slate-700"],[class~="bg-slate-800"],[class~="bg-slate-900"],[class~="bg-teal-500"],[class~="bg-teal-600"],[class~="bg-violet-600"]):not([class*="peer"]):not(.aspect-square) {
  background-color: var(--account-moss) !important;
  color: #fff !important;
}
.jr-editorial-account .jr-editorial-main :is([class*="ring-emerald"],[class*="ring-green"],[class*="ring-blue"],[class*="ring-red"],[class*="ring-amber"],[class*="ring-purple"]):not([class*="peer-focus"]):not(td),
.jr-editorial-account.m-shell .m-content :is([class*="ring-emerald"],[class*="ring-green"],[class*="ring-blue"],[class*="ring-red"],[class*="ring-amber"],[class*="ring-purple"]):not([class*="peer-focus"]):not(td) {
  --tw-ring-color: var(--account-moss) !important;
}
 .jr-editorial-account .jr-editorial-main :is(.text-red-500,.text-red-600,.text-red-700,.text-green-600,.text-green-700,.text-emerald-500,.text-emerald-600,.text-emerald-700,.text-amber-500,.text-amber-600,.text-amber-700,.text-purple-500,.text-purple-700,.text-indigo-500,.text-green-700):not(.peer),
.jr-editorial-account.m-shell .m-content :is(.text-red-500,.text-red-600,.text-red-700,.text-green-600,.text-green-700,.text-emerald-500,.text-emerald-600,.text-emerald-700,.text-amber-500,.text-amber-600,.text-amber-700,.text-purple-500,.text-purple-700,.text-indigo-500,.text-green-700):not(.peer) {
  color: var(--account-text) !important;
}


/* ─── 常見問題：右下角懸浮按鈕 + 右側滑出面板 ───
   會員頁平日全寬，不保留 340px 固定右欄；需要時先由右下角按鈕喚出。 */
.jr-faq-mask { position:fixed; inset:0; z-index:1200; background:rgba(28,34,26,.42); backdrop-filter:blur(2px); }
.jr-faq-drawer {
  position:fixed; z-index:1201; top:0; right:0; bottom:0;
  width:min(400px,92vw); max-width:none; margin:0; padding:0;
  display:flex; flex-direction:column;
  background:var(--account-paper)!important;
  border:0!important; border-inline-start:1px solid var(--account-card-border)!important;
  border-radius:0!important; box-shadow:-18px 0 50px -30px rgba(20,30,18,.5)!important;
  color:var(--account-text)!important;
}
.jr-faq-drawer-head {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:22px 24px; border-bottom:1px solid var(--account-card-border);
  flex-shrink:0;
}
.jr-faq-drawer-head h4 {
  margin:0; font-family:var(--account-heading-font); font-size:22px; font-weight:500;
  color:var(--account-text)!important; display:flex; align-items:center;
}
.jr-faq-drawer-head h4 i { color:var(--account-moss)!important; }
.jr-faq-close {
  flex-shrink:0; width:36px; height:36px; display:grid; place-items:center;
  border:1px solid var(--account-card-border)!important; border-radius:0!important;
  background:transparent!important; color:var(--account-moss)!important;
  font-size:15px; cursor:pointer;
}
.jr-faq-close:hover { background:var(--account-card-border)!important; }
.jr-faq-drawer-body {
  flex:1; min-height:0; overflow-y:auto; padding:20px 24px 36px;
}
.jr-faq-drawer-body .m-aside-card {
  background:transparent!important; border:0!important; border-radius:0!important;
  box-shadow:none!important; padding:0!important; margin:0!important;
}
.jr-editorial-account.m-shell .m-content .jr-faq-fab,
.jr-faq-fab {
  position:fixed; z-index:1190; right:24px; bottom:24px;
  width:56px; height:56px; display:grid; place-items:center;
  border:0!important; border-radius:50%!important;
  background:var(--account-moss)!important; color:#fff!important;
  font-size:20px; cursor:pointer;
  box-shadow:0 12px 28px -10px rgba(30,45,25,.6)!important;
  transition:transform .2s ease, background .2s ease;
}
.jr-faq-fab:hover { transform:translateY(-2px); }
@media(max-width:767px) {
  .jr-faq-drawer { width:100vw; }
  .jr-faq-fab { right:18px; bottom:18px; }
}

/* ─── 主要操作按鈕：深綠底白字，避免被舊棕 gradient / 通用方角規則影響 ─── */
.jr-editorial-account.m-shell .jr-primary-btn {
  display:inline-block; padding:11px 20px;
  background:var(--account-moss)!important; color:#fff!important;
  border:0!important; border-radius:2px!important; box-shadow:none!important;
  font-weight:700; cursor:pointer; transition:background .2s ease;
}
.jr-editorial-account.m-shell .jr-primary-btn:hover { background:#3a4a33!important; }
.jr-editorial-account.m-shell .jr-primary-btn:disabled { opacity:.55; cursor:not-allowed; }

/* ─── 可讀性保障：避免「淺底淺字」同「灰字太淡」令內容睇唔到 ───
   1) 會員頁所有次要灰字統一加深到 #59624f（對比 5.85，達 WCAG AA）
   2) 天氣／節氣彈窗「我知道了」掣：還原深綠底白字，
      避開 .weather-modal .rounded-lg 同收斂規則誤改底色。 */
.jr-editorial-account.m-shell .m-content :is(.text-gray-300,.text-gray-400,.text-gray-500,.text-slate-300,.text-slate-400,.text-slate-500,.text-zinc-400,.text-zinc-500) {
  color: var(--account-muted) !important;
}
.jr-editorial-account.m-shell .m-content .jr-account-breadcrumb,
.jr-editorial-account.m-shell .m-content .jr-account-section-heading > span,
.jr-editorial-account.m-shell .m-content .jr-booking-facts dt,
.jr-editorial-account.m-shell .m-content .jr-account-service small,
.jr-editorial-account.m-shell .m-content .jr-account-empty {
  color: var(--account-muted) !important;
}
/* 彈窗確認掣：不論有冇 rounded-lg，一律深綠底白字，平時就清晰可見 */
.jr-editorial-account.m-shell .m-overlay .weather-modal > button,
.jr-editorial-account.m-shell .m-overlay .weather-modal .m-btn-primary,
.jr-editorial-account.m-shell .m-overlay .m-modal > button.w-full.rounded-lg,
.jr-editorial-account.m-shell .m-overlay button.w-full.rounded-lg.text-white {
  background: var(--account-moss) !important;
  background-image: none !important;
  color: #fff !important;
  border: 0 !important;
  opacity: 1 !important;
}
.jr-editorial-account.m-shell .m-overlay .weather-modal > button:hover,
.jr-editorial-account.m-shell .m-overlay button.w-full.rounded-lg.text-white:hover {
  background: #3a4a33 !important;
  background-image: none !important;
}

/* ─── 醫師時段管理：醫師名篩選掣（唔好被通用按鈕收斂規則變成全部深綠） ─── */
.jr-editorial-account.jr-doctor .jr-editorial-main button.jr-doctor-filter-chip {
  background: var(--account-paper) !important;
  color: var(--account-text) !important;
  border-color: var(--account-card-border) !important;
}
.jr-editorial-account.jr-doctor .jr-editorial-main button.jr-doctor-filter-chip:hover {
  border-color: var(--account-moss) !important;
}
.jr-editorial-account.jr-doctor .jr-editorial-main button.jr-doctor-filter-chip.is-active {
  background: var(--account-moss) !important;
  color: #fff !important;
  border-color: var(--account-moss) !important;
}

/* ─── 醫師時段管理日曆：還原米白底，唔好被通用深綠按鈕規則變成深底白字 ───
   日曆每格係 <button> 且帶 hover:bg-emerald-50，會被 button[class*=bg-]
   通用規則誤判成深綠底白字。呢度用更高優先級還原：
   一般格 = 米白底深綠字；選中範圍 = 淡米色底 + 深綠框（保留視覺提示）。 */
.jr-editorial-account.jr-doctor .jr-editorial-main .grid button.aspect-square {
  background: var(--account-paper) !important;
  background-image: none !important;
  color: var(--account-text) !important;
  border-color: var(--account-card-border) !important;
}
.jr-editorial-account.jr-doctor .jr-editorial-main .grid button.aspect-square.bg-emerald-50,
.jr-editorial-account.jr-doctor .jr-editorial-main .grid button.aspect-square[class*="border-emerald-500"] {
  background: var(--account-cream) !important;
  border: 2px solid var(--account-moss) !important;
  color: var(--account-text) !important;
}
.jr-editorial-account.jr-doctor .jr-editorial-main .grid button.aspect-square:hover {
  border-color: var(--account-moss) !important;
}
/* 格內預約標記：避免被收斂成米白底而消失，改深綠框＋淡底＋深綠字 */
.jr-editorial-account.jr-doctor .jr-editorial-main .grid button.aspect-square button.bg-rose-50 {
  background: var(--account-paper) !important;
  color: var(--account-text) !important;
  border-color: var(--account-sage) !important;
}

/* ─── 統一「返回上一頁」：右側二級畫面必備，米白底、鼠尾草綠箭頭 ───
   放喺各帳戶主內容頂部；drill-down（家庭帳戶／健康檔案）另有專用返回掣。
   用 !important 防止被上面通用按鈕收斂規則改成深底白字。 */
.jr-editorial-account .jr-page-back,
.jr-editorial-account.m-shell .jr-page-back {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
}
.jr-editorial-account .jr-page-back button,
.jr-editorial-account.m-shell .jr-page-back button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px !important;
  border: 1px solid var(--account-card-border) !important;
  border-radius: var(--account-control-radius) !important;
  background: var(--account-card) !important;
  background-image: none !important;
  color: var(--account-text) !important;
  font: 500 13px/1 var(--account-body-font) !important;
  box-shadow: none !important;
  cursor: pointer;
}
.jr-editorial-account .jr-page-back button:hover,
.jr-editorial-account.m-shell .jr-page-back button:hover {
  background: var(--account-nav-hover) !important;
  color: var(--ink) !important;
}
.jr-editorial-account .jr-page-back button i,
.jr-editorial-account.m-shell .jr-page-back button i {
  color: var(--account-sage) !important;
  font-size: 13px;
}
.jr-editorial-account .jr-page-back--inner {
  margin: 0 0 14px;
}
@media (max-width: 767px) {
  .jr-editorial-account .jr-page-back,
  .jr-editorial-account.m-shell .jr-page-back {
    margin-bottom: 14px;
  }
  .jr-editorial-account .jr-page-back button,
  .jr-editorial-account.m-shell .jr-page-back button {
    min-height: 44px;
  }
}

/* 健康档案详情「返回列表」：浅底深字，唔好被通用深绿按钮规则变成深底白字 */
.jr-editorial-account .jr-hf-back {
  background: transparent !important;
  background-image: none !important;
  color: var(--account-text) !important;
  border: 0 !important;
  box-shadow: none !important;
  font: 500 12px/1 var(--account-body-font) !important;
  padding: 6px 8px !important;
  min-height: 32px;
  cursor: pointer;
}
.jr-editorial-account .jr-hf-back:hover {
  background: var(--account-nav-hover) !important;
  color: var(--ink) !important;
}

/* ─── 客人／家庭帳戶桌面通知鈴鐺：側欄品牌區常駐 ───
   手機（≤767px）沿用頂部 .jr-member-mobilebar 嘅鈴鐺，呢個側欄版收埋，避免重複。 */
.jr-editorial-account.m-shell .m-side-brand .jr-member-bell--side {
  width:36px;
  height:36px;
  margin-inline-start:auto;
  background:transparent !important;
  background-image:none !important;
  border:1px solid rgba(246,245,237,.38) !important;
  border-radius:0 !important;
  box-shadow:none !important;
  color:#f6f5ed !important;
  font-size:.95rem;
}
.jr-editorial-account.m-shell .m-side-brand .jr-member-bell--side i {
  color:inherit !important;
}
.jr-editorial-account.m-shell .m-side-brand .jr-member-bell--side:hover {
  background:#5e6c55 !important;
  color:#fff !important;
}
@media(max-width:767px) {
  .jr-editorial-account.m-shell .m-side-brand .jr-member-bell--side {
    display:none !important;
  }
}

/* Member identity and the compact weather bulletin share the clinic palette. */
.jr-avatar-editor, .jr-weather {
  box-sizing:border-box; background:#fcfbf6; color:#29392f;
  border:1px solid #d2d9cb; border-radius:18px; padding:clamp(18px,3vw,30px);
}
.jr-avatar-editor header, .jr-avatar-editor footer, .jr-weather-heading, .jr-weather-reading {
  display:flex; align-items:center; gap:16px;
}
.jr-avatar-editor .jr-avatar-portrait {
  display:grid; place-items:center; flex:0 0 72px; width:72px; height:72px;
  border-radius:50%; background:#e4ecdd; border:3px solid white; box-shadow:0 0 0 1px #b9c9b5;
  object-fit:cover; font-size:36px;
}
.jr-avatar-editor h3, .jr-weather h3 { margin:0; font:600 1.35rem/1.3 Georgia,"Songti TC",serif; }
.jr-avatar-editor header p { margin:5px 0 0; color:#56644f; font-size:.9rem; }
.jr-avatar-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(42px,1fr)); gap:6px; margin:20px 0; }
.jr-avatar-options button { min-height:44px; font-size:23px; border:1px solid #d9dfd4; border-radius:10px; background:#fff; }
.jr-avatar-options button[aria-pressed=true] { background:#e0ead9; border-color:#48684b; box-shadow:inset 0 0 0 1px #48684b; }
.jr-avatar-editor footer { border-top:1px solid #d9dfd4; padding-top:14px; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.jr-avatar-editor footer :is(label,button), .jr-weather-confirm {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:9px 18px;
  border:1px solid #50664f; border-radius:9px; background:#334e3a; color:white; cursor:pointer;
}
.jr-avatar-editor footer label { background:transparent; color:#334e3a; }
.jr-avatar-editor label:focus-within { outline:2px solid #48684b; outline-offset:2px; }
.jr-weather { width:min(410px,calc(100% - 32px)); max-height:calc(100dvh - 40px); overflow:auto; box-shadow:0 18px 64px #16221840; }
.jr-weather-heading { justify-content:space-between; padding-bottom:14px; border-bottom:1px solid #ccd6c7; margin-bottom:16px; }
.jr-weather-heading h3 i { margin-right:9px; color:#5e7655; }
.jr-weather-heading button { border:0; border-radius:50%; background:#edf0e7; color:#304330; width:36px; height:36px; font-size:24px; }
.jr-weather-reading { justify-content:space-between; background:#e8efe2; padding:16px; border-radius:12px; margin-bottom:14px; }
.jr-weather-reading strong,.jr-member-price,.aq-family-price { font-family:Georgia,"Times New Roman",serif; font-variant-numeric:lining-nums tabular-nums; }
.jr-weather-reading strong { font-size:3rem; line-height:1; font-weight:500; }
.jr-weather-reading strong small { font-size:1.15rem; vertical-align:top; }
.jr-weather-reading div { text-align:right; }.jr-weather-reading small { color:#455843; }
.jr-weather .weather-tips { padding:12px 0; }.jr-weather .weather-tips-head { font-weight:600; }.jr-weather .weather-tips-list li { gap:6px; margin:6px 0; }
/* 🍃🎊 節氣／節日祝賀（合併入天氣彈窗） */
.jr-weather-solar { border-left:3px solid #6d876f; padding:8px 12px; margin:12px 0; background:#eff4ed; color:#304d38; border-radius:0 8px 8px 0; }
.jr-weather-solar h4 { font-weight:600; font-size:.92rem; margin:0 0 4px; display:flex; align-items:center; gap:6px; }
.jr-weather-solar p { margin:4px 0; font-size:.88rem; line-height:1.6; }
.jr-weather-solar button { text-decoration:underline; }
.jr-weather-holiday { border-left-color:#b89b5e; background:#f8f4ea; color:#5c4d2e; }
.jr-weather-bless { display:block; margin-top:4px; opacity:.9; white-space:pre-line; }
.jr-weather-confirm { width:100%; }
.jr-member-code, .jr-account-mini-calendar { font-family:"SF Mono",Menlo,monospace; font-variant-numeric:tabular-nums; }
.jr-member-code { letter-spacing:.055em; color:#354b39; }
#guest-booking-panel > div { width:100%; min-width:0; box-sizing:border-box; }
#guest-booking-panel .grid > * { min-width:0; }
@media(max-width:639px) {
  #guest-booking-panel { width:100%; min-width:0; padding-inline:0; }
  #guest-booking-panel > div { padding-inline:16px !important; }
  #guest-booking-panel .calendar-day { min-width:0; flex-direction:column; padding:2px; font-variant-numeric:tabular-nums; }
  #guest-booking-panel .m-step-line { min-width:0; }
}
.jr-editorial-account.m-shell .jr-avatar-options button { border-radius:12px!important; }
.jr-editorial-account.m-shell .jr-avatar-editor footer button { border-radius:9px!important; }
.jr-avatar-editor footer button:disabled { opacity:.55; cursor:default; }
@media(max-width:639px) {
  .jr-avatar-options { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
