/* Worklists CSS - Uses app theme variables defined in index.html */
/* Note: Theme variables (--bg, --card, --text, etc.) are defined globally in index.html */
*{box-sizing:border-box}
body{
  margin:0; 
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text); 
  background:var(--bg);
  min-height:100svh;
  font-size:14px;
  line-height:1.5;
}

.container{ max-width:1200px; margin:0 auto; padding:24px; }

/* Global Search Bar (Separated) */
.global-search-bar{ display:flex; gap:12px; align-items:center; margin-bottom:16px; background:var(--card); border:1px solid var(--muted-2); box-shadow:var(--shadow); border-radius:var(--radius); padding:12px 16px; }
.search-wrapper{ position:relative; flex:1; max-width:600px; }
.global-search-input{ width:100%; padding:12px 12px 12px 40px; border:1px solid var(--muted-2); border-radius:10px; background:var(--card); color:var(--text); font-size:14px; outline:none; }
.global-search-input:focus{ border-color:var(--brand); }
.search-icon{ position:absolute; left:12px; top:50%; transform:translateY(-50%); opacity:.65; color:var(--text-dim); pointer-events:none; }
.search-dropdown{ position:absolute; top:calc(100% + 4px); left:0; right:0; background:var(--card); border:1px solid var(--muted-2); border-radius:10px; box-shadow:var(--shadow); max-height:400px; overflow-y:auto; display:none; z-index:100; }
.search-dropdown.show{ display:block; }
.search-result{ padding:12px; cursor:pointer; border-bottom:1px solid var(--muted-2); display:flex; justify-content:space-between; align-items:center; }
.search-result:last-child{ border-bottom:none; }
.search-result:hover{ background:var(--muted-2); }
.search-result-name{ font-weight:600; font-size:14px; }
.search-result-info{ font-size:12px; color:var(--text-dim); margin-top:2px; }
.search-result-badge{ font-size:11px; padding:2px 6px; border-radius:999px; background:var(--muted-2); }
.search-no-results{ padding:20px; text-align:center; color:var(--text-dim); font-size:14px; }

.card{ background:var(--card); border:1px solid var(--muted-2); box-shadow:var(--shadow); border-radius:var(--radius); padding:16px; }

header{ display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:16px; }
h1{ 
  font-size:20px; 
  margin:0; 
  letter-spacing:0.02em; 
  display:flex; 
  gap:10px; 
  align-items:center; 
  font-weight:600;
  color:var(--text);
}
h1 .badge{ 
  font-size:11px; 
  color:#ffffff; /* Keep white text on brand background for contrast */
  background:var(--brand); 
  padding:4px 10px; 
  border-radius:999px; 
  font-weight:600;
}

