/* dentalchat.live test system: WhatsApp-style chat UI */
:root {
  --accent: #0B6E79;
  --accent-dark: #08545C;
  --accent-soft: #E3F1EF;
  --out: #D5EFEB;
  --in: #FFFFFF;
  --ink: #111B21;
  --muted: #4F5F68;
  --line: #E3E8E6;
  --panel: #F0F2F1;
  --bg: #FFFFFF;
  --wall: #E9EDEB;
  --green: #1A7A43;
  --online: #1FA855;
  --danger: #B42318;
  --shadow: 0 6px 24px rgba(17, 27, 33, 0.18);
  --radius: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--panel);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }

/* ---------- shared ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 21px; border: 1px solid #C9D2CF;
  background: #FFFFFF; font-weight: 600; font-size: 14.5px;
}
.btn:hover { background: #F6F8F7; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-danger { color: var(--danger); }
.btn.small { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }
.icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.icon-btn:hover { background: rgba(17, 27, 33, 0.06); }
.icon-btn.on { color: var(--accent); }
.avatar {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: var(--s, 49px); height: var(--s, 49px); border-radius: 50%; color: #FFFFFF; font-weight: 700;
  font-size: calc(var(--s, 49px) * 0.34); letter-spacing: 0.3px; user-select: none;
}
.avatar .dot {
  position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; min-width: 11px; min-height: 11px;
  border-radius: 50%; background: var(--online); border: 2px solid #FFFFFF;
}
.avatar.ring { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--accent); }
.avatar.ring.seen { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #B7C3BF; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green); color: #FFFFFF;
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.badge.muted { background: #8696A0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13.5px; font-weight: 600; }
.input, .textarea, .select {
  width: 100%; border: 1px solid #C9D2CF; border-radius: 10px; padding: 0 12px; height: 44px; background: #FFFFFF; font-size: 15px;
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 90px; line-height: 1.4; }
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.err { color: var(--danger); font-size: 13.5px; }
.test-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; color: #7A4A00; background: #FDECC8; border-radius: 6px; padding: 3px 7px; }
.toggle { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; cursor: pointer; }
.toggle input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.toggle span { display: flex; flex-direction: column; gap: 2px; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.spinner { width: 22px; height: 22px; border: 3px solid #CFD8D5; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: #1F2C33; color: #FFFFFF; padding: 10px 16px; border-radius: 10px; font-size: 14px; transition: 0.2s; z-index: 200; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- public pages ---------- */
.pub { min-height: 100%; background: #F3F5F4; }
.pub-head {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, calc((100% - 1180px) / 2)); background: #FFFFFF; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.2px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.pub-body { max-width: 1180px; margin: 0 auto; padding: 28px 16px 60px; display: flex; flex-direction: column; gap: 22px; }
.pub-hero h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.5px; line-height: 1.15; }
.pub-hero p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; max-width: 640px; }
.pub-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pub-points span { display: inline-flex; align-items: center; gap: 6px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 6px 12px; font-size: 13px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); margin: 18px 0 10px; }
.section-title:first-child { margin-top: 0; }
.section-title .live { width: 8px; height: 8px; border-radius: 50%; background: var(--online); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.side .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.ccard {
  position: relative; display: flex; flex-direction: column; width: 100%; min-height: 196px; padding: 0; text-align: left;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.ccard:hover { border-color: #B7C9C5; box-shadow: 0 2px 10px rgba(17, 27, 33, 0.07); }
.ccard.offline .cc-top { filter: grayscale(0.6); }
.cc-top { position: relative; height: 48px; display: flex; justify-content: space-between; align-items: flex-start; padding: 7px 8px; }
.cc-cc { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: #24423F; background: #FFFFFF; border-radius: 5px; padding: 2px 6px; }
.cc-rate { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; background: #FFFFFF; border-radius: 10px; padding: 2px 7px; }
.cc-rate small { font-weight: 500; color: var(--muted); font-size: 11px; }
.cc-av { position: absolute; left: 10px; bottom: -22px; box-shadow: 0 0 0 3px #FFFFFF; border-radius: 50%; }
.cc-body { display: flex; flex-direction: column; gap: 3px; padding: 28px 10px 10px; flex: 1; min-width: 0; }
.cc-name { display: flex; align-items: flex-start; gap: 4px; font-size: 14px; font-weight: 700; line-height: 1.25; }
.cc-name span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cc-name svg { margin-top: 2px; color: var(--accent); }
.cc-line { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 6px; font-size: 12px; align-items: center; }
.cc-foot .on { color: var(--green); font-weight: 600; }
.cc-foot .off { color: var(--muted); }
.cc-foot b { white-space: nowrap; }
.cc-info { position: absolute; right: 6px; bottom: 34px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--panel); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }

.login-wrap { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: #F3F5F4; }
.login-card { width: 440px; max-width: 100%; background: #FFFFFF; border-radius: 18px; padding: 26px 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.login-card h1 { margin: 0; font-size: 22px; letter-spacing: -0.3px; }
.acct-list { display: flex; flex-direction: column; gap: 4px; max-height: 330px; overflow-y: auto; margin: 0 -8px; }
.acct { display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; background: none; border-radius: 10px; text-align: left; width: 100%; }
.acct:hover { background: var(--panel); }
.acct span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.acct small { color: var(--muted); font-size: 12.5px; }
.acct-group { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; padding: 8px 8px 2px; }

/* ---------- app layout ---------- */
.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg); }
.side { flex: 0 0 410px; width: 410px; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid #D9DFDD; background: #FFFFFF; }
.main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; position: relative; background: var(--panel); }
.drawer { flex: 0 0 390px; width: 390px; min-width: 0; display: flex; flex-direction: column; border-left: 1px solid #D9DFDD; background: #F3F5F4; }
.back-btn { display: none !important; }
@media (max-width: 1180px) {
  .drawer { position: absolute; right: 0; top: 0; bottom: 0; z-index: 20; box-shadow: var(--shadow); }
}
@media (max-width: 820px) {
  .side { flex: 1 1 auto; width: 100%; border-right: 0; }
  .main { display: none; }
  body.m-chat .side { display: none; }
  body.m-chat .main { display: flex; }
  .drawer { position: fixed; inset: 0; width: auto; z-index: 30; border: 0; box-shadow: none; }
  .back-btn { display: inline-flex !important; }
}

.side-head, .chat-head, .drawer-head {
  height: 60px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 16px; background: var(--panel);
}
.side-head .grow, .chat-head .grow { flex: 1; min-width: 0; }
.side-title { font-size: 19px; font-weight: 700; letter-spacing: -0.2px; display: flex; align-items: center; gap: 8px; }
.me-btn { border: 0; background: none; padding: 0; border-radius: 50%; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: 1px solid var(--line); flex: none; }
.tab {
  height: 46px; border: 0; border-bottom: 3px solid transparent; background: #FFFFFF; font-weight: 700; font-size: 14px; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.tab .badge { height: 18px; min-width: 18px; font-size: 11px; }
.tab .newdot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.side-tools { padding: 8px 12px 6px; display: flex; flex-direction: column; gap: 8px; flex: none; }
.search { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 9px; background: var(--panel); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14.5px; color: var(--ink); }
.pills { display: flex; gap: 6px; overflow-x: auto; }
.pill { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; border: 0; background: var(--panel); color: var(--muted); font-size: 13.5px; font-weight: 600; }
.pill.on { background: var(--accent-soft); color: var(--accent-dark); }
.list { flex: 1; min-height: 0; overflow-y: auto; }
.list-label { font-size: 13px; font-weight: 700; color: var(--accent); padding: 12px 16px 6px; }

.row { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 0 0 14px; cursor: pointer; background: #FFFFFF; }
.row:hover { background: #F5F6F6; }
.row.active { background: #EAEDEC; }
.row-main { flex: 1; min-width: 0; padding: 12px 14px 12px 0; border-bottom: 1px solid #EEF1F0; display: flex; flex-direction: column; gap: 3px; }
.row-top, .row-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-name { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-time { font-size: 12px; color: var(--muted); flex: none; }
.row-time.hl { color: var(--green); font-weight: 600; }
.row-preview { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 3px; min-width: 0; }
.row-preview > span { overflow: hidden; text-overflow: ellipsis; }
.row-preview .typing, .typing { color: var(--green); font-weight: 600; font-style: normal; }
.row-icons { display: flex; align-items: center; gap: 4px; flex: none; color: #8696A0; }
.row-menu-btn { position: absolute; right: 8px; bottom: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #FFFFFF; color: var(--muted); display: none; align-items: center; justify-content: center; }
.row:hover .row-menu-btn, .row:focus-within .row-menu-btn { display: inline-flex; }
.row:hover .row-icons .badge { visibility: hidden; }
.tick { display: inline-flex; color: #8696A0; }
.tick.read { color: #2B8BD6; }

/* ---------- chat ---------- */
.chat-head { border-left: 1px solid var(--line); padding-left: 8px; }
.peer { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; height: 52px; border: 0; background: none; text-align: left; padding: 0 0 0 6px; }
.peer-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.peer-name { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peer-status { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-body {
  flex: 1; min-height: 0; overflow-y: auto; position: relative;
  background-color: var(--wall);
  background-image: radial-gradient(rgba(11, 110, 121, 0.09) 1px, transparent 1.2px);
  background-size: 16px 16px;
}
.msgs { padding: 14px 6% 10px; display: flex; flex-direction: column; gap: 2px; }
.load-more { align-self: center; margin: 4px 0 10px; }
.notice {
  align-self: center; max-width: 520px; background: #FBF1C7; color: #4A3F12; font-size: 12.5px; line-height: 1.45;
  border-radius: 8px; padding: 8px 12px; display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 10px; box-shadow: 0 1px 0.5px rgba(17,27,33,0.1);
}
.day-sep { align-self: center; background: #FFFFFF; color: var(--muted); font-size: 12.5px; font-weight: 600; border-radius: 8px; padding: 5px 10px; margin: 10px 0 6px; box-shadow: 0 1px 0.5px rgba(17,27,33,0.1); }
.sys { align-self: center; max-width: 520px; text-align: center; background: #E6F1EF; color: #24423F; font-size: 12.5px; border-radius: 8px; padding: 6px 10px; margin: 6px 0; box-shadow: 0 1px 0.5px rgba(17,27,33,0.08); }
.msg { display: flex; flex-direction: column; margin-top: 1px; max-width: 100%; }
.msg.first { margin-top: 8px; }
.msg.out { align-items: flex-end; }
.msg.in { align-items: flex-start; }
.bubble {
  position: relative; max-width: min(65%, 560px); padding: 6px 8px 5px 9px; border-radius: 8px; box-shadow: 0 1px 0.5px rgba(17, 27, 33, 0.13);
  display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere;
}
@media (max-width: 820px) { .bubble { max-width: 86%; } .msgs { padding: 12px 10px 8px; } }
.out .bubble { background: var(--out); }
.in .bubble { background: var(--in); }
.out.first .bubble { border-top-right-radius: 2px; }
.in.first .bubble { border-top-left-radius: 2px; }
.bubble.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px #F2C94C; } 100% { box-shadow: 0 1px 0.5px rgba(17,27,33,0.13); } }
.sender { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.fwd { font-size: 12px; color: var(--muted); font-style: italic; display: flex; align-items: center; gap: 4px; }
.text { font-size: 14.5px; line-height: 1.42; white-space: pre-wrap; }
.text.deleted { color: var(--muted); font-style: italic; display: flex; gap: 6px; align-items: center; }
.text .mask { background: rgba(17, 27, 33, 0.08); border-radius: 4px; padding: 0 4px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.mask-note { font-size: 12px; color: var(--muted); font-style: italic; }
.meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); margin-top: -2px; white-space: nowrap; }
.meta svg { color: #8696A0; }
.meta .tick.read svg { color: #2B8BD6; }
.quote {
  display: flex; gap: 8px; align-items: stretch; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--accent);
  background: rgba(17, 27, 33, 0.05); border-radius: 6px; padding: 5px 8px; font-size: 13px; min-width: 0;
}
.quote.theirs { border-left-color: #8B5CF6; }
.quote > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.quote b { color: var(--accent); font-size: 12.5px; }
.quote.theirs b { color: #6D28D9; }
.quote small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.quote .st-chip { width: 44px; border-radius: 4px; flex: none; }
.img-msg { border: 0; padding: 0; background: none; display: block; border-radius: 6px; overflow: hidden; margin: -3px -5px 0 -6px; }
.img-msg img { display: block; max-width: 100%; width: 330px; max-height: 360px; object-fit: cover; background: #CFD8D5; }
.doc-msg { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); background: rgba(17,27,33,0.05); border-radius: 6px; padding: 10px; min-width: 230px; }
.doc-msg .doc-ic { width: 36px; height: 42px; border-radius: 4px; background: #E5484D; color: #FFFFFF; font-size: 10px; font-weight: 800; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; flex: none; }
.doc-msg span { display: flex; flex-direction: column; min-width: 0; }
.doc-msg b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.doc-msg small { color: var(--muted); font-size: 12px; }
.voice-msg { display: flex; align-items: center; gap: 10px; min-width: 240px; padding: 2px 0; }
.vplay { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.vbar { flex: 1; accent-color: var(--accent); min-width: 0; }
.vtime { font-size: 12px; color: var(--muted); width: 38px; text-align: right; }
.id-msg { display: flex; gap: 10px; align-items: flex-start; background: #FFFFFF; border-radius: 6px; padding: 10px; min-width: 240px; max-width: 320px; }
.id-msg .lock { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.id-msg span { display: flex; flex-direction: column; gap: 3px; }
.id-msg small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.id-msg .btn { align-self: flex-start; margin-top: 4px; }
.reacts { display: flex; gap: 3px; margin: -6px 8px 2px; position: relative; z-index: 1; }
.react { height: 24px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; font-size: 13px; padding: 0 6px; display: inline-flex; align-items: center; gap: 3px; box-shadow: 0 1px 2px rgba(17,27,33,0.12); }
.react.mine { background: var(--accent-soft); border-color: #B7DCD7; }
.react small { font-size: 11.5px; color: var(--muted); }
.msg-menu-btn {
  position: absolute; top: 2px; right: 2px; width: 26px; height: 22px; border: 0; border-radius: 6px; color: var(--muted);
  background: inherit; display: none; align-items: center; justify-content: center; z-index: 2;
}
.bubble:hover .msg-menu-btn, .msg-menu-btn:focus { display: inline-flex; }
.greeting .bubble { border: 1px dashed #B7C9C5; }

.composer { flex: none; background: var(--panel); position: relative; }
.comp-row { display: flex; align-items: flex-end; gap: 4px; padding: 8px 12px; }
.comp-input {
  flex: 1; min-width: 0; resize: none; border: 0; border-radius: 9px; padding: 11px 14px; background: #FFFFFF; outline: none;
  font-size: 15px; line-height: 1.35; max-height: 140px; min-height: 44px;
}
.send-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.send-btn:hover { background: var(--accent-dark); }
.bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 0 16px; }
.bar .quote { flex: 1; }
.rec-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #E5484D; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 600; flex: 1; }
.blocked-bar { padding: 14px 16px; text-align: center; font-size: 14px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.emoji-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; padding: 8px 12px 0; max-height: 200px; overflow-y: auto; }
.emoji-panel button { height: 40px; border: 0; background: none; font-size: 22px; border-radius: 8px; }
.emoji-panel button:hover { background: #FFFFFF; }
.scroll-down {
  position: absolute; right: 18px; bottom: 86px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #FFFFFF; color: var(--muted);
  box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; z-index: 3;
}
.scroll-down .badge { position: absolute; top: -6px; right: -4px; }

.welcome { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 24px 40px; border-bottom: 6px solid var(--accent); }
.welcome-inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.welcome h1 { margin: 0; font-size: 26px; letter-spacing: -0.4px; }
.welcome p { margin: 0; color: var(--muted); line-height: 1.5; }
.staff-empty { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; border-bottom: 6px solid var(--accent); }
.staff-empty div { max-width: 460px; display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* ---------- drawer ---------- */
.drawer-head { gap: 6px; padding-left: 6px; }
.drawer-head b { font-size: 16px; font-weight: 600; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }
.d-sec { background: #FFFFFF; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.d-hero { align-items: center; text-align: center; padding: 22px 16px 18px; gap: 4px; }
.d-hero h2 { margin: 8px 0 0; font-size: 21px; font-weight: 600; }
.d-sub { color: var(--muted); font-size: 14px; }
.d-label { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.6px; }
.d-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border: 0; background: none; width: 100%; text-align: left; font-size: 15px; }
.d-row.danger { color: var(--danger); }
.d-row small { display: block; color: var(--muted); font-size: 12.5px; }
.d-row .grow { flex: 1; min-width: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #EEF1F0; font-size: 14.5px; }
.kv:last-child { border-bottom: 0; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.media-grid button { border: 0; padding: 0; aspect-ratio: 1; background: #CFD8D5; border-radius: 4px; overflow: hidden; }
.media-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res { display: flex; gap: 12px; align-items: flex-start; padding: 10px 16px; border: 0; border-bottom: 1px solid #EEF1F0; background: #FFFFFF; text-align: left; width: 100%; }
.res:hover { background: #F5F6F6; }
.res span { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.res small { color: var(--muted); font-size: 12px; }
.res mark { background: #FDECC8; color: inherit; border-radius: 2px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #FFFFFF; box-shadow: 0 0 0 1px #C9D2CF; }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }

/* ---------- popups ---------- */
.menu {
  position: fixed; z-index: 100; min-width: 210px; background: #FFFFFF; border-radius: 12px; box-shadow: var(--shadow); padding: 6px 0;
  display: flex; flex-direction: column; max-height: calc(100vh - 20px); overflow-y: auto;
}
.menu button { border: 0; background: none; text-align: left; padding: 10px 18px; font-size: 14.5px; display: flex; align-items: center; gap: 12px; }
.menu button:hover, .menu button:focus { background: var(--panel); outline: none; }
.menu button.danger { color: var(--danger); }
.menu .react-row { display: flex; gap: 2px; padding: 4px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu .react-row button { padding: 6px; font-size: 22px; border-radius: 50%; width: 42px; height: 42px; justify-content: center; }
.menu .react-row button.on { background: var(--accent-soft); }
.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(17, 27, 33, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 440px; max-width: 100%; max-height: 100%; overflow-y: auto; background: #FFFFFF; border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.modal h2 { margin: 0; font-size: 19px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.modal .choice { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; }
.modal .choice input { width: 18px; height: 18px; accent-color: var(--accent); }
.preview-imgs { display: flex; gap: 8px; overflow-x: auto; }
.preview-imgs img { height: 140px; border-radius: 8px; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(11, 20, 26, 0.94); display: flex; align-items: center; justify-content: center; padding: 50px 16px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .icon-btn { position: absolute; top: 10px; right: 10px; color: #FFFFFF; }
.lightbox a.icon-btn { right: 56px; }

/* ---------- updates (status) ---------- */
.st-row { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border: 0; background: #FFFFFF; width: 100%; text-align: left; }
.st-row:hover { background: #F5F6F6; }
.st-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.st-row small { color: var(--muted); font-size: 13px; }
.st-add { display: flex; gap: 8px; padding: 0 16px 10px 80px; }
.st-viewer { position: fixed; inset: 0; z-index: 120; background: #0B141A; color: #FFFFFF; display: flex; flex-direction: column; }
.st-bars { display: flex; gap: 4px; padding: 10px 12px 0; max-width: 620px; width: 100%; margin: 0 auto; }
.st-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.35); overflow: hidden; }
.st-bar i { display: block; height: 100%; width: 0; background: #FFFFFF; }
.st-bar.done i { width: 100%; }
.st-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px; max-width: 620px; width: 100%; margin: 0 auto; }
.st-top .icon-btn { color: #FFFFFF; }
.st-top span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.st-top small { opacity: 0.75; font-size: 12.5px; }
.st-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; max-width: 620px; width: 100%; margin: 0 auto; }
.st-text { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 40px; text-align: center; font-size: clamp(20px, 3.4vw, 30px); line-height: 1.35; white-space: pre-wrap; }
.st-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-caption { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; padding: 8px 16px; background: rgba(0,0,0,0.45); white-space: pre-wrap; }
.st-nav { position: absolute; top: 0; bottom: 0; width: 35%; border: 0; background: none; }
.st-nav.prev { left: 0; }
.st-nav.next { right: 0; }
.st-foot { display: flex; gap: 8px; padding: 12px; max-width: 620px; width: 100%; margin: 0 auto; align-items: center; }
.st-foot input { flex: 1; height: 44px; border-radius: 22px; border: 0; padding: 0 16px; background: #1F2C33; color: #FFFFFF; outline: none; }
.st-foot .btn { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.4); }

/* ---------- accounts: sign in, sign up, recovery code (accounts.js) ---------- */
.pub-actions { display: flex; gap: 8px; }
.login-card.wide { width: 560px; }
.login-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.login-card h1 em { font-style: normal; color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 12px; }
.hint.lead { font-size: 14px; margin: -6px 0 0; }
.hint.small, .small { font-size: 12px; }
.center { text-align: center; }
.seg { display: inline-flex; background: var(--panel); border-radius: 21px; padding: 3px; gap: 2px; align-self: flex-start; }
.seg.wrap { flex-wrap: wrap; }
.seg button, .seg label span { border: 0; background: none; height: 34px; padding: 0 14px; border-radius: 17px; font-weight: 600; font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.seg button.on, .seg input:checked + span { background: #FFFFFF; color: var(--accent-dark); box-shadow: 0 1px 2px rgba(17, 27, 33, 0.12); }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg small { background: var(--accent-soft); color: var(--accent-dark); border-radius: 9px; padding: 0 6px; font-size: 11.5px; }
.oauth-btns { display: flex; flex-direction: column; gap: 8px; }
.btn.oauth { text-decoration: none; color: var(--ink); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cta-box { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.cta-box span { color: var(--muted); line-height: 1.45; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.handle-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel); border-radius: 12px; padding: 10px 12px; }
.handle-box b { font-size: 18px; letter-spacing: 0.2px; }
.save-box { display: grid; gap: 10px; background: var(--panel); border-radius: 12px; padding: 14px; }
.save-box div { display: flex; flex-direction: column; gap: 2px; }
.save-box small { color: var(--muted); font-size: 12px; }
.save-box code { font-size: 19px; font-weight: 700; letter-spacing: 1px; font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.save-btns, .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row.end { justify-content: flex-end; }
.save-btns a, .btn-row a { text-decoration: none; color: var(--ink); }
.steps { display: flex; gap: 6px; }
.steps span { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--muted); border-top: 3px solid var(--line); padding-top: 6px; }
.steps span.on { color: var(--accent-dark); border-color: var(--accent); }
.row-2, .row-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 520px) { .row-2, .row-3 { grid-template-columns: 1fr; } }
.wiz-nav { display: flex; justify-content: space-between; gap: 8px; }
.wiz-nav .btn-primary { margin-left: auto; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: inherit; text-decoration: underline; }
select.input { appearance: auto; }
textarea.input { resize: vertical; min-height: 64px; }

/* clinic status banner and first screen */
.cbanner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; font-size: 13px; line-height: 1.45; border-bottom: 1px solid var(--line); }
.cbanner.sun { background: #FBF1C7; color: #4A3F12; }
.cbanner.bad { background: #FDECEA; color: #6B1A12; }
.welcome-steps { display: flex !important; flex-direction: column; gap: 8px; width: 100%; }
.wstep { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); background: #FFFFFF; border-radius: 12px; padding: 12px 14px; width: 100%; color: var(--accent); }
.wstep:hover { border-color: var(--accent); }
.wstep span { display: flex; flex-direction: column; color: var(--ink); }
.wstep small { color: var(--muted); font-size: 12.5px; }

/* status pills (clinic verification) */
.spill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-pending { background: #FBF1C7; color: #5C4A0C; }
.st-active { background: #DDF3E5; color: #14532D; }
.st-rejected { background: #FDECEA; color: #8A1C11; }
.st-suspended { background: #E5E7EB; color: #374151; }
.note { background: #FDECEA; color: #6B1A12; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 0; white-space: pre-wrap; }
.nbox { display: flex; gap: 8px; align-items: flex-start; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.nbox.sun { background: #FBF1C7; color: #4A3F12; }

/* ---------- clinic pages (clinic.js) ---------- */
.checklist { display: flex; flex-wrap: wrap; gap: 6px; }
.checklist span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 3px 9px; border-radius: 12px; background: var(--panel); color: var(--muted); }
.checklist span.ok { background: #DDF3E5; color: #14532D; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-flex; height: 30px; align-items: center; padding: 0 11px; border-radius: 15px; border: 1px solid #C9D2CF; font-size: 13px; cursor: pointer; background: #FFFFFF; }
.chip-check input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); font-weight: 600; }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); }
.chip { height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid #C9D2CF; background: #FFFFFF; font-size: 12.5px; font-weight: 600; }
.dent-row, .pk-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-bottom: 6px; }
.pk-row { grid-template-columns: 1fr 64px auto; }
.titem { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #EEF1F0; }
.titem:last-of-type { border-bottom: 0; }
.titem span.grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.titem small { color: var(--muted); font-size: 12.5px; }
.titem-btns { display: flex; }
.titem-btns .icon-btn { width: 34px; height: 34px; }
.pkg { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EEF1F0; }
.pkg .grow { display: flex; flex-direction: column; gap: 2px; }
.pkg small { color: var(--muted); font-size: 12.5px; }
.pkg-price { display: flex; flex-direction: column; align-items: flex-end; }
.pkg-price s { color: var(--muted); font-size: 12.5px; }
details summary { cursor: pointer; }
.modal { width: 520px; }

/* full-height sheet (quote and quote editor) */
.sheet-back { position: fixed; inset: 0; z-index: 80; background: rgba(17, 27, 33, 0.45); display: flex; justify-content: center; align-items: stretch; padding: 16px; }
.sheet { width: 760px; max-width: 100%; background: #F3F5F4; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); }
.sheet-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.sheet-head b { font-size: 16px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 820px) { .sheet-back { padding: 0; } .sheet { border-radius: 0; } }

/* quote editor */
.qe { display: flex; flex-direction: column; gap: 12px; }
.qe-pkgs { display: flex; flex-direction: column; gap: 6px; }
.pkg-btn { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--accent); background: #FFFFFF; border-radius: 10px; padding: 8px 12px; color: var(--accent-dark); }
.pkg-btn small { color: var(--muted); }
.qe-line { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.qe-line-top { display: flex; gap: 4px; align-items: center; }
.qe-line-top select { flex: 1; min-width: 0; }
.qe-line-top .icon-btn { width: 34px; height: 34px; }
.qe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qe-grid label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qe-grid label.wide { grid-column: span 2; }
.qe-grid small { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .qe-grid { grid-template-columns: 1fr 1fr; } }
.disc { display: grid; grid-template-columns: 64px 1fr; gap: 4px; }
.field .disc { max-width: 240px; }
.qe-extras { display: flex; flex-direction: column; gap: 6px; }
.qe-extra { display: grid; grid-template-columns: auto 1fr 56px 90px auto; gap: 6px; align-items: center; background: var(--panel); border-radius: 10px; padding: 6px; }
@media (max-width: 640px) { .qe-extra { grid-template-columns: 1fr 56px 80px auto; } .qe-extra .ctag { display: none; } }
.qe-line-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qe-line-foot output { margin-left: auto; font-weight: 700; }
.qe-total { background: #FFFFFF; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.qe-total:empty { display: none; }
.qe-total b { font-size: 22px; color: var(--accent-dark); }
.qe-total small { color: var(--muted); }
.qe-warr:empty { display: none; }
.qempty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 40px 20px; color: var(--accent); }
.qempty h3 { margin: 0; color: var(--ink); }
.qmsg { background: #FFFFFF; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.5; }

/* the quote card (patients and clinics) */
.qcard { background: #FFFFFF; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--accent); }
.qcard.alt { border-top-color: #6B4FA0; }
.qcard-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qcard-head small { color: var(--muted); font-size: 12.5px; }
.qcard-head small.expired { color: var(--danger); font-weight: 600; }
.qbadge { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.qcard.alt .qbadge { background: #EEE8F7; color: #4C3577; }
.qcard-total { display: flex; flex-direction: column; gap: 3px; }
.qcard-total small { color: var(--muted); font-size: 12.5px; }
.qcard-total strong { font-size: 28px; letter-spacing: -0.4px; color: var(--accent-dark); }
.qcard-total span { font-size: 12.5px; color: var(--muted); }
.qcard-total .qdisc { color: var(--green); font-weight: 600; }
.qfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0; }
.qfacts div { background: var(--panel); border-radius: 10px; padding: 8px 10px; }
.qfacts dt { font-size: 11.5px; color: var(--muted); }
.qfacts dd { margin: 2px 0 0; font-weight: 700; }
.qsec h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.qsec p { margin: 0 0 6px; line-height: 1.55; font-size: 14.5px; }
.qdent { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.qlines { list-style: none; margin: 0; padding: 0; }
.qlines > li { padding: 10px 0; border-bottom: 1px solid #EEF1F0; }
.qlines > li.cond { opacity: 0.85; }
.qrow { display: flex; justify-content: space-between; gap: 12px; }
.qrow > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qrow span { font-size: 12.5px; color: var(--muted); }
.qwarr { display: inline-flex; gap: 4px; align-items: center; color: var(--green) !important; }
.qprice { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; }
.qprice s { color: var(--muted); font-size: 12.5px; }
.qprice small { color: var(--muted); font-size: 12px; }
.ctag { display: inline-flex; height: 20px; align-items: center; padding: 0 7px; border-radius: 10px; background: #FBF1C7; color: #5C4A0C; font-size: 11px; font-weight: 700; white-space: nowrap; }
.qextras { list-style: none; margin: 6px 0 0; padding: 0 0 0 10px; border-left: 2px solid #FBF1C7; }
.qextras li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 3px 0; }
.qextras small { color: var(--muted); }
.qline-range { margin: 4px 0 0 !important; font-size: 12.5px !important; color: var(--muted); text-align: right; }
.qsum { margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.qsum div { display: flex; justify-content: space-between; font-size: 14px; }
.qsum dd { margin: 0; }
.qsum .tot { font-weight: 700; font-size: 15.5px; border-top: 1px solid var(--line); padding-top: 6px; }
.qinc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.qinc span { display: inline-flex; align-items: center; gap: 4px; background: #DDF3E5; color: #14532D; border-radius: 12px; padding: 3px 9px; font-size: 12.5px; }
.qwlist { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.qwlist li { display: flex; flex-direction: column; font-size: 13.5px; }
.qwlist span { color: var(--muted); }
.qnote { display: flex; gap: 6px; font-size: 12px; color: var(--muted); line-height: 1.45; margin: 0; background: var(--panel); border-radius: 10px; padding: 8px 10px; }
.quote-msg { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 4px 2px 6px; min-width: 220px; }
.quote-msg b { font-size: 20px; color: var(--accent-dark); }
.quote-msg small { color: var(--muted); font-size: 12px; }

/* ---------- admin (accounts.js) ---------- */
body.admin-page { background: #F3F5F4; }
.admin { min-height: 100%; display: flex; flex-direction: column; }
.admin-head { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #FFFFFF; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-head .seg { margin-left: auto; }
.admin-body { width: 900px; max-width: 100%; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ad-list { display: flex; flex-direction: column; background: #FFFFFF; border-radius: 12px; overflow: hidden; }
.ad-row { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 0; border-bottom: 1px solid #EEF1F0; background: none; text-align: left; width: 100%; flex-wrap: wrap; }
button.ad-row:hover { background: #F6F8F7; }
.ad-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ad-row small { color: var(--muted); font-size: 12.5px; }
.ad-card { background: #FFFFFF; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ad-card h2, .ad-card h3 { margin: 0; }
.ad-card h3 { font-size: 15px; }
.ad-title { display: flex; align-items: center; gap: 12px; }
.ad-title span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ad-title small { color: var(--muted); }
.ad-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-body > .btn { align-self: flex-start; }
.pub-actions .btn { white-space: nowrap; }
@media (max-width: 440px) { .pub-head .test-badge { display: none; } .pub-actions .btn { padding: 0 10px; } }
.titem .grow, .pkg .grow { flex: 1; }
.kv > span small.hint { display: block; margin-top: 2px; }
.kv > b { text-align: right; flex: none; max-width: 45%; }

/* ---------- logos and gallery ---------- */
.avatar.has-img { overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.avatar.has-img .dot { z-index: 1; }
.logo-row { display: flex; align-items: center; gap: 14px; }
.logo-prev { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; border: 1px solid var(--line); background: #FFFFFF; }
label.btn { cursor: pointer; }
.ggrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gitem { display: flex; flex-direction: column; gap: 4px; }
.gitem img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; cursor: zoom-in; background: var(--panel); }
.gitem .input { height: 34px; font-size: 13px; }
.gitem .icon-btn { width: 32px; height: 32px; }
.gstate { font-size: 11.5px; font-weight: 700; }
.gstate.pending { color: #8A5A00; }
.gstate.approved { color: var(--green); }
.gstate.rejected { color: var(--danger); }
.gstrip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.gthumb { flex: none; width: 128px; height: 96px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; scroll-snap-align: start; background: var(--panel); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph-item { position: relative; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.ph-item input { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; accent-color: var(--accent); }
.ph-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.ph-item small { color: var(--muted); font-size: 12px; }
.qcard-head .btn { text-decoration: none; color: var(--ink); }
.qcard-head { flex-wrap: wrap; } .qbadge { white-space: nowrap; }

/* ---------- legal links (privacy, terms) ---------- */
.legal-links { display: flex; justify-content: center; gap: 16px; margin: 4px 0 0; font-size: 13px; }
.legal-links a { color: var(--muted); }
.pub-foot {
  max-width: 1180px; margin: 0 auto; padding: 18px 16px 32px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; color: var(--muted); font-size: 13.5px;
}
.pub-foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.pub-foot a { color: var(--muted); }
.btn-danger-fill { background: var(--danger); border-color: var(--danger); }
.btn-danger-fill:hover { background: #8F1C13; }

/* ---------- admin: statistics, patients, security ---------- */
.st-paused { background: #E0ECF8; color: #1E3A5F; }
.admin-head .seg { margin-left: auto; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--panel); border-radius: 10px; }
.stat b { font-size: 24px; line-height: 1.15; }
.stat span { font-size: 13px; font-weight: 600; }
.stat small { font-size: 12px; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: 11px; fill: var(--muted); }
.chart .axis { stroke: var(--line); }
.chart .bar-v, .key-v { fill: #BFE0DC; background: #BFE0DC; }
.chart .bar-u, .key-u { fill: var(--accent); background: var(--accent); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: -1px; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ad-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.ad-table td { padding: 6px; border-bottom: 1px solid #EEF1F0; vertical-align: top; overflow-wrap: anywhere; }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ad-table .barcell { width: 30%; }
.ad-table .barcell span { display: block; height: 8px; margin-top: 6px; border-radius: 4px; background: var(--accent); opacity: 0.55; }
.ad-table .warn-row td { background: #FFF6F5; }
.warn { color: var(--danger); }
.up { color: var(--green); font-weight: 600; }
.down { color: var(--danger); font-weight: 600; }
.ad-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ad-tile { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; color: inherit; font: inherit; cursor: pointer; }
.ad-tile b { display: block; font-size: 22px; line-height: 1.2; }
.ad-tile small { color: var(--muted); font-size: 12px; }
.ad-tile.bad b { color: var(--danger); }
.ad-tile.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.hours { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.hours span { flex: 1; background: var(--accent); opacity: 0.7; border-radius: 2px 2px 0 0; }
.hours-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.ad-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.ad-search { display: flex; gap: 8px; flex: 1; min-width: 240px; max-width: 460px; }
.ad-search .input { height: 38px; }
.ad-search .btn { white-space: nowrap; flex: none; }
.ad-list.flat { border: 1px solid #EEF1F0; }
details.ad-card summary { cursor: pointer; }
@media (max-width: 640px) {
  .admin-head .seg { margin-left: 0; }
  .ad-table { font-size: 12.5px; }
  .ad-table th:nth-child(3), .ad-table td:nth-child(3) { display: none; }
  .ad-grid .ad-table td:nth-child(3), .ad-grid .ad-table th:nth-child(3) { display: table-cell; }
}
.nick-login { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.nick-login summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }

/* ---------- home page with photos (2026-11-01) ---------- */
.brand .logo { width: 36px; height: 36px; flex: none; }
.pub-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.hero-text { display: flex; flex-direction: column; }
.pub-hero h1 { font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -1px; line-height: 1.08; margin-bottom: 14px; }
.pub-hero p { font-size: 17px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero-cta .btn { height: 44px; padding: 0 20px; font-size: 15px; }
.hero-img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 18px; box-shadow: 0 12px 32px rgba(17, 27, 33, 0.12); background: #E3F1EF; }
.pub-h2 { margin: 18px 0 0; font-size: 22px; letter-spacing: -0.3px; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 12px; }
.how-steps figure { margin: 0; background: #FFFFFF; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.how-steps img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #E3F1EF; }
.how-steps figcaption { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.how-steps figcaption b { font-size: 16px; }
.how-steps figcaption span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.pub-clinic-cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; align-items: stretch; background: #FFFFFF; border-radius: 18px; overflow: hidden; margin-top: 10px; }
.pub-clinic-cta img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; background: #E3F1EF; }
.pub-clinic-cta > div { padding: 28px; display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: flex-start; }
.pub-clinic-cta h2 { margin: 0; font-size: 24px; letter-spacing: -0.4px; }
.pub-clinic-cta p { margin: 0; color: var(--muted); line-height: 1.55; }
.empty-img { display: block; margin: 0 auto 10px; width: 140px; height: 140px; mix-blend-mode: multiply; }
@media (max-width: 900px) {
  .pub-hero { grid-template-columns: 1fr; gap: 18px; }
  .hero-img { order: -1; aspect-ratio: 16 / 10; object-position: 70% center; border-radius: 14px; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps figure { flex-direction: row; }
  .how-steps img { width: 38%; aspect-ratio: auto; height: auto; align-self: stretch; flex: none; }
  .pub-clinic-cta { grid-template-columns: 1fr; }
  .pub-clinic-cta img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .pub-clinic-cta > div { padding: 20px; }
}
@media (max-width: 480px) {
  .how-steps figure { flex-direction: column; }
  .how-steps img { width: 100%; aspect-ratio: 16 / 9; align-self: auto; }
}

/* ---------- clinic cards: flag + country code (2026-11-02) ----------
   Windows has no flag emoji: this font draws only the flag characters (unicode-range), so it loads only where flags
   are shown. Font: country-flag-emoji-polyfill (MIT); flag images: Twemoji by Twitter, CC BY 4.0. */
@font-face { font-family: "Twemoji Country Flags"; src: url("img/twemoji-flags.woff2") format("woff2"); unicode-range: U+1F1E6-1F1FF; font-display: swap; }
.flag { font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 14px; line-height: 1; }
.cc-cc { display: inline-flex; align-items: center; gap: 5px; }
.cc-foot { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
/* admin: score and online time */
.score-big { font-size: 34px; font-weight: 800; line-height: 1; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 52px; gap: 10px; align-items: center; font-size: 13.5px; padding: 4px 0; }
.score-row .barcell { height: 8px; border-radius: 4px; background: var(--panel); overflow: hidden; }
.score-row .barcell span { display: block; height: 100%; background: var(--accent); }
.score-row b { text-align: right; font-variant-numeric: tabular-nums; }
.online-days { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.online-days span { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; opacity: 0.75; }
.cc-foot .alert { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-dark); font-weight: 600; }

/* dentalchat assistant (assets/assistant.js) */
.ai-tag { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-dark); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.ai-photos { display: grid; gap: 3px; margin: -3px -5px 4px -6px; border-radius: 6px; overflow: hidden; max-width: 330px; }
.ai-photos.n2, .ai-photos.n3, .ai-photos.n4 { grid-template-columns: 1fr 1fr; }
.ai-photos .img-msg { margin: 0; border-radius: 0; }
.ai-photos .img-msg img { width: 100%; max-height: 220px; aspect-ratio: 1; }
.ai-photos.n1 .img-msg img { aspect-ratio: auto; max-height: 360px; }
.ai-share { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 2px; }
.ai-strip { display: flex; gap: 8px; padding: 8px 12px 0; overflow-x: auto; }
.ai-thumb { position: relative; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--wall); }
.ai-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-thumb.loading img { opacity: 0.45; }
.ai-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(17, 27, 33, 0.7); color: #FFFFFF; display: grid; place-items: center; padding: 0; cursor: pointer; }
.ai-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.ai-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: 0.4; animation: ai-dot 1.2s infinite; }
.ai-dots i:nth-child(2) { animation-delay: 0.2s; }
.ai-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-dot { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 0.9; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ai-dots i { animation: none; opacity: 0.6; } }
.ai-pick { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; }
.ai-pick-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ai-pick-row:last-child { border-bottom: 0; }
.ai-pick-row span { display: flex; flex-direction: column; min-width: 0; }
.ai-pick-row small { color: var(--muted); }
.ai-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 8px; }
.ai-nophoto { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.ai-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; }
.ai-btns .btn { display: inline-flex; align-items: center; gap: 6px; }
.ai-group > b { display: block; font-size: 13.5px; margin-top: 10px; }
.ai-more { margin: 10px 0; }
.ai-more summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.ai-warn { background: #FEF3C7; color: #713F12; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 8px 0; }

/* website widget window (assets/embed.js) */
body.embed .app { height: 100vh; height: 100dvh; }
body.embed .main { display: flex; }
.embed-start { display: flex; flex-direction: column; height: 100%; background: var(--wall); }
.embed-top { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.embed-top .grow { display: flex; flex-direction: column; min-width: 0; }
.embed-top small { color: var(--muted); font-size: 12.5px; }
.embed-body { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.embed-body .msg { display: flex; }
.embed-form { background: #FFFFFF; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(17,27,33,0.08); }
.embed-form .check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; }
.embed-form .check input { margin-top: 2px; flex: 0 0 auto; }
.embed-form .small { font-size: 12px; margin: 0; }
.embed-brand { text-align: center; font-size: 11.5px; color: var(--muted); padding: 6px; text-decoration: none; background: var(--panel); }
body.embed { overflow: hidden; }
body.embed .chat-head .back-btn, body.embed .chat-head [data-act="search"] { display: none !important; }
.via-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: #FEF3C7; color: #713F12; font-size: 11px; font-weight: 600; vertical-align: 1px; }
/* clinic panel: website widget (assets/clinic-widget.js) */
.w-warn { background: #FEF3C7; color: #713F12; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 6px 0 0; }
.w-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.w-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.w-swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.w-colors input[type=color] { width: 36px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; }
.w-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; resize: none; }
.w-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.w-btns .btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.w-guide summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 4px 0; }
.w-guide p { margin: 2px 0 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.w-quote { background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 13px; line-height: 1.45; }
.explain { margin: 4px 0 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.explain code { background: var(--panel); border-radius: 4px; padding: 0 4px; font-size: 12.5px; }
/* passkey pop-up (passkey.php) */
body.pk-page { background: var(--panel); min-height: 100vh; display: flex; align-items: center; justify-content: center; margin: 0; padding: 16px; box-sizing: border-box; }
.pk-box { background: #FFFFFF; border-radius: 16px; padding: 28px 24px; max-width: 380px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; box-shadow: 0 6px 24px rgba(17,27,33,0.1); }
.pk-box h1 { font-size: 20px; margin: 0; }
.pk-box .hint { margin: 0; line-height: 1.5; }
.pk-box .btn { min-width: 200px; }

/* ---------- admin panel: dark theme (2026-11-07) ----------
   Only the admin panel and its sign-in page (body.admin-page); accounts.js sets html[data-theme] from the admin's
   choice or the device setting. Patient and clinic screens stay light. */
html[data-theme="dark"]:has(body.admin-page) { background: #0E161A; color-scheme: dark; }
html[data-theme="dark"] body.admin-page {
  --accent: #2A99A4; --accent-dark: #7FD3DA; --accent-soft: #123A3D; --out: #164A47; --in: #1A262C;
  --ink: #E3E9EC; --muted: #9AABB3; --line: #2A3A40; --panel: #1A262C; --bg: #111B21; --wall: #0E161A;
  --green: #4ACB86; --online: #4ACB86; --danger: #FF8A80; --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  background: #0E161A; color: var(--ink); color-scheme: dark;
}
html[data-theme="dark"] body.admin-page :is(.admin-head, .ad-list, .ad-card, .ad-tile, .login-card, .modal, .menu, .d-sec, .res, .w-quote, .logo-prev, .wstep) { background: #16222A; }
html[data-theme="dark"] body.admin-page .login-wrap { background: #0E161A; }
html[data-theme="dark"] body.admin-page :is(.ad-row, .ad-table td, .kv, .titem, .res) { border-color: var(--line); }
html[data-theme="dark"] body.admin-page .ad-list.flat { border-color: var(--line); }
html[data-theme="dark"] body.admin-page button.ad-row:hover, html[data-theme="dark"] body.admin-page .res:hover { background: #1D2B33; }
html[data-theme="dark"] body.admin-page :is(.btn, .chip, .chip-check span) { background: #1D2B33; border-color: #34474F; color: var(--ink); }
html[data-theme="dark"] body.admin-page .btn:hover { background: #24353E; }
html[data-theme="dark"] body.admin-page .btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
html[data-theme="dark"] body.admin-page .btn-primary:hover { background: #237F88; }
html[data-theme="dark"] body.admin-page :is(.btn-danger-fill) { background: #B42318; border-color: #B42318; color: #FFFFFF; }
html[data-theme="dark"] body.admin-page :is(.input, input, select, textarea) { background: #0F181D; border-color: #34474F; color: var(--ink); }
html[data-theme="dark"] body.admin-page .seg button.on, html[data-theme="dark"] body.admin-page .seg input:checked + span { background: #2A3B43; color: #FFFFFF; box-shadow: none; }
html[data-theme="dark"] body.admin-page .icon-btn { color: var(--muted); }
html[data-theme="dark"] body.admin-page .icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] body.admin-page .test-badge { background: #3A2E10; color: #F4CB72; }
html[data-theme="dark"] body.admin-page .st-pending { background: #3A2E10; color: #F4CB72; }
html[data-theme="dark"] body.admin-page :is(.st-active, .checklist span.ok) { background: #14352A; color: #8FE0B5; }
html[data-theme="dark"] body.admin-page .st-rejected { background: #3D1C19; color: #FFA59B; }
html[data-theme="dark"] body.admin-page .st-suspended { background: #2C3238; color: #C8D0D8; }
html[data-theme="dark"] body.admin-page .st-paused { background: #1A2C40; color: #A9C8EA; }
html[data-theme="dark"] body.admin-page :is(.note, .cbanner.bad) { background: #3D1C19; color: #FFC3BB; }
html[data-theme="dark"] body.admin-page :is(.nbox.sun, .cbanner.sun, .ai-warn, .w-warn) { background: #3A2E10; color: #F6DA9A; }
html[data-theme="dark"] body.admin-page .gstate.pending { color: #F4CB72; }
html[data-theme="dark"] body.admin-page .ad-table .warn-row td { background: #2E1A18; }
html[data-theme="dark"] body.admin-page .chart .bar-v, html[data-theme="dark"] body.admin-page .key-v { fill: #2C5E5A; background: #2C5E5A; }
html[data-theme="dark"] body.admin-page .spinner { border-color: #34474F; border-top-color: var(--accent); }
html[data-theme="dark"] body.admin-page .res mark { background: #5A4710; }
html[data-theme="dark"] body.admin-page .modal-back { background: rgba(0, 0, 0, 0.6); }
html[data-theme="dark"] body.admin-page a { color: var(--accent-dark); }
