/* OpsHub UI — Dark-mode first (Modern Pass) */
:root{
  --bg:#0b1220;
  --bg2:#070b14;
  --surface:rgba(255,255,255,.04);
  --surface2:rgba(255,255,255,.06);
  --card:rgba(255,255,255,.05);
  --card2:rgba(255,255,255,.08);
  --text:#e5e7eb;
  --muted:#94a3b8;
  --muted2:#64748b;
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.14);
  --brand:#5DA87A;
  --brand2:#2E6B46;
  --danger:#fb7185;
  --warning:#fbbf24;
  --success:#34d399;
  --info:#60a5fa;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadow2: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --radius2:12px;
}


html[data-theme="light"]{
  --bg:#f8fafc;
  --bg2:#eef2ff;
  --surface:rgba(15,23,42,.03);
  --surface2:rgba(15,23,42,.05);
  --card:rgba(255,255,255,.75);
  --card2:rgba(255,255,255,.90);
  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;
  --line:rgba(15,23,42,.12);
  --line2:rgba(15,23,42,.18);
  --shadow: 0 18px 50px rgba(2,6,23,.10);
  --shadow2: 0 10px 30px rgba(2,6,23,.10);
}

*{box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial; }
html,body{height:100%;}
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(93,168,122,.14), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(96,165,250,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{color:var(--brand);text-decoration:none;}
a:hover{text-decoration:underline;}

.app{display:flex;min-height:100vh;}

/* Sidebar */
.sidebar{
  width:280px;
  background: rgba(0,0,0,.22);
  border-right: 1px solid var(--line);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:14px;
  position:sticky;
  top:0;
  height:100vh;
  backdrop-filter: blur(10px);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.brand-mark{
  width:44px;height:44px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;letter-spacing:.5px;
  background: linear-gradient(135deg, rgba(93,168,122,.28), rgba(93,168,122,.08));
  border:1px solid rgba(93,168,122,.30);
  color: var(--text);
}
.brand-meta{min-width:0;flex:1;}
.brand-name{font-weight:900;font-size:16px;line-height:1.15;margin:0;}
.brand-sub{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dot{opacity:.7;margin:0 6px;}
.sidebar-close{display:none;}

/* Nav */
.nav{display:flex;flex-direction:column;gap:12px;margin-top:2px;}
.nav-group{display:flex;flex-direction:column;gap:6px;}
.nav-label{
  color: var(--muted2);
  font-size:11px;
  text-transform: uppercase;
  letter-spacing:.12em;
  margin:6px 10px 0;
}
.nav-link{
  color: var(--text);
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid transparent;
  background: transparent;
}
.nav-link:hover{
  background: var(--surface);
  border-color: var(--line);
  text-decoration:none;
}
.nav-link.active{
  background: linear-gradient(135deg, rgba(93,168,122,.22), rgba(93,168,122,.08));
  border-color: rgba(93,168,122,.30);
}
.nav-ico{
  width:22px;height:22px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  background: rgba(255,255,255,.05);
  border:1px solid var(--line);
  color: var(--text);
  font-size:12px;
  flex:none;
}
.logout{margin-top:auto;}

/* Main + Topbar */
.main{flex:1;min-width:0;}
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  background: rgba(8,12,22,.65);
  backdrop-filter: blur(10px);
}
.topbar-left{display:flex;align-items:center;gap:12px;}
.topbar-title{display:flex;flex-direction:column;gap:2px;}
.topbar-kicker{font-size:11px;color:var(--muted2);letter-spacing:.10em;text-transform:uppercase;}
.topbar-page{font-size:14px;font-weight:800;}

.topbar-center{flex:1;display:flex;justify-content:center;}
.search{
  width:min(520px, 100%);
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.search-ico{color:var(--muted);}
.search-input{
  width:100%;
  border:0;
  outline:none;
  background:transparent;
  color:var(--muted);
}
.topbar-right{display:flex;align-items:center;gap:10px;}

.content{padding:18px;max-width:1200px;margin:0 auto;}

/* Buttons */
button, .btn, input[type="submit"]{
  appearance:none;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 14px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:700;
}
button:hover, .btn:hover, input[type="submit"]:hover{
  background: rgba(255,255,255,.09);
  border-color: var(--line2);
}
.btn{display:inline-flex;align-items:center;gap:8px;text-decoration:none;}
.btn--primary{
  background: linear-gradient(135deg, rgba(93,168,122,.40), rgba(93,168,122,.18));
  border-color: rgba(93,168,122,.38);
}
.btn--primary:hover{background: linear-gradient(135deg, rgba(93,168,122,.50), rgba(93,168,122,.22));}
.btn--secondary{
  background: rgba(255,255,255,.05);
}
.iconbtn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding:10px 12px;
  cursor:pointer;
}
.iconbtn--ghost{
  background: transparent;
  border-color: transparent;
}
.w-full{width:100%;}

/* Typography + cards */
.page h1{margin:0 0 14px 0;font-size:22px;letter-spacing:-.01em;}
.page h2{margin:0 0 10px 0;font-size:16px;}
.muted{color:var(--muted);font-size:13px;}

/* Rich Text Editor (RTE) */
.rte{
  border:1px solid var(--line);
  border-radius:var(--radius2);
  background:var(--surface);
  overflow:hidden;
}

/* Toolbar = single row like webmail */
.rte__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.rte__toolbar{
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
  align-items:center;
  overflow:auto;
  padding-bottom:2px;
}
.rte__toolbar::-webkit-scrollbar{height:6px;}
.rte__toolbar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:999px;}
.rte__btn{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:var(--text);
  padding:6px 10px;
  border-radius:10px;
  cursor:pointer;
  font-size:12px;
  line-height:1;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}
.rte__btn:hover{border-color:var(--line2); background:rgba(255,255,255,.09);}
.rte__sep{width:1px; height:22px; background:var(--line); margin:0 6px; flex:0 0 auto;}
.rte__select{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:var(--text);
  padding:6px 8px;
  border-radius:10px;
  height:32px;
  width:auto;
}
.rte__color{width:32px; height:32px; padding:0; border:1px solid var(--line); background:transparent; border-radius:10px;}
.rte__mode{display:flex; gap:6px; align-items:center; flex:0 0 auto;}
.rte__mode .btn{padding:6px 10px; border-radius:999px; height:32px; font-size:12px;}
.rte [data-mode].active{border-color:rgba(93,168,122,.55); box-shadow:0 0 0 2px rgba(93,168,122,.18) inset;}

/* Canvas = always shows a real editable area in Rich mode */
.rte__canvas{
  padding:10px;
  background: rgba(0,0,0,.18);
}
.rte__editor{
  min-height:280px;
  padding:12px;
  outline:none;
  color:var(--text);
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius: 14px;
  overflow:auto;
}
.rte__editor:focus{
  border-color: rgba(93,168,122,.55);
  box-shadow: 0 0 0 4px rgba(93,168,122,.14);
}
.rte__editor:empty:before{content:attr(data-placeholder); color:var(--muted2);} 
.rte__source{
  width:100%;
  min-height:280px;
  border:1px solid var(--line);
  border-radius: 14px;
  outline:none;
  padding:12px;
  background: rgba(255,255,255,.03);
  color:var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}
.rte--small .rte__editor{min-height:160px;}
.rte--small .rte__source{min-height:160px;}

/* Slightly tighter spacing for the webmail-style instances */
.rte--webmail .rte__top{padding:8px 10px;}
.rte--webmail .rte__canvas{padding:10px;}
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  margin:12px 0;
  box-shadow: var(--shadow2);
}
.card:hover{border-color: var(--line2);}
.note{border-top:1px solid var(--line);padding:12px 0;margin-top:12px;}

