/* V5.4.7: recipient controls, visible channel states and comfortable dark palette */
.rd-page .rd-phone{font-size:16px;font-weight:800;color:#172b4d}
.rd-page .rd-state,.regular-disabled{display:inline-block;border-radius:999px;padding:4px 9px;background:#edf0f4;color:#526176;font-size:12px;font-weight:700}
.rd-page .rd-selected .rd-state{background:#d7f3e0;color:#17643e}
.rd-page .rd-channel,.channel-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #cbd5e1;border-radius:8px;padding:6px 10px;background:#f1f5f9;color:#526176;font-weight:700;white-space:nowrap}
.rd-page .rd-channel:has(input:checked),.channel-pill{background:var(--channel-bg);color:var(--channel-fg);border-color:var(--channel-border)}
.channel-kakao{--channel-bg:#fff1b5;--channel-fg:#735a06;--channel-border:#ddc462}
.channel-sms{--channel-bg:#d9eafd;--channel-fg:#15538c;--channel-border:#a0c4ee}
.channel-email{--channel-bg:#ddf4e5;--channel-fg:#17643e;--channel-border:#a5d6b5}
.severity-caution{--channel-bg:#fff1bc;--channel-fg:#805411;--channel-border:#d9bb64}
.severity-warning{--channel-bg:#ffe1c6;--channel-fg:#9b4416;--channel-border:#e8aa7e}
.severity-critical{--channel-bg:#ffe0e0;--channel-fg:#a12635;--channel-border:#e4a1a7}
.regular-channel-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.channel-pill{font-size:12px;padding:3px 7px}
.rd-revoke{border:0;background:transparent;text-decoration:underline;color:inherit;font-size:12px;cursor:pointer}
body[data-theme="dark"]{--navy:#263649;--navy-dark:#1d2937;--light:#1b2531;--line:#415063;--text:#d6dfe9;--muted:#a9b8c8;--blue:#8ebde7;background:#1b2531!important;color:#d6dfe9!important}
body[data-theme="dark"] :is(.dashboard-wrap,.enterprise-content-wrap,.management-page,.v2-wrap,.page){background:#1b2531!important;color:#d6dfe9!important}
body[data-theme="dark"] :is(.top-header,.smartcare-common-header){background:#202e3d!important;border-color:#415063!important}
body[data-theme="dark"] :is(.card,.toolbar,.table-card,.modal-card,.stat-card,.config-section,.config-center-card,.equipment-manager-item,.hospital-preview,.info-grid>div,.login-card){background:#263342!important;color:#d6dfe9!important;border-color:#415063!important;box-shadow:none!important}
body[data-theme="dark"] :is(table,.management-table-wrap){background:#25313e!important;color:#d6dfe9!important}
body[data-theme="dark"] :is(th,.management-table-wrap thead th){background:#344355!important;color:#e0e8ef!important;border-color:#47586b!important}
body[data-theme="dark"] td{color:#d6dfe9!important;border-color:#3b4b5c!important}
body[data-theme="dark"] tbody tr:nth-child(even){background:#202c38!important}body[data-theme="dark"] tbody tr:hover{background:#344355!important}
body[data-theme="dark"] :is(h1,h2,h3,h4,label,b,strong){color:#dce5ed!important}
body[data-theme="dark"] :is(p,small,.help,.result-count,.management-head p,.rd-meta){color:#b5c3d2!important}
body[data-theme="dark"] :is(input,select,textarea){background:#1d2936!important;color:#d6dfe9!important;border-color:#506073!important}
body[data-theme="dark"] :is(.btn.secondary,.btn-secondary,.update-tab,.date-quick-buttons button,.pagination button,.pagination a,.regular-btn,.regular-cycle,.mini,.back,.link){background:#314154!important;color:#dae4ee!important;border-color:#52677c!important}
body[data-theme="dark"] :is(.summary-card,.summary-card.missing-card){background:#2b3949!important;color:#d5e0eb!important;border-color:#536579!important}
body[data-theme="dark"] .summary-card.active{outline-color:#83b4e7!important}
body[data-theme="dark"] .summary-card.status-normal-card{background:#24483d!important;color:#a4e3b9!important;border-color:#487b65!important}
body[data-theme="dark"] .summary-card.status-interest-card{background:#2b4260!important;color:#aed1f5!important;border-color:#55769b!important}
body[data-theme="dark"] .summary-card.status-caution-card{background:#51472e!important;color:#f1d88c!important;border-color:#947a43!important}
body[data-theme="dark"] .summary-card.status-warning-card{background:#543d31!important;color:#f0bd92!important;border-color:#96684e!important}
body[data-theme="dark"] .summary-card.status-critical-card{background:#54323e!important;color:#f2aeb8!important;border-color:#996274!important}
body[data-theme="dark"] .summary-card :is(span,strong,small){color:inherit!important;opacity:1!important}
body[data-theme="dark"] :is(.pc-badge,.rd-target,.rd-pc,.rd-next,.hint,.v25-badge){background:#34485e!important;color:#d4e1ef!important;border-color:#52677c!important}
body[data-theme="dark"] .pc-hostname{color:#b8c8db!important}
body[data-theme="dark"] .rd-page .rd-selected{background:#28483e!important;border:2px solid #659d81!important}
body[data-theme="dark"] .rd-page .rd-state,body[data-theme="dark"] .regular-disabled{background:#3a4655!important;color:#bdc9d7!important}
body[data-theme="dark"] .rd-page .rd-selected .rd-state{background:#365d49!important;color:#b7e7c6!important}
body[data-theme="dark"] .rd-page .rd-channel{background:#303d4d!important;border-color:#506073!important;color:#aab8c8!important}
body[data-theme="dark"] :is(.rd-page .rd-channel:has(input:checked),.channel-pill){background:var(--channel-bg)!important;color:var(--channel-fg)!important;border-color:var(--channel-border)!important}
body[data-theme="dark"] :is(.channel-kakao,.severity-caution){--channel-bg:#524a31;--channel-fg:#f3db90;--channel-border:#8d7946}
body[data-theme="dark"] .channel-sms{--channel-bg:#30496a;--channel-fg:#b4d3f5;--channel-border:#577da8}
body[data-theme="dark"] .channel-email{--channel-bg:#2f5142;--channel-fg:#b4e5c4;--channel-border:#57826a}
body[data-theme="dark"] .severity-warning{--channel-bg:#573e30;--channel-fg:#f2bf98;--channel-border:#98674c}
body[data-theme="dark"] .severity-critical{--channel-bg:#573541;--channel-fg:#f1b3bd;--channel-border:#9d6776}
body[data-theme="dark"] .regular-btn.save{background:#365f88!important;color:#e2ecf8!important}body[data-theme="dark"] .regular-btn.pause{color:#f1b3bd!important}
body[data-theme="dark"] :is(.regular-active,.version-current,.backup-normal,.regular-state.active){background:#345d49!important;color:#b5e6c5!important;border-color:#659d81!important}
body[data-theme="dark"] :is(.regular-inactive,.version-unknown,.backup-unknown,.backup-disabled){background:#3b4858!important;color:#becbda!important;border-color:#586a7c!important}
body[data-theme="dark"] :is(.regular-state.paused,.backup-warning,.backup-failed){background:#573541!important;color:#f1b3bd!important;border-color:#9d6776!important}
body[data-theme="dark"] :is(.version-old,.backup-caution){background:#51472e!important;color:#f1d88c!important}