.toolbar{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* Patients List Minimize/Maximize */
.patients-list-content{ transition: max-height 0.3s ease, opacity 0.3s ease; overflow:hidden; }
.patients-list-content.minimized{ max-height:0 !important; opacity:0; }
#toggleIcon{ transition: transform 0.3s ease; display:inline-block; }
#toggleIcon.rotated{ transform: rotate(-180deg); }

.search{ position:relative; flex:1 1 420px; min-width:320px; }
.search input{ 
  width:100%; 
  padding:12px 40px 12px 40px; 
  border-radius:var(--radius); 
  border:1px solid var(--border); 
  background:var(--card); 
  color:var(--text); 
  outline:none;
  font-size:14px;
  transition: all 0.2s ease;
}
.search input:focus{ 
  border-color:var(--brand);
  box-shadow: 0 0 0 3px rgba(45,62,159,0.1);
}
.search .icon{ position:absolute; left:12px; top:50%; transform:translateY(-50%); opacity:.65; color:var(--text-dim); }
.search .kbd{ 
  position:absolute; 
  right:8px; 
  top:50%; 
  transform:translateY(-50%); 
  color:var(--text-dim); 
  font-size:11px; 
  background:var(--chip-bg); 
  border:1px solid var(--border); 
  padding:3px 8px; 
  border-radius:6px; 
  font-weight:500;
}

.btn{ 
  cursor:pointer; 
  border:1px solid var(--border); 
  background:var(--card); 
  color:var(--text); 
  padding:10px 16px; 
  border-radius:var(--radius); 
  display:inline-flex; 
  align-items:center; 
  gap:8px; 
  font-size:14px;
  font-weight:500;
  transition: all 0.2s ease;
}
.btn:hover{ 
  background:var(--chip-bg); 
  border-color:var(--brand);
  transform: translateY(-1px);
}

.table-wrap{ position:relative; overflow:auto; border-radius:12px; border:1px solid var(--muted-2); }

.dropdown{ position:relative; }
.menu{ position:absolute; right:0; top:110%; background:var(--card); border:1px solid var(--muted-2); border-radius:12px; min-width:240px; box-shadow:var(--shadow); padding:6px; display:none; z-index:50; max-height:500px; overflow:hidden; flex-direction:column; }
.menu.open{ display:flex !important; }
.menu .group{ padding:6px; border-bottom:1px dotted var(--muted-2); overflow-y:auto; max-height:200px; }
.menu .group:last-child{ border-bottom:none }
.menu label{ display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:8px; font-size:14px; cursor:pointer; }
.menu label:hover{ background:var(--muted-2); }

table{ 
  width:100%; 
  border-collapse:separate; 
  border-spacing:0; 
  background:var(--card); 
  font-size:14px;
}
thead th{ 
  position:sticky; 
  top:0; 
  background:var(--card); 
  z-index:5; 
  text-align:left; 
  font-weight:600; 
  font-size:12px; 
  color:var(--text-dim); 
  text-transform:uppercase;
  letter-spacing:0.05em;
  border-bottom:1px solid var(--border); 
  padding:12px 10px;
}
th, td{ padding:12px 10px; }
th[data-col-id="viewers"]{ 
  width: 40px; 
  min-width: 40px; 
  max-width: 40px; 
  text-align: center; 
  padding: 12px 4px;
}
tbody tr td:first-child{ 
  width: 40px; 
  min-width: 40px; 
  max-width: 40px; 
  text-align: center; 
  padding: 12px 4px;
}
tbody tr{ border-bottom:1px solid var(--border); transition: background 0.15s ease; }
/* Zebra striping */
tbody tr:nth-child(odd){ background:var(--card); }
tbody tr:nth-child(even){ background:var(--muted-2); }
tbody tr:hover{ background:var(--chip-bg); }
tbody td{ color:#000000; }

.th-inner{ display:flex; align-items:center; gap:8px; justify-content:space-between; }
.sort{ opacity:.7; cursor:pointer; user-select:none; font-size:12px; color:var(--text-dim); }
.sort.active{ color:var(--brand); opacity:1; }

.filter-btn{ margin-left:6px; cursor:pointer; opacity:.7; }
.filter-pop{ position:absolute; background:var(--panel); border:1px solid var(--muted-2); border-radius:10px; padding:8px; box-shadow:var(--shadow); width:240px; z-index:30; }
.filter-pop input{ width:100%; padding:8px; font-size:12px; background:var(--card); border:1px solid var(--muted-2); color:var(--text); border-radius:8px; outline:none; }
.filter-actions{ display:flex; gap:8px; margin-top:8px; justify-content:flex-end; }

.note{ max-width:420px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text); }
.tag{ 
  font-size:11px; 
  padding:4px 10px; 
  border-radius:999px; 
  border:1px solid var(--border); 
  background:var(--chip-bg); 
  display:inline-block; 
  margin-right:6px;
  font-weight:500;
  color:var(--text);
}

/* Action buttons */
.action-btn{ 
  cursor:pointer; 
  background:var(--card); 
  border:1px solid var(--border); 
  padding:8px 10px; 
  border-radius:var(--radius); 
  font-size:16px; 
  transition: all 0.2s ease; 
}
.action-btn:hover{ 
  background:var(--chip-bg); 
  border-color:var(--brand); 
  transform: translateY(-1px);
  color:var(--brand);
}

.empty{ text-align:center; padding:36px; color:var(--text-dim); }

.pager{ display:flex; justify-content:space-between; align-items:center; padding:10px 4px 0; color:var(--text-dim); }
.pager .controls{ display:flex; gap:8px; align-items:center; }
.pager select{ padding:6px; border-radius:8px; border:1px solid var(--muted-2); background:var(--card); color:var(--text); }

/* Drag indicator */
.drag-over{ outline:2px dashed var(--brand); outline-offset:-6px; }

/* Summary bar */
.summary{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:8px 0 12px; color:var(--text-dim); }
.chip{ display:inline-flex; gap:6px; align-items:center; padding:6px 10px; border-radius:999px; background:var(--muted-2); border:1px solid var(--border); font-size:12px; }

/* Table controls toolbar */
.table-controls{ display:flex; justify-content:space-between; align-items:center; margin:8px 0 12px; }
.controls-left{ display:flex; gap:8px; align-items:center; }
.controls-right{ display:flex; gap:8px; align-items:center; }

/* Saved Views */
.views{ display:flex; gap:10px; flex-wrap:wrap; margin:8px 0 14px; }
.view-card{ 
  background:var(--card); 
  border:1px solid var(--border); 
  border-radius:var(--radius); 
  padding:12px 16px; 
  box-shadow:var(--shadow); 
  min-width:240px; 
  cursor:pointer; 
  transition: all 0.2s ease; 
}
.view-card:hover{ 
  background:var(--chip-bg); 
  border-color:var(--brand); 
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(45,62,159,.15); 
}
.view-card.active{ 
  background:rgba(45,62,159,0.08); 
  border-color:var(--brand); 
  border-width:2px; 
}
.view-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
.view-title{ font-weight:600; display:flex; align-items:center; gap:8px; color:#000000; }
.view-title .badge{ font-size:11px; color:#ffffff; background:var(--accent); padding:2px 8px; border-radius:999px; font-weight:500; }
.view-actions{ display:flex; gap:6px; }
.view-actions .icon-btn{ cursor:pointer; background:none; border:none; font-size:16px; padding:4px 6px; border-radius:6px; display:flex; align-items:center; justify-content:center; opacity:0; transition: opacity 0.2s, background 0.2s; }
.view-card:hover .icon-btn{ opacity:0.7; }
.view-actions .icon-btn:hover{ opacity:1 !important; background:var(--muted-2); }
.view-desc{ color:var(--text-dim); font-size:12px; margin:4px 0 8px; min-height:18px; }
.view-cta{ display:none; }

/* Modal */
.modal-backdrop{ position:fixed; inset:0; background:rgba(15,23,42,.35); display:none; align-items:center; justify-content:center; z-index:100; }
.modal{ width:420px; background:var(--panel); border:1px solid var(--muted-2); border-radius:14px; box-shadow:var(--shadow); padding:16px; }
.modal h3{ margin:0 0 10px; }
.modal .row{ margin-bottom:10px; }
.modal label{ display:block; font-size:13px; font-weight:500; margin-bottom:4px; color:var(--text-dim); }
.modal input, .modal textarea{ width:100%; padding:10px; border:1px solid var(--muted-2); border-radius:10px; }
.modal .actions{ display:flex; gap:10px; justify-content:space-between; margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
.modal .actions .left{ display:flex; gap:10px; }
.modal .actions .right{ display:flex; gap:10px; }
.modal .btn{ padding:10px 20px; border-radius:999px; font-size:14px; font-weight:600; cursor:pointer; transition:all 0.2s ease; border:1px solid transparent; }
.modal .btn-primary{ background:var(--brand); color:#fff; border-color:var(--brand); }
.modal .btn-primary:hover{ background:var(--accent-2); border-color:var(--accent-2); transform:translateY(-1px); box-shadow:0 4px 12px rgba(45,62,159,0.2); }
.modal .btn-secondary{ background:var(--card); color:var(--text); border-color:var(--border); }
.modal .btn-secondary:hover{ background:var(--chip-bg); border-color:var(--brand); color:var(--brand); }
.modal .btn-danger{ background:var(--danger); color:#fff; border-color:var(--danger); }
.modal .btn-danger:hover{ background:#dc2626; transform:translateY(-1px); box-shadow:0 4px 12px rgba(220,38,38,0.2); }
.modal-footer{ display:flex; gap:10px; justify-content:flex-end; padding-top:16px; border-top:1px solid var(--border); margin-top:20px; }
.modal-footer button,
.modal-footer .btn{ padding:10px 20px; border-radius:999px; font-size:14px; font-weight:600; cursor:pointer; transition:all 0.2s ease; border:1px solid transparent; }
.modal-footer .btn-primary,
.modal-footer button.btn-primary{ background:var(--brand); color:#fff; border-color:var(--brand); }
.modal-footer .btn-primary:hover,
.modal-footer button.btn-primary:hover{ background:var(--accent-2); border-color:var(--accent-2); transform:translateY(-1px); box-shadow:0 4px 12px rgba(45,62,159,0.2); }
.modal-footer .btn-secondary,
.modal-footer button.btn-secondary{ background:var(--card); color:var(--text); border-color:var(--border); }
.modal-footer .btn-secondary:hover,
.modal-footer button.btn-secondary:hover{ background:var(--chip-bg); border-color:var(--brand); color:var(--brand); }
.modal.call-modal{ width:520px; max-width:95vw; }
.call-modal-body{ display:flex; flex-direction:column; gap:16px; max-height:70vh; overflow:auto; padding-right:4px; }
.call-section{ border:1px solid var(--muted-2); border-radius:10px; padding:12px; background:var(--bg); display:flex; flex-direction:column; gap:8px; }
.call-section-title{ font-size:13px; font-weight:600; margin:0; text-transform:uppercase; letter-spacing:0.5px; color:var(--text-dim); }
.call-options{ display:flex; flex-direction:column; gap:6px; }
.call-option{ display:flex; gap:10px; align-items:flex-start; padding:8px; border-radius:8px; cursor:pointer; transition:background .2s ease, border-color .2s ease; border:1px solid transparent; }
.call-option:hover{ background:rgba(148,163,184,0.18); border-color:rgba(148,163,184,0.32); }
.call-option input{ margin-top:4px; }
.call-option-main{ display:flex; flex-direction:column; gap:2px; }
.call-option-label{ font-weight:600; font-size:14px; color:var(--text-strong); }
.call-option-sub{ font-size:12px; color:var(--text-dim); }
.call-empty{ font-size:12px; color:var(--text-dim); font-style:italic; }
.call-footer-note{ margin-top:8px; font-size:12px; color:var(--text-dim); }

/* Responsive tweaks */
@media (max-width: 840px){
  .note{ max-width:180px; }
  .search{ min-width:220px }
  table{ font-size:14px }
  .hide-sm{ display:none }
}

/* Patient Tabs Section */
.patient-tabs-container{ margin-top:24px; }
.patient-tabs-header{ display:flex; gap:8px; align-items:center; background:var(--card); border:1px solid var(--muted-2); border-bottom:none; border-radius:var(--radius) var(--radius) 0 0; padding:8px 8px 0 8px; overflow-x:auto; }
.patient-tab{ 
  display:flex; 
  align-items:center; 
  gap:8px; 
  padding:12px 20px; 
  border-radius:var(--radius) var(--radius) 0 0; 
  cursor:pointer; 
  font-weight:500; 
  font-size:14px; 
  border:1px solid transparent; 
  background:var(--chip-bg); 
  color:var(--text-dim); 
  transition: all 0.2s ease; 
  white-space:nowrap; 
  position:relative; 
}
.patient-tab:hover{ 
  background:var(--muted-2); 
  color:var(--text);
}
.patient-tab.active{ 
  background:var(--card); 
  border:1px solid var(--border); 
  border-bottom-color:var(--card); 
  transform: translateY(1px); 
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05); 
  color:var(--brand);
  font-weight:600;
}
.patient-tab-close{ margin-left:4px; padding:2px 6px; border-radius:4px; font-size:16px; line-height:1; opacity:0.6; transition: all 0.2s; }
.patient-tab-close:hover{ opacity:1; background:rgba(0,0,0,0.1); }
.patient-tab-content{ background:var(--card); border:1px solid var(--muted-2); border-top:none; border-radius:0 0 var(--radius) var(--radius); min-height:600px; display:none; }
.patient-tab-content.active{ display:block; }
.patient-tabs-empty{ text-align:center; padding:60px 20px; color:var(--text-dim); }
.patient-tabs-empty-icon{ font-size:48px; margin-bottom:16px; opacity:0.3; }

/* Colorful tab indicators */
.patient-tab[data-color="0"]{ border-left:4px solid #ef4444; }
.patient-tab[data-color="1"]{ border-left:4px solid #f59e0b; }
.patient-tab[data-color="2"]{ border-left:4px solid #10b981; }
.patient-tab[data-color="3"]{ border-left:4px solid #3b82f6; }
.patient-tab[data-color="4"]{ border-left:4px solid #8b5cf6; }
.patient-tab[data-color="5"]{ border-left:4px solid #ec4899; }
.patient-tab[data-color="6"]{ border-left:4px solid #14b8a6; }
.patient-tab[data-color="7"]{ border-left:4px solid #f97316; }

/* Patient Record Styles (for embedded patient tabs) */
.patient-header{ 
  background:var(--card); 
  border:1px solid var(--border); 
  box-shadow:var(--shadow); 
  border-radius:var(--radius); 
  padding:24px; 
  margin-bottom:24px; 
}
.header-main{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; flex-wrap:wrap; gap:12px; }
.patient-name-section{ display:flex; align-items:center; gap:12px; flex:1; flex-wrap:wrap; }
.patient-name-block{ display:flex; flex-direction:column; gap:6px; min-width:200px; }
.patient-name{ 
  font-size:24px; 
  font-weight:600; 
  margin:0; 
  color:var(--text);
}
.patient-name-meta{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  font-size:13px;
  color:var(--text-dim);
}
.patient-name-meta span{
  display:flex;
  align-items:center;
  gap:6px;
}
.patient-name-meta span strong{
  color:var(--text);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.04em;
  font-size:12px;
}
.gear-btn{ 
  cursor:pointer; 
  border:1px solid var(--border); 
  background:var(--card); 
  color:var(--text-dim); 
  padding:8px 10px; 
  border-radius:var(--radius); 
  font-size:16px; 
  display:inline-flex; 
  align-items:center; 
  transition: all 0.2s ease;
}
.gear-btn:hover{ 
  background:var(--chip-bg); 
  color:var(--brand); 
  border-color:var(--brand);
  transform: rotate(90deg) translateY(-1px);
}
.header-fields{ display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:16px; }
.header-field{ display:flex; flex-direction:column; gap:4px; }
.field-label{ font-size:12px; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.5px; font-weight:600; margin-bottom:4px; }
.field-value{ font-size:16px; }

/* Devices management */
.devices-pane{ display:flex; flex-direction:column; gap:16px; }
.devices-header{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.devices-header h3{ margin:0; font-size:18px; font-weight:600; color:var(--text); }
.devices-subtitle{ margin:4px 0 0 0; color:var(--text-dim); font-size:13px; }
.device-order-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--brand);
  background:var(--brand);
  color:#fff;
  font-weight:600;
  padding:8px 14px;
  border-radius:var(--radius);
  cursor:pointer;
  transition:all 0.2s ease;
}
.device-order-btn:hover{
  background:var(--brand-accent);
  border-color:var(--brand-accent);
  transform:translateY(-1px);
}
.device-order-form{
  display:none;
  padding:16px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--panel);
  box-shadow:var(--shadow-sm);
  flex-direction:column;
  gap:12px;
}
.device-order-form.open{
  display:flex;
}
.device-order-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  color:var(--text);
}
.device-order-form select,
.device-order-form input,
.device-order-form textarea{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:8px 10px;
  font-size:14px;
  background:var(--card);
  color:var(--text);
}
.device-order-form textarea{
  min-height:70px;
  resize:vertical;
}
.device-order-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:4px;
  align-items:center;
  flex-wrap:wrap;
}
.device-order-form-actions button{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:8px 14px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s ease;
}
.device-order-form-actions button[type="submit"]{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
.device-order-form-actions button[type="submit"]:hover{
  background:var(--brand-accent);
  border-color:var(--brand-accent);
}
.device-order-form-actions button[data-action="cancel"]{
  background:var(--card);
  color:var(--text-dim);
}
.device-cancel-window{
  font-size:12px;
  color:var(--text-dim);
}
.devices-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:32px;
  border:1px dashed var(--border);
  border-radius:var(--radius);
  color:var(--text-dim);
  gap:8px;
}
.devices-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.device-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--card);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  box-shadow:var(--shadow-sm);
}
.device-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.device-card-title{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.device-card-title strong{
  font-size:16px;
  color:var(--text);
}
.device-card-title span{
  font-size:13px;
  color:var(--text-dim);
}
.device-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.04em;
}
.device-status--ordered{
  background:rgba(59,130,246,0.12);
  color:#1d4ed8;
}
.device-status--shipped{
  background:rgba(5,150,105,0.12);
  color:#047857;
}
.device-status--delivered{
  background:rgba(14,165,233,0.12);
  color:#0369a1;
}
.device-status--cancelled{
  background:rgba(220,38,38,0.15);
  color:#b91c1c;
}
.device-card-body{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:12px;
}
.device-field-label{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:var(--text-dim);
  margin-bottom:4px;
  font-weight:600;
}
.device-field-value{
  font-size:13px;
  color:var(--text);
  word-break:break-word;
}
.device-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}
.device-actions button{
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  border-radius:var(--radius);
  padding:6px 12px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s ease;
}
.device-actions button:hover:not([disabled]){
  border-color:var(--brand);
  color:var(--brand);
}
.device-actions button[disabled]{
  opacity:0.5;
  cursor:not-allowed;
}
.device-tracking-link{
  color:var(--brand);
  text-decoration:none;
  font-weight:600;
}
.device-tracking-link:hover{
  text-decoration:underline;
}

/* Programs */
.programs-pane{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.programs-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}
.programs-header h3{
  margin:0;
  font-size:18px;
  font-weight:600;
  color:var(--text);
}
.programs-subtitle{
  margin:4px 0 0;
  color:var(--text-dim);
  font-size:13px;
}
.program-add-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--brand);
  background:var(--brand);
  color:#fff;
  font-weight:600;
  padding:8px 14px;
  border-radius:var(--radius);
  cursor:pointer;
  transition:all 0.2s ease;
}
.program-add-btn:hover{
  background:var(--brand-accent);
  border-color:var(--brand-accent);
  transform:translateY(-1px);
}
.program-form{
  display:none;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--panel);
  padding:16px;
  box-shadow:0 10px 24px rgba(15,23,42,0.12);
  flex-direction:column;
  gap:16px;
}
.program-form.open{
  display:flex;
}
.program-form-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}
.program-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  color:var(--text);
}
.program-form select,
.program-form input{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:8px 10px;
  font-size:14px;
  background:var(--card);
  color:var(--text);
}
.program-form-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.program-help-text{
  font-size:12px;
  color:var(--text-dim);
}
.program-form-buttons{
  display:flex;
  gap:8px;
}
.program-form button{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:8px 14px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s ease;
}
.program-form button[type="submit"]{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
.program-form button[type="submit"]:hover{
  background:var(--brand-accent);
  border-color:var(--brand-accent);
}
.program-form button[data-action="cancel"]{
  background:var(--card);
  color:var(--text-dim);
}
.programs-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:32px;
  border:1px dashed var(--border);
  border-radius:var(--radius);
  color:var(--text-dim);
  gap:8px;
}
.programs-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.program-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  background:var(--card);
  display:flex;
  flex-direction:column;
  gap:12px;
  box-shadow:0 12px 28px rgba(15,23,42,0.08);
}
.program-card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.program-card-title{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.program-card-title strong{
  font-size:15px;
  color:var(--text);
}
.program-card-title span{
  font-size:13px;
  color:var(--text-dim);
}
.program-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.05em;
}
.program-status.active{
  background:#dcfce7;
  color:#166534;
}
.program-status.paused{
  background:#fee2e2;
  color:#991b1b;
}
.program-card-body{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
}
.program-card-item{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.program-card-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:var(--text-dim);
  font-weight:600;
}
.program-card-value{
  font-size:13px;
  color:var(--text);
  word-break:break-word;
}
.program-card-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.program-card-actions button{
  border:1px solid var(--border);
  border-radius:6px;
  background:var(--card);
  color:var(--text);
  padding:6px 12px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s ease;
}
.program-card-actions button:hover:not([disabled]){
  border-color:var(--brand);
  color:var(--brand);
  background:#eef2e2;
}
/* Resume button specific styles - must override general button styles */
.program-card-actions button[data-program-action="resume"],
.program-card-actions .resume-program-btn{
  border:1px solid #10b981 !important;
  border-radius:999px !important;
  background:#10b981 !important;
  color:#fff !important;
  padding:8px 16px !important;
  font-size:13px !important;
  font-weight:600 !important;
  cursor:pointer !important;
  display:block !important;
  min-width:80px !important;
  visibility:visible !important;
  opacity:1 !important;
}
.program-card-actions button[data-program-action="resume"]:hover,
.program-card-actions .resume-program-btn:hover{
  background:#059669 !important;
  border-color:#059669 !important;
  color:#fff !important;
}
.program-card-actions button.danger{
  border-color:#ef4444;
  color:#b91c1c;
}
.program-card-actions button.danger:hover{
  background:#fee2e2;
}
.program-card-actions button[disabled]{
  opacity:0.5;
  cursor:not-allowed;
}

/* Tabs inside patient record */
.patient-tab-content .tabs{ 
  background:var(--card); 
  border:1px solid var(--border); 
  border-radius:var(--radius) var(--radius) 0 0; 
  display:flex; 
  border-bottom:none; 
}
.patient-tab-content .tab{ 
  padding:12px 20px; 
  cursor:pointer; 
  border-bottom:2px solid transparent; 
  font-weight:500; 
  font-size:14px;
  color:var(--text-dim);
  transition: all 0.2s ease;
}
.patient-tab-content .tab:hover{ 
  background:var(--chip-bg); 
  color:var(--text);
}
.patient-tab-content .tab.active{ 
  border-bottom-color:var(--brand); 
  color:var(--brand); 
  font-weight:600;
}

/* Tab Content inside patient record */
.patient-tab-content .tab-content{ background:var(--card); border:1px solid var(--muted-2); border-top:none; border-radius:0 0 var(--radius) var(--radius); padding:24px; min-height:400px; }
.patient-tab-content .tab-pane{ display:none; }
.patient-tab-content .tab-pane.active{ display:block; }
.tab-empty-state{
  display:none;
  padding:32px;
  border:1px dashed var(--border);
  border-radius:var(--radius);
  background:var(--card);
  color:var(--text-dim);
  text-align:center;
  font-size:13px;
  line-height:1.5;
  align-items:center;
  justify-content:center;
  min-height:160px;
}

.insights-grid{ display:grid; gap:14px; }
.insight-card{ border:1px solid var(--border); border-radius:12px; padding:16px; background:var(--panel); box-shadow:0 6px 18px rgba(15,23,42,0.08); display:flex; flex-direction:column; gap:10px; }
.insight-header{ display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:0.5px; }
.insight-title{ font-weight:600; font-size:16px; color:var(--text); }
.insight-body{ font-size:14px; color:var(--muted); line-height:1.6; white-space:pre-line; }
.insight-meta{ font-size:12px; color:var(--muted); display:flex; gap:12px; flex-wrap:wrap; }
.insight-tags{ display:flex; gap:6px; flex-wrap:wrap; }
.insight-tag{ padding:4px 8px; border-radius:999px; background:var(--chip-bg); font-size:11px; color:var(--text); border:1px solid var(--border); }

.genome-table{ width:100%; border-collapse:collapse; margin-top:12px; font-size:13px; }
.genome-table th, .genome-table td{ padding:10px 12px; border-bottom:1px solid var(--border); text-align:left; }
.genome-table th{ background:var(--chip-bg); color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:0.5px; }
.variant-impact-high{ color:#f87171; font-weight:600; }
.variant-impact-moderate{ color:#f59e0b; font-weight:600; }

.activity-controls{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.activity-controls input, .activity-controls select{ padding:8px 10px; border:1px solid var(--border); border-radius:10px; font-size:13px; background:var(--panel); color:var(--text); }
/* Activity Table */
.activity-table-container{ 
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.activity-table{ 
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.activity-table thead{ 
  background: var(--muted);
  position: sticky;
  top: 0;
  z-index: 10;
}
.activity-table th{ 
  padding: 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.activity-table td{ 
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.activity-table tbody tr:hover{ 
  background: var(--muted);
}
.activity-table tbody tr:last-child td{ 
  border-bottom: none;
}
.activity-th-content{ 
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-th-content span{ 
  font-weight: 600;
  color: var(--text);
}
.activity-column-filter{ 
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  background: var(--card);
  color: var(--text);
  width: 100%;
  transition: all 0.2s ease;
}
.activity-column-filter:focus{ 
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45,62,159,0.1);
  outline: none;
}
.activity-empty-state{ 
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.activity-empty-state .empty-state-icon{ 
  font-size: 48px;
  margin-bottom: 16px;
}

/* Results */
.results-container{ 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 20px;
}
.results-header{ 
  margin-bottom: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.results-toggle-btn{ 
  padding: 8px 16px; 
  border: 1px solid var(--border); 
  background: var(--muted-2); 
  border-radius: var(--radius); 
  cursor: pointer; 
  font-size: 14px; 
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}
.results-toggle-btn:hover{ 
  background: var(--chip-bg);
  border-color: var(--brand);
  color: var(--brand);
}
.results-header-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.results-alerts-btn{
  border:1px solid var(--border);
  background:var(--card);
  color:var(--brand);
  padding:8px 14px;
  border-radius:var(--radius);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s ease;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.results-alerts-btn:hover{
  border-color:var(--brand);
  background:#eef2ff;
  color:var(--brand);
  transform:translateY(-1px);
}
.results-filters{ 
  margin-bottom: 20px; 
  padding: 16px; 
  background: var(--muted-2); 
  border-radius: var(--radius);
}
.measurement-tabs{ 
  display: flex; 
  gap: 8px; 
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.measurement-tab{ 
  padding: 8px 16px; 
  border: none; 
  background: transparent; 
  border-radius: 6px 6px 0 0; 
  cursor: pointer; 
  font-size: 14px; 
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -10px;
}
.measurement-tab:hover{ 
  background: var(--muted-2);
  color: var(--text);
}
.measurement-tab.active{ 
  color: var(--brand); 
  border-bottom-color: var(--brand);
  font-weight: 600;
}
.measurement-bulk-modal{
  max-width: 800px;
  width: 100%;
}
.measurement-bulk-controls{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--muted-2);
  border-radius: var(--radius);
  gap: 12px;
  flex-wrap: wrap;
}
.measurement-bulk-select-all{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}
.measurement-bulk-select-all:hover{
  background: var(--chip-bg);
}
.measurement-bulk-select-all input{
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}
.measurement-bulk-table-wrap{
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.measurement-bulk-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--card);
}
.measurement-bulk-table thead{
  background: var(--muted-2);
  position: sticky;
  top: 0;
  z-index: 1;
}
.measurement-bulk-table th{
  padding: 14px 16px;
  border-bottom: 2px solid var(--border);
  vertical-align: middle;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
}
.measurement-bulk-table td{
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: left;
  color: var(--text);
}
.measurement-bulk-table tbody tr:hover{
  background: var(--muted-2);
}
.measurement-bulk-table tbody tr:last-child td{
  border-bottom: none;
}
.measurement-bulk-table td:first-child,
.measurement-bulk-table th:first-child{
  width: 50px;
  text-align: center;
}
.measurement-bulk-checkbox{
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}
.measurement-range-controls{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:16px;
}
.measurement-range-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.measurement-range-btn{
  padding:6px 14px;
  border:1px solid var(--border);
  background:var(--card);
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  color:var(--text-dim);
  cursor:pointer;
  transition:all 0.2s ease;
}
.measurement-range-btn:hover{
  border-color:var(--brand);
  color:var(--brand);
  background:#eef2ff;
}
.measurement-range-btn.active{
  background:var(--brand);
  border-color:var(--brand);
  color:#ffffff;
  box-shadow:0 6px 16px rgba(45,62,159,0.18);
}
.measurement-range-nav{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.measurement-range-label{
  font-weight:600;
  color:var(--text);
  font-size:14px;
  min-width:160px;
}
.range-nav-btn{
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  border-radius:var(--radius);
  padding:6px 10px;
  font-size:13px;
  cursor:pointer;
  transition:all 0.2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.range-nav-btn:hover:not([disabled]){
  border-color:var(--brand);
  color:var(--brand);
  background:#eef2ff;
}
.range-nav-btn[disabled]{
  opacity:0.4;
  cursor:not-allowed;
}
.measurement-graphs{
  position:relative;
  min-height:260px;
}
.measurement-graph-pane{
  display:none;
}
.measurement-graph-pane.active{
  display:block;
}
.graph-container{
  width:100%;
  height:260px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  position:relative;
  padding:20px;
  box-shadow:0 12px 28px rgba(15,23,42,0.08);
}
.results-table-container{ 
  overflow-x: auto;
}
.results-table{ 
  width: 100%; 
  border-collapse: collapse;
  font-size: 14px;
}
.results-table thead{ 
  background: var(--muted);
}
.results-table th{ 
  padding: 12px; 
  text-align: left; 
  font-weight: 600; 
  font-size: 13px; 
  color: var(--text); 
  border-bottom: 2px solid var(--border);
}
.results-table td{ 
  padding: 12px; 
  border-bottom: 1px solid var(--border); 
  color: var(--text);
  vertical-align: middle;
}
.results-table tbody tr:hover{ 
  background: var(--muted);
}
.results-table tbody tr:last-child td{ 
  border-bottom: none;
}
.measurement-value{ 
  font-weight: 600; 
  font-size: 15px; 
  color: var(--text);
}
.measurement-label{ 
  font-size: 12px; 
  color: var(--text-dim); 
  margin-left: 4px;
}
.measurement-alert{ 
  display: inline-flex; 
  align-items: center; 
  gap: 4px; 
  padding: 4px 8px; 
  background: #fee2e2; 
  color: #991b1b; 
  border-radius: 4px; 
  font-size: 11px; 
  font-weight: 600;
}
.measurement-source{ 
  font-size: 18px; 
  text-align: center;
}
.measurement-actions{ 
  display: flex; 
  gap: 8px;
}
.measurement-action-btn{ 
  padding: 6px 12px; 
  border: 1px solid var(--border); 
  background: var(--card); 
  border-radius: 6px; 
  cursor: pointer; 
  font-size: 12px; 
  transition: all 0.2s ease;
}
.measurement-action-btn:hover{ 
  background: var(--muted); 
  border-color: var(--brand);
}
.measurement-action-btn.danger:hover{ 
  background: #fee2e2; 
  border-color: #ef4444;
  color: #991b1b;
}

.encounters-grid{ display:grid; gap:14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.encounters-list-view{ 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 16px;
}
.encounters-card-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.encounter-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.encounter-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15,23,42,0.12);
}
.encounter-card-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.encounter-card-title{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.encounter-card-title strong{
  font-size: 15px;
  color: var(--text);
}
.encounter-card-title span{
  font-size: 13px;
  color: var(--text-dim);
}
.encounter-card-body{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.encounter-card-item{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.encounter-card-label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
}
.encounter-card-value{
  font-size: 13px;
  color: var(--text);
}
.encounter-status{ 
  display:inline-block; 
  padding:4px 8px; 
  border-radius:4px; 
  font-size:11px; 
  font-weight:600; 
  text-transform:uppercase;
}
.encounter-status.upcoming{ 
  background:#dbeafe; 
  color:#1e40af;
}
.encounter-status.completed{ 
  background:#e5e7eb; 
  color:#374151;
}
.encounter-status.cancelled{ 
  background:#fee2e2; 
  color:#991b1b;
}
.encounter-actions{ 
  display:flex; 
  gap:8px;
  flex-wrap:wrap;
}
.encounter-action-btn{ 
  padding:6px 12px; 
  border:1px solid var(--border); 
  background:var(--card); 
  border-radius:6px; 
  cursor:pointer; 
  font-size:12px; 
  transition:all 0.2s ease;
}
.encounter-action-btn:hover{ 
  background:var(--muted); 
  border-color:var(--brand);
}
.encounter-action-btn.danger{
  border-color:#ef4444;
  color:#991b1b;
}
.encounter-action-btn.danger:hover{
  background:#fee2e2;
  border-color:#ef4444;
}
.encounter-card{ border:1px solid var(--border); border-radius:12px; padding:14px; background:var(--panel); box-shadow:0 6px 18px rgba(15,23,42,0.08); display:flex; flex-direction:column; gap:6px; }
.encounter-card.upcoming{ border-color:#38bdf8; background:rgba(56,189,248,0.1); }
.encounter-card.past{ opacity:0.85; }
.encounter-date{ font-size:13px; font-weight:600; color:var(--accent); }
.encounter-title{ font-size:14px; font-weight:600; color:var(--text); }
.encounter-meta{ font-size:12px; color:var(--muted); display:flex; gap:8px; flex-wrap:wrap; }
.encounter-notes{ font-size:13px; color:var(--muted); }

.info-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap:20px; }
.info-item{ display:flex; flex-direction:column; gap:4px; }
.info-label{ font-size:13px; color:var(--text-dim); font-weight:600; margin-bottom:4px; }
.info-value{ font-size:15px; }

.empty-state{ text-align:center; padding:60px 20px; color:var(--text-dim); }
.empty-state-icon{ font-size:48px; margin-bottom:16px; }

/* Tab Configuration */
.tab-config-btn{ 
  cursor:pointer; 
  border:1px solid var(--border); 
  background:var(--card); 
  color:var(--text-dim); 
  padding:8px 10px; 
  border-radius:var(--radius); 
  font-size:16px; 
  margin-left:auto; 
  display:inline-flex; 
  align-items:center; 
  transition: all 0.2s ease;
}
.tab-config-btn:hover{ 
  background:var(--chip-bg); 
  color:var(--brand); 
  border-color:var(--brand);
  transform: translateY(-1px);
}

/* Viewers Indicator */
.viewers-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: help;
  min-width: 24px;
  z-index: 1;
}
/* Ensure viewers column has minimum width */
table thead th[data-col-id="viewers"],
table tbody td[data-col-id="viewers"] {
  min-width: 40px;
  width: 40px;
  text-align: center;
  position: relative;
  overflow: visible;
}
.viewers-indicator-icon {
  font-size: 16px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.viewers-indicator.has-viewers .viewers-indicator-icon {
  opacity: 1;
  color: var(--ok);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.viewers-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 6px 10px;
  background: #1e293b;
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.viewers-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1e293b;
}
.viewers-indicator:hover .viewers-tooltip {
  opacity: 1;
}
.viewers-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.viewer-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.viewer-name {
  font-weight: 500;
}
.viewer-role {
  font-size: 11px;
  opacity: 0.8;
}
  </style>