/* Alerts */
.alert{
  border-radius: var(--radius);
  padding:12px 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  margin:12px 0;
}
.alert.info{border-color: rgba(96,165,250,.35); background: rgba(96,165,250,.10); color: #bfdbfe;}
.alert.success{border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.10); color: #bbf7d0;}
.alert.error{border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.10); color: #fecdd3;}

/* Badges */
.badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 10px;border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size:12px;color:var(--text);
}
.badge--muted{color:var(--muted);}

/* User chip */
.userchip{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 10px;border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.userchip-dot{width:10px;height:10px;border-radius:50%;background: rgba(52,211,153,.85); box-shadow: 0 0 0 4px rgba(52,211,153,.14);}
.userchip-name{font-size:12px;color:var(--muted);font-weight:700;}

/* Inputs */
label{display:block;font-size:12px;color:var(--muted);margin:10px 0 6px;letter-spacing:.02em;}
input, select, textarea{
  width:100%;
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: var(--text);
  border-radius: 14px;
  padding:10px 12px;
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(93,168,122,.55);
  box-shadow: 0 0 0 4px rgba(93,168,122,.14);
}
textarea{min-height:120px;resize:vertical;}

/* Tables */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:13px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(255,255,255,.03);
}
.table th,.table td{
  border-bottom:1px solid var(--line);
  padding:10px 12px;
  vertical-align:top;
  text-align:left;
}
.table th{
  color: var(--muted);
  font-weight:800;
  background: rgba(255,255,255,.04);
}
.table tr:hover td{background: rgba(255,255,255,.04);}
.table tr:last-child td{border-bottom:0;}

/* Grids */
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}

details summary{cursor:pointer;color:var(--brand);}

/* Mobile */
@media (max-width: 980px){
  .sidebar{position:fixed;left:-300px;top:0;bottom:0;transition:left .18s ease;z-index:60;box-shadow: var(--shadow);}
  .sidebar.open{left:0;}
  .sidebar-close{display:inline-flex;}
  .topbar-center{display:none;}
  .content{padding:14px;}
  .grid2{grid-template-columns:1fr;}
  .grid3{grid-template-columns:1fr;}
}

.nav-ico svg{width:18px;height:18px;}
.kpi-ico svg{width:20px;height:20px;}

/* Segmented control (theme toggle) */
.segmented{
  display:inline-flex;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 999px;
  overflow:hidden;
  margin-top:10px;
}
.segmented-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  cursor:pointer;
  color:var(--muted);
  font-weight:800;
  user-select:none;
}
.segmented-item input{display:none;}
.segmented-item span{display:inline-block;}
html[data-theme="light"] .segmented{background: rgba(15,23,42,.03);}

.pagehead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.actions{display:flex;gap:10px;flex-wrap:wrap;}

.kpi-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.kpi-tile{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow2);
}
.kpi-ico{
  width:44px;height:44px;border-radius: 16px;
  display:flex;align-items:center;justify-content:center;
  background: rgba(93,168,122,.14);
  border:1px solid rgba(93,168,122,.22);
  color: var(--text);
  flex:none;
}
.kpi-meta{min-width:0;flex:1;}
.kpi-num{font-size:24px;font-weight:900;letter-spacing:-.02em;line-height:1.1;}
.kpi-label{color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;margin-top:3px;}
.kpi-hint{color:var(--muted2);font-size:12px;font-weight:700;}

.chart-placeholder{
  border:1px dashed var(--line2);
  border-radius: var(--radius);
  padding:14px;
  background: rgba(255,255,255,.02);
}
.chart-title{font-weight:900;margin-bottom:10px;}
.chart-skeleton{
  height:140px;
  border-radius: var(--radius2);
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.10), rgba(255,255,255,.04));
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
html[data-theme="light"] .chart-skeleton{
  background: linear-gradient(90deg, rgba(15,23,42,.04), rgba(15,23,42,.08), rgba(15,23,42,.04));
  background-size:200% 100%;
}
@keyframes shimmer{
  0%{background-position:0% 0;}
  100%{background-position:-200% 0;}
}
.steps, .tips{margin:0;padding-left:18px;}
.steps li, .tips li{margin:8px 0;color:var(--text);}
@media (max-width: 980px){
  .kpi-grid{grid-template-columns:1fr;}
}

.segmented-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
}
.segmented-item{padding:0;}
.segmented-item input:checked + .segmented-pill{
  background: linear-gradient(135deg, rgba(93,168,122,.40), rgba(93,168,122,.16));
  color:var(--text);
}

.segmented-item .segmented-pill{color:var(--muted); font-weight:800; user-select:none; cursor:pointer;}

/* ===== OpsHub Hotfix: Webmail-like RTE toolbar + bigger editor (v2) =====
   Goal:
   - Force ALL toolbar controls into ONE horizontal row (no wrapping)
   - Override any global form rules that make inputs/selects/buttons width:100%
   - Make the Rich editor canvas clearly visible, larger, and vertically resizable
*/

/* Force top bar + toolbar to never wrap */
.rte__top{flex-wrap:nowrap !important;}
.rte__toolbar{
  flex:1 1 auto !important;
  flex-wrap:nowrap !important;
  white-space:nowrap !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
}
.rte__toolbar > *{flex:0 0 auto !important;}

/* Hard override global form CSS that may set inputs/selects/buttons to full width */
.rte .rte__select,
.rte .rte__toolbar select,
.rte .rte__toolbar input,
.rte .rte__toolbar button{
  width:auto !important;
  max-width:unset !important;
  display:inline-flex !important;
}

/* Make dropdowns compact (like webmail) */
.rte .rte__select{
  min-width:120px;
}
.rte .rte__select[data-fontsize],
.rte .rte__toolbar select[data-fontsize]{
  min-width:90px;
}

/* Make colour pickers square, not long bars */
.rte .rte__color,
.rte .rte__toolbar input[type="color"]{
  width:34px !important;
  min-width:34px !important;
  height:32px !important;
  padding:0 !important;
  border-radius:10px !important;
}

/* Ensure mode buttons stay in the same line and don't stretch */
.rte__mode .btn{
  width:auto !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

/* Bigger, clearer editor area + resizable */
.rte__editor{
  min-height:360px !important;
  height:360px;
  resize:vertical;
  overflow:auto !important;
}
.rte__source{
  min-height:360px !important;
  resize:vertical;
}

/* Webmail-style look: make the canvas stand out more so it never feels "missing" */
.rte--webmail .rte__canvas{background: rgba(0,0,0,.10) !important;}
.rte--webmail .rte__editor{
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.16) !important;
}

/* ------------------------------------------------------------
   Light mode polish + Calendar readability
   - Make topbar match light UI (no dark strip)
   - Make FullCalendar event text readable (no white-on-pale)
------------------------------------------------------------- */

html[data-theme="light"] .topbar{
  background: rgba(255,255,255,.82);
}

html[data-theme="light"] .search{
  background: rgba(255,255,255,.70);
}

/* FullCalendar: force event text to follow theme text color */
.fc .fc-event,
.fc .fc-event .fc-event-title,
.fc .fc-event .fc-event-time,
.fc .fc-list-event-title,
.fc .fc-list-event-time{
  color: var(--text) !important;
}

/* In light mode, give events a touch more contrast */
html[data-theme="light"] .fc .fc-event{
  border-color: rgba(15,23,42,.18) !important;
}

/* ------------------------------------------------------------
   Hotfix: Light mode topbar + FullCalendar readability
   - Force topbar to near-white and remove dark translucent blur
   - Ensure FullCalendar event text is readable in light mode
   Build: 2026-01-12_3
------------------------------------------------------------- */

html[data-theme="light"] .topbar{
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: none !important;
}

html[data-theme="light"] .search{
  background: rgba(248,250,252,.96) !important;
}

html[data-theme="light"] .search-input{
  color: #0f172a !important;
}

html[data-theme="light"] .search-input::placeholder{
  color: #94a3b8 !important;
}

html[data-theme="light"] .fc .fc-event,
html[data-theme="light"] .fc .fc-event .fc-event-main,
html[data-theme="light"] .fc .fc-event .fc-event-title,
html[data-theme="light"] .fc .fc-event .fc-event-time,
html[data-theme="light"] .fc .fc-list-event-title,
html[data-theme="light"] .fc .fc-list-event-time{
  color: #0f172a !important;
}

/* --- Lead360 / Inbox Lead Panel (futuristic, non-breaking) --- */
.lead360-split{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;align-items:start}
.lead360-main{min-width:0}
.lead360-aside{position:sticky;top:12px}
.lead360-glass{
  background:rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.lead360-panel-title{font-weight:700;letter-spacing:.2px;margin-bottom:10px}
.lead360-leadname{font-size:18px;font-weight:800}
.lead360-pills{display:flex;flex-wrap:wrap;gap:8px}
.pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.8);font-size:12px}
.lead360-formstack{display:flex;flex-direction:column;gap:10px}
@media (max-width: 1100px){
  .lead360-split{grid-template-columns:1fr}
  .lead360-aside{position:relative;top:auto}
}
/* BEGIN OPSHUB LEAD360 EMBED v1 */
/* OpsHub Lead360 UI Enhancements (Part 3A)
   Non-breaking: drawer UI for Inbox Lead Panel + Lead Types settings view.
*/

/* When drawer mode is used, keep content full width */
.lead360-split.lead360-split--drawer{grid-template-columns:1fr !important;}

/* Drawer overlay */
.lead360-drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 60;
}

/* Drawer container */
.lead360-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(460px, 94vw);
  transform: translateX(110%);
  transition: transform .22s ease;
  z-index: 61;
  padding: 12px;
}

body.lead360-drawer-open .lead360-drawer-overlay{
  opacity: 1;
  pointer-events: auto;
}

body.lead360-drawer-open .lead360-drawer{
  transform: translateX(0);
}

/* Make the drawer content scroll inside */
.lead360-drawer .card{
  height: calc(100vh - 24px);
  overflow: auto;
}

.lead360-drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.lead360-drawer-title{
  display:flex;
  flex-direction:column;
  gap: 2px;
}

.lead360-drawer-title strong{
  font-size: 14px;
  letter-spacing: .2px;
}

.lead360-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.85);
  cursor: pointer;
}

.lead360-close:hover{
  transform: translateY(-1px);
}

/* Small futuristic accent */
.lead360-glowbar{
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(93,168,122,.15), rgba(182,231,215,.65), rgba(93,168,122,.15));
  margin: 8px 0 12px;
}

/* Dark theme refinements (keeps existing look, improves contrast) */
html[data-theme="dark"] .lead360-glass{
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

html[data-theme="dark"] .pill{
  background: rgba(15,23,42,.60);
  border: 1px solid rgba(255,255,255,.14);
}

html[data-theme="dark"] .lead360-close{
  background: rgba(15,23,42,.85);
  border: 1px solid rgba(255,255,255,.14);
}

html[data-theme="dark"] .lead360-drawer-overlay{
  background: rgba(0,0,0,.60);
}

/* Lead Types page helpers */
.leadtypes-wrap{display:grid;grid-template-columns:1fr 420px;gap:14px;align-items:start}
@media (max-width: 1100px){.leadtypes-wrap{grid-template-columns:1fr}}
.leadtypes-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.leadtypes-quick .pill{cursor:pointer;user-select:none}
/* END OPSHUB LEAD360 EMBED v1 */


/* Timezone badge (distributed teams) */
.tzbadge{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(0,0,0,0.15);
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
  max-width:340px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tzbadge strong{ font-weight:600; }
@media (max-width: 1100px){
  .tzbadge{ display:none; }
}
