
/* WordPress admin cleanup for full-bleed app */

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  min-height: 100%;
  background: #070c1a !important;
  overflow: hidden;
}
body.toplevel_page_spyfactory-app #wpwrap {
  min-height: 100vh;
  background: #070c1a !important;
}

/* Remove leftover WordPress admin edge / strip on this page */
body.toplevel_page_spyfactory-app #adminmenuback,
body.toplevel_page_spyfactory-app #adminmenuwrap,
body.toplevel_page_spyfactory-app #adminmenu {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
}
body.toplevel_page_spyfactory-app #wpcontent,
body.toplevel_page_spyfactory-app #wpbody-content {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
body.toplevel_page_spyfactory-app #wpbody-content > .wrap {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
body.toplevel_page_spyfactory-app #screen-meta,
body.toplevel_page_spyfactory-app #screen-meta-links,
body.toplevel_page_spyfactory-app .notice,
body.toplevel_page_spyfactory-app .wrap > h1 {
  display: none !important;
}

body.toplevel_page_spyfactory-app {
  background: #070c1a !important;
}
body.toplevel_page_spyfactory-app #wpcontent,
body.toplevel_page_spyfactory-app #wpbody,
body.toplevel_page_spyfactory-app #wpbody-content {
  background: #070c1a !important;
}
body.toplevel_page_spyfactory-app #wpbody-content {
  padding-bottom: 0 !important;
}
body.toplevel_page_spyfactory-app #wpcontent {
  padding-left: 0 !important;
}
body.toplevel_page_spyfactory-app #wpbody-content > .wrap {
  margin: 0 !important;
  padding: 0 !important;
}
body.toplevel_page_spyfactory-app .notice,
body.toplevel_page_spyfactory-app .updated,
body.toplevel_page_spyfactory-app .error,
body.toplevel_page_spyfactory-app .update-nag {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.toplevel_page_spyfactory-app #adminmenuback,
body.toplevel_page_spyfactory-app #adminmenuwrap {
  background: #090d1a !important;
}
body.toplevel_page_spyfactory-app #adminmenu a,
body.toplevel_page_spyfactory-app #adminmenu div.wp-menu-image:before {
  color: #dce5ff !important;
}
body.toplevel_page_spyfactory-app #wpfooter {
  display: none !important;
}
body.toplevel_page_spyfactory-app .wrap {
  margin: 0 !important;
}

:root{
  --bg:#070c1a;
  --bg-2:#0a0f1f;
  --panel:#0c1222;
  --panel-2:#0e1528;
  --sidebar:#090d1a;
  --line:rgba(255,255,255,.06);
  --line-2:rgba(255,255,255,.08);
  --text:#eef3ff;
  --muted:#9098ad;
  --muted-2:#6f7890;
  --accent:#4169ff;
  --accent-soft:rgba(65,105,255,.18);
  --danger:#ef4a5a;
  --green:#55d36a;
  --live:#5ad65f;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sf-app, .sf-app * { box-sizing: border-box; }
.sf-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 308px 1fr;
  background: linear-gradient(180deg, rgba(18,24,46,.55), rgba(7,12,26,.95)), radial-gradient(circle at 20% 0%, rgba(65,105,255,.10), transparent 20%), var(--bg);
  color: var(--text);
  overflow: hidden;
}
.sf-sidebar {
  background: linear-gradient(180deg, rgba(9,13,26,.98), rgba(7,10,20,.98));
  border-right: 1px solid var(--line);
  padding: 14px 10px 12px 12px;
  display: flex;
  flex-direction: column;
  min-width: 308px;
  position: relative;
  z-index: 10;
}
.sf-sb-top { display:flex; align-items:center; justify-content:space-between; padding:0 2px 10px 2px; min-height:30px; }
.sf-brand { display:flex; align-items:center; justify-content:center; width:100%; min-width:0; }
.sf-brand-logo { display:block; width:205px; max-width:90%; height:auto; object-fit:contain; object-position:center; transform:translateX(2px); }
.sf-menu { margin-top:2px; padding-right:2px; display:flex; flex-direction:column; gap:9px; }
.sf-item { position:relative; display:flex; align-items:center; gap:16px; min-height:50px; padding:0 16px; border-radius:12px; color:#cfd7e7; font-size:15px; font-weight:600; width:100%; box-sizing:border-box; }
.sf-item svg { width:19px; height:19px; stroke: currentColor; stroke-width:1.9; fill:none; flex:0 0 auto; opacity:.95; }

.sf-menu .sf-item,
.sf-menu .sf-item *,
.sf-logout-link,
.sf-logout-link * {
  cursor: pointer !important;
}
.sf-item:hover { background: rgba(255,255,255,.05); }

.sf-logout-link {
  text-decoration: none;
  color: inherit;
  display: flex;
}
.sf-logout-link:hover {
  background: rgba(255,255,255,.05);
}
.sf-active { background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.07)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.18); color:#fff; }
.sf-badge { margin-left:auto; min-width:19px; height:19px; padding:0 6px; border-radius:6px; background:#e54554; color:#fff; display:grid; place-items:center; font-size:11px; font-weight:700; line-height:1; }
.sf-badge[hidden] { display:none !important; }
.sf-spacer { flex:1; border-bottom:1px solid rgba(255,255,255,.05); margin:14px 0 0; }
.sf-profile { display:flex; align-items:center; gap:12px; padding:12px 4px 2px 2px; }
.sf-avatar { width:34px; height:34px; border-radius:50%; overflow:hidden; background:linear-gradient(135deg, #e8d9c7, #8a5f47); border:1px solid rgba(255,255,255,.16); flex:0 0 auto; display:grid; place-items:center; color:#1d2434; font-size:13px; font-weight:700; }
.sf-profile-txt { line-height:1.15; }
.sf-profile-name { font-size:14px; font-weight:700; white-space:nowrap; }
.sf-profile-role { font-size:12px; color:#8e95a8; white-space:nowrap; }
.sf-workspace { position: relative; min-width:0; overflow:hidden; }
.sf-visitor-drawer { position:absolute; top:51px; left:0; width:0; height: calc(100% - 51px); background: linear-gradient(180deg, rgba(11,16,30,.98), rgba(8,12,24,.98)); border-left:1px solid var(--line); border-right:1px solid var(--line); border-top:1px solid var(--line); box-shadow: 18px 0 40px rgba(0,0,0,.22); overflow:hidden; transition: width .28s ease; z-index:4; pointer-events:none; }
.sf-workspace.drawer-open .sf-visitor-drawer { width:360px; pointer-events:auto; }
@media (max-width: 900px) {
  .sf-workspace.drawer-open .sf-visitor-drawer,
  .sf-visitor-drawer-inner {
    width: min(100vw - 24px, 420px);
  }
}
@media (max-width: 640px) {
  .sf-workspace.drawer-open .sf-visitor-drawer,
  .sf-visitor-drawer-inner {
    width: calc(100vw - 16px);
  }
}
.sf-visitor-drawer-inner { width:360px; height:100%; padding:16px 14px; color:var(--text); display:flex; flex-direction:column; min-height:0; }

.sf-settings-drawer {
  position: fixed;
  top: 86px;
  right: 24px;
  width: 420px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 120px);
  background: linear-gradient(180deg, rgba(18,24,42,.98), rgba(12,16,28,.98));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  z-index: 60;
  overflow: hidden;
  display: none;
}


.sf-livechat-window {
  position: fixed;
  top: 92px;
  right: 24px;
  width: 900px;
  max-width: calc(100vw - 48px);
  height: 620px;
  max-height: calc(100vh - 120px);
  background: linear-gradient(180deg, rgba(18,24,42,.98), rgba(12,16,28,.98));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  z-index: 70;
  display: none;
  overflow: hidden;
  resize: both;
  min-width: 620px;
  min-height: 420px;
}
.sf-livechat-window[aria-hidden="false"] { display:flex; flex-direction:column; }
.sf-livechat-window.minimized {
  width: 320px !important;
  height: 46px !important;
  max-width: 320px !important;
  max-height: 46px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  resize: none !important;
}
.sf-livechat-window.maximized {
  left: 16px !important;
  top: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  width: auto !important;
  height: auto !important;
  resize: none !important;
}
.sf-livechat-header {
  flex: 0 0 46px;
  height: 46px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 10px 0 12px;
  cursor: move;
  user-select: none;
  touch-action: none;
  background: linear-gradient(180deg, rgba(22,28,44,.98), rgba(16,21,35,.98));
}
.sf-livechat-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
}

.sf-livechat-list {
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 14px;
  overflow: auto;
}
.sf-livechat-list-head {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #95a0b8;
  margin-bottom: 12px;
}
.sf-livechat-item {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  color: #e9eef9;
  padding: 10px 10px;
  margin-bottom: 10px;
  cursor: pointer;
  text-align: left;
}
.sf-livechat-item:hover {
  background: rgba(255,255,255,.07);
}
.sf-livechat-item.sf-livechat-active {
  background: rgba(110,132,255,.16);
  border-color: rgba(110,132,255,.30);
}
.sf-livechat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5e8bff, #7bc7ff);
  color: #fff;
  font-weight: 800;
}
.sf-livechat-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sf-livechat-name {
  font-size: 13px;
  font-weight: 700;
  color: #f4f7ff;
}
.sf-livechat-sub {
  font-size: 11px;
  color: #8d96ad;
  margin-top: 3px;
}
.sf-livechat-time {
  font-size: 11px;
  color: #8d96ad;
  align-self: start;
}
.sf-livechat-conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.sf-livechat-conversation-head {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display:flex;
  align-items:flex-start;
  gap: 10px;
}
.sf-livechat-conv-title {
  font-size: 15px;
  font-weight: 800;
  color: #f4f7ff;
}
.sf-livechat-conv-sub {
  font-size: 12px;
  color: #93a0b9;
  margin-top: 4px;
}
.sf-livechat-pill {
  height:30px;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(90,214,95,.12);
  border: 1px solid rgba(90,214,95,.22);
  color: #9cf59f;
  font-size: 12px;
  font-weight: 800;
}
.sf-livechat-head-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  min-width:max-content;
  margin-left:auto;
}
.sf-livechat-header > .sf-vw-actions {
  margin-left:10px;
  padding-left:10px;
  border-left:1px solid rgba(255,255,255,.08);
}
.sf-livechat-window.minimized .sf-livechat-head-actions {
  display:none;
}
.sf-livechat-window.minimized .sf-livechat-header > .sf-vw-actions {
  margin-left:8px;
  padding-left:0;
  border-left:0;
}
.sf-livechat-conv-menu-wrap {
  position:relative;
  flex:0 0 auto;
  z-index:130;
}
.sf-livechat-conv-menu-btn {
  width:34px;
  height:30px;
  box-sizing:border-box;
  padding:0;
  display:grid;
  place-items:center;
  flex:0 0 34px;
  line-height:1;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
  color:#dbe6ff;
  font-family:inherit;
  font-size:13px;
  font-weight:800;
  letter-spacing:1px;
  cursor:pointer;
}
.sf-livechat-conv-menu-btn:hover:not(:disabled),
.sf-livechat-conv-menu-btn[aria-expanded="true"] {
  background:rgba(107,137,255,.16);
  border-color:rgba(107,137,255,.35);
}
.sf-livechat-conv-menu-btn:disabled {
  opacity:.4;
  cursor:not-allowed;
}
.sf-livechat-conv-menu {
  position:absolute;
  top:calc(100% + 7px);
  right:0;
  min-width:170px;
  padding:6px;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.10);
  background:#111827;
  box-shadow:0 18px 44px rgba(0,0,0,.42);
  z-index:120;
}
.sf-livechat-conv-menu[hidden] { display:none !important; }
.sf-livechat-conv-menu button {
  width:100%;
  box-sizing:border-box;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#dbe6ff;
  padding:9px 10px;
  text-align:left;
  font:inherit;
  font-size:13px;
  cursor:pointer;
}
.sf-livechat-conv-menu button:hover {
  background:rgba(255,255,255,.07);
}
.sf-livechat-conv-menu .sf-livechat-danger-action {
  color:#ff8c98;
}
.sf-livechat-conv-menu .sf-livechat-danger-action:hover {
  background:rgba(244,63,94,.12);
}
.sf-livechat-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 12px 14px 14px;
  overflow-y: scroll;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(126, 150, 214, .72) rgba(255,255,255,.055);
  scroll-behavior: smooth;
}
.sf-livechat-messages::-webkit-scrollbar {
  width: 14px;
}
.sf-livechat-messages::-webkit-scrollbar-track {
  background: rgba(255,255,255,.045);
  border-left: 1px solid rgba(255,255,255,.055);
  border-radius: 999px;
}
.sf-livechat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(150,176,255,.85), rgba(92,121,203,.82));
  border: 3px solid rgba(13,18,31,.9);
  border-radius: 999px;
  min-height: 44px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.sf-livechat-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(177,195,255,.98), rgba(105,137,231,.96));
}
.sf-livechat-messages::-webkit-scrollbar-button:single-button {
  display: block;
  height: 12px;
  width: 14px;
  background: rgba(255,255,255,.05);
}
.sf-message {
  display:flex;
  flex-direction: column;
  max-width: 78%;
}
.sf-message-in { align-self: flex-start; }
.sf-message-out { align-self: flex-end; }
.sf-message-bubble {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.sf-message-in .sf-message-bubble {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  color: #eef3ff;
}
.sf-message-out .sf-message-bubble {
  background: rgba(110,132,255,.18);
  border: 1px solid rgba(110,132,255,.28);
  color: #fff;
}
.sf-message-time {
  font-size: 11px;
  color: #8d96ad;
  margin-top: 4px;
}
.sf-livechat-compose {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 12px;
}
.sf-livechat-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.sf-livechat-shortcuts[hidden],
.sf-livechat-shortcut-group[hidden] {
  display: none !important;
}
.sf-livechat-shortcut-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sf-livechat-shortcut-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sf-livechat-shortcut-title {
  color: #dbe5ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.sf-livechat-shortcut-hint {
  color: #7f8ba3;
  font-size: 10px;
  text-align: right;
}
.sf-livechat-shortcut-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sf-livechat-shortcut-btn {
  appearance: none;
  border: 1px solid rgba(110,132,255,.22);
  background: rgba(110,132,255,.08);
  color: #cdd8f8;
  border-radius: 8px;
  padding: 7px 9px;
  font: inherit;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.sf-livechat-shortcut-btn:hover {
  background: rgba(110,132,255,.16);
  border-color: rgba(110,132,255,.42);
}
.sf-livechat-shortcut-btn:active {
  transform: translateY(1px);
}
.sf-livechat-shortcut-btn:focus-visible {
  outline: 2px solid rgba(110,132,255,.75);
  outline-offset: 2px;
}
.sf-livechat-shortcut-btn[disabled] {
  cursor: not-allowed;
  opacity: .5;
}
.sf-livechat-compose textarea {
  width: 100%;
  resize: none;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(8,12,24,.85);
  color: #eef3ff;
  padding: 12px;
  font: inherit;
  outline: none;
}
.sf-livechat-compose textarea:focus {
  border-color: rgba(110,132,255,.55);
  box-shadow: 0 0 0 3px rgba(110,132,255,.12);
}
.sf-livechat-actions {
  display:flex;
  justify-content:flex-end;
  margin-top: 10px;
}

.sf-settings-window {
  position: fixed;
  top: 76px;
  right: 24px;
  width: 980px;
  max-width: calc(100vw - 48px);
  height: 650px;
  max-height: calc(100vh - 112px);
  background: linear-gradient(180deg, rgba(18,24,42,.985), rgba(12,16,28,.985));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  z-index: 60;
  display: none;
  overflow: hidden;
  resize: both;
  min-width: 720px;
  min-height: 440px;
}
.sf-settings-window[aria-hidden="false"] {
  display: flex;
  flex-direction: column;
}
.sf-settings-window.minimized {
  width: 320px !important;
  height: 46px !important;
  max-width: 320px !important;
  max-height: 46px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  resize: none !important;
}
.sf-settings-window.maximized {
  left: 16px !important;
  top: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  width: auto !important;
  height: auto !important;
  resize: none !important;
}
.sf-settings-header {
  flex: 0 0 46px;
  height: 46px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 10px 0 12px;
  cursor: move;
  user-select: none;
  touch-action: none;
  background: linear-gradient(180deg, rgba(22,28,44,.98), rgba(16,21,35,.98));
}
.sf-settings-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
}
.sf-settings-sidebar {
  min-width: 0;
  min-height: 0;
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(13,18,32,.96), rgba(10,14,25,.96));
}
.sf-settings-sidebar-head {
  padding: 0 4px 14px;
}
.sf-settings-sidebar-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #dfe6f8;
}
.sf-settings-sidebar-sub {
  margin-top: 4px;
  font-size: 11px;
  color: #7f8aa3;
}
.sf-settings-nav {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}
.sf-settings-nav::-webkit-scrollbar,
.sf-settings-panel::-webkit-scrollbar {
  width: 9px;
}
.sf-settings-nav::-webkit-scrollbar-track,
.sf-settings-panel::-webkit-scrollbar-track {
  background: transparent;
}
.sf-settings-nav::-webkit-scrollbar-thumb,
.sf-settings-panel::-webkit-scrollbar-thumb {
  background: rgba(136,148,176,.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.sf-settings-sidebar-note {
  margin-top: auto;
  padding: 12px 10px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.sf-settings-sidebar-note-title {
  display:block;
  font-size:11px;
  font-weight:800;
  color:#b9c6ff;
}
.sf-settings-sidebar-note-text {
  display:block;
  margin-top:4px;
  font-size:10px;
  line-height:1.45;
  color:#77839d;
}
.sf-settings-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sf-settings-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 70px;
  padding: 12px 20px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(15,20,33,.98), rgba(11,15,26,.99));
  box-shadow: 0 -10px 20px rgba(0,0,0,.12);
}
.sf-settings-footer:empty {
  display: none;
}
.sf-settings-window.minimized .sf-settings-body {
  display: none;
}
.sf-settings-drawer[aria-hidden="false"] {
  display: block;
}
.sf-settings-inner {
  width: 100%;
  height: 100%;
  padding: 16px 14px;
  color: var(--text);
  overflow: auto;
}
.sf-settings-inner::-webkit-scrollbar {
  width: 10px;
}
.sf-settings-inner::-webkit-scrollbar-track {
  background: transparent;
}
.sf-settings-inner::-webkit-scrollbar-thumb {
  background: rgba(136,148,176,.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.sf-setting-row {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:12px 11px;
  margin-bottom:8px;
  border-radius:12px;
  background: rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.055);
  color:#e9eef9;
  cursor:pointer;
}
.sf-setting-row:hover {
  background: rgba(255,255,255,.07);
}
.sf-setting-row input[type="checkbox"] {
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:#6e84ff;
  flex:0 0 auto;
}.sf-setting-title {
  display:block;
  font-size:13px;
  font-weight:700;
  color:#f4f7ff;
}
.sf-setting-sub {
  display:block;
  margin-top:4px;
  font-size:11px;
  color:#8d96ad;
  line-height:1.45;
}

.sf-setting-button {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid rgba(255,255,255,.06);
}
.sf-setting-button.sf-setting-active {
  background: rgba(110,132,255,.14);
  border-color: rgba(110,132,255,.35);
}
.sf-setting-cta {
  font-size: 12px;
  font-weight: 700;
  color: #b9c6ff;
  align-self: center;
  white-space: nowrap;
}
.sf-settings-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 24px;
  background: rgba(255,255,255,.015);
}
.sf-settings-panel-head {
  position: sticky;
  top: -18px;
  z-index: 3;
  margin: -18px -20px 18px;
  padding: 18px 20px 15px;
  background: linear-gradient(180deg, rgba(18,24,42,.99), rgba(18,24,42,.96));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sf-settings-panel-title {
  font-size: 16px;
  font-weight: 800;
  color: #f4f7ff;
}
.sf-settings-panel-sub {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #93a0b9;
}
.sf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sf-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sf-field-full {
  grid-column: 1 / -1;
}
.sf-field-label {
  font-size: 12px;
  font-weight: 700;
  color: #dfe6f8;
}
.sf-field input,
.sf-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(8,12,24,.85);
  color: #eef3ff;
  padding: 11px 12px;
  font: inherit;
  outline: none;
}
.sf-field input:focus,
.sf-field textarea:focus {
  border-color: rgba(110,132,255,.55);
  box-shadow: 0 0 0 3px rgba(110,132,255,.12);
}
.sf-field input[type="number"] {
  -moz-appearance: textfield;
  appearance: auto;
  -webkit-appearance: auto;
  padding-right: 30px;
}
.sf-field input[type="number"]::-webkit-inner-spin-button,
.sf-field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: auto;
  opacity: 1;
  margin: 0;
}
.sf-field input[type="number"]:hover::-webkit-inner-spin-button,
.sf-field input[type="number"]:hover::-webkit-outer-spin-button,
.sf-field input[type="number"]:focus::-webkit-inner-spin-button,
.sf-field input[type="number"]:focus::-webkit-outer-spin-button {
  opacity: 1;
}
.sf-settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}
.sf-save-btn {
  border: 1px solid rgba(110,132,255,.35);
  background: rgba(110,132,255,.15);
  color: #eef3ff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.sf-save-secondary {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}
.sf-retention-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}
.sf-retention-summary,
.sf-retention-maintenance,
.sf-retention-danger {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
  border-radius: 12px;
  padding: 14px;
}
.sf-retention-summary-title,
.sf-retention-maintenance-title,
.sf-retention-danger-title {
  color: #eef3ff;
  font-size: 13px;
  font-weight: 800;
}
.sf-retention-summary-value,
.sf-retention-maintenance-text,
.sf-retention-danger-text,
.sf-retention-confirm-text {
  margin-top: 6px;
  color: #93a0b9;
  font-size: 12px;
  line-height: 1.5;
}
.sf-retention-maintenance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.sf-retention-danger {
  border-color: rgba(255, 92, 110, .28);
  background: linear-gradient(180deg, rgba(255, 72, 96, .055), rgba(255, 72, 96, .025));
}
.sf-retention-danger-title {
  color: #ffb4bf;
}
.sf-retention-danger-btn {
  border-color: rgba(255, 92, 110, .38);
  background: rgba(255, 72, 96, .14);
  color: #ffe8ec;
}
.sf-retention-danger-btn:hover:not(:disabled) {
  background: rgba(255, 72, 96, .21);
  border-color: rgba(255, 92, 110, .55);
}
.sf-retention-danger-btn:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.sf-retention-confirm {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,92,110,.18);
}
.sf-retention-confirm-title {
  color: #fff0f2;
  font-size: 12px;
  font-weight: 800;
}
.sf-retention-confirm-field {
  margin-top: 12px;
}
.sf-retention-confirm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
@media (max-width: 720px) {
  .sf-retention-maintenance { align-items: stretch; flex-direction: column; }
}

@media (max-width: 820px) {
  .sf-settings-window {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    min-width: 0;
  }
  .sf-settings-body {
    grid-template-columns: 205px minmax(0, 1fr);
  }
}

@media (max-width: 660px) {
  .sf-settings-window {
    top: 58px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    height: calc(100vh - 78px);
    max-height: none;
    min-height: 0;
    border-radius: 12px;
  }
  .sf-settings-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .sf-settings-sidebar {
    flex: 0 0 auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 12px 12px 10px;
  }
  .sf-settings-sidebar-head,
  .sf-settings-sidebar-note {
    display: none;
  }
  .sf-settings-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .sf-setting-row {
    margin-bottom: 0;
    padding: 10px;
  }
  .sf-setting-sub,
  .sf-setting-cta {
    display: none;
  }
  .sf-settings-panel {
    padding: 16px 14px 22px;
  }
  .sf-settings-panel-head {
    top: -16px;
    margin: -16px -14px 16px;
    padding: 16px 14px 14px;
  }
  .sf-settings-footer {
    min-height: 62px;
    padding: 10px 14px 12px;
  }
  .sf-form-grid {
    grid-template-columns: 1fr;
  }
  .sf-field-full {
    grid-column: auto;
  }
}
.sf-field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(8,12,24,.85);
  color: #eef3ff;
  -webkit-text-fill-color: #eef3ff;
  padding: 11px 12px;
  font: inherit;
  outline: none;
  color-scheme: dark;
  text-shadow: none;
}
.sf-field select:hover,
.sf-field select:focus,
.sf-field select:active {
  color: #eef3ff;
  -webkit-text-fill-color: #eef3ff;
}
.sf-field select:focus {
  border-color: rgba(110,132,255,.55);
  box-shadow: 0 0 0 3px rgba(110,132,255,.12);
}
.sf-field select option {
  background: #121a2d;
  color: #eef3ff;
  -webkit-text-fill-color: #eef3ff;
}
.sf-field select option:checked,
.sf-field select option:hover,
.sf-field select option:focus,
.sf-field select option:active {
  background: #6e84ff;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.sf-ai-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.sf-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.sf-status-warning {
  color: #ffd39b;
  background: rgba(255, 165, 0, .12);
  border: 1px solid rgba(255, 165, 0, .25);
}
.sf-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(8,12,24,.55);
}
.sf-toggle-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #6e84ff;
  flex: 0 0 auto;
}
.sf-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sf-help-text {
  font-size: 12px;
  line-height: 1.45;
  color: #93a0b9;
}
.sf-inline-note {
  font-size: 12px;
  line-height: 1.45;
  color: #93a0b9;
}
.sf-field-actions-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sf-field-button {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: #eef3ff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.sf-field-button:hover {
  background: rgba(255,255,255,.08);
}


/* Version 2.6.85: persistente Chat-Texte und sichere JSON-Requests */
.sf-copy-panel{display:flex;flex-direction:column;gap:14px}
.sf-copy-section{padding:16px;border:1px solid rgba(148,163,184,.15);border-radius:14px;background:rgba(15,23,42,.34);box-shadow:0 10px 24px rgba(0,0,0,.12)}
.sf-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.sf-section-head>div:first-child{min-width:0}
.sf-section-title{font-size:15px;font-weight:800;line-height:1.25;color:#f4f7ff}
.sf-section-head .sf-help-text{max-width:680px;margin-top:4px}
.sf-section-head .sf-field-button{flex:0 0 auto;min-height:38px;white-space:nowrap}
.sf-copy-list{display:flex;flex-direction:column;gap:7px;padding:8px;border:1px solid rgba(148,163,184,.13);border-radius:12px;background:rgba(2,6,23,.28)}
.sf-copy-list-item{display:grid;grid-template-columns:32px minmax(0,1fr) 34px;align-items:center;gap:8px;min-width:0;padding:6px;border:1px solid rgba(148,163,184,.12);border-radius:10px;background:rgba(30,41,59,.42);transition:border-color .15s ease,background .15s ease}
.sf-copy-list-item:focus-within{border-color:rgba(96,165,250,.42);background:rgba(30,41,59,.58)}
.sf-copy-index{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:rgba(59,130,246,.13);border:1px solid rgba(96,165,250,.2);color:#bfdbfe;font-size:12px;font-weight:800;line-height:1}
.sf-copy-list-item input{width:100%;min-width:0;height:38px;padding:8px 10px;border:1px solid rgba(148,163,184,.2);border-radius:8px;background:#0b1020;color:#f8fafc;box-sizing:border-box;font:inherit;outline:none}
.sf-copy-list-item input::placeholder{color:#718096}
.sf-copy-list-item input:focus{border-color:#60a5fa;box-shadow:0 0 0 2px rgba(96,165,250,.12)}
.sf-remove-btn{width:30px;height:30px;display:grid;place-items:center;padding:0;border:1px solid rgba(148,163,184,.18);border-radius:8px;background:transparent;color:#94a3b8;cursor:pointer;box-sizing:border-box;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}
.sf-remove-icon{width:15px;height:15px;display:block;fill:currentColor;pointer-events:none}
.sf-remove-btn:hover{background:rgba(239,68,68,.08);border-color:rgba(248,113,113,.42);color:#fca5a5;transform:translateY(-1px)}
.sf-remove-btn:active{transform:translateY(0)}
.sf-remove-btn:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}
.sf-copy-section+.sf-copy-section{margin-top:0}

.sf-logo-box{display:flex;flex-direction:column;gap:10px}
.sf-logo-preview{min-height:112px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed rgba(148,163,184,.28);border-radius:12px;background:rgba(2,6,23,.28);overflow:hidden}
.sf-logo-preview img{display:block;max-width:220px;max-height:96px;width:auto;height:auto;object-fit:contain;border-radius:10px}
.sf-logo-placeholder{color:#94a3b8;font-size:13px;font-weight:700;text-align:center}
.sf-logo-actions{display:flex;flex-wrap:wrap;gap:8px}
.sf-logo-actions .sf-field-button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.sf-logo-size-control{display:flex;flex-direction:column;gap:7px;margin-top:2px;padding:12px;border:1px solid rgba(148,163,184,.14);border-radius:11px;background:rgba(2,6,23,.18)}
.sf-logo-size-row{display:grid;grid-template-columns:minmax(0,1fr) 64px;align-items:center;gap:12px}
.sf-logo-size-row input[type="range"]{width:100%;accent-color:#4f7cff;cursor:pointer}
.sf-logo-size-row output{display:flex;align-items:center;justify-content:center;min-height:34px;border:1px solid rgba(148,163,184,.18);border-radius:9px;background:#0b1020;color:#dbeafe;font-size:12px;font-weight:800}
@media(max-width:760px){
  .sf-section-head{flex-direction:column;align-items:stretch}
  .sf-section-head .sf-field-button{width:max-content;max-width:100%}
}
@media(max-width:520px){
  .sf-copy-section{padding:13px}
  .sf-copy-list{padding:6px}
  .sf-copy-list-item{grid-template-columns:30px minmax(0,1fr) 34px;gap:7px;padding:5px}
  .sf-copy-index{width:26px;height:26px}
}
.sf-test-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.sf-test-row .sf-field {
  flex: 1 1 280px;
}
.sf-test-row .sf-save-btn {
  height: 42px;
}
.sf-field-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,.06);
  color: #ffcf7a;
  margin-top: -2px;
}
.sf-drawer-title { font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:#95a0b8; margin-bottom:14px; flex:0 0 auto; }
.sf-visitor-list { display:flex; flex:1 1 auto; min-height:0; flex-direction:column; gap:8px; overflow-y:auto; overflow-x:hidden; padding-right:4px; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(136,148,176,.55) transparent; }
.sf-visitor-list::-webkit-scrollbar { width: 10px; }
.sf-visitor-list::-webkit-scrollbar-track { background: transparent; }
.sf-visitor-list::-webkit-scrollbar-thumb { background: rgba(136,148,176,.35); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
.sf-visitor-list::-webkit-scrollbar-thumb:hover { background: rgba(136,148,176,.55); border: 2px solid transparent; background-clip: content-box; }
.sf-visitor-list[hidden] { display:none; }
.sf-visitor-entry { width:100%; min-width:0; text-align:left; overflow:hidden; display:flex; align-items:flex-start; gap:10px; min-height:64px; height:auto; padding:12px; border-radius:14px; margin-bottom:8px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); color:#e9eef9; cursor:pointer; }
.sf-visitor-entry:hover { background: rgba(255,255,255,.07); }
.sf-visitor-entry.assist-high { border-color: rgba(239,68,68,.34); box-shadow: inset 3px 0 0 rgba(239,68,68,.74); }
.sf-visitor-entry.assist-medium { border-color: rgba(249,115,22,.28); box-shadow: inset 3px 0 0 rgba(249,115,22,.62); }
.sf-visitor-entry.assist-low { border-color: rgba(34,197,94,.22); box-shadow: inset 3px 0 0 rgba(34,197,94,.42); }
.sf-visitor-entry-main { min-width:0; flex:1 1 auto; display:flex; align-items:flex-start; gap:10px; }
.sf-visitor-entry-side { flex:0 0 auto; min-width:92px; display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.sf-visitor-assist-badge { display:inline-flex; align-items:center; gap:5px; padding:5px 8px; border-radius:999px; font-size:10px; font-weight:800; white-space:nowrap; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.045); color:#d8e2f8; }
.sf-visitor-assist-badge.high { background:rgba(239,68,68,.13); border-color:rgba(239,68,68,.34); color:#fca5a5; }
.sf-visitor-assist-badge.medium { background:rgba(249,115,22,.12); border-color:rgba(249,115,22,.30); color:#fdba74; }
.sf-visitor-assist-badge.low { background:rgba(34,197,94,.10); border-color:rgba(34,197,94,.28); color:#86efac; }
.sf-visitor-chat-btn { appearance:none; border:1px solid rgba(88,125,255,.30); background:rgba(88,125,255,.10); color:#dbe4ff; border-radius:9px; padding:6px 9px; font:inherit; font-size:10px; font-weight:800; cursor:pointer; white-space:nowrap; }
.sf-visitor-chat-btn:hover { background:rgba(88,125,255,.18); border-color:rgba(88,125,255,.42); }
.sf-vw-assist-hidden { display:none!important; }
.sf-assist-card { padding:13px; border-radius:14px; border:1px solid rgba(88,125,255,.20); background:linear-gradient(135deg,rgba(88,125,255,.08),rgba(255,255,255,.025)); display:flex; align-items:center; justify-content:space-between; gap:14px; }
.sf-assist-main { min-width:0; flex:1 1 auto; }
.sf-assist-kicker-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sf-assist-kicker { font-size:10px; text-transform:uppercase; letter-spacing:.10em; color:#91a8e8; font-weight:800; }
.sf-assist-level { display:inline-flex; align-items:center; min-height:22px; padding:3px 8px; border-radius:999px; border:1px solid rgba(34,197,94,.28); background:rgba(34,197,94,.10); color:#86efac; font-size:9px; font-weight:800; white-space:nowrap; }
.sf-assist-level.assist-medium { border-color:rgba(249,115,22,.34); background:rgba(249,115,22,.12); color:#fdba74; }
.sf-assist-level.assist-high { border-color:rgba(239,68,68,.38); background:rgba(239,68,68,.13); color:#fca5a5; }
.sf-assist-title-row { margin-top:6px; display:flex; align-items:flex-start; gap:14px; justify-content:space-between; }
.sf-assist-title { font-size:14px; line-height:1.3; font-weight:800; color:#f4f7ff; }
.sf-assist-reasons { margin-top:4px; font-size:11px; color:#aeb9ce; line-height:1.45; }
.sf-assist-breakdown { margin-top:8px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.sf-assist-signal { display:inline-flex; align-items:center; gap:5px; min-width:0; max-width:100%; padding:4px 7px; border-radius:7px; border:1px solid rgba(255,255,255,.07); background:rgba(255,255,255,.035); color:#aeb9ce; font-size:9px; line-height:1.2; }
.sf-assist-signal strong { color:#86efac; font-size:9px; }
.sf-assist-card.assist-medium .sf-assist-signal strong { color:#fdba74; }
.sf-assist-card.assist-high .sf-assist-signal strong { color:#fca5a5; }
.sf-assist-signal-empty { color:#7f8ba2; }
.sf-assist-score { flex:0 0 auto; width:58px; height:58px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; border:1px solid rgba(88,125,255,.28); background:rgba(88,125,255,.12); color:#dbe4ff; }
.sf-assist-score strong { font-size:17px; line-height:1; font-weight:900; }
.sf-assist-score small { font-size:8px; line-height:1; font-weight:800; color:inherit; opacity:.78; }
.sf-assist-score.assist-high { background:rgba(239,68,68,.14); border-color:rgba(239,68,68,.40); color:#fca5a5; box-shadow:0 0 0 3px rgba(239,68,68,.05); }
.sf-assist-score.assist-medium { background:rgba(249,115,22,.13); border-color:rgba(249,115,22,.36); color:#fdba74; box-shadow:0 0 0 3px rgba(249,115,22,.045); }
.sf-assist-score.assist-low { background:rgba(34,197,94,.11); border-color:rgba(34,197,94,.32); color:#86efac; box-shadow:0 0 0 3px rgba(34,197,94,.04); }
.sf-assist-actions { flex:0 0 auto; }
.sf-assist-chat-btn { appearance:none; border:1px solid rgba(88,125,255,.34); background:linear-gradient(180deg,rgba(88,125,255,.26),rgba(88,125,255,.14)); color:#f3f7ff; border-radius:10px; padding:10px 12px; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.sf-assist-chat-btn:hover:not(:disabled) { background:linear-gradient(180deg,rgba(88,125,255,.34),rgba(88,125,255,.19)); }
.sf-assist-card.assist-medium .sf-assist-chat-btn:not(:disabled) { border-color:rgba(249,115,22,.38); background:linear-gradient(180deg,rgba(249,115,22,.20),rgba(249,115,22,.10)); color:#ffedd5; }
.sf-assist-card.assist-high .sf-assist-chat-btn:not(:disabled) { border-color:rgba(239,68,68,.40); background:linear-gradient(180deg,rgba(239,68,68,.22),rgba(239,68,68,.11)); color:#fee2e2; }
.sf-assist-chat-btn:disabled { opacity:.38; cursor:not-allowed; }
.sf-assist-card.assist-high { border-color:rgba(239,68,68,.32); background:linear-gradient(135deg,rgba(239,68,68,.085),rgba(255,255,255,.025)); }
.sf-assist-card.assist-medium { border-color:rgba(249,115,22,.28); background:linear-gradient(135deg,rgba(249,115,22,.065),rgba(255,255,255,.025)); }
.sf-assist-card.assist-low { border-color:rgba(34,197,94,.24); background:linear-gradient(135deg,rgba(34,197,94,.055),rgba(255,255,255,.025)); }

.sf-visitor-avatar-mini { width:30px; height:30px; border-radius:50%; background: linear-gradient(135deg, #5e8bff, #7bc7ff); display:grid; place-items:center; color:white; font-size:12px; font-weight:700; flex:0 0 auto; margin-top:1px; }
.sf-visitor-meta { min-width:0; line-height:1.25; flex:1 1 auto; overflow:hidden; display:flex; flex-direction:column; gap:4px; }
.sf-visitor-name { font-size:13px; font-weight:700; color:#f4f7ff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sf-visitor-sub { font-size:11px; color:#8d96ad; overflow-wrap:anywhere; word-break:break-word; white-space:normal; line-height:1.35; }
.sf-visitor-sub-top { color:#c7d0e3; }
.sf-visitor-sub-bottom { color:#8d96ad; opacity:.95; }
.sf-drawer-note { margin-top:12px; font-size:12px; line-height:1.6; color:#8d96ad; }
.sf-muted { opacity:.55; cursor:default; }
.sf-plus { background: linear-gradient(135deg,#657085,#394155); }
.sf-main { min-width:0; background: linear-gradient(180deg, rgba(9,13,26,.95), rgba(7,10,20,.96)); position:relative; }
.sf-topbar { height:51px; border-bottom:1px solid var(--line); background: linear-gradient(180deg, rgba(10,15,29,.98), rgba(10,15,27,.96)); display:flex; align-items:center; justify-content:flex-start; padding:0 0 0 12px; gap:12px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.02); }
.sf-top-left { display:flex; align-items:center; gap:10px; min-width:0; flex:1 1 auto; flex-wrap:wrap; }
.sf-top-metrics { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.sf-mini-stat { display:flex; flex-direction:column; justify-content:center; min-width:116px; padding:6px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.sf-mini-stat-label { font-size:10px; line-height:1.2; text-transform:uppercase; letter-spacing:.04em; color:#96a0b7; white-space:nowrap; }
.sf-mini-stat-value { margin-top:2px; font-size:15px; line-height:1.15; color:#f4f7ff; font-weight:800; }

.sf-top-right { display:flex; align-items:center; gap:8px; flex:0 0 auto; margin-left:auto; margin-right:10px; padding-right:0; }
.sf-top-btn {
  height:32px; min-width:32px; padding:0 10px;
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  border-radius:7px; border:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  color:#e9eef9; font-size:12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  cursor:pointer; white-space:nowrap;
}
.sf-top-btn:hover { background: rgba(255,255,255,.08); }
.sf-top-btn svg { width:13px; height:13px; stroke: currentColor; fill:none; }
.sf-top-btn-wide { padding:0 12px; }
.sf-support-toggle {
  width:34px; height:32px; padding:0; border:1px solid rgba(255,255,255,.08);
  border-radius:8px; background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  color:#dfe7f5; display:inline-flex; align-items:center; justify-content:center; position:relative;
  cursor:pointer; box-shadow:inset 0 1px 0 rgba(255,255,255,.04); overflow:visible;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease;
}
.sf-support-toggle:hover {
  transform:translateY(-.5px); color:#ffffff; border-color:rgba(255,255,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 6px 16px rgba(0,0,0,.18);
}
.sf-support-toggle:focus-visible { outline:2px solid rgba(88,125,255,.7); outline-offset:2px; }
.sf-support-toggle:disabled { cursor:wait; opacity:.72; transform:none; }
.sf-support-icon { width:18px; height:18px; display:grid; place-items:center; pointer-events:none; }
.sf-support-icon svg { width:18px; height:18px; display:block; overflow:visible; }
.sf-support-status-dot {
  position:absolute; right:-2px; bottom:-2px; width:9px; height:9px; border-radius:50%;
  background:#55d36a; border:2px solid #0b1020; box-shadow:0 0 0 2px rgba(85,211,106,.12); z-index:2;
  transition:background .16s ease, box-shadow .16s ease;
}
.sf-support-toggle.sf-offline .sf-support-status-dot {
  background:#ef4a5a; box-shadow:0 0 0 2px rgba(239,74,90,.12);
}
.sf-support-toggle.sf-offline .sf-support-icon { color:#aeb8cb; }
.sf-support-toggle:not(.sf-offline) .sf-support-icon { color:#eef6ff; }
.sf-chat-visibility-toggle {
  width:34px; height:32px; padding:0; border:1px solid rgba(255,255,255,.08);
  border-radius:8px; background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  color:#dfe7f5; display:inline-flex; align-items:center; justify-content:center; position:relative;
  cursor:pointer; box-shadow:inset 0 1px 0 rgba(255,255,255,.04); overflow:visible;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease;
}
.sf-chat-visibility-toggle:hover {
  transform:translateY(-.5px); color:#ffffff; border-color:rgba(255,255,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 6px 16px rgba(0,0,0,.18);
}
.sf-chat-visibility-toggle:focus-visible { outline:2px solid rgba(88,125,255,.7); outline-offset:2px; }
.sf-chat-visibility-toggle:disabled { cursor:wait; opacity:.72; transform:none; }
.sf-chat-visibility-icon { width:18px; height:18px; display:grid; place-items:center; pointer-events:none; }
.sf-chat-visibility-icon svg { width:18px; height:18px; display:block; overflow:visible; }
.sf-chat-visibility-icon svg.sf-eye-hidden { display:none; }
.sf-chat-visibility-toggle.sf-hidden .sf-eye-visible { display:none; }
.sf-chat-visibility-toggle.sf-hidden .sf-eye-hidden { display:block; }
.sf-chat-visibility-toggle:not(.sf-hidden) .sf-eye-hidden { display:none; }
.sf-chat-visibility-toggle.sf-hidden .sf-chat-visibility-icon { color:#aeb8cb; }
.sf-chat-visibility-dot {
  position:absolute; right:-2px; bottom:-2px; width:9px; height:9px; border-radius:50%;
  background:#55d36a; border:2px solid #0b1020; box-shadow:0 0 0 2px rgba(85,211,106,.12); z-index:2;
  transition:background .16s ease, box-shadow .16s ease;
}
.sf-chat-visibility-toggle.sf-hidden .sf-chat-visibility-dot {
  background:#ef4a5a; box-shadow:0 0 0 2px rgba(239,74,90,.14);
}
.sf-crumbs { display:flex; align-items:center; gap:9px; min-width:0; color:#d8deea; font-size:13px; }
.sf-refresh-ico { appearance:none; -webkit-appearance:none; border:0; background:transparent !important; width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; color:#aeb6c9; margin:0 2px 0 2px; flex:0 0 auto; padding:0; border-radius:999px; cursor:pointer; -webkit-tap-highlight-color:transparent; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.sf-refresh-ico:hover { color:#d5dbeb; background: rgba(255,255,255,.05) !important; }
.sf-refresh-ico:active { background: transparent !important; transform: none; }
.sf-refresh-ico:focus { outline:none; }
.sf-refresh-ico:focus-visible { outline:1px solid rgba(88,125,255,.45); outline-offset:2px; }
.sf-refresh-ico svg { width:13px; height:13px; stroke: currentColor; stroke-width:1.9; fill:none; stroke-linecap:round; stroke-linejoin:round; transform-origin:50% 50%; }
.sf-refresh-ico.loading svg { color: var(--green); animation: sf-header-spin .7s linear infinite; }
@keyframes sf-header-spin { to { transform: rotate(360deg); } }
.sf-label { color:#a4acc0; white-space:nowrap; }
.sf-pill { display:inline-flex; align-items:center; gap:6px; height:22px; padding:0 8px; border-radius:6px; font-size:11px; font-weight:700; letter-spacing:.02em; background: rgba(90,214,95,.12); color:#9cf59f; border:1px solid rgba(90,214,95,.22); margin-left:2px; flex:0 0 auto; }
.sf-pill.zero { background: rgba(239,74,90,.12); color:#ff9ea8; border-color: rgba(239,74,90,.28); }
.sf-dot { width:7px; height:7px; border-radius:50%; background: var(--green); box-shadow:0 0 0 2px rgba(85,211,106,.15); }
.sf-count { display:inline; background:transparent; color:inherit; font-size:11px; line-height:1; margin-left:2px; padding:0; border:0; min-width:0; height:auto; }
.sf-cart-icons { display:inline-flex; align-items:center; gap:4px; margin-left:6px; flex:0 0 auto; }
.sf-cart-icon { width:15px; height:15px; display:inline-flex; align-items:center; justify-content:center; transition: color .18s ease, opacity .18s ease, transform .18s ease; }
.sf-cart-icon svg { width:15px; height:15px; stroke: currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.sf-cart-icon:hover { opacity:1; transform: translateY(-.5px); }
.sf-cart-red { color:#ef4a5a; opacity:.96; }
.sf-cart-orange { color:#f39a2e; opacity:.96; }
.sf-cart-green { color:#55d36a; opacity:.96; }
.sf-canvas { height: calc(100vh - 51px); background: linear-gradient(180deg, rgba(9,13,26,.96), rgba(7,10,20,.98)); }
.sf-canvas{height:calc(100vh - 51px);box-sizing:border-box;overflow-y:auto;overflow-x:hidden;padding:14px 14px 18px;background:linear-gradient(180deg,rgba(9,13,26,.96),rgba(7,10,20,.98));scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:rgba(136,148,176,.55) transparent;}
.sf-canvas::-webkit-scrollbar{width:10px;}
.sf-canvas::-webkit-scrollbar-track{background:transparent;}
.sf-canvas::-webkit-scrollbar-thumb{background:rgba(136,148,176,.35);border-radius:999px;border:2px solid transparent;background-clip:content-box;}
.sf-canvas::-webkit-scrollbar-thumb:hover{background:rgba(136,148,176,.55);border:2px solid transparent;background-clip:content-box;}
.sf-overview{width:100%;max-width:none;margin:0 auto;display:flex;flex-direction:column;gap:12px;color:#eef3ff;font-size:12px;}
.sf-overview-card{background:linear-gradient(180deg,rgba(17,24,40,.96),rgba(12,18,32,.98));border:1px solid rgba(255,255,255,.07);border-radius:9px;box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 10px 28px rgba(0,0,0,.10);min-width:0;overflow:hidden;}
.sf-overview h2{font-size:14px;line-height:1.2;margin:0;color:#f2f5fb;font-weight:700;}.sf-card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.sf-card-muted{color:#7f8ba0;font-size:10px}.sf-overview-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.sf-kpi-card{height:112px;padding:13px 14px 7px;position:relative}.sf-kpi-head{display:flex;align-items:center;justify-content:space-between;color:#e8edf7;font-size:12px;font-weight:600}.sf-kpi-icon{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:15px;font-weight:700}.sf-purple{color:#8b5cf6;background:rgba(124,58,237,.16)}.sf-blue{color:#3b82f6;background:rgba(59,130,246,.14)}.sf-green{color:#4ade80;background:rgba(74,222,128,.13)}.sf-red{color:#f05252;background:rgba(240,82,82,.13)}.sf-kpi-value{font-size:24px;font-weight:760;letter-spacing:-.5px;margin-top:-4px}.sf-kpi-value small,.sf-events-card small{font-size:10px;font-weight:700;margin-left:4px}.sf-up{color:#34d16f}.sf-down{color:#f05252}.sf-kpi-sub{color:#808ba0;font-size:9px;margin-top:1px}.sf-spark{position:absolute;left:12px;right:10px;bottom:5px;width:calc(100% - 22px);height:31px;overflow:visible}.sf-spark polyline{fill:none;stroke:#7c3aed;stroke-width:1.5;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 3px rgba(124,58,237,.35))}.sf-spark-blue polyline{stroke:#2388ff}.sf-spark-green polyline{stroke:#36d06f}.sf-spark-red polyline{stroke:#ef4444}.sf-overview-grid{display:grid;gap:12px}.sf-overview-row-main{grid-template-columns:1.65fr .95fr .98fr;min-height:300px}.sf-traffic-card,.sf-list-card,.sf-device-card,.sf-compact-card,.sf-country-card,.sf-feed-card,.sf-events-card{padding:12px}.sf-period-btn{height:36px;min-width:108px;padding:0 12px 0 14px;border:1px solid #26344b;background:#101827;color:#f2f5fb;border-radius:7px;font-size:12px;font-weight:600;cursor:default;display:inline-flex;align-items:center;justify-content:space-between;gap:18px;box-sizing:border-box;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}.sf-period-btn .sf-period-chevron{color:#9aa7ba;font-size:16px;line-height:1;display:inline-flex;align-items:center;justify-content:center;transform:translateY(-2px)}.sf-legend{display:flex;gap:18px;color:#9ba5b7;font-size:10px;margin-top:8px}.sf-legend span{display:flex;align-items:center;gap:5px}.sf-dot-purple,.sf-dot-blue,.sf-dot-green{width:6px;height:6px;border-radius:50%;display:inline-block}.sf-dot-purple{background:#7c3aed}.sf-dot-blue{background:#2686ff}.sf-dot-green{background:#4ade80}.sf-chart-wrap{height:245px;position:relative;margin-top:7px;padding:5px 4px 22px 39px}.sf-line-chart{width:100%;height:204px;overflow:visible}.sf-grid-lines line{stroke:rgba(255,255,255,.055);stroke-width:1}.sf-chart-blue,.sf-chart-purple{fill:none;stroke-width:2;vector-effect:non-scaling-stroke}.sf-chart-blue{stroke:#2388ff}.sf-chart-purple{stroke:#7c3aed}.sf-chart-y{position:absolute;left:0;top:7px;height:202px;display:flex;flex-direction:column;justify-content:space-between;color:#7f8ba0;font-size:9px}.sf-chart-x{position:absolute;left:39px;right:4px;bottom:0;display:flex;justify-content:space-between;color:#7f8ba0;font-size:9px}.sf-bar-list{display:flex;flex-direction:column;gap:20px;margin-top:25px}.sf-bar-row{display:grid;grid-template-columns:minmax(122px,1.2fr) minmax(70px,1fr) 42px;align-items:center;gap:9px;font-size:10px}.sf-bar-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#cbd2df}.sf-bar-row>div{height:5px;border-radius:4px;background:rgba(255,255,255,.035);overflow:hidden}.sf-bar-row i{height:100%;display:block;border-radius:4px;background:linear-gradient(90deg,#7047ee,#a879ff)}.sf-bar-row b{font-weight:600;text-align:right;color:#dbe1ec}.sf-device-body{display:flex;align-items:center;justify-content:center;gap:32px;height:235px}.sf-donut{width:136px;height:136px;border-radius:50%;background:conic-gradient(#7c3aed 0 63%,#2f80ed 63% 91%,#4ac26b 91% 100%);position:relative;display:grid;place-items:center;box-shadow:0 0 28px rgba(83,62,200,.10)}.sf-donut:after{content:"";position:absolute;inset:22px;border-radius:50%;background:#101827;border:1px solid rgba(255,255,255,.04)}.sf-donut>div{z-index:1;text-align:center}.sf-donut strong{display:block;font-size:22px}.sf-donut span{font-size:10px;color:#a9b2c1}.sf-device-legend{display:flex;flex-direction:column;gap:19px;min-width:108px}.sf-device-legend span{display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:8px;font-size:10px}.sf-device-legend b{font-weight:600}.sf-overview-row-secondary{grid-template-columns:1.05fr .96fr .96fr 1.35fr;min-height:220px}.sf-compact-card,.sf-country-card{height:220px;display:flex;flex-direction:column}.sf-live-total{color:#7ee48e;font-size:12px}.sf-mini-list{display:flex;flex-direction:column;gap:11px;margin-top:14px}.sf-mini-list>div{display:grid;grid-template-columns:1.35fr 1fr 36px;gap:8px;align-items:center;font-size:9px;min-height:16px}.sf-mini-list span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sf-mini-list>div>span{display:flex;align-items:center;gap:6px;min-width:0}.sf-mini-list>div>span>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}.sf-country-flag{width:18px;height:13px;object-fit:contain;flex:0 0 18px;display:block;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.08)}.sf-mini-list em{font-style:normal;color:#788399;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sf-mini-list b{text-align:right;font-weight:500;color:#9aa4b7}.sf-card-link{margin-top:auto;text-decoration:none;color:#7c83ff;font-size:9px;display:inline-block;padding-top:8px}.sf-ranked-list,.sf-ref-list{display:flex;flex-direction:column;gap:14px;margin-top:14px}.sf-ranked-list>div{display:grid;grid-template-columns:7px 1fr 30px;gap:8px;align-items:center;font-size:10px}.sf-ranked-list i{width:5px;height:5px;border-radius:50%;display:block}.sf-rank-orange{background:#ff7b35}.sf-rank-red{background:#ff4b55}.sf-rank-yellow{background:#ffd54a}.sf-rank-blue{background:#3f87ff}.sf-rank-green{background:#3ed47d}.sf-ranked-list b,.sf-ref-list b{font-weight:500;text-align:right}.sf-ref-list>div{display:flex;justify-content:space-between;align-items:center;font-size:10px}.sf-country-body{position:relative;display:grid;grid-template-columns:minmax(0,1.9fr) minmax(112px,.7fr);gap:8px;align-items:center;height:152px;margin-top:1px}.sf-world{width:100%;height:152px;display:block;overflow:visible;filter:drop-shadow(0 8px 18px rgba(0,0,0,.18));transform:scale(1.06);transform-origin:center}.sf-world-grid path{fill:none;stroke:rgba(93,111,154,.10);stroke-width:.65;stroke-dasharray:3 7;vector-effect:non-scaling-stroke}.sf-world-countries path{fill:#1d2940;stroke:#455679;stroke-width:.55;opacity:.82;vector-effect:non-scaling-stroke;transition:fill .18s ease,stroke .18s ease,opacity .18s ease,filter .18s ease;fill-rule:evenodd}.sf-world-countries path.sf-country-hit{opacity:1;stroke:#9b7cff;stroke-width:.85;cursor:pointer;filter:drop-shadow(0 0 4px rgba(124,58,237,.42))}.sf-world-countries path.sf-country-hit:hover{stroke:#d1c4ff;stroke-width:1.15;filter:drop-shadow(0 0 7px rgba(139,92,246,.75));opacity:1}.sf-world-countries path.sf-country-top{stroke:#c5b5ff;stroke-width:1.1;filter:drop-shadow(0 0 7px rgba(124,58,237,.68))}.sf-country-list{display:flex;flex-direction:column;gap:10px;font-size:10px;padding-left:2px}.sf-country-list>div{display:flex;justify-content:space-between;align-items:center;gap:9px;min-height:18px}.sf-country-list>div>span{display:flex;align-items:center;gap:6px;min-width:0}.sf-country-list>div>span>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sf-country-list b{font-weight:650}.sf-country-map-tooltip{position:absolute;z-index:4;left:0;top:0;transform:translate(-50%,-115%);padding:6px 8px;border:1px solid rgba(145,121,255,.35);border-radius:6px;background:#0b1220;color:#f1f4fb;font-size:9px;font-weight:600;line-height:1;white-space:nowrap;box-shadow:0 8px 24px rgba(0,0,0,.28),0 0 12px rgba(124,58,237,.12);pointer-events:none;opacity:0;visibility:hidden;transition:opacity .12s ease,visibility .12s ease}.sf-country-map-tooltip.is-visible{opacity:1;visibility:visible}.sf-overview-row-bottom{grid-template-columns:1fr 1.2fr;min-height:194px}.sf-feed-card{height:194px}.sf-events-card{height:194px;display:flex;flex-direction:column;overflow:visible}.sf-feed-list{display:flex;flex-direction:column;margin-top:11px}.sf-feed-list>div{display:grid;grid-template-columns:24px minmax(180px,1.6fr) minmax(100px,.8fr) 34px;align-items:center;gap:7px;min-height:29px;border-top:1px solid rgba(255,255,255,.04);font-size:9px}.sf-feed-list i{font-style:normal;color:#f4a829;text-align:center}.sf-feed-list em{font-style:normal;color:#778297;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sf-feed-list b{font-weight:500;color:#7f8a9e;text-align:right}.sf-event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.sf-event-grid>div{height:91px;box-sizing:border-box;border:1px solid rgba(255,255,255,.045);border-radius:7px;background:rgba(255,255,255,.018);padding:12px;position:relative;display:flex;flex-direction:column;align-items:flex-start;overflow:hidden}.sf-event-label{display:block;max-width:calc(100% - 48px);font-size:10px;line-height:1.25;color:#e8edf7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sf-event-value{font-size:21px;line-height:1;font-weight:760;margin-top:14px;color:#f3f6fb}.sf-event-value span{font-size:inherit;line-height:inherit}.sf-event-compare{display:flex;align-items:center;gap:6px;margin-top:auto;min-height:11px;line-height:1}.sf-event-compare em{position:static;color:#778297;font-size:8px;font-style:normal}.sf-event-compare small{font-size:9px;font-weight:700;margin:0}.sf-event-icon{position:absolute;right:12px;top:22px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:17px}
@media (max-width:1280px){.sf-overview-kpis{grid-template-columns:repeat(3,1fr)}.sf-overview-row-main{grid-template-columns:1.4fr 1fr}.sf-device-card{grid-column:1/-1}.sf-overview-row-secondary{grid-template-columns:repeat(2,1fr)}}
@media (max-width:900px){.sf-overview-kpis,.sf-overview-row-main,.sf-overview-row-secondary,.sf-overview-row-bottom{grid-template-columns:1fr}.sf-device-card{grid-column:auto}.sf-kpi-card{height:102px}.sf-overview-card{height:auto;min-height:150px}.sf-feed-card,.sf-events-card{height:auto}.sf-event-grid{grid-template-columns:1fr}.sf-event-grid>div{height:90px}.sf-country-body{grid-template-columns:1fr 1fr}}

/* v2.6.122 modern traffic chart */
.sf-traffic-card{background:linear-gradient(180deg,rgba(15,24,40,.98),rgba(13,22,37,.98));}
.sf-traffic-card .sf-card-title-row{align-items:flex-start}.sf-traffic-card .sf-legend{margin-top:9px;gap:17px}.sf-traffic-card .sf-legend i{width:8px;height:5px;border-radius:2px;box-shadow:0 0 5px currentColor;flex:0 0 8px}.sf-traffic-card .sf-period-btn{height:34px;min-width:88px;padding:0 11px;border-radius:7px;border-color:rgba(124,145,184,.18);background:rgba(17,27,45,.85);font-size:10px;color:#eef2f8;box-shadow:inset 0 1px 0 rgba(255,255,255,.025);}
.sf-chart-wrap-modern{margin-top:7px;padding-top:4px}.sf-line-chart-modern{overflow:visible}.sf-grid-lines-modern line{stroke:rgba(122,143,181,.10);stroke-width:.75;vector-effect:non-scaling-stroke}.sf-grid-lines-modern line:nth-child(n+6){stroke:rgba(122,143,181,.065)}
.sf-chart-area{stroke:none;pointer-events:none}.sf-chart-area-blue{fill:url(#sfTrafficBlueArea)}.sf-chart-area-purple{fill:url(#sfTrafficPurpleArea)}
.sf-line-chart-modern .sf-chart-blue,.sf-line-chart-modern .sf-chart-purple{fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.sf-line-chart-modern .sf-chart-blue{stroke:#3193ff;filter:url(#sfTrafficGlowBlue)}.sf-line-chart-modern .sf-chart-purple{stroke:#8b5cf6;filter:url(#sfTrafficGlowPurple)}
.sf-chart-points circle{vector-effect:non-scaling-stroke;stroke-width:1.2}.sf-chart-point-blue{fill:#3193ff;stroke:#86bfff;filter:drop-shadow(0 0 3px rgba(49,147,255,.75))}.sf-chart-point-purple{fill:#8b5cf6;stroke:#b9a1ff;filter:drop-shadow(0 0 3px rgba(139,92,246,.70))}
.sf-traffic-card .sf-chart-y,.sf-traffic-card .sf-chart-x{color:#8795ab;font-size:9px}.sf-traffic-card .sf-chart-x span{white-space:nowrap}
.sf-period-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;padding:0 10px 0 12px;white-space:nowrap;line-height:1;vertical-align:middle}.sf-period-btn>span:first-child{display:block;line-height:1}.sf-period-chevron{display:block;flex:0 0 auto;font-size:11px;line-height:1;color:#9aa5b8;transform:translateY(-2px)}
/* v2.6.158 visitor history period selector */
.sf-period-control{position:relative;z-index:8;flex:0 0 auto}.sf-traffic-card .sf-period-btn,.sf-events-card .sf-period-btn{cursor:pointer;min-width:96px}.sf-period-btn .sf-period-chevron{width:12px;height:12px;display:block;flex:0 0 12px;color:#9aa7ba;transform:none!important;transition:transform .16s ease}.sf-period-btn[aria-expanded="true"] .sf-period-chevron{transform:rotate(180deg)!important}.sf-period-menu{position:absolute;top:calc(100% + 6px);right:0;width:154px;padding:5px;border:1px solid #2a3952;border-radius:8px;background:#0d1727;box-shadow:0 14px 34px rgba(0,0,0,.34);z-index:30}.sf-period-menu[hidden]{display:none}.sf-period-menu button{width:100%;height:32px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:#c9d2e1;text-align:left;font-size:11px;font-weight:600;cursor:pointer}.sf-period-menu button:hover,.sf-period-menu button:focus-visible{background:#17243a;color:#fff;outline:none}.sf-period-menu button[aria-selected="true"]{background:rgba(67,97,238,.18);color:#fff}.sf-traffic-card,.sf-events-card{overflow:visible}.sf-traffic-card .sf-chart-x{gap:4px}.sf-traffic-card .sf-chart-x span{min-width:0;text-align:center}.sf-traffic-card .sf-chart-x.sf-chart-x-daily{font-size:8px}.sf-traffic-card .sf-chart-x.sf-chart-x-daily span{transform:translateX(-50%);position:absolute}.sf-traffic-card .sf-chart-x.sf-chart-x-daily span:first-child{transform:none;left:0!important}.sf-traffic-card .sf-chart-x.sf-chart-x-daily span:last-child{transform:translateX(-100%);left:100%!important}

/* v2.6.158 daily traffic axis fix: keep 7d/30d date labels inside the card. */
.sf-traffic-card{min-height:332px}
.sf-traffic-card .sf-chart-wrap{height:258px;box-sizing:border-box;padding-bottom:30px;margin-bottom:0}
.sf-traffic-card .sf-line-chart{height:202px}
.sf-traffic-card .sf-chart-x{bottom:7px;min-height:14px;align-items:center}
.sf-traffic-card .sf-chart-x.sf-chart-x-daily{left:39px;right:4px;height:16px;overflow:visible}
.sf-traffic-card .sf-chart-x.sf-chart-x-daily span{top:1px;line-height:14px}
@media (max-width:900px){.sf-traffic-card{min-height:332px}.sf-traffic-card .sf-chart-wrap{height:258px}}

/* v21: keep Events period selector in the dark theme on hover/focus. */
.sf-events-card .sf-period-btn:hover,
.sf-events-card .sf-period-btn:focus,
.sf-events-card .sf-period-btn:focus-visible,
.sf-events-card .sf-period-btn:active{background:#162033!important;border-color:#33445f!important;color:#f2f5fb!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;filter:none!important;outline:none}
.sf-events-card .sf-period-btn:hover .sf-period-chevron,
.sf-events-card .sf-period-btn:focus .sf-period-chevron,
.sf-events-card .sf-period-btn:focus-visible .sf-period-chevron,
.sf-events-card .sf-period-btn:active .sf-period-chevron{color:#b8c3d4!important}
.sf-add-window-wrap { position:relative; display:inline-flex; }
.sf-add-window-menu {
  position:absolute; top:40px; right:0; width:236px; padding:8px;
  border:1px solid rgba(255,255,255,.10); border-radius:12px;
  background:linear-gradient(180deg, rgba(19,25,42,.99), rgba(12,17,30,.99));
  box-shadow:0 18px 42px rgba(0,0,0,.42); z-index:160;
  display:none;
}
.sf-add-window-menu.open { display:block; }
.sf-add-window-menu-title {
  padding:6px 8px 8px; color:#8f9bb2; font-size:10px; font-weight:800;
  letter-spacing:.08em; text-transform:uppercase;
}
.sf-add-window-menu button {
  width:100%; min-height:38px; display:flex; align-items:center; gap:10px;
  padding:8px 10px; border:0; border-radius:8px; background:transparent;
  color:#e9eef9; text-align:left; cursor:pointer; font-size:12px;
}
.sf-add-window-menu button:hover,
.sf-add-window-menu button:focus-visible { background:rgba(92,116,255,.13); outline:none; }
.sf-add-window-menu-icon {
  width:25px; height:25px; border-radius:7px; display:grid; place-items:center;
  background:rgba(88,125,255,.10); color:#9eb5ff; flex:0 0 auto;
}
.sf-add-window-menu-icon svg { width:14px; height:14px; display:block; }
.sf-add-window-menu-copy { min-width:0; display:flex; flex-direction:column; gap:1px; }
.sf-add-window-menu-copy strong { font-size:12px; line-height:1.2; color:#f3f6ff; }
.sf-add-window-menu-copy span { font-size:10px; line-height:1.25; color:#8995aa; }

.sf-dashboard-float-window {
  position:fixed; left:0; top:0; width:560px; height:390px;
  min-width:340px; min-height:220px; max-width:calc(100vw - 48px); max-height:calc(100vh - 48px);
  display:flex; flex-direction:column; overflow:hidden; resize:both;
  border:1px solid rgba(255,255,255,.09); border-radius:14px;
  background:linear-gradient(180deg, rgba(18,24,42,.985), rgba(11,16,29,.985));
  box-shadow:0 20px 54px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.025);
  z-index:80; color:#edf2fb;
}
.sf-dashboard-float-window.minimized {
  width:320px !important; height:46px !important; min-width:0 !important; min-height:0 !important;
  max-width:320px !important; max-height:46px !important; resize:none !important; overflow:hidden !important;
}
.sf-dashboard-float-window.maximized {
  left:16px !important; top:16px !important; right:16px !important; bottom:16px !important;
  width:auto !important; height:auto !important; max-width:none !important; max-height:none !important; resize:none !important;
}
.sf-dashboard-float-head {
  height:46px; flex:0 0 46px; display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:0 9px 0 13px; border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(22,29,48,.99), rgba(16,22,37,.99));
  cursor:move; user-select:none;
}
.sf-dashboard-float-title { display:flex; align-items:center; gap:9px; min-width:0; font-size:13px; font-weight:800; }
.sf-dashboard-float-title svg { width:15px; height:15px; color:#8fa9ff; flex:0 0 auto; }
.sf-dashboard-float-title span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-dashboard-float-actions { display:flex; align-items:center; gap:6px; flex:0 0 auto; }
.sf-dashboard-float-action {
  width:30px; height:30px; display:grid; place-items:center; padding:0; border-radius:8px;
  border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.025); color:#aeb8ca; cursor:pointer;
}
.sf-dashboard-float-action:hover { background:rgba(255,255,255,.07); color:#fff; border-color:rgba(255,255,255,.14); }
.sf-dashboard-float-action svg { width:13px; height:13px; display:block; }
.sf-dashboard-float-body {
  flex:1 1 auto; min-height:0; padding:14px; overflow:auto;
  scrollbar-gutter:stable; scrollbar-width:thin;
  scrollbar-color:rgba(136,148,176,.55) transparent;
}
.sf-dashboard-float-body::-webkit-scrollbar { width:10px; height:10px; }
.sf-dashboard-float-body::-webkit-scrollbar-track { background:transparent; }
.sf-dashboard-float-body::-webkit-scrollbar-thumb {
  background:rgba(136,148,176,.35); border-radius:999px;
  border:2px solid transparent; background-clip:content-box;
}
.sf-dashboard-float-body::-webkit-scrollbar-thumb:hover {
  background:rgba(136,148,176,.55); border:2px solid transparent; background-clip:content-box;
}
.sf-dashboard-float-body::-webkit-scrollbar-corner { background:transparent; }
.sf-dashboard-float-empty {
  height:100%; min-height:150px; display:grid; place-items:center; text-align:center;
  border:1px dashed rgba(255,255,255,.10); border-radius:12px; background:rgba(255,255,255,.015);
}
.sf-dashboard-float-empty-inner { max-width:360px; padding:24px; }
.sf-dashboard-float-empty-icon {
  width:46px; height:46px; margin:0 auto 13px; border-radius:14px; display:grid; place-items:center;
  color:#9eb5ff; background:rgba(88,125,255,.11); border:1px solid rgba(88,125,255,.18);
}
.sf-dashboard-float-empty-icon svg { width:22px; height:22px; }
.sf-dashboard-float-empty strong { display:block; color:#f3f6ff; font-size:15px; margin-bottom:7px; }
.sf-dashboard-float-empty p { margin:0; color:#8f9bb0; font-size:12px; line-height:1.55; }
.sf-dashboard-float-window.minimized .sf-dashboard-float-body { display:none; }



.sf-carts-window { min-height:100%; display:flex; flex-direction:column; gap:12px; }
.sf-carts-window-live {
  align-self:flex-start; padding:5px 8px; border-radius:999px; color:#87e8a8; font-size:9.5px; font-weight:700;
  border:1px solid rgba(79,214,126,.18); background:rgba(79,214,126,.07); display:inline-flex; align-items:center; gap:6px;
}
.sf-carts-window-live > span { width:6px; height:6px; border-radius:50%; background:#64e68f; box-shadow:0 0 0 3px rgba(100,230,143,.08); }

.sf-carts-window-loading {
  min-height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:#8f9db2; font-size:11px;
}
.sf-carts-window-loading > span { width:22px; height:22px; border-radius:50%; border:2px solid rgba(255,255,255,.10); border-top-color:#7e9dff; animation:sfCartsSpin .8s linear infinite; }
@keyframes sfCartsSpin { to { transform:rotate(360deg); } }
.sf-carts-window-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.sf-carts-window-stat {
  min-width:0; padding:10px 11px; display:flex; flex-direction:column; gap:4px;
  border:1px solid rgba(255,255,255,.075); border-radius:10px; background:rgba(255,255,255,.024);
}
.sf-carts-window-stat span { color:#7f8da4; font-size:9.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-carts-window-stat strong { color:#f2f6ff; font-size:15px; line-height:1.15; }
.sf-carts-window-stat.value strong { color:#72f59b; }
.sf-carts-window-controls {
  display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0;
}
.sf-carts-window-filters { min-width:0; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.sf-carts-window-filter {
  appearance:none; min-height:30px; padding:5px 9px; display:inline-flex; align-items:center; gap:6px;
  border:1px solid rgba(255,255,255,.085) !important; border-radius:8px; background:rgba(255,255,255,.025) !important;
  color:#98a6bc !important; font:inherit; font-size:9.5px; font-weight:700; line-height:1; cursor:pointer;
  transition:border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.sf-carts-window-filter b {
  min-width:18px; height:18px; padding:0 5px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; background:rgba(255,255,255,.055); color:#7f8da4; font-size:8.5px; font-weight:700;
}
.sf-carts-window-filter:hover,
.sf-carts-window-filter:focus-visible {
  border-color:rgba(112,145,255,.30) !important; background:rgba(91,121,222,.075) !important; color:#dce6fb !important;
}
.sf-carts-window-filter:focus-visible { outline:2px solid rgba(112,146,255,.38); outline-offset:2px; }
.sf-carts-window-filter.is-active,
.sf-carts-window-filter.is-active:hover,
.sf-carts-window-filter.is-active:focus-visible {
  border-color:rgba(97,132,255,.40) !important; background:rgba(72,108,231,.16) !important; color:#f1f5ff !important;
  box-shadow:inset 0 0 0 1px rgba(112,146,255,.05);
}
.sf-carts-window-filter.is-active b { background:rgba(105,139,255,.20); color:#b9caff; }
.sf-carts-window-filter.is-sold-filter.is-active,
.sf-carts-window-filter.is-sold-filter.is-active:hover,
.sf-carts-window-filter.is-sold-filter.is-active:focus-visible {
  border-color:rgba(73,214,123,.34) !important; background:rgba(52,190,103,.12) !important; color:#9af0b8 !important;
}
.sf-carts-window-filter.is-sold-filter.is-active b { background:rgba(65,205,116,.16); color:#8ceaae; }
.sf-carts-window-search {
  width:min(320px,36%); min-width:210px; min-height:32px; padding:0 9px; display:flex; align-items:center; gap:7px;
  border:1px solid rgba(255,255,255,.085); border-radius:9px; background:rgba(4,9,20,.25); color:#6f83a8;
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.sf-carts-window-search:focus-within {
  border-color:rgba(105,139,255,.42); background:rgba(8,15,30,.45); box-shadow:0 0 0 2px rgba(85,120,255,.07);
}
.sf-carts-window-search svg { width:14px; height:14px; flex:0 0 14px; }
.sf-carts-window-search-input {
  width:100%; min-width:0; height:30px; padding:0; border:0 !important; outline:0 !important; box-shadow:none !important;
  background:transparent !important; color:#dbe4f3 !important; font:inherit; font-size:10px;
}
.sf-carts-window-search-input::placeholder { color:#66758d; opacity:1; }
.sf-carts-window-search-input::-webkit-search-cancel-button { cursor:pointer; filter:invert(.7); }
.sf-carts-window-filter-empty { min-height:130px; }
.sf-carts-window-filter-empty[hidden] { display:none !important; }
.sf-carts-window-list { min-height:0; display:flex; flex-direction:column; gap:9px; overflow:auto; padding-right:2px; }
.sf-carts-window-card {
  padding:12px; border:1px solid rgba(255,255,255,.08); border-radius:12px;
  background:linear-gradient(180deg,rgba(255,255,255,.028),rgba(255,255,255,.014));
}
.sf-carts-window-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.sf-carts-window-visitor { min-width:0; display:flex; align-items:center; gap:9px; }
.sf-carts-window-visitor-icon {
  width:31px; height:31px; flex:0 0 31px; display:grid; place-items:center; border-radius:9px;
  color:#9eb5ff; background:rgba(88,125,255,.10); border:1px solid rgba(88,125,255,.17);
}
.sf-carts-window-visitor-icon svg { width:16px; height:16px; display:block; }
.sf-carts-window-visitor > div { min-width:0; display:flex; flex-direction:column; gap:2px; }
.sf-carts-window-visitor strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#f1f5fd; font-size:11.5px; }
.sf-carts-window-visitor span { color:#7e8ba1; font-size:9.5px; }
.sf-carts-window-total-wrap { flex:0 0 auto; min-width:118px; display:flex; flex-direction:column; align-items:flex-end; gap:3px; }
.sf-carts-window-total { color:#72f59b; font-size:13px; white-space:nowrap; }
.sf-carts-window-updated { color:#738198; font-size:8.8px; white-space:nowrap; }
.sf-carts-window-context {
  margin-top:8px; display:flex; align-items:center; gap:7px; min-width:0; flex-wrap:wrap;
}
.sf-carts-window-status {
  flex:0 0 auto; min-height:20px; padding:3px 7px; display:inline-flex; align-items:center; border-radius:999px;
  border:1px solid rgba(108,136,192,.20); background:rgba(108,136,192,.08); color:#a9b8d0; font-size:8.8px; font-weight:700; white-space:nowrap;
}
.sf-carts-window-status.is-active { color:#7de9a3; border-color:rgba(74,210,122,.22); background:rgba(74,210,122,.08); }
.sf-carts-window-status.is-cart { color:#8eb5ff; border-color:rgba(76,132,255,.24); background:rgba(76,132,255,.09); }
.sf-carts-window-status.is-checkout { color:#ffd27d; border-color:rgba(255,183,71,.26); background:rgba(255,183,71,.09); }
.sf-carts-window-status.is-saved { color:#9aa8bd; border-color:rgba(154,168,189,.18); background:rgba(154,168,189,.055); }
.sf-carts-window-status.is-abandoned { color:#ffad73; border-color:rgba(255,142,73,.24); background:rgba(255,128,56,.075); }
.sf-carts-window-status.is-archived { color:#7c8799; border-color:rgba(124,135,153,.14); background:rgba(124,135,153,.04); }
.sf-carts-window-status.is-inactive { color:#8793a8; border-color:rgba(135,147,168,.16); background:rgba(135,147,168,.045); }
.sf-carts-window-status.is-purchased { color:#78ef9f; border-color:rgba(73,214,123,.28); background:rgba(52,190,103,.10); }
.sf-carts-window-card.is-purchased { border-color:rgba(73,214,123,.14); background:linear-gradient(180deg,rgba(45,173,92,.045),rgba(255,255,255,.014)); }
.sf-carts-window-card.is-purchased .sf-carts-window-visitor-icon { color:#7cf0a3; background:rgba(52,190,103,.085); border-color:rgba(73,214,123,.18); }
.sf-carts-window-card.is-purchased .sf-carts-window-total { color:#72f59b; }
.sf-carts-window-context-item {
  min-width:0; max-width:260px; display:inline-flex; align-items:center; gap:4px; color:#8290a6; font-size:8.9px; line-height:1.2;
}
.sf-carts-window-context-item svg { width:11px; height:11px; flex:0 0 11px; color:#6f83a8; }
.sf-carts-window-context-item > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sf-carts-window-page { max-width:360px; }
.sf-carts-window-products { margin-top:8px; overflow:hidden; border:1px solid rgba(255,255,255,.06); border-radius:9px; }
.sf-carts-window-product {
  min-height:32px; padding:6px 9px; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:10px;
  border-bottom:1px solid rgba(255,255,255,.055); background:rgba(4,9,20,.20);
}
.sf-carts-window-product:last-child { border-bottom:0; }
.sf-carts-window-product-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#dce4f2; font-size:10.5px; }
.sf-carts-window-product-meta { white-space:nowrap; color:#8a98ae; font-size:9.5px; }
.sf-carts-window-product strong { min-width:58px; text-align:right; white-space:nowrap; color:#cbd6e8; font-size:10px; }
.sf-carts-window-card.is-clickable { cursor:pointer; transition:border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease; }
.sf-carts-window-card.is-clickable:hover {
  border-color:rgba(111,145,255,.30); background:linear-gradient(180deg,rgba(92,124,235,.075),rgba(255,255,255,.018));
  box-shadow:0 8px 24px rgba(0,0,0,.14); transform:translateY(-1px);
}
.sf-carts-window-card.is-clickable:focus-visible { outline:2px solid rgba(112,146,255,.62); outline-offset:2px; }
.sf-carts-window-card-hint { margin-top:8px; display:flex; align-items:center; gap:4px; color:#7890c7; font-size:9px; font-weight:600; }
.sf-carts-window-card-hint svg { width:10px; height:10px; flex:0 0 10px; transition:transform .16s ease; }
.sf-carts-window-card.is-clickable:hover .sf-carts-window-card-hint svg { transform:translateX(2px); }
.sf-carts-window-card-hint.is-error { color:#f0a6ad; }
.sf-carts-window-empty {
  min-height:170px; padding:24px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  text-align:center; border:1px dashed rgba(255,255,255,.10); border-radius:12px; color:#8f9bb0;
}
.sf-carts-window-empty strong { color:#eef3fc; font-size:14px; }
.sf-carts-window-empty span { max-width:320px; font-size:11px; line-height:1.5; }
@media (max-width:620px) {
  .sf-carts-window-controls { align-items:stretch; flex-direction:column; }
  .sf-carts-window-filters { width:100%; }
  .sf-carts-window-filter { flex:1 1 auto; justify-content:center; }
  .sf-carts-window-search { width:100%; min-width:0; }
  .sf-carts-window-stats { grid-template-columns:1fr; }
  .sf-carts-window-product { grid-template-columns:minmax(0,1fr) auto; }
  .sf-carts-window-product-meta { grid-column:1 / -1; }
  .sf-carts-window-card-head { align-items:flex-start; }
  .sf-carts-window-total-wrap { min-width:0; }
  .sf-carts-window-updated { white-space:normal; text-align:right; }
  .sf-carts-window-context-item, .sf-carts-window-page { max-width:100%; }
}

/* Standalone Videos window: aggregate performance overview. */
.sf-videos-window { min-height:100%; display:flex; flex-direction:column; gap:12px; }
.sf-videos-window-header {
  position:relative; z-index:5; display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:12px 13px; border:1px solid rgba(255,255,255,.075); border-radius:11px; background:rgba(255,255,255,.024);
}
.sf-videos-window-header > div:first-child { min-width:0; display:flex; flex-direction:column; gap:3px; }
.sf-videos-window-header strong { color:#f2f6ff; font-size:13px; }
.sf-videos-window-header span { color:#8290a7; font-size:10px; }
.sf-video-period-control { position:relative; flex:0 0 auto; }
.sf-video-period-button {
  min-width:112px; height:34px; padding:0 10px 0 11px; display:inline-flex; align-items:center; justify-content:space-between; gap:10px;
  border:1px solid rgba(111,137,184,.26) !important; border-radius:8px; background:#0d1727 !important; color:#e9eef8 !important;
  font:inherit; font-size:10px; font-weight:700; cursor:pointer;
}
.sf-video-period-button:hover,.sf-video-period-button:focus-visible { background:#142137 !important; border-color:rgba(112,145,255,.38) !important; color:#fff !important; outline:none; }
.sf-video-period-button svg { width:12px; height:12px; flex:0 0 12px; color:#9aa7ba; transition:transform .16s ease; }
.sf-video-period-button[aria-expanded="true"] svg { transform:rotate(180deg); }
.sf-video-period-menu {
  position:absolute; top:calc(100% + 6px); right:0; width:154px; padding:5px; z-index:25;
  border:1px solid #2a3952; border-radius:8px; background:#0d1727; box-shadow:0 14px 34px rgba(0,0,0,.34);
}
.sf-video-period-menu[hidden] { display:none !important; }
.sf-video-period-menu button {
  width:100%; height:32px; padding:0 10px; border:0 !important; border-radius:6px; background:transparent !important;
  color:#c9d2e1 !important; text-align:left; font:inherit; font-size:10px; font-weight:600; cursor:pointer;
}
.sf-video-period-menu button:hover,.sf-video-period-menu button:focus-visible { background:#17243a !important; color:#fff !important; outline:none; }
.sf-video-period-menu button[aria-selected="true"] { background:rgba(67,97,238,.18) !important; color:#fff !important; }
.sf-videos-window-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); gap:8px; }
.sf-videos-window-kpi {
  min-width:0; min-height:62px; padding:10px 11px; display:flex; flex-direction:column; justify-content:center; gap:5px;
  border:1px solid rgba(255,255,255,.075); border-radius:10px; background:linear-gradient(145deg,rgba(255,255,255,.034),rgba(255,255,255,.014));
}
.sf-videos-window-kpi span { color:#7f8da4; font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-videos-window-kpi strong { color:#f3f6fd; font-size:16px; line-height:1; font-variant-numeric:tabular-nums; }
.sf-videos-window-kpi.is-complete strong { color:#72f59b; }
.sf-videos-window-list { min-height:0; display:flex; flex-direction:column; gap:9px; }
.sf-videos-window-empty {
  min-height:160px; padding:24px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  text-align:center; border:1px dashed rgba(255,255,255,.10); border-radius:12px; color:#8f9bb0;
}
.sf-videos-window-empty strong { color:#eef3fc; font-size:14px; }
.sf-videos-window-empty span { max-width:360px; font-size:11px; line-height:1.5; }
.sf-videos-window-row {
  padding:12px; border:1px solid rgba(255,255,255,.075); border-radius:12px;
  background:linear-gradient(180deg,rgba(255,255,255,.027),rgba(255,255,255,.013)); transition:border-color .15s ease,background .15s ease;
}
.sf-videos-window-row:hover { border-color:rgba(83,150,255,.24); background:linear-gradient(180deg,rgba(62,119,214,.05),rgba(255,255,255,.014)); }
.sf-videos-window-row-head { display:flex; align-items:center; gap:10px; min-width:0; }
.sf-videos-window-rank {
  width:27px; height:27px; flex:0 0 27px; display:grid; place-items:center; border-radius:8px;
  color:#78baff; background:rgba(52,137,255,.11); border:1px solid rgba(65,145,255,.17); font-size:10px; font-weight:800;
}
.sf-videos-window-title { min-width:0; flex:1 1 auto; display:flex; flex-direction:column; gap:3px; }
.sf-videos-window-title strong { color:#edf2fb; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-videos-window-title span { color:#77869e; font-size:9.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-videos-window-last { flex:0 0 auto; color:#718098; font-size:9px; white-space:nowrap; }
.sf-videos-window-row-summary {
  margin-top:9px; padding:8px 10px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px;
  border:1px solid rgba(255,255,255,.045); border-radius:9px; background:rgba(5,11,23,.18);
}
.sf-videos-window-row-summary > span { min-width:0; display:flex; flex-direction:column; gap:2px; }
.sf-videos-window-row-summary b {
  color:#e9effa; font-size:10.6px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  font-variant-numeric:tabular-nums;
}
.sf-videos-window-row-summary small {
  color:#74829a; font-size:8.3px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.sf-videos-window-progress { margin-top:9px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:5px 12px; }
.sf-videos-window-progress > span { color:#7d8ba1; font-size:8.8px; }
.sf-videos-window-progress > span:nth-child(2) { color:#9eacc0; text-align:right; white-space:nowrap; }
.sf-videos-window-progress > div { grid-column:1 / -1; height:5px; overflow:hidden; border-radius:999px; background:rgba(111,128,158,.14); }
.sf-videos-window-progress > div i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#338df2,#4bd889); box-shadow:0 0 10px rgba(62,170,230,.20); }
.sf-videos-window-pauses { display:block; margin-top:7px; color:#6e7b91; font-size:8.5px; }
@media (max-width:720px) {
  .sf-videos-window-header { align-items:stretch; }
  .sf-video-period-button { min-width:104px; }
  .sf-videos-window-row-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:480px) {
  .sf-videos-window-header { flex-direction:column; }
  .sf-video-period-control,.sf-video-period-button { width:100%; }
  .sf-video-period-menu { left:0; right:auto; width:100%; }
  .sf-videos-window-row-summary { grid-template-columns:1fr; }
  .sf-videos-window-last { display:none; }
}


/* Videos window detail view. */
.sf-videos-window-row { cursor:pointer; }
.sf-videos-window-row:focus-visible { outline:none; border-color:rgba(83,150,255,.48); box-shadow:0 0 0 2px rgba(67,120,238,.14); }
.sf-videos-window-row-footer { margin-top:7px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sf-videos-window-row-footer .sf-videos-window-pauses { margin-top:0; }
.sf-videos-window-detail-hint { color:#78aaff; font-size:8.7px; font-weight:700; white-space:nowrap; }
.sf-video-detail-head { display:flex; align-items:center; gap:12px; min-width:0; }
.sf-video-detail-back {
  height:32px; flex:0 0 auto; padding:0 11px; display:inline-flex; align-items:center; gap:7px;
  border:1px solid rgba(111,137,184,.24) !important; border-radius:8px; background:#0d1727 !important; color:#dbe5f5 !important;
  font:inherit; font-size:9.5px; font-weight:700; cursor:pointer;
}
.sf-video-detail-back:hover,.sf-video-detail-back:focus-visible { background:#16243a !important; border-color:rgba(112,145,255,.4) !important; color:#fff !important; outline:none; }
.sf-video-detail-back span { font-size:13px; line-height:1; }
.sf-video-detail-title { min-width:0; flex:1 1 auto; display:flex; flex-direction:column; gap:3px; }
.sf-video-detail-title strong { min-width:0; color:#f0f4fc; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-video-detail-title span { min-width:0; color:#77869e; font-size:9.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-video-detail-grid { min-height:0; display:grid; grid-template-columns:minmax(280px,.8fr) minmax(420px,1.2fr); gap:10px; align-items:start; }
.sf-video-detail-card { min-width:0; border:1px solid rgba(255,255,255,.075); border-radius:12px; background:linear-gradient(180deg,rgba(255,255,255,.027),rgba(255,255,255,.012)); overflow:hidden; }
.sf-video-detail-card-head { min-height:48px; padding:10px 12px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid rgba(255,255,255,.06); }
.sf-video-detail-card-head > div { min-width:0; display:flex; flex-direction:column; gap:2px; }
.sf-video-detail-card-head strong { color:#edf2fb; font-size:11px; }
.sf-video-detail-card-head span { color:#78869d; font-size:8.8px; }
.sf-video-funnel-list { padding:7px 12px 11px; display:flex; flex-direction:column; gap:3px; }
.sf-video-funnel-row {
  min-height:42px; display:grid; grid-template-columns:minmax(100px,1fr) 38px 42px 82px; grid-template-rows:auto 5px;
  gap:4px 8px; align-items:center; padding:4px 0;
}
.sf-video-funnel-row > span { color:#aab5c8; font-size:9.5px; }
.sf-video-funnel-row > b { color:#f0f4fb; font-size:10.5px; text-align:right; font-variant-numeric:tabular-nums; }
.sf-video-funnel-row > em { color:#7e8ca3; font-size:8.8px; text-align:right; font-style:normal; font-variant-numeric:tabular-nums; }
.sf-video-funnel-drop {
  min-width:0; color:#718097; font-size:8.3px; text-align:right; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  font-variant-numeric:tabular-nums;
}
.sf-video-funnel-drop.has-drop { color:#d7a46f; }
.sf-video-funnel-row > div { grid-column:1 / -1; height:5px; border-radius:999px; overflow:hidden; background:rgba(111,128,158,.13); }
.sf-video-funnel-row > div i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#338df2,#4bd889); }
.sf-video-detail-viewer-list { display:flex; flex-direction:column; }
.sf-video-detail-viewer-row {
  width:100%; min-height:64px; padding:9px 11px; display:grid; grid-template-columns:minmax(220px,1.7fr) 72px 82px 92px 18px; gap:8px; align-items:center;
  border:0 !important; border-top:1px solid rgba(255,255,255,.052) !important; border-radius:0 !important; background:transparent !important; color:inherit !important;
  text-align:left; font:inherit; cursor:pointer;
}
.sf-video-detail-viewer-row:first-child { border-top:0 !important; }
.sf-video-detail-viewer-row:hover,.sf-video-detail-viewer-row:focus-visible { background:rgba(57,112,208,.07) !important; color:inherit !important; outline:none; }
.sf-video-detail-viewer-id { min-width:0; display:flex; align-items:center; gap:8px; }
.sf-video-detail-viewer-id > i { width:27px; height:27px; flex:0 0 27px; display:grid; place-items:center; border-radius:50%; color:#70f293; background:rgba(33,198,91,.10); border:1px solid rgba(51,215,104,.18); font-size:8px; font-style:normal; padding-left:1px; }
.sf-video-detail-viewer-id > span { min-width:0; display:flex; flex-direction:column; gap:2px; }
.sf-video-detail-viewer-id strong { color:#eaf0fa; font-size:9.8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-video-detail-viewer-state { display:flex; align-items:center; gap:5px; min-width:0; }
.sf-video-detail-viewer-state > i {
  width:6px; height:6px; flex:0 0 6px; border-radius:50%; background:#76849a; box-shadow:0 0 0 2px rgba(118,132,154,.10);
}
.sf-video-detail-viewer-state > i.is-online { background:#47dd78; box-shadow:0 0 0 2px rgba(71,221,120,.12); }
.sf-video-detail-viewer-state > i.is-offline { background:#76849a; }
.sf-video-detail-viewer-state > span { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-video-detail-viewer-context {
  display:block; max-width:100%; color:#64738b !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.sf-video-detail-viewer-id small,.sf-video-detail-viewer-progress small,.sf-video-detail-viewer-watch small,.sf-video-detail-viewer-last small { color:#6f7e96; font-size:8px; }
.sf-video-detail-viewer-progress,.sf-video-detail-viewer-watch,.sf-video-detail-viewer-last { min-width:0; display:flex; flex-direction:column; gap:2px; }
.sf-video-detail-viewer-progress b,.sf-video-detail-viewer-watch b,.sf-video-detail-viewer-last b { color:#dce5f3; font-size:9.6px; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-video-detail-viewer-progress b { color:#77e59a; }
.sf-video-detail-viewer-arrow { color:#6598ff; font-size:13px; text-align:right; }
.sf-video-detail-viewer-note { display:block; padding:8px 11px 10px; border-top:1px solid rgba(255,255,255,.05); color:#6f7e96; font-size:8.3px; }
.sf-video-detail-viewer-note.is-error { color:#ff9d9d; }
.sf-video-detail-viewer-empty { min-height:100px; padding:18px; display:grid; place-items:center; color:#7f8ca2; font-size:9.5px; text-align:center; }
@media (max-width:980px) {
  .sf-video-detail-grid { grid-template-columns:1fr; }
}
@media (max-width:720px) {
  .sf-video-detail-head { align-items:flex-start; }
  .sf-video-funnel-row { grid-template-columns:minmax(90px,1fr) 34px 40px 70px; }
  .sf-video-detail-viewer-row { grid-template-columns:minmax(180px,1.5fr) 60px 70px 18px; }
  .sf-video-detail-viewer-last { display:none; }
}
@media (max-width:520px) {
  .sf-video-detail-head { flex-direction:column; }
  .sf-video-detail-back { width:100%; justify-content:center; }
  .sf-video-funnel-row { grid-template-columns:minmax(90px,1fr) 34px 40px; }
  .sf-video-funnel-drop { display:none; }
  .sf-video-detail-viewer-row { grid-template-columns:minmax(145px,1fr) 58px 18px; }
  .sf-video-detail-viewer-watch { display:none; }
  .sf-video-detail-viewer-context { max-width:170px; }
}


.sf-live-visitors-window { min-height:100%; display:flex; flex-direction:column; gap:12px; }
.sf-live-visitors-window-summary {
  display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px;
  border:1px solid rgba(255,255,255,.075); border-radius:11px; background:rgba(255,255,255,.025);
}
.sf-live-visitors-window-summary > div { min-width:0; display:flex; flex-direction:column; gap:2px; }
.sf-live-visitors-window-summary strong { font-size:13px; color:#f2f6ff; }
.sf-live-visitors-window-summary span { font-size:10.5px; color:#8290a7; }
.sf-live-visitors-window-summary > b {
  min-width:34px; height:28px; padding:0 9px; display:grid; place-items:center; border-radius:999px;
  color:#72f59b; background:rgba(28,199,93,.10); border:1px solid rgba(28,199,93,.22); font-size:13px;
}
.sf-live-visitors-window-list { display:flex; flex-direction:column; gap:9px; min-height:0; }
.sf-live-visitors-window-empty {
  min-height:165px; padding:24px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; text-align:center; border:1px dashed rgba(255,255,255,.10); border-radius:12px; color:#8f9bb0;
}
.sf-live-visitors-window-empty strong { color:#eef3fc; font-size:14px; }
.sf-live-visitors-window-empty span { max-width:320px; font-size:11px; line-height:1.5; }
.sf-live-visitors-window-card {
  padding:12px; border:1px solid rgba(255,255,255,.08); border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.014));
}
.sf-live-visitors-window-card.assist-low { border-left:3px solid rgba(34,197,94,.65); }
.sf-live-visitors-window-card.assist-medium { border-left:3px solid rgba(245,158,11,.78); }
.sf-live-visitors-window-card.assist-high { border-left:3px solid rgba(239,68,68,.80); }
.sf-live-visitors-window-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.sf-live-visitors-window-identity { display:flex; align-items:center; gap:9px; min-width:0; }
.sf-live-visitors-window-avatar {
  width:34px; height:34px; flex:0 0 34px; border-radius:50%; display:grid; place-items:center; font-weight:800;
  background:linear-gradient(135deg,#5a9cff,#6cc0ff); color:#fff; box-shadow:0 5px 14px rgba(55,126,255,.18);
}
.sf-live-visitors-window-copy { min-width:0; display:flex; flex-direction:column; gap:3px; }
.sf-live-visitors-window-copy > strong { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:#f4f7ff; }
.sf-live-visitors-window-location { display:flex; align-items:center; gap:6px; min-width:0; font-size:10.5px; color:#a4afc2; }
.sf-live-visitors-window-location > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sf-live-visitors-window-location .sf-country-flag { width:18px; height:13px; object-fit:cover; border-radius:2px; flex:0 0 auto; }
.sf-live-visitors-window-page { margin-top:10px; padding:8px 10px; display:grid; grid-template-columns:82px minmax(0,1fr); gap:8px; border-radius:8px; background:rgba(4,9,20,.28); }
.sf-live-visitors-window-page span { color:#6f7e96; font-size:10px; }
.sf-live-visitors-window-page strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#cbd6e8; font-size:10.5px; font-weight:600; }
.sf-live-visitors-window-meta { margin-top:9px; display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; color:#7f8ca2; font-size:10px; }
.sf-live-visitors-window-meta span:first-child { color:#9adbb0; }
.sf-live-visitors-window-meta i { width:6px; height:6px; margin-right:5px; display:inline-block; border-radius:50%; background:#36d36d; box-shadow:0 0 8px rgba(54,211,109,.35); }
.sf-live-visitors-window-actions { margin-top:10px; display:flex; justify-content:flex-end; }
.sf-live-visitors-window-chat {
  min-height:30px; padding:0 11px; border:1px solid rgba(94,116,255,.35); border-radius:8px;
  background:rgba(63,81,181,.15); color:#e9efff; font-size:10.5px; font-weight:700; cursor:pointer;
}
.sf-live-visitors-window-chat:not(:disabled):hover { background:rgba(81,101,220,.24); border-color:rgba(110,132,255,.55); }
.sf-live-visitors-window-chat:disabled { opacity:.42; cursor:not-allowed; }
.sf-live-visitors-window-chat.assist-medium:not(:disabled) { border-color:rgba(245,158,11,.38); color:#ffd790; background:rgba(245,158,11,.09); }
.sf-live-visitors-window-chat.assist-high:not(:disabled) { border-color:rgba(239,68,68,.42); color:#ffb2b2; background:rgba(239,68,68,.10); }


.sf-active-pages-window { min-height:100%; display:flex; flex-direction:column; gap:12px; }
.sf-active-pages-window-summary {
  display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px;
  border:1px solid rgba(255,255,255,.075); border-radius:11px; background:rgba(255,255,255,.025);
}
.sf-active-pages-window-summary > div:first-child { min-width:0; display:flex; flex-direction:column; gap:2px; }
.sf-active-pages-window-summary strong { font-size:13px; color:#f2f6ff; }
.sf-active-pages-window-summary span { font-size:10.5px; color:#8290a7; }
.sf-active-pages-window-stats { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.sf-active-pages-window-stats b {
  min-width:34px; height:28px; padding:0 9px; display:grid; place-items:center; border-radius:999px;
  color:#ffb35c; background:rgba(249,115,22,.10); border:1px solid rgba(249,115,22,.22); font-size:13px;
}
.sf-active-pages-window-stats span { white-space:nowrap; }
.sf-active-pages-window-list { display:flex; flex-direction:column; gap:8px; min-height:0; }
.sf-active-pages-window-empty {
  min-height:165px; padding:24px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; text-align:center; border:1px dashed rgba(255,255,255,.10); border-radius:12px; color:#8f9bb0;
}
.sf-active-pages-window-empty strong { color:#eef3fc; font-size:14px; }
.sf-active-pages-window-empty span { max-width:320px; font-size:11px; line-height:1.5; }
.sf-active-pages-window-row {
  min-height:62px; padding:10px 12px; display:flex; align-items:center; justify-content:space-between; gap:12px;
  border:1px solid rgba(255,255,255,.075); border-radius:11px;
  background:linear-gradient(180deg, rgba(255,255,255,.027), rgba(255,255,255,.013));
}
.sf-active-pages-window-main { min-width:0; display:flex; align-items:center; gap:9px; }
.sf-active-pages-window-main > i { width:7px; height:7px; flex:0 0 7px; border-radius:50%; background:#ff8a3d; box-shadow:0 0 8px rgba(255,138,61,.28); }
.sf-active-pages-window-main > div { min-width:0; display:flex; flex-direction:column; gap:4px; }
.sf-active-pages-window-main strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#f1f5fd; font-size:11.5px; }
.sf-active-pages-window-main span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#7d8ba1; font-size:10px; }
.sf-active-pages-window-row-meta { flex:0 0 auto; display:flex; align-items:center; gap:10px; }
.sf-active-pages-window-row-meta b {
  min-width:28px; height:26px; padding:0 7px; display:grid; place-items:center; border-radius:8px;
  color:#fff; background:rgba(249,115,22,.10); border:1px solid rgba(249,115,22,.18); font-size:11px;
}
.sf-active-pages-window-row-meta span { min-width:34px; text-align:right; color:#77859b; font-size:9.5px; }


.sf-referrers-window { min-height:100%; display:flex; flex-direction:column; gap:12px; }
.sf-referrers-window-summary {
  display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px;
  border:1px solid rgba(255,255,255,.075); border-radius:11px; background:rgba(255,255,255,.025);
}
.sf-referrers-window-summary > div:first-child { min-width:0; display:flex; flex-direction:column; gap:2px; }
.sf-referrers-window-summary strong { font-size:13px; color:#f2f6ff; }
.sf-referrers-window-summary span { font-size:10.5px; color:#8290a7; }
.sf-referrers-window-total { display:flex; align-items:baseline; gap:5px; flex:0 0 auto; }
.sf-referrers-window-total b { font-size:20px; line-height:1; color:#b6a4ff; }
.sf-referrers-window-total span { font-size:9.5px; color:#728098; }
.sf-referrers-window-list { min-height:0; display:flex; flex-direction:column; gap:7px; }
.sf-referrers-window-empty {
  min-height:165px; padding:24px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; text-align:center; border:1px dashed rgba(255,255,255,.10); border-radius:12px; color:#8f9bb0;
}
.sf-referrers-window-empty strong { color:#eef3fc; font-size:14px; }
.sf-referrers-window-empty span { max-width:330px; font-size:11px; line-height:1.5; }
.sf-referrers-window-row {
  display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:52px; padding:9px 11px;
  border:1px solid rgba(255,255,255,.065); border-radius:10px; background:rgba(255,255,255,.018);
}
.sf-referrers-window-row:hover { border-color:rgba(132,106,255,.22); background:rgba(108,84,255,.035); }
.sf-referrers-window-rank {
  width:24px; height:24px; display:grid; place-items:center; border-radius:7px; font-size:10px; font-weight:800;
  color:#a99cff; background:rgba(118,87,255,.10); border:1px solid rgba(118,87,255,.18);
}
.sf-referrers-window-main { min-width:0; display:flex; flex-direction:column; gap:7px; }
.sf-referrers-window-main strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e9eef9; font-size:11.5px; }
.sf-referrers-window-bar { height:4px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.055); }
.sf-referrers-window-bar i { height:100%; display:block; border-radius:999px; background:linear-gradient(90deg, #6d5dfc, #a371ff); box-shadow:0 0 9px rgba(128,91,255,.24); }
.sf-referrers-window-meta { min-width:58px; display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.sf-referrers-window-meta b { color:#f2f5fc; font-size:12px; }
.sf-referrers-window-meta span { color:#7e8ba1; font-size:9.5px; }


.sf-countries-window { min-height:100%; display:flex; flex-direction:column; gap:12px; }
.sf-countries-window-summary {
  display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px;
  border:1px solid rgba(255,255,255,.075); border-radius:11px; background:rgba(255,255,255,.025);
}
.sf-countries-window-summary > div:first-child { min-width:0; display:flex; flex-direction:column; gap:2px; }
.sf-countries-window-summary strong { font-size:13px; color:#f2f6ff; }
.sf-countries-window-summary span { font-size:10.5px; color:#8290a7; }
.sf-countries-window-total { display:flex; align-items:baseline; gap:5px; flex:0 0 auto; }
.sf-countries-window-total b { font-size:20px; line-height:1; color:#79d7ff; }
.sf-countries-window-total span { font-size:9.5px; color:#728098; }
.sf-countries-window-list { min-height:0; display:flex; flex-direction:column; gap:7px; }
.sf-countries-window-empty {
  min-height:165px; padding:24px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; text-align:center; border:1px dashed rgba(255,255,255,.10); border-radius:12px; color:#8f9bb0;
}
.sf-countries-window-empty strong { color:#eef3fc; font-size:14px; }
.sf-countries-window-empty span { max-width:330px; font-size:11px; line-height:1.5; }
.sf-countries-window-row {
  display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:54px; padding:9px 11px;
  border:1px solid rgba(255,255,255,.065); border-radius:10px; background:rgba(255,255,255,.018);
}
.sf-countries-window-row:hover { border-color:rgba(90,180,255,.22); background:rgba(70,155,255,.035); }
.sf-countries-window-rank {
  width:24px; height:24px; display:grid; place-items:center; border-radius:7px; font-size:10px; font-weight:800;
  color:#8edbff; background:rgba(52,170,255,.09); border:1px solid rgba(72,184,255,.17);
}
.sf-countries-window-main { min-width:0; display:flex; flex-direction:column; gap:7px; }
.sf-countries-window-heading { min-width:0; display:flex; align-items:center; gap:7px; }
.sf-countries-window-heading .sf-country-flag { width:19px; height:14px; object-fit:cover; border-radius:2px; flex:0 0 auto; }
.sf-countries-window-heading strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e9eef9; font-size:11.5px; }
.sf-countries-window-bar { height:4px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.055); }
.sf-countries-window-bar i { height:100%; display:block; border-radius:999px; background:linear-gradient(90deg, #4d9fff, #6bd0ff); box-shadow:0 0 9px rgba(65,169,255,.24); }
.sf-countries-window-meta { min-width:58px; display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.sf-countries-window-meta b { color:#f2f5fc; font-size:12px; }
.sf-countries-window-meta span { color:#7e8ba1; font-size:9.5px; }


.sf-top-pages-window { min-height:100%; display:flex; flex-direction:column; gap:12px; }
.sf-top-pages-window-summary {
  display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px;
  border:1px solid rgba(255,255,255,.075); border-radius:11px; background:rgba(255,255,255,.025);
}
.sf-top-pages-window-summary > div:first-child { min-width:0; display:flex; flex-direction:column; gap:2px; }
.sf-top-pages-window-summary strong { font-size:13px; color:#f2f6ff; }
.sf-top-pages-window-summary span { font-size:10.5px; color:#8290a7; }
.sf-top-pages-window-total { display:flex; align-items:baseline; gap:5px; flex:0 0 auto; }
.sf-top-pages-window-total b { font-size:20px; line-height:1; color:#ffae73; }
.sf-top-pages-window-total span { font-size:9.5px; color:#728098; }
.sf-top-pages-window-list { min-height:0; display:flex; flex-direction:column; gap:7px; }
.sf-top-pages-window-empty {
  min-height:165px; padding:24px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; text-align:center; border:1px dashed rgba(255,255,255,.10); border-radius:12px; color:#8f9bb0;
}
.sf-top-pages-window-empty strong { color:#eef3fc; font-size:14px; }
.sf-top-pages-window-empty span { max-width:330px; font-size:11px; line-height:1.5; }
.sf-top-pages-window-row {
  display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:52px; padding:9px 11px;
  border:1px solid rgba(255,255,255,.065); border-radius:10px; background:rgba(255,255,255,.018);
}
.sf-top-pages-window-row:hover { border-color:rgba(255,148,76,.22); background:rgba(255,128,48,.035); }
.sf-top-pages-window-rank {
  width:24px; height:24px; display:grid; place-items:center; border-radius:7px; font-size:10px; font-weight:800;
  color:#ffb47e; background:rgba(255,130,51,.09); border:1px solid rgba(255,145,74,.17);
}
.sf-top-pages-window-main { min-width:0; display:flex; flex-direction:column; gap:7px; }
.sf-top-pages-window-main strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e9eef9; font-size:11.5px; }
.sf-top-pages-window-bar { height:4px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.055); }
.sf-top-pages-window-bar i { height:100%; display:block; border-radius:999px; background:linear-gradient(90deg, #ff7a32, #ffad70); box-shadow:0 0 9px rgba(255,128,55,.22); }
.sf-top-pages-window-meta { min-width:58px; display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.sf-top-pages-window-meta b { color:#f2f5fc; font-size:12px; }
.sf-top-pages-window-meta span { color:#7e8ba1; font-size:9.5px; }

/* v2.6.151: real activity feed multi-window */
.sf-activity-window{min-height:100%;display:flex;flex-direction:column;gap:12px}.sf-activity-window-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;border:1px solid rgba(255,255,255,.055);border-radius:9px;background:rgba(255,255,255,.018)}.sf-activity-window-summary>div{min-width:0;display:flex;flex-direction:column;gap:2px}.sf-activity-window-summary strong{font-size:13px;color:#f2f6ff}.sf-activity-window-summary span{font-size:10.5px;color:#8290a7}.sf-activity-window-live{flex:0 0 auto!important;color:#62dc8a!important;font-size:9px!important;font-weight:750;letter-spacing:.08em;padding:4px 7px;border:1px solid rgba(74,214,120,.2);border-radius:999px;background:rgba(53,194,103,.08)}.sf-activity-window-list{min-height:0;display:flex;flex-direction:column;gap:6px}.sf-activity-window-row{display:grid;grid-template-columns:30px minmax(0,1fr) 42px;gap:9px;align-items:center;padding:9px 10px;border:1px solid rgba(255,255,255,.045);border-radius:8px;background:rgba(255,255,255,.014);transition:border-color .15s ease,background .15s ease}.sf-activity-window-row:hover{border-color:rgba(124,131,255,.2);background:rgba(124,131,255,.035)}.sf-activity-window-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:7px;background:rgba(255,170,70,.08);color:#f4a829;font-size:13px}.sf-activity-window-main{min-width:0;display:flex;flex-direction:column;gap:3px}.sf-activity-window-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e9eef9;font-size:11px;font-weight:600}.sf-activity-window-main span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#78859a;font-size:9.5px}.sf-activity-window-row time{color:#7f8a9e;font-size:9.5px;text-align:right}.sf-activity-window-empty{min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;color:#7e8ba1}.sf-activity-window-empty strong{color:#eef3fc;font-size:14px}.sf-activity-window-empty span{font-size:11px}


/* TracePilot v41: video detail visual polish and better use of available space. */
.sf-videos-window.is-detail { height:100%; min-height:0; }
.sf-videos-window.is-detail .sf-videos-window-header { flex:0 0 auto; }
.sf-videos-window.is-detail .sf-videos-window-kpis { flex:0 0 auto; }
.sf-videos-window.is-detail .sf-videos-window-kpi { min-height:56px; }
.sf-videos-window.is-detail .sf-video-detail-head {
  flex:0 0 auto; padding:8px; border:1px solid rgba(255,255,255,.06); border-radius:10px;
  background:linear-gradient(90deg,rgba(35,70,126,.08),rgba(255,255,255,.012));
}
.sf-videos-window.is-detail .sf-video-detail-back {
  min-width:94px; background:rgba(13,23,39,.88) !important; box-shadow:inset 0 0 0 1px rgba(255,255,255,.01);
}
.sf-videos-window.is-detail .sf-video-detail-title strong { font-size:12.5px; }
.sf-videos-window.is-detail .sf-video-detail-title span { color:#8795aa; }
.sf-videos-window.is-detail .sf-video-detail-grid {
  flex:1 1 auto; min-height:300px; align-items:stretch;
  grid-template-columns:minmax(300px,.82fr) minmax(440px,1.18fr);
}
.sf-videos-window.is-detail .sf-video-detail-card { min-height:0; display:flex; flex-direction:column; }
.sf-videos-window.is-detail .sf-video-detail-card-head {
  flex:0 0 auto; min-height:50px; background:rgba(5,11,23,.12);
}
.sf-videos-window.is-detail .sf-video-detail-funnel .sf-video-funnel-list {
  flex:1 1 auto; min-height:0; justify-content:space-evenly; padding:10px 13px 13px; gap:4px;
}
.sf-videos-window.is-detail .sf-video-funnel-row {
  min-height:48px; padding:5px 0; grid-template-columns:minmax(105px,1fr) 40px 44px 92px; grid-template-rows:auto 7px;
}
.sf-videos-window.is-detail .sf-video-funnel-row > span { color:#c0cad8; font-weight:600; }
.sf-videos-window.is-detail .sf-video-funnel-row > b { font-size:11px; }
.sf-videos-window.is-detail .sf-video-funnel-row > em { color:#9ba8ba; font-weight:700; }
.sf-videos-window.is-detail .sf-video-funnel-drop {
  justify-self:end; width:max-content; max-width:92px; padding:3px 6px; border-radius:999px;
  background:rgba(112,128,153,.08); color:#7f8da3; font-weight:650; line-height:1.15;
}
.sf-videos-window.is-detail .sf-video-funnel-drop.has-drop {
  color:#ffc27b; background:rgba(245,158,11,.10); border:1px solid rgba(245,158,11,.18);
}
.sf-videos-window.is-detail .sf-video-funnel-row > div { height:7px; background:rgba(111,128,158,.16); }
.sf-videos-window.is-detail .sf-video-funnel-row > div i {
  background:linear-gradient(90deg,#338df2 0%,#39bce8 48%,#4bd889 100%); box-shadow:0 0 11px rgba(57,188,232,.12);
}
.sf-videos-window.is-detail .sf-video-detail-viewers .sf-video-detail-viewer-list {
  flex:1 1 auto; min-height:0; overflow-y:auto; scrollbar-width:thin; scrollbar-color:rgba(136,148,176,.35) transparent;
}
.sf-videos-window.is-detail .sf-video-detail-viewers .sf-video-detail-viewer-list::-webkit-scrollbar { width:8px; }
.sf-videos-window.is-detail .sf-video-detail-viewers .sf-video-detail-viewer-list::-webkit-scrollbar-track { background:transparent; }
.sf-videos-window.is-detail .sf-video-detail-viewers .sf-video-detail-viewer-list::-webkit-scrollbar-thumb {
  background:rgba(136,148,176,.28); border:2px solid transparent; background-clip:content-box; border-radius:999px;
}
.sf-videos-window.is-detail .sf-video-detail-viewer-row {
  min-height:58px; padding:8px 11px; grid-template-columns:minmax(240px,1.8fr) 68px 78px 88px 18px;
}
.sf-videos-window.is-detail .sf-video-detail-viewer-id > i { width:25px; height:25px; flex-basis:25px; }
.sf-videos-window.is-detail .sf-video-detail-viewer-id > span { gap:1px; }
.sf-videos-window.is-detail .sf-video-detail-viewer-context { color:#718097 !important; font-size:7.8px; }
.sf-videos-window.is-detail .sf-video-detail-viewer-note { flex:0 0 auto; margin-top:auto; background:rgba(5,11,23,.10); }
.sf-videos-window-detail-hint {
  padding:4px 8px; border:1px solid rgba(82,137,255,.20); border-radius:999px;
  background:rgba(64,111,222,.08); color:#8db7ff; transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.sf-videos-window-row:hover .sf-videos-window-detail-hint,
.sf-videos-window-row:focus-visible .sf-videos-window-detail-hint {
  background:rgba(64,111,222,.15); border-color:rgba(95,151,255,.34); color:#b6d0ff;
}
@media (max-width:980px) {
  .sf-videos-window.is-detail { height:auto; min-height:100%; }
  .sf-videos-window.is-detail .sf-video-detail-grid { flex:0 0 auto; grid-template-columns:1fr; min-height:0; }
  .sf-videos-window.is-detail .sf-video-detail-card { min-height:220px; }
  .sf-videos-window.is-detail .sf-video-detail-funnel .sf-video-funnel-list { justify-content:flex-start; }
}
@media (max-width:720px) {
  .sf-videos-window.is-detail .sf-video-funnel-row { grid-template-columns:minmax(90px,1fr) 34px 40px 78px; }
  .sf-videos-window.is-detail .sf-video-detail-viewer-row { grid-template-columns:minmax(180px,1.5fr) 60px 70px 18px; }
}
@media (max-width:520px) {
  .sf-videos-window.is-detail .sf-video-detail-head { padding:7px; }
  .sf-videos-window.is-detail .sf-video-detail-back { min-width:0; }
  .sf-videos-window.is-detail .sf-video-funnel-row { grid-template-columns:minmax(90px,1fr) 34px 40px; }
  .sf-videos-window-detail-hint { padding:3px 7px; }
}

/* TracePilot v42: content-sized viewer card, clearer navigation and stronger drop-off emphasis. */
.sf-videos-window.is-detail .sf-video-detail-grid {
  flex:0 0 auto; min-height:0; align-items:start;
}
.sf-videos-window.is-detail .sf-video-detail-funnel {
  min-height:390px; align-self:start;
}
.sf-videos-window.is-detail .sf-video-detail-viewers {
  height:auto; min-height:0; align-self:start;
}
.sf-videos-window.is-detail .sf-video-detail-viewers .sf-video-detail-viewer-list {
  flex:0 1 auto; min-height:0; max-height:360px; overflow-y:auto;
}
.sf-videos-window.is-detail .sf-video-detail-viewer-note {
  margin-top:0;
}
.sf-videos-window.is-detail .sf-video-funnel-drop.has-drop.is-medium {
  color:#ffc26f; background:rgba(245,158,11,.14); border-color:rgba(245,158,11,.28);
}
.sf-videos-window.is-detail .sf-video-funnel-drop.has-drop.is-high {
  color:#ff9d91; background:rgba(239,85,74,.13); border-color:rgba(239,85,74,.28);
}
.sf-videos-window.is-detail .sf-video-detail-viewer-row {
  grid-template-columns:minmax(240px,1.8fr) 68px 78px 88px 28px;
}
.sf-video-detail-viewer-arrow {
  width:24px; height:24px; display:grid; place-items:center; justify-self:end;
  border:1px solid rgba(90,145,255,.22); border-radius:7px; background:rgba(62,112,224,.08);
  color:#82adff; font-size:14px; font-weight:800; line-height:1; transition:transform .15s ease,background .15s ease,border-color .15s ease,color .15s ease;
}
.sf-video-detail-viewer-row:hover .sf-video-detail-viewer-arrow,
.sf-video-detail-viewer-row:focus-visible .sf-video-detail-viewer-arrow {
  transform:translateX(2px); background:rgba(62,112,224,.17); border-color:rgba(99,154,255,.38); color:#c0d5ff;
}
.sf-videos-window-row { transition:border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease; }
.sf-videos-window-row:hover,.sf-videos-window-row:focus-visible {
  transform:translateY(-1px); box-shadow:0 8px 22px rgba(0,0,0,.10);
}
@media (max-width:980px) {
  .sf-videos-window.is-detail .sf-video-detail-funnel { min-height:0; }
  .sf-videos-window.is-detail .sf-video-detail-viewers .sf-video-detail-viewer-list { max-height:320px; }
}
@media (max-width:720px) {
  .sf-videos-window.is-detail .sf-video-detail-viewer-row { grid-template-columns:minmax(180px,1.5fr) 60px 70px 28px; }
}
@media (max-width:520px) {
  .sf-videos-window.is-detail .sf-video-detail-viewer-row { grid-template-columns:minmax(145px,1fr) 58px 28px; }
}
.sf-visitor-window { position:fixed; right:24px; bottom:24px; width:min(1180px, calc(100vw - 48px)); max-width:calc(100vw - 48px); height:min(680px, calc(100vh - 48px)); background: linear-gradient(180deg, rgba(18,24,42,.98), rgba(12,16,28,.98)); border:1px solid rgba(255,255,255,.08); border-radius:14px; box-shadow: 0 18px 48px rgba(0,0,0,.45); z-index:50; display:none; overflow:hidden; box-sizing:border-box; container-type:inline-size; }
.sf-visitor-window.open { display:flex; flex-direction:column; }
.sf-visitor-window.minimized { height:46px !important; width:320px !important; max-width:320px !important; max-height:46px !important; min-width:0 !important; min-height:0 !important; overflow:hidden !important; resize:none !important; }
.sf-vw-header { flex:0 0 46px; height:46px; border-bottom:1px solid rgba(255,255,255,.08); display:flex; align-items:center; justify-content:space-between; padding:0 10px 0 12px; cursor:move; user-select:none; touch-action:none; background: linear-gradient(180deg, rgba(22,28,44,.98), rgba(16,21,35,.98)); touch-action:none; }
.sf-vw-title { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:700; color:#edf1fb; flex:1 1 auto; min-width:0; overflow:hidden; }
.sf-vw-title .icon { width:16px; height:16px; color:#6e84ff; flex:0 0 auto; }
.sf-vw-title-text { display:block; flex:1 1 auto; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.sf-vw-actions { display:flex; align-items:center; gap:6px; flex:0 0 auto; min-width:max-content; margin-left:8px; }
.sf-vw-btn { width:28px; height:28px; border-radius:8px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.03); color:#dbe2f2; display:flex; align-items:center; justify-content:center; padding:0; cursor:pointer; line-height:0; font-size:0; font-family:inherit; }
.sf-vw-btn svg { width:14px; height:14px; display:block; flex:none; }
.sf-vw-btn:hover { background:rgba(255,255,255,.08); }
.sf-vw-btn:focus-visible { outline:2px solid rgba(110,132,255,.65); outline-offset:2px; }
.sf-vw-body { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:minmax(330px,.64fr) minmax(650px,1.36fr); gap:12px; padding:12px; background: linear-gradient(180deg, rgba(19,24,38,.96), rgba(15,19,32,.98)); box-sizing:border-box; scrollbar-gutter: stable both-edges; }

@container (max-width:1000px) {
  .sf-vw-body { grid-template-columns:1fr; overflow-y:auto; }
  .sf-vw-left { max-height:none; overflow:visible; }
  .sf-vw-right { min-height:620px; }
}
@media (max-width:1050px) {
  .sf-vw-body { grid-template-columns:1fr; overflow-y:auto; }
  .sf-vw-left { max-height:none; overflow:visible; }
  .sf-vw-right { min-height:620px; }
}

.sf-visitor-window.maximized {
  left: 16px !important;
  top: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  resize: none !important;
}
.sf-visitor-window.maximized .sf-vw-body {
  overflow: auto;
}

.sf-visitor-window {
  resize: none;
}
.sf-resize-handle {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  z-index: 2;
}

.sf-visitor-window.minimized .sf-resize-handle,
.sf-visitor-window.maximized .sf-resize-handle {
  display: none;
}
.sf-vw-body {
  /* Keep the activity tabs fixed. Scrolling happens inside the columns/panels,
     not on the complete visitor window. This avoids the nested-scroll trap
     where the tab bar can remain outside of the visible area. */
  overflow: hidden;
  scrollbar-color: rgba(136,148,176,.55) transparent;
  scrollbar-width: thin;
}
.sf-vw-body::-webkit-scrollbar {
  width: 10px;
}
.sf-vw-body::-webkit-scrollbar-track {
  background: transparent;
}
.sf-vw-body::-webkit-scrollbar-thumb {
  background: rgba(136,148,176,.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.sf-vw-body::-webkit-scrollbar-thumb:hover {
  background: rgba(136,148,176,.55);
  border: 2px solid transparent;
  background-clip: content-box;
}
.sf-visitor-window.minimized .sf-vw-body { display:none; }
.sf-vw-card {
  background:rgba(255,255,255,.028);
  border:1px solid rgba(139,157,197,.13);
  border-radius:14px;
  padding:12px;
  overflow:hidden;
  box-sizing:border-box;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
}

/* v2.6.161 — visitor profile polish pass.
   Tighter vertical rhythm, stronger metric typography and a quieter scrollbar
   keep the complete overview visible in a maximized 1080p workspace. */
.sf-vw-left {
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
  min-height:0;
  padding-right:3px;
}
.sf-visitor-profile-card,
.sf-visitor-section-card,
.sf-visitor-tech-details {
  position:relative;
  flex:0 0 auto;
  border:1px solid rgba(137,157,199,.145);
  border-radius:14px;
  background:
    radial-gradient(circle at 0 0,rgba(73,118,220,.055),transparent 42%),
    linear-gradient(145deg,rgba(24,34,54,.82),rgba(13,22,38,.76));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.024),
    0 8px 24px rgba(0,0,0,.07);
  overflow:hidden;
}
.sf-visitor-profile-card {
  padding:12px 14px 11px;
  background:
    radial-gradient(circle at 9% 0,rgba(53,135,255,.115),transparent 32%),
    linear-gradient(145deg,rgba(24,35,57,.88),rgba(13,22,39,.80));
}
.sf-visitor-profile-card:after {
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(91,156,255,.20),transparent);
  pointer-events:none;
}
.sf-vw-profile { display:flex; gap:12px; align-items:flex-start; min-width:0; }
.sf-vw-avatar {
  position:relative;
  width:54px;
  height:54px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 54px;
  color:#6941aa;
  background:linear-gradient(145deg,#2f86ff 0%,#53a9ff 48%,#71c2ff 100%);
  border:1px solid rgba(255,255,255,.13);
  box-shadow:0 9px 22px rgba(39,126,255,.18),inset 0 1px 0 rgba(255,255,255,.32);
}
.sf-vw-avatar svg { width:28px; height:28px; }
.sf-profile-presence {
  position:absolute;
  right:-1px;
  bottom:2px;
  width:11px;
  height:11px;
  border-radius:50%;
  background:#71809a;
  border:3px solid #172238;
  box-shadow:0 0 0 2px rgba(113,128,154,.08);
}
.sf-vw-profile-main { flex:1 1 auto; min-width:0; }
.sf-profile-name-row { display:flex; align-items:center; gap:9px; min-width:0; }
.sf-vw-profile h3 {
  margin:0;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#f6f8fd;
  font-size:16.5px;
  line-height:1.18;
  font-weight:840;
  letter-spacing:-.018em;
}
.sf-profile-status {
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
  min-height:23px;
  padding:0 8px;
  border:1px solid rgba(127,143,174,.18);
  border-radius:999px;
  background:rgba(126,139,165,.08);
  color:#98a4ba;
  font-size:9px;
  font-weight:850;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.sf-profile-status i { width:5px; height:5px; border-radius:50%; background:currentColor; box-shadow:0 0 10px currentColor; }
.sf-profile-status.is-online { border-color:rgba(46,213,121,.30); background:rgba(31,181,96,.10); color:#52e58e; }
.sf-profile-status.is-away { border-color:rgba(241,173,58,.26); background:rgba(219,145,31,.09); color:#f1b34b; }
.sf-profile-presence.is-online { background:#45df83; box-shadow:0 0 0 2px rgba(69,223,131,.08),0 0 13px rgba(69,223,131,.48); }
.sf-profile-presence.is-away { background:#f1b34b; box-shadow:0 0 11px rgba(241,179,75,.35); }
.sf-profile-secondary-row {
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
  margin-top:3px;
  color:#8e9ab0;
  font-size:10px;
  line-height:1.2;
}
.sf-mail {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#8e9ab0;
  font-size:10px;
}
.sf-profile-secondary-dot { color:#516078; flex:0 0 auto; }
.sf-profile-seen { color:#75839c; font-size:9.5px; font-variant-numeric:tabular-nums; white-space:nowrap; flex:0 0 auto; }
.sf-loc { color:#8f9bb2; font-size:10px; }
.sf-profile-location { display:flex; align-items:center; gap:6px; margin-top:6px; min-width:0; }
.sf-location-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sf-profile-inline-icon { width:12px; height:12px; display:grid; place-items:center; flex:0 0 12px; color:#ef4c7a; }
.sf-profile-inline-icon svg { width:12px; height:12px; }
.sf-profile-meta-row { display:flex; align-items:center; gap:7px; margin-top:7px; min-width:0; }
.sf-chip {
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:0 9px;
  flex:0 0 auto;
  border:1px solid rgba(132,92,255,.28);
  border-radius:7px;
  background:linear-gradient(135deg,rgba(100,64,220,.78),rgba(116,62,205,.72));
  color:#f3edff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 5px 14px rgba(86,54,190,.10);
  font-size:9px;
  font-weight:820;
  white-space:nowrap;
}
.sf-first-row { flex:1 1 auto; min-width:0; margin:0; display:flex; align-items:center; }
.sf-first-row .sf-loc { margin-top:0; }
.sf-first {
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-width:0;
  max-width:100%;
  color:#86a9ff;
  padding:4px 7px;
  border-radius:7px;
  background:rgba(74,119,222,.05);
}
.sf-first .sf-profile-inline-icon { color:#6e99ff; }
.sf-entry-copy { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.sf-visitor-section-card { padding:10px 11px 11px; }
.sf-visitor-section-title {
  margin-bottom:8px;
  color:#c7d0df;
  font-size:9.5px;
  line-height:1;
  font-weight:860;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.sf-visitor-device-grid,
.sf-visitor-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.sf-visitor-info-tile,
.sf-visitor-metric {
  min-width:0;
  border:1px solid rgba(137,157,199,.14);
  border-radius:11px;
  background:
    radial-gradient(circle at 50% 0,rgba(78,124,222,.035),transparent 52%),
    linear-gradient(180deg,rgba(255,255,255,.038),rgba(255,255,255,.012));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.022);
}
.sf-visitor-info-tile {
  min-height:88px;
  padding:9px 8px 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
}
.sf-visitor-tile-icon,
.sf-visitor-metric-icon,
.sf-visitor-source-icon,
.sf-visitor-tech-icon {
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:#69a0ff;
  background:rgba(62,113,235,.12);
  border:1px solid rgba(83,132,242,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.sf-visitor-tile-icon { width:38px; height:38px; border-radius:11px; margin-bottom:6px; }
.sf-visitor-tile-icon svg { width:21px; height:21px; }
.sf-visitor-tile-label {
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#8794ac;
  font-size:8.4px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.sf-visitor-info-tile strong {
  width:100%;
  margin-top:3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#f2f5fb;
  font-size:13.2px;
  line-height:1.15;
  font-weight:820;
  letter-spacing:-.01em;
}
.sf-tone-blue { color:#5b9cff !important; background:rgba(54,112,245,.13) !important; }
.sf-tone-cyan { color:#3ecbf0 !important; background:rgba(38,180,223,.12) !important; }
.sf-tone-mint { color:#54d7bd !important; background:rgba(47,193,165,.11) !important; }
.sf-tone-green { color:#52dc83 !important; background:rgba(48,190,102,.11) !important; }
.sf-tone-amber { color:#f2aa40 !important; background:rgba(218,145,35,.12) !important; }
.sf-tone-purple { color:#bb78ff !important; background:rgba(155,78,236,.12) !important; }

.sf-visitor-metric {
  min-height:82px;
  padding:8px 6px 7px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
}
.sf-visitor-metric-icon { width:30px; height:30px; border-radius:9px; margin-bottom:5px; }
.sf-visitor-metric-icon svg { width:16px; height:16px; }
.sf-visitor-metric strong {
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#f8fafe;
  font-size:18px;
  line-height:1.02;
  font-weight:900;
  letter-spacing:-.025em;
  font-variant-numeric:tabular-nums;
  text-shadow:0 1px 10px rgba(255,255,255,.025);
}
.sf-visitor-metric > span:last-child {
  margin-top:4px;
  color:#838fa6;
  font-size:8.4px;
  line-height:1.2;
}

.sf-visitor-acquisition-card { padding-bottom:10px; }
.sf-visitor-source-list { display:flex; flex-direction:column; gap:5px; }
.sf-visitor-source-row {
  min-height:40px;
  padding:6px 8px;
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(137,157,199,.115);
  border-radius:10px;
  background:linear-gradient(90deg,rgba(255,255,255,.023),rgba(255,255,255,.009));
  transition:border-color .15s ease,background .15s ease;
}
.sf-visitor-source-row:hover { border-color:rgba(108,145,226,.20); background:rgba(65,104,190,.045); }
.sf-visitor-source-icon { width:30px; height:30px; border-radius:9px; }
.sf-visitor-source-icon svg { width:16px; height:16px; }
.sf-visitor-source-row > div { min-width:0; flex:1 1 auto; display:flex; flex-direction:column; gap:1px; }
.sf-visitor-source-row > div > span {
  color:#8290a8;
  font-size:7.8px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.sf-visitor-source-row strong {
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#eef3fb;
  font-size:11.2px;
  line-height:1.18;
  font-weight:780;
}

.sf-visitor-tech-details { overflow:hidden; }
.sf-visitor-tech-details > summary {
  min-height:47px;
  padding:7px 10px;
  display:flex;
  align-items:center;
  gap:9px;
  list-style:none;
  cursor:pointer;
  user-select:none;
}
.sf-visitor-tech-details > summary::-webkit-details-marker { display:none; }
.sf-visitor-tech-details > summary > span:nth-child(2) { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:1px; }
.sf-visitor-tech-details > summary strong { color:#e5ebf5; font-size:9.5px; font-weight:860; text-transform:uppercase; letter-spacing:.05em; }
.sf-visitor-tech-details > summary small { color:#74819a; font-size:8.5px; }
.sf-visitor-tech-icon { width:30px; height:30px; border-radius:9px; color:#5e9fff; }
.sf-visitor-tech-icon svg { width:16px; height:16px; }
.sf-visitor-tech-chevron { width:20px; height:20px; display:grid; place-items:center; color:#75849f; transition:transform .16s ease; }
.sf-visitor-tech-chevron svg { width:15px; height:15px; }
.sf-visitor-tech-details[open] .sf-visitor-tech-chevron { transform:rotate(90deg); }
.sf-visitor-tech-body { padding:0 10px 10px; border-top:1px solid rgba(137,157,199,.09); }
.sf-row { display:flex; justify-content:space-between; gap:14px; border-top:1px solid rgba(255,255,255,.045); padding-top:7px; margin-top:7px; font-size:9.5px; }
.sf-row:first-child { border-top:0; }
.sf-row .label { color:#7f8ca5; }
.sf-row .value { min-width:0; color:#dce5f4; font-weight:650; text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sf-mono { font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace; font-size:8.8px; }
.sf-blue { color:#7fa0ff !important; }

.sf-vw-right { display:flex; flex-direction:column; gap:10px; min-width:0; min-height:0; }
.sf-stats-list { display:grid; gap:10px; }
.sf-stat-item { display:flex; align-items:flex-start; gap:10px; font-size:13px; color:#e8edf9; }
.sf-stat-icon { width:18px; height:18px; display:grid; place-items:center; color:#aeb6c9; flex:0 0 auto; margin-top:2px; }
.sf-stat-icon svg { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.sf-stat-content { display:flex; flex-direction:column; gap:2px; }
.sf-bullet { width:10px; height:10px; border-radius:50%; background:#58d46b; margin-top:4px; flex:0 0 auto; }
.sf-gray { background:#9a9fb0; }
.sf-muted { color:#9ca5bb; }
.sf-strong { font-weight:700; }

/* Keep four compact tiles in wide/maximized windows. Only stack when the
   actual visitor column becomes narrow, not merely because the browser is <1250px. */
@container (max-width:1120px) {
  .sf-visitor-device-grid,.sf-visitor-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sf-visitor-info-tile { min-height:84px; }
}

/* v2.6.165 — left visitor sidebar proportion pass.
   Treat the profile column as a compact context sidebar while keeping session
   KPIs visually primary and reducing nested-card weight. */
.sf-vw-left { gap:8px; padding-right:2px; }
.sf-visitor-profile-card { padding:10px 12px 9px; }
.sf-vw-profile { gap:10px; align-items:center; }
.sf-vw-avatar { width:46px; height:46px; flex-basis:46px; }
.sf-vw-avatar svg { width:24px; height:24px; }
.sf-vw-profile h3 { font-size:15.5px; }
.sf-profile-secondary-row { margin-top:2px; }
.sf-profile-location { margin-top:4px; }
.sf-profile-meta-row { margin-top:5px; }
.sf-chip { min-height:21px; padding:0 8px; }
.sf-first { padding:3px 6px; }

.sf-visitor-section-card {
  padding:9px 10px 10px;
  background:linear-gradient(145deg,rgba(21,31,49,.66),rgba(13,22,38,.56));
  border-color:rgba(137,157,199,.105);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
}
.sf-visitor-section-title { margin-bottom:7px; font-size:9px; }

/* Session metrics are the primary information in the sidebar. */
.sf-visitor-metric-grid { gap:6px; }
.sf-visitor-metric {
  min-height:72px;
  padding:7px 5px 6px;
  border-color:rgba(137,157,199,.13);
  background:linear-gradient(180deg,rgba(68,92,139,.09),rgba(255,255,255,.012));
}
.sf-visitor-metric-icon { width:27px; height:27px; border-radius:8px; margin-bottom:4px; }
.sf-visitor-metric-icon svg { width:15px; height:15px; }
.sf-visitor-metric strong { font-size:17px; }
.sf-visitor-metric > span:last-child { margin-top:3px; font-size:7.8px; }

/* Device context stays available but deliberately quieter and shorter. */
.sf-visitor-device-grid { gap:6px; }
.sf-visitor-info-tile {
  min-height:67px;
  padding:7px 5px 6px;
  justify-content:center;
  border-color:rgba(137,157,199,.09);
  background:rgba(255,255,255,.018);
}
.sf-visitor-tile-icon { width:29px; height:29px; border-radius:8px; margin-bottom:4px; }
.sf-visitor-tile-icon svg { width:16px; height:16px; }
.sf-visitor-tile-label { font-size:7.4px; }
.sf-visitor-info-tile strong { margin-top:2px; font-size:11.4px; }

/* Acquisition becomes a compact metadata list rather than three large cards. */
.sf-visitor-acquisition-card { padding-bottom:9px; }
.sf-visitor-source-list { gap:0; border:1px solid rgba(137,157,199,.08); border-radius:10px; overflow:hidden; }
.sf-visitor-source-row {
  min-height:36px;
  padding:5px 7px;
  gap:7px;
  border:0;
  border-radius:0;
  border-top:1px solid rgba(137,157,199,.075);
  background:rgba(255,255,255,.012);
}
.sf-visitor-source-row:first-child { border-top:0; }
.sf-visitor-source-row:hover { border-color:rgba(137,157,199,.075); background:rgba(65,104,190,.035); }
.sf-visitor-source-icon { width:26px; height:26px; border-radius:7px; }
.sf-visitor-source-icon svg { width:14px; height:14px; }
.sf-visitor-source-row > div { display:grid; grid-template-columns:88px minmax(0,1fr); align-items:center; gap:7px; }
.sf-visitor-source-row > div > span { font-size:7.4px; }
.sf-visitor-source-row strong { font-size:10.2px; }

.sf-visitor-tech-details > summary { min-height:42px; padding:6px 9px; }
.sf-visitor-tech-icon { width:27px; height:27px; border-radius:8px; }
.sf-visitor-tech-icon svg { width:14px; height:14px; }

@media (max-width:760px) {
  .sf-visitor-profile-card,.sf-visitor-section-card { padding:10px; }
  .sf-vw-profile { gap:10px; }
  .sf-vw-avatar { width:48px; height:48px; flex-basis:48px; }
  .sf-vw-avatar svg { width:24px; height:24px; }
  .sf-profile-meta-row { flex-wrap:wrap; }
  .sf-first-row { flex-basis:100%; }
}
.sf-timeline { display:grid; gap:8px; }
.sf-trow { display:flex; justify-content:space-between; gap:10px; font-size:13px; color:#cdd5e6; padding:8px 10px; border-radius:10px; background:rgba(255,255,255,.03); }
.sf-event-item-scroll { align-items:flex-start; }
.sf-scroll-event-body { display:flex; flex-direction:column; gap:7px; min-width:0; flex:1; }
.sf-scroll-event-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; font-size:13px; color:#eef3ff; }
.sf-scroll-event-head strong { font-size:15px; }
.sf-scroll-event-meta { font-size:12px; color:#93a0b9; line-height:1.4; }
.sf-scroll-depth-bar { width:100%; height:8px; border-radius:999px; background:rgba(255,255,255,.07); overflow:hidden; }
.sf-scroll-depth-bar span { display:block; height:100%; border-radius:999px; width:0%; }
.sf-scroll-depth-low span { background: linear-gradient(90deg, #6c8bff, #79b8ff); }
.sf-scroll-depth-mid span { background: linear-gradient(90deg, #6c8bff, #58d46b); }
.sf-scroll-depth-high span { background: linear-gradient(90deg, #58d46b, #a8ff6c); }
.sf-scroll-depth-value { font-weight:800; color:#dce7ff; }
.sf-active { background: rgba(63,92,180,.25); border:1px solid rgba(88,125,255,.25); }
.no-select { user-select:none; }

.sf-vw-activity { display:flex; flex-direction:column; }
.sf-current-live { display:flex; flex-direction:column; gap:12px; }
.sf-current-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.sf-current-title { font-size:15px; font-weight:800; color:#f4f7ff; }
.sf-current-sub { margin-top:4px; font-size:12px; color:#93a0b9; line-height:1.45; }
.sf-current-badge { padding:6px 10px; border-radius:999px; background: rgba(88,125,255,.16); border:1px solid rgba(88,125,255,.28); color:#cfd8ff; font-size:12px; font-weight:800; white-space:nowrap; }
.sf-current-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
.sf-current-card { position:relative; overflow:hidden; padding:13px 14px; border-radius:13px; background:rgba(255,255,255,.028); border:1px solid rgba(255,255,255,.065); min-width:0; transition:border-color .18s ease, background .18s ease, transform .18s ease; }
.sf-current-card::before { content:''; position:absolute; inset:0 auto 0 0; width:3px; background:rgba(115,137,177,.35); }
.sf-current-card:hover { background:rgba(255,255,255,.04); border-color:rgba(126,148,190,.14); }
.sf-current-card-page::before { background:#4f8cff; }
.sf-current-card-action::before { background:#69a9ff; }
.sf-current-card-scroll::before { background:#49d8b0; }
.sf-current-card-target::before { background:#d77cff; }
.sf-current-card-meta::before { background:#6f7f9d; opacity:.55; }
.sf-current-card-page { background:linear-gradient(135deg,rgba(79,140,255,.075),rgba(255,255,255,.02)); }
.sf-current-card-action { background:linear-gradient(135deg,rgba(105,169,255,.065),rgba(255,255,255,.02)); }
.sf-current-card-scroll { background:linear-gradient(135deg,rgba(73,216,176,.065),rgba(255,255,255,.02)); }
.sf-current-card-target { background:linear-gradient(135deg,rgba(215,124,255,.055),rgba(255,255,255,.02)); }
.sf-current-label { position:relative; z-index:1; display:flex; align-items:center; gap:7px; font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.085em; color:#a9b5cb; margin-bottom:7px; }
.sf-current-label::before { content:''; width:6px; height:6px; border-radius:999px; background:#7284a5; box-shadow:0 0 0 3px rgba(114,132,165,.08); }
.sf-current-card-page .sf-current-label::before { background:#4f8cff; box-shadow:0 0 0 3px rgba(79,140,255,.10); }
.sf-current-card-action .sf-current-label::before { background:#69a9ff; box-shadow:0 0 0 3px rgba(105,169,255,.10); }
.sf-current-card-scroll .sf-current-label::before { background:#49d8b0; box-shadow:0 0 0 3px rgba(73,216,176,.10); }
.sf-current-card-target .sf-current-label::before { background:#d77cff; box-shadow:0 0 0 3px rgba(215,124,255,.09); }
.sf-current-card-page .sf-current-label { color:#a9c2ff; }
.sf-current-card-action .sf-current-label { color:#b4d2ff; }
.sf-current-card-scroll .sf-current-label { color:#9be8d2; }
.sf-current-card-target .sf-current-label { color:#dfb0ff; }
.sf-current-value { font-size:13px; font-weight:750; color:#eef3ff; line-height:1.45; word-break:break-word; }
.sf-current-code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size:12px; color:#bcd0ff; }
.sf-current-stream { padding:12px; border-radius:12px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); display:flex; flex-direction:column; min-height:0; }
.sf-current-stream-head { display:flex; flex-direction:column; gap:8px; font-size:12px; font-weight:700; color:#dbe3f4; margin-bottom:10px; }
.sf-current-stream-title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; }
.sf-current-stream-title-row > span:first-child { white-space:nowrap; font-weight:800; color:#eef3ff; }
.sf-current-stream-title-row > span:last-child { color:#93a0b9; font-weight:600; white-space:nowrap; }
.sf-current-stream-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-start; }
.sf-feed-sort-toggle {
  appearance:none;
  border:1px solid rgba(110,132,255,.24);
  background: rgba(110,132,255,.10);
  color:#dbe4ff;
  border-radius:999px;
  padding:6px 10px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  font: inherit;
  font-size:12px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.sf-feed-sort-toggle:hover { background: rgba(110,132,255,.16); border-color: rgba(110,132,255,.34); }
.sf-feed-sort-toggle:focus-visible { outline: 2px solid rgba(110,132,255,.45); outline-offset: 2px; }
.sf-feed-sort-toggle small { font-size:11px; opacity:.85; }
.sf-current-list { gap:8px; height: clamp(190px, 34vh, 300px); max-height: clamp(190px, 34vh, 300px); overflow-y: scroll; overflow-x: hidden; padding-right: 4px; scroll-padding-top:8px; scrollbar-gutter: stable both-edges; scrollbar-width: thin; scrollbar-color: rgba(136,148,176,.55) transparent; }
.sf-current-list .sf-event-item { grid-template-columns: 10px minmax(0, 1fr) auto; }

.sf-current-tech-toggle {
  appearance:none;
  border:1px solid rgba(120,140,178,.20);
  background:rgba(90,106,138,.08);
  color:#8f9bb2;
  border-radius:999px;
  padding:6px 10px;
  font:inherit;
  font-size:11px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.sf-current-tech-toggle:hover { background:rgba(90,106,138,.14); border-color:rgba(120,140,178,.30); color:#b7c1d5; }
.sf-current-tech-toggle[aria-pressed="true"] { background:rgba(91,112,157,.13); border-color:rgba(120,145,190,.28); color:#c0c9da; }
.sf-current-tech-toggle:focus-visible { outline:2px solid rgba(110,132,255,.38); outline-offset:2px; }
.sf-current-event-row { position:relative; overflow:hidden; border:1px solid transparent; }
.sf-current-event-row::before { content:''; position:absolute; left:0; top:7px; bottom:7px; width:2px; border-radius:999px; background:transparent; }
.sf-current-event-row.is-click { background:rgba(60,133,255,.045); border-color:rgba(78,143,255,.08); }
.sf-current-event-row.is-click::before { background:#5da7ff; }
.sf-current-event-row.is-image { background:rgba(255,93,187,.04); border-color:rgba(255,93,187,.08); }
.sf-current-event-row.is-image::before { background:#ff72c6; }
.sf-current-event-row.is-scroll { background:rgba(73,216,176,.04); border-color:rgba(73,216,176,.08); }
.sf-current-event-row.is-scroll::before { background:#49d8b0; }
.sf-current-event-row.is-video { background:rgba(159,91,255,.04); border-color:rgba(159,91,255,.08); }
.sf-current-event-row.is-video::before { background:#a76cff; }
.sf-current-event-row.is-technical { opacity:.70; background:rgba(110,125,152,.025); border-style:dashed; border-color:rgba(110,125,152,.10); }
.sf-current-event-row.is-technical::before { background:#68758e; }
.sf-current-event-row.is-empty { opacity:.8; }
.sf-current-list .sf-event-item { min-height:56px; padding:11px 12px 13px; align-items:flex-start; }
.sf-current-list .sf-event-item-human { min-height:64px; }
.sf-current-list .sf-event-main { font-size:12.5px; line-height:1.4; }
.sf-current-list .sf-event-detail { line-height:1.45; }
.sf-current-list .sf-human-event-body { padding-bottom:1px; }
.sf-current-list .sf-human-event-context { padding-bottom:2px; }
.sf-current-list .sf-human-event-context > span { max-width:min(100%, 260px); }
.sf-event-repeat-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:7px;
  padding:2px 6px;
  border-radius:999px;
  border:1px solid rgba(116,142,190,.18);
  background:rgba(105,132,184,.12);
  color:#a9b8d3;
  font-size:10px;
  font-weight:800;
  line-height:1.2;
  vertical-align:middle;
}
.sf-current-event-row.is-image .sf-event-repeat-count { background:rgba(255,93,187,.10); border-color:rgba(255,93,187,.18); color:#f2a8d4; }
.sf-current-event-row.is-click .sf-event-repeat-count { background:rgba(78,143,255,.10); border-color:rgba(78,143,255,.18); color:#a9caff; }
.sf-current-event-row.is-technical .sf-event-repeat-count { background:rgba(110,125,152,.08); border-color:rgba(110,125,152,.14); color:#8f9bb2; }
.sf-vw-tabs {
  display:flex;
  flex:0 0 auto;
  gap:7px;
  padding:10px 12px 0 12px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width: thin;
  position:relative;
  z-index:3;
}
.sf-vw-tab {
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:#cdd5e6;
  border-radius:999px;
  padding:9px 12px;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
}
.sf-tab-active {
  background:rgba(88,125,255,.18);
  border-color:rgba(88,125,255,.35);
  color:#fff;
}
.sf-vw-panels {
  padding:12px 12px 10px 12px;
  min-height:0;
  display:flex;
  flex:1 1 auto;
  overflow:hidden;
}
.sf-vw-panels > .sf-vw-panel {
  flex:1 1 auto;
  min-height:0;
}
.sf-vw-activity > .sf-vw-card {
  display:flex;
  flex-direction:column;
  min-height:0;
  height:100%;
}
.sf-vw-activity {
  min-height:0;
  overflow:hidden;
}
.sf-vw-left {
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:rgba(136,148,176,.10) transparent;
}
.sf-vw-left::-webkit-scrollbar { width:4px; }
.sf-vw-left::-webkit-scrollbar-track { background:transparent; }
.sf-vw-left::-webkit-scrollbar-thumb { background:rgba(136,148,176,.08); border-radius:999px; }
.sf-vw-left:hover::-webkit-scrollbar-thumb { background:rgba(136,148,176,.18); }
.sf-vw-left::-webkit-scrollbar-thumb:hover { background:rgba(136,148,176,.30); }
.sf-vw-panel {
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow-y:scroll;
  overflow-x:hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(136,148,176,.55) transparent;
}
.sf-vw-panel::-webkit-scrollbar { width: 10px; }
.sf-vw-panel::-webkit-scrollbar-track { background: transparent; }
.sf-vw-panel::-webkit-scrollbar-thumb { background: rgba(136,148,176,.35); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
.sf-vw-panel::-webkit-scrollbar-thumb:hover { background: rgba(136,148,176,.55); border: 2px solid transparent; background-clip: content-box; }
.sf-vw-panel[hidden] { display:none; }


/* Visitor journey timeline: business-relevant actions first, technical noise optional. */
.sf-vw-panel[data-sf-panel="timeline"] { overflow:hidden; padding-right:4px; }
.sf-timeline-shell { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; border:1px solid rgba(138,158,205,.14); border-radius:13px; background:rgba(11,20,37,.54); overflow:hidden; }
.sf-timeline-head { flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 14px; border-bottom:1px solid rgba(138,158,205,.1); }
.sf-timeline-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.sf-timeline-sort-toggle { flex:0 0 auto; }
.sf-timeline-title { color:#f3f6fc; font-size:14px; font-weight:800; }
.sf-timeline-sub { margin-top:3px; color:#7f8ba4; font-size:10px; }
.sf-timeline-tech-toggle { border:1px solid rgba(138,158,205,.18); background:rgba(255,255,255,.025); color:#9ba7bf; border-radius:9px; min-height:30px; padding:0 10px; font-size:10px; font-weight:700; cursor:pointer; white-space:nowrap; }
.sf-timeline-tech-toggle:hover,.sf-timeline-tech-toggle:focus-visible { background:rgba(68,112,205,.10); border-color:rgba(98,145,239,.32); color:#dce8ff; outline:none; }
.sf-timeline-tech-toggle[aria-pressed="true"] { background:rgba(69,112,213,.16); border-color:rgba(93,139,234,.38); color:#eef4ff; }
.sf-timeline-list { flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; padding:12px 14px 16px 14px; scrollbar-width:thin; scrollbar-color:rgba(136,148,176,.5) transparent; }
.sf-timeline-list::-webkit-scrollbar { width:8px; }
.sf-timeline-list::-webkit-scrollbar-track { background:transparent; }
.sf-timeline-list::-webkit-scrollbar-thumb { background:rgba(136,148,176,.32); border-radius:999px; border:2px solid transparent; background-clip:content-box; }
.sf-timeline-day { position:relative; margin:2px 0 10px 46px; color:#68758f; font-size:9px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.sf-timeline-item { --sf-timeline-color:#5a9cff; position:relative; display:grid; grid-template-columns:58px 28px minmax(0,1fr) auto; gap:10px; align-items:start; min-height:55px; padding:7px 0; }
.sf-timeline-item[hidden] { display:none !important; }
.sf-timeline-day[hidden] { display:none !important; }
.sf-timeline-item:before { content:""; position:absolute; left:71px; top:0; bottom:0; width:1px; background:rgba(119,139,177,.24); }
.sf-timeline-item:first-of-type:before { top:20px; }
.sf-timeline-item:last-child:before { bottom:calc(100% - 22px); }
.sf-timeline-time { padding-top:6px; color:#8e9ab1; font-size:10px; font-variant-numeric:tabular-nums; text-align:right; white-space:nowrap; }
.sf-timeline-node { position:relative; z-index:1; width:26px; height:26px; border-radius:9px; display:grid; place-items:center; color:var(--sf-timeline-color); background:color-mix(in srgb,var(--sf-timeline-color) 13%, #101a2d); border:1px solid color-mix(in srgb,var(--sf-timeline-color) 38%, transparent); box-shadow:0 0 0 4px rgba(11,20,37,.95); }
.sf-timeline-node svg { width:14px; height:14px; }
.sf-timeline-copy { min-width:0; padding:3px 0 7px; }
.sf-timeline-copy strong { display:block; color:#edf2fb; font-size:11px; font-weight:760; line-height:1.35; }
.sf-timeline-copy span { display:block; margin-top:3px; color:#8793ab; font-size:10px; line-height:1.45; white-space:normal; overflow-wrap:anywhere; }
.sf-timeline-chip { align-self:start; margin-top:3px; border:1px solid color-mix(in srgb,var(--sf-timeline-color) 32%, transparent); background:color-mix(in srgb,var(--sf-timeline-color) 10%, transparent); color:var(--sf-timeline-color); border-radius:999px; padding:5px 8px; font-size:9px; font-weight:800; white-space:nowrap; }
.sf-timeline-item.is-page { --sf-timeline-color:#5aa3ff; }
.sf-timeline-item.is-video { --sf-timeline-color:#a575ff; }
.sf-timeline-item.is-cart,.sf-timeline-item.is-checkout { --sf-timeline-color:#f2a23a; }
.sf-timeline-item.is-purchase { --sf-timeline-color:#55df84; }
.sf-timeline-item.is-scroll { --sf-timeline-color:#4cc9be; }
.sf-timeline-item.is-click { --sf-timeline-color:#7b95ff; }
.sf-timeline-item.is-image { --sf-timeline-color:#69b7ff; }
.sf-timeline-item.is-technical { --sf-timeline-color:#71809b; opacity:.82; }
.sf-timeline-item.is-purchase .sf-timeline-copy strong { color:#77ef9e; }
.sf-timeline-empty { min-height:180px; display:grid; place-content:center; gap:5px; text-align:center; color:#8190aa; padding:24px; }
.sf-timeline-empty strong { color:#dce5f6; font-size:13px; }
.sf-timeline-empty span { max-width:360px; font-size:10px; line-height:1.5; }
@media (max-width:800px) {
  .sf-timeline-head { align-items:flex-start; }
  .sf-timeline-item { grid-template-columns:44px 26px minmax(0,1fr); gap:8px; }
  .sf-timeline-item:before { left:57px; }
  .sf-timeline-chip { grid-column:3; margin-top:-6px; justify-self:start; }
  .sf-timeline-time { font-size:9px; }
}

/* Grouped activity tabs should use the full available visitor-window height.
   The generic .sf-event-list previously stopped at max-height: clamp(..., 360px),
   which left a large unused area below Scroll/Klicks/Bilder/Videos/Hover/Background. */
.sf-vw-panel[data-sf-panel="scroll"],
.sf-vw-panel[data-sf-panel="clicks"],
.sf-vw-panel[data-sf-panel="images"],
.sf-vw-panel[data-sf-panel="videos"],
.sf-vw-panel[data-sf-panel="hover"],
.sf-vw-panel[data-sf-panel="background"] {
  overflow:hidden;
}
.sf-vw-panel[data-sf-panel="scroll"] > .sf-event-list,
.sf-vw-panel[data-sf-panel="clicks"] > .sf-event-list,
.sf-vw-panel[data-sf-panel="images"] > .sf-event-list,
.sf-vw-panel[data-sf-panel="videos"] > .sf-event-list,
.sf-vw-panel[data-sf-panel="hover"] > .sf-event-list,
.sf-vw-panel[data-sf-panel="background"] > .sf-event-list {
  flex:1 1 auto;
  min-height:0;
  height:100%;
  max-height:none;
  overflow-y:auto;
  overflow-x:hidden;
  align-content:start;
}

.sf-vw-panel[data-sf-panel="videos"] { padding-right:4px; }
.sf-vw-panel[data-sf-panel="videos"] > .sf-event-list { display:block; }
.sf-video-analytics { display:flex; flex-direction:column; gap:12px; min-width:0; padding:1px; }
.sf-video-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.sf-video-stat { min-width:0; display:flex; align-items:center; gap:10px; padding:12px; border:1px solid rgba(138,158,205,.15); border-radius:12px; background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); }
.sf-video-stat-icon { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; font-size:18px; font-weight:900; flex:0 0 36px; }
.sf-video-stat-blue .sf-video-stat-icon { color:#52a8ff; background:rgba(52,137,255,.14); }
.sf-video-stat-green .sf-video-stat-icon { color:#55df88; background:rgba(50,205,110,.13); }
.sf-video-stat-purple .sf-video-stat-icon { color:#a47cff; background:rgba(124,80,255,.14); }
.sf-video-stat-copy { min-width:0; display:flex; flex-direction:column; gap:2px; }
.sf-video-stat-copy strong { color:#f7f9ff; font-size:19px; line-height:1; }
.sf-video-stat-copy small { color:#8d99b2; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-video-card { border:1px solid rgba(138,158,205,.14); border-radius:12px; background:rgba(13,22,40,.58); overflow:hidden; }
.sf-video-card-head { min-height:45px; padding:10px 12px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(138,158,205,.1); }
.sf-video-card-head > div { min-width:0; display:flex; flex-direction:column; gap:2px; }
.sf-video-card-head strong { color:#f2f5fc; font-size:13px; }
.sf-video-card-head small { color:#78859f; font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sf-video-master-progress { position:relative; height:7px; margin:14px 14px 7px; border-radius:999px; background:linear-gradient(90deg,rgba(61,150,239,.35) 0 25%,rgba(57,190,90,.23) 25% 75%,rgba(220,65,76,.27) 75% 100%); overflow:visible; }
.sf-video-progress-fill { position:absolute; inset:0 auto 0 0; border-radius:999px; background:linear-gradient(90deg,#4e9eea,#4fd06c); box-shadow:0 0 12px rgba(76,201,120,.16); }
.sf-video-master-progress i { position:absolute; top:50%; width:8px; height:8px; border-radius:50%; transform:translate(-50%,-50%); background:#26344c; border:2px solid #7e8ca7; }
.sf-video-master-progress i.is-hit { background:#d8ffe0; border-color:#58d96f; box-shadow:0 0 0 4px rgba(82,213,112,.18); }
.sf-video-timeline { position:relative; padding:4px 12px 10px 28px; }
.sf-video-timeline:before { content:""; position:absolute; left:16px; top:8px; bottom:16px; width:1px; background:rgba(126,146,183,.42); }
.sf-video-timeline-row { position:relative; min-height:42px; display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:8px; border-bottom:1px solid rgba(138,158,205,.075); }
.sf-video-timeline-row:last-child { border-bottom:0; }
.sf-video-timeline-dot { position:absolute; left:-16px; top:50%; width:8px; height:8px; margin-top:-4px; border-radius:50%; background:#56df75; box-shadow:0 0 0 3px rgba(86,223,117,.14); }
.sf-video-timeline-badge { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:rgba(52,181,82,.17); color:#70ee89; font-size:10px; font-weight:800; }
.sf-video-timeline-label { color:#e8ecf6; font-size:12px; font-weight:650; min-width:0; }
.sf-video-timeline-time { display:flex; flex-direction:column; align-items:flex-end; color:#e9edf8; font-size:11px; font-variant-numeric:tabular-nums; }
.sf-video-timeline-time small { color:#72809b; font-size:9px; }
.sf-video-timeline-empty { padding:12px 0; color:#8b97ae; font-size:11px; }
.sf-video-watched-list { display:flex; flex-direction:column; }
.sf-video-watched-row { display:grid; grid-template-columns:minmax(180px,1.7fr) 82px minmax(135px,1fr) 58px; gap:12px; align-items:center; padding:11px 12px; border-top:1px solid rgba(138,158,205,.075); }
.sf-video-watched-row:first-child { border-top:0; }
.sf-video-watched-main { min-width:0; display:flex; align-items:center; gap:9px; }
.sf-video-play-orb { width:32px; height:32px; flex:0 0 32px; border-radius:50%; display:grid; place-items:center; background:rgba(51,200,91,.14); border:1px solid rgba(80,223,114,.32); color:#65eb83; font-size:10px; padding-left:2px; }
.sf-video-watched-main > span:last-child,.sf-video-watched-progress > span { min-width:0; display:flex; flex-direction:column; gap:2px; }
.sf-video-watched-main strong { color:#f0f3fa; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-video-watched-main small,.sf-video-watched-time small,.sf-video-watched-progress small,.sf-video-watched-last small { color:#78859e; font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-video-watched-time,.sf-video-watched-last { display:flex; flex-direction:column; gap:2px; }
.sf-video-watched-time strong,.sf-video-watched-last strong,.sf-video-watched-progress strong { color:#e8edf8; font-size:11px; font-variant-numeric:tabular-nums; }
.sf-video-watched-progress { min-width:0; display:flex; flex-direction:column; gap:5px; }
.sf-video-watched-progress > div { height:6px; border-radius:999px; background:rgba(111,128,158,.18); overflow:hidden; }
.sf-video-watched-progress > div i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#4fbd70,#78df82); }
.sf-video-watched-last { text-align:right; }
.sf-video-analytics-note { padding:10px 12px; border:1px solid rgba(98,117,255,.14); border-radius:10px; background:rgba(82,100,219,.06); color:#8794ad; font-size:10px; line-height:1.45; }
.sf-video-analytics-empty { min-height:150px; border:1px dashed rgba(138,158,205,.2); border-radius:12px; display:grid; place-content:center; gap:6px; text-align:center; padding:20px; }
.sf-video-analytics-empty strong { color:#f0f3fa; font-size:14px; }
.sf-video-analytics-empty span { color:#8b97ae; font-size:11px; max-width:380px; }
@media (max-width:1100px) {
  .sf-video-stats { grid-template-columns:1fr; }
  .sf-video-watched-row { grid-template-columns:minmax(150px,1fr) 70px minmax(120px,.8fr); }
  .sf-video-watched-last { display:none; }
}
@media (max-width:720px) {
  .sf-timeline-head { align-items:flex-start; }
  .sf-timeline-actions { width:100%; justify-content:flex-start; }
}


/* v49 — Timeline visual redesign: calmer cards, stronger journey hierarchy. */
.sf-timeline-shell {
  background:linear-gradient(180deg,rgba(13,23,41,.78),rgba(8,16,30,.64));
  border-color:rgba(133,157,205,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
}
.sf-timeline-head {
  padding:14px 16px;
  background:rgba(11,20,36,.44);
  border-bottom-color:rgba(133,157,205,.12);
}
.sf-timeline-title { font-size:15px; letter-spacing:-.01em; }
.sf-timeline-sub { margin-top:4px; color:#7888a5; font-size:9.5px; }
.sf-timeline-actions { gap:6px; }
.sf-timeline-tech-toggle {
  min-height:28px;
  border-color:rgba(129,151,194,.15);
  background:rgba(255,255,255,.018);
  color:#8290aa;
  font-size:9px;
  font-weight:700;
}
.sf-timeline-tech-toggle:hover,.sf-timeline-tech-toggle:focus-visible {
  background:rgba(67,111,199,.08);
  border-color:rgba(95,139,224,.28);
  color:#cdd9ef;
}
.sf-timeline-list { padding:14px 16px 18px; }
.sf-timeline-day {
  margin:8px 0 8px 94px;
  color:#65738d;
  font-size:8.5px;
  letter-spacing:.075em;
}
.sf-timeline-item {
  --sf-timeline-color:#5a9cff;
  position:relative;
  grid-template-columns:52px 30px minmax(0,1fr);
  gap:10px;
  min-height:68px;
  padding:4px 0 8px;
  align-items:start;
}
.sf-timeline-item:before {
  left:77px;
  top:0;
  bottom:0;
  background:linear-gradient(180deg,rgba(121,145,190,.10),rgba(121,145,190,.30),rgba(121,145,190,.10));
}
.sf-timeline-time {
  padding-top:14px;
  color:#78859d;
  font-size:9px;
  font-weight:650;
}
.sf-timeline-node {
  width:30px;
  height:30px;
  margin-top:8px;
  border-radius:10px;
  background:color-mix(in srgb,var(--sf-timeline-color) 11%, #0d1728);
  border-color:color-mix(in srgb,var(--sf-timeline-color) 34%, transparent);
  box-shadow:0 0 0 5px rgba(9,17,31,.98),0 4px 15px color-mix(in srgb,var(--sf-timeline-color) 8%, transparent);
}
.sf-timeline-node svg { width:15px; height:15px; }
.sf-timeline-copy {
  min-width:0;
  position:relative;
  margin:0;
  padding:10px 82px 10px 12px;
  border:1px solid rgba(132,154,198,.12);
  border-radius:11px;
  background:rgba(255,255,255,.018);
  transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
.sf-timeline-item:hover .sf-timeline-copy {
  border-color:color-mix(in srgb,var(--sf-timeline-color) 24%, rgba(132,154,198,.12));
  background:color-mix(in srgb,var(--sf-timeline-color) 4%, rgba(255,255,255,.018));
  transform:translateX(1px);
}
.sf-timeline-copy strong {
  color:#edf3fd;
  font-size:11px;
  font-weight:780;
  line-height:1.3;
}
.sf-timeline-copy span {
  display:-webkit-box;
  margin-top:4px;
  color:#8391aa;
  font-size:9.5px;
  line-height:1.4;
  white-space:normal;
  overflow:hidden;
  overflow-wrap:anywhere;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.sf-timeline-copy span[title] { cursor:help; }
.sf-timeline-chip {
  position:absolute;
  z-index:2;
  right:10px;
  top:13px;
  margin:0;
  min-width:48px;
  padding:4px 7px;
  text-align:center;
  border-color:color-mix(in srgb,var(--sf-timeline-color) 28%, transparent);
  background:color-mix(in srgb,var(--sf-timeline-color) 8%, rgba(11,20,37,.94));
  font-size:8.5px;
}
.sf-timeline-item.is-cart .sf-timeline-copy,
.sf-timeline-item.is-checkout .sf-timeline-copy {
  border-color:rgba(242,162,58,.24);
  background:linear-gradient(90deg,rgba(242,162,58,.065),rgba(255,255,255,.014) 50%);
}
.sf-timeline-item.is-purchase .sf-timeline-copy {
  border-color:rgba(85,223,132,.28);
  background:linear-gradient(90deg,rgba(85,223,132,.075),rgba(255,255,255,.014) 52%);
  box-shadow:inset 3px 0 0 rgba(85,223,132,.55);
}
.sf-timeline-item.is-purchase .sf-timeline-copy strong { color:#83efaa; }
.sf-timeline-item.is-checkout .sf-timeline-copy strong,
.sf-timeline-item.is-cart .sf-timeline-copy strong { color:#ffd090; }
.sf-timeline-item.is-scroll .sf-timeline-copy { background:linear-gradient(90deg,rgba(76,201,190,.035),rgba(255,255,255,.014) 42%); }
.sf-timeline-item.is-video .sf-timeline-copy { background:linear-gradient(90deg,rgba(165,117,255,.045),rgba(255,255,255,.014) 42%); }
.sf-timeline-item.is-technical { opacity:.64; }
.sf-timeline-item.is-technical .sf-timeline-copy {
  background:rgba(255,255,255,.012);
  border-style:dashed;
}
.sf-timeline-item.is-technical .sf-timeline-copy strong { color:#aab5c8; }
.sf-timeline-item.is-technical .sf-timeline-copy span { color:#71809a; }

@media (max-width:800px) {
  .sf-timeline-head { padding:12px; }
  .sf-timeline-list { padding:12px 10px 16px; }
  .sf-timeline-day { margin-left:72px; }
  .sf-timeline-item { grid-template-columns:40px 28px minmax(0,1fr); gap:8px; }
  .sf-timeline-item:before { left:62px; }
  .sf-timeline-time { padding-top:13px; font-size:8.5px; }
  .sf-timeline-node { width:28px; height:28px; }
  .sf-timeline-copy { padding:9px 10px 31px 10px; }
  .sf-timeline-chip { left:86px; right:auto; top:auto; bottom:12px; min-width:0; }
}

/* Timeline color/icon enhancement — CSS only, based on the proven v49 code. */
.sf-timeline-item.is-page, .sf-current-event-icon.is-page { --sf-timeline-color:#4f8cff; }
.sf-timeline-item.is-click, .sf-current-event-icon.is-click { --sf-timeline-color:#69b8ff; }
.sf-timeline-item.is-image, .sf-current-event-icon.is-image { --sf-timeline-color:#ed6cf5; }
.sf-timeline-item.is-scroll, .sf-current-event-icon.is-scroll { --sf-timeline-color:#39d7c5; }
.sf-timeline-item.is-video, .sf-current-event-icon.is-video { --sf-timeline-color:#a96cff; }
.sf-timeline-item.is-cart, .sf-current-event-icon.is-cart { --sf-timeline-color:#ff9638; }
.sf-timeline-item.is-checkout, .sf-current-event-icon.is-checkout { --sf-timeline-color:#ffbd45; }
.sf-timeline-item.is-purchase, .sf-current-event-icon.is-purchase { --sf-timeline-color:#42e38a; }
.sf-timeline-item.is-technical, .sf-current-event-icon.is-technical { --sf-timeline-color:#74829d; }

.sf-timeline-item:before {
  width:2px;
  border-radius:999px;
  background:linear-gradient(180deg,
    color-mix(in srgb,var(--sf-timeline-color) 70%, transparent),
    color-mix(in srgb,var(--sf-timeline-color) 25%, rgba(119,139,177,.12))
  );
  box-shadow:0 0 10px color-mix(in srgb,var(--sf-timeline-color) 14%, transparent);
}
.sf-timeline-node {
  width:30px;
  height:30px;
  border-radius:10px;
  color:#fff;
  background:linear-gradient(145deg,
    color-mix(in srgb,var(--sf-timeline-color) 35%, #14213a),
    color-mix(in srgb,var(--sf-timeline-color) 13%, #0c1628)
  );
  border-color:color-mix(in srgb,var(--sf-timeline-color) 66%, transparent);
  box-shadow:0 0 0 4px rgba(9,17,31,.98),0 0 17px color-mix(in srgb,var(--sf-timeline-color) 22%, transparent),inset 0 1px 0 rgba(255,255,255,.08);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.sf-timeline-item:hover .sf-timeline-node {
  transform:translateY(-1px) scale(1.04);
  border-color:color-mix(in srgb,var(--sf-timeline-color) 82%, transparent);
  box-shadow:0 0 0 4px rgba(9,17,31,.98),0 0 22px color-mix(in srgb,var(--sf-timeline-color) 32%, transparent),inset 0 1px 0 rgba(255,255,255,.1);
}
.sf-timeline-copy {
  border-color:color-mix(in srgb,var(--sf-timeline-color) 17%, rgba(132,154,198,.12));
  background:linear-gradient(90deg,color-mix(in srgb,var(--sf-timeline-color) 5%, rgba(255,255,255,.018)),rgba(255,255,255,.012) 54%);
  box-shadow:inset 2px 0 0 color-mix(in srgb,var(--sf-timeline-color) 30%, transparent);
}
.sf-timeline-item:hover .sf-timeline-copy {
  border-color:color-mix(in srgb,var(--sf-timeline-color) 34%, rgba(132,154,198,.12));
  background:linear-gradient(90deg,color-mix(in srgb,var(--sf-timeline-color) 8%, rgba(255,255,255,.022)),rgba(255,255,255,.015) 58%);
}
.sf-timeline-chip {
  border-color:color-mix(in srgb,var(--sf-timeline-color) 50%, transparent);
  background:color-mix(in srgb,var(--sf-timeline-color) 15%, rgba(11,20,37,.96));
  color:color-mix(in srgb,var(--sf-timeline-color) 86%, #fff);
  box-shadow:0 0 12px color-mix(in srgb,var(--sf-timeline-color) 9%, transparent);
}
.sf-timeline-item.is-cart .sf-timeline-copy,
.sf-timeline-item.is-checkout .sf-timeline-copy {
  border-color:color-mix(in srgb,var(--sf-timeline-color) 36%, transparent);
  background:linear-gradient(90deg,color-mix(in srgb,var(--sf-timeline-color) 12%, rgba(255,255,255,.018)),rgba(255,255,255,.012) 58%);
  box-shadow:inset 3px 0 0 color-mix(in srgb,var(--sf-timeline-color) 72%, transparent);
}
.sf-timeline-item.is-purchase .sf-timeline-copy {
  border-color:rgba(66,227,138,.42);
  background:linear-gradient(90deg,rgba(66,227,138,.14),rgba(255,255,255,.014) 60%);
  box-shadow:inset 3px 0 0 rgba(66,227,138,.82),0 0 18px rgba(66,227,138,.045);
}
.sf-timeline-item.is-image .sf-timeline-copy { background:linear-gradient(90deg,rgba(237,108,245,.07),rgba(255,255,255,.012) 48%); }
.sf-timeline-item.is-click .sf-timeline-copy { background:linear-gradient(90deg,rgba(105,184,255,.055),rgba(255,255,255,.012) 48%); }
.sf-timeline-item.is-page .sf-timeline-copy { background:linear-gradient(90deg,rgba(79,140,255,.055),rgba(255,255,255,.012) 48%); }
.sf-timeline-item.is-technical .sf-timeline-copy { box-shadow:none; }

/* CSS-only icon masks. Existing SVGs stay as fallback if CSS masking is unavailable. */
.sf-timeline-item.is-page, .sf-current-event-icon.is-page { --sf-timeline-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 3 10.3V21h6v-6h6v6h6V10.3L12 3Zm0 2.6 7 5.7V19h-2v-6H7v6H5v-7.7l7-5.7Z'/%3E%3C/svg%3E"); }
.sf-timeline-item.is-click, .sf-current-event-icon.is-click { --sf-timeline-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3.5v14.8l4.1-3.8 2.7 6 2.8-1.3-2.7-5.9h5.7L5 3.5Zm2 4.1 6 4.1H9.1L7 13.7V7.6Z'/%3E%3C/svg%3E"); }
.sf-timeline-item.is-image, .sf-current-event-icon.is-image { --sf-timeline-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm0 2v8.2l4-4 4.2 4.2 2.1-2.1L20 18V6H4Zm2.8 1.5a2.2 2.2 0 1 1 0 4.4 2.2 2.2 0 0 1 0-4.4Z'/%3E%3C/svg%3E"); }
.sf-timeline-item.is-scroll, .sf-current-event-icon.is-scroll { --sf-timeline-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2 4.5 4.5-1.4 1.4L13 5.8V18l2.1-2.1 1.4 1.4L12 22l-4.5-4.7 1.4-1.4L11 18V5.8L8.9 7.9 7.5 6.5 12 2Z'/%3E%3C/svg%3E"); }
.sf-timeline-item.is-video, .sf-current-event-icon.is-video { --sf-timeline-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 4.8v14.4L19 12 7 4.8Zm2 3.5 6.1 3.7L9 15.7V8.3Z'/%3E%3C/svg%3E"); }
.sf-timeline-item.is-cart, .sf-current-event-icon.is-cart { --sf-timeline-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 3h2.2l1.1 3H21l-2.1 8.1a2 2 0 0 1-1.9 1.5H9a2 2 0 0 1-1.9-1.4L4.2 5H3V3Zm4 5 1.8 5.6h8.1L18.4 8H7Zm2 9.3a1.8 1.8 0 1 1 0 3.6 1.8 1.8 0 0 1 0-3.6Zm8 0a1.8 1.8 0 1 1 0 3.6 1.8 1.8 0 0 1 0-3.6Z'/%3E%3C/svg%3E"); }
.sf-timeline-item.is-checkout, .sf-current-event-icon.is-checkout { --sf-timeline-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 5h18a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm0 2v2h18V7H3Zm0 5v5h18v-5H3Zm2 2h5v2H5v-2Z'/%3E%3C/svg%3E"); }
.sf-timeline-item.is-purchase, .sf-current-event-icon.is-purchase { --sf-timeline-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm4.6 4.6 1.4 1.4-7 7-4-4 1.4-1.4 2.6 2.6 5.6-5.6Z'/%3E%3C/svg%3E"); }
.sf-timeline-item.is-technical, .sf-current-event-icon.is-technical { --sf-timeline-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm0 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm0 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z'/%3E%3C/svg%3E"); }

@supports ((-webkit-mask-image:linear-gradient(#000,#000)) or (mask-image:linear-gradient(#000,#000))) {
  .sf-timeline-node::after {
    content:"";
    position:absolute;
    inset:7px;
    background:currentColor;
    -webkit-mask-image:var(--sf-timeline-icon);
    mask-image:var(--sf-timeline-icon);
    -webkit-mask-repeat:no-repeat;
    mask-repeat:no-repeat;
    -webkit-mask-position:center;
    mask-position:center;
    -webkit-mask-size:contain;
    mask-size:contain;
    pointer-events:none;
  }
  .sf-timeline-item[class*="is-"] .sf-timeline-node svg, .sf-current-event-icon[class*="is-"] .sf-timeline-node svg { opacity:0; }
}


/* v2.6.162 — right visitor panel reference redesign.
   Scoped to .sf-vw-activity so the left visitor profile stays untouched. */
.sf-vw-activity > .sf-vw-card {
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.sf-vw-activity .sf-vw-tabs {
  gap:7px;
  padding:0 0 9px;
  border-bottom:1px solid rgba(126,146,187,.08);
}
.sf-vw-activity .sf-vw-tab {
  min-height:29px;
  padding:6px 11px;
  border-radius:11px;
  border:1px solid rgba(132,151,190,.13);
  background:rgba(255,255,255,.018);
  color:#aab5ca;
  font-size:11px;
  font-weight:750;
  line-height:1;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.015);
}
.sf-vw-activity .sf-vw-tab:hover { background:rgba(255,255,255,.035); color:#dbe5f7; }
.sf-vw-activity .sf-vw-tab.sf-tab-active {
  border-color:rgba(63,118,235,.34);
  background:linear-gradient(180deg,rgba(44,92,188,.20),rgba(34,69,145,.12));
  color:#f1f5ff;
  box-shadow:0 0 0 1px rgba(32,76,171,.08),inset 0 1px 0 rgba(255,255,255,.035);
}
.sf-vw-activity .sf-vw-panels { padding:0; }
.sf-vw-activity .sf-vw-panel[data-sf-panel="current"] { padding:0 1px 0 0; }
.sf-vw-activity .sf-vw-panel:not([data-sf-panel="current"]) { padding:12px; box-sizing:border-box; }
.sf-vw-activity .sf-current-live { gap:0; }

.sf-vw-activity .sf-current-head {
  min-height:70px;
  padding:13px 7px 11px 7px;
  align-items:center;
  border-bottom:1px solid rgba(133,151,190,.08);
}
.sf-vw-activity .sf-current-title { color:#f3f6fc; font-size:15px; font-weight:850; letter-spacing:-.01em; }
.sf-vw-activity .sf-current-sub { margin-top:4px; color:#78869f; font-size:11px; line-height:1.35; }
.sf-vw-activity .sf-current-badge {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:0 13px;
  border-radius:999px;
  border:1px solid rgba(22,196,123,.27);
  background:linear-gradient(180deg,rgba(15,135,91,.12),rgba(8,88,63,.07));
  color:#32e6a1;
  font-size:11px;
  font-weight:800;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 0 18px rgba(25,202,132,.035);
}
.sf-vw-activity .sf-current-badge::before {
  content:"";
  width:14px;
  height:14px;
  flex:0 0 14px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2.4 8.7a14 14 0 0 1 19.2 0l-1.8 1.8a11.5 11.5 0 0 0-15.6 0L2.4 8.7Zm3.5 3.5a9 9 0 0 1 12.2 0L16.3 14a6.4 6.4 0 0 0-8.6 0l-1.8-1.8Zm3.6 3.6a3.9 3.9 0 0 1 5 0L12 18.3l-2.5-2.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2.4 8.7a14 14 0 0 1 19.2 0l-1.8 1.8a11.5 11.5 0 0 0-15.6 0L2.4 8.7Zm3.5 3.5a9 9 0 0 1 12.2 0L16.3 14a6.4 6.4 0 0 0-8.6 0l-1.8-1.8Zm3.6 3.6a3.9 3.9 0 0 1 5 0L12 18.3l-2.5-2.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sf-vw-activity .sf-current-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:9px 0 10px;
  border-bottom:1px solid rgba(132,150,188,.08);
}
.sf-vw-activity .sf-current-card {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:70px;
  padding:11px 13px;
  border-radius:11px;
  border:1px solid rgba(128,147,187,.105);
  background:linear-gradient(145deg,rgba(27,38,59,.74),rgba(18,28,46,.68));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018),0 8px 24px rgba(0,0,0,.035);
}
.sf-vw-activity .sf-current-card::before { display:none; }
.sf-vw-activity .sf-current-card:hover { transform:none; background:linear-gradient(145deg,rgba(30,42,65,.78),rgba(19,30,49,.72)); border-color:rgba(133,154,197,.16); }
.sf-vw-activity .sf-current-card-copy { min-width:0; flex:1 1 auto; }
.sf-vw-activity .sf-current-card-icon {
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:#5ba2ff;
  background:linear-gradient(145deg,rgba(54,105,207,.18),rgba(34,71,145,.10));
  border:1px solid rgba(79,135,241,.11);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.sf-vw-activity .sf-current-card-icon svg { width:21px; height:21px; display:block; }
.sf-vw-activity .sf-current-card-scroll .sf-current-card-icon { color:#35d9a4; background:rgba(20,127,97,.10); border-color:rgba(46,205,156,.09); }
.sf-vw-activity .sf-current-card-target .sf-current-card-icon { color:#d65ae5; background:rgba(127,53,144,.11); border-color:rgba(205,83,224,.10); }
.sf-vw-activity .sf-current-card-meta .sf-current-card-icon { color:#679ef8; background:rgba(49,83,151,.11); border-color:rgba(84,128,220,.09); }
.sf-vw-activity .sf-current-label {
  display:block;
  margin:0 0 7px;
  color:#7f93b6;
  font-size:9.5px;
  font-weight:850;
  letter-spacing:.09em;
  line-height:1.1;
}
.sf-vw-activity .sf-current-label::before { display:none; }
.sf-vw-activity .sf-current-card-page .sf-current-label,
.sf-vw-activity .sf-current-card-action .sf-current-label,
.sf-vw-activity .sf-current-card-meta .sf-current-label { color:#7e9fd2; }
.sf-vw-activity .sf-current-card-scroll .sf-current-label { color:#67bfa8; }
.sf-vw-activity .sf-current-card-target .sf-current-label { color:#c164cf; }
.sf-vw-activity .sf-current-value {
  color:#f1f4fa;
  font-size:12px;
  line-height:1.3;
  font-weight:780;
  letter-spacing:-.005em;
}
.sf-vw-activity .sf-current-grid-divider {
  grid-column:1 / -1;
  height:1px;
  margin:0 -1px;
  background:rgba(132,150,188,.08);
}
.sf-vw-activity .sf-current-card-meta { min-height:70px; padding:11px 13px; }
.sf-vw-activity .sf-current-card-meta .sf-current-value { font-size:12px; }
.sf-vw-activity .sf-current-code { font-family:inherit; color:#f1f4fa; }
.sf-vw-activity .sf-current-target-human { gap:3px; max-height:48px; }
.sf-vw-activity .sf-current-target-title { font-size:12px; color:#f1f4fa; line-height:1.25; }
.sf-vw-activity .sf-current-target-meta { gap:4px; max-height:20px; flex-wrap:nowrap; }
.sf-vw-activity .sf-current-target-meta > span {
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#75839c;
  font-size:10px;
  font-weight:600;
}
.sf-vw-activity .sf-current-target-human .sf-technical-details { display:none; }

.sf-vw-activity .sf-assist-card {
  margin:11px 0 13px;
  min-height:138px;
  padding:14px 13px;
  border-radius:12px;
  border:1px solid rgba(23,191,117,.18);
  background:
    radial-gradient(circle at 86% 42%,rgba(34,197,94,.045),transparent 28%),
    linear-gradient(135deg,rgba(12,42,43,.34),rgba(16,29,45,.66));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
  gap:12px;
}
.sf-vw-activity .sf-assist-kicker-row { align-items:center; }
.sf-vw-activity .sf-assist-kicker { display:flex; align-items:center; gap:7px; color:#61a7ff; font-size:9.5px; letter-spacing:.09em; }
.sf-vw-activity .sf-assist-kicker-icon { width:14px; height:14px; display:grid; place-items:center; color:#4a9cff; }
.sf-vw-activity .sf-assist-kicker-icon svg { width:14px; height:14px; }
.sf-vw-activity .sf-assist-level { min-height:25px; padding:0 9px; font-size:8.5px; border-color:rgba(34,197,94,.24); background:rgba(34,197,94,.075); }
.sf-vw-activity .sf-assist-title-row { margin-top:9px; align-items:center; gap:12px; }
.sf-vw-activity .sf-assist-title { font-size:13px; color:#f1f5fb; font-weight:850; }
.sf-vw-activity .sf-assist-reasons { margin-top:5px; color:#7d899f; font-size:10.5px; }
.sf-vw-activity .sf-assist-breakdown { margin-top:9px; gap:6px; }
.sf-vw-activity .sf-assist-signal { min-height:22px; padding:3px 7px; border-radius:7px; background:rgba(255,255,255,.025); border-color:rgba(255,255,255,.05); color:#8491a7; font-size:8.5px; }
.sf-vw-activity .sf-assist-score { width:54px; height:54px; flex-basis:54px; }
.sf-vw-activity .sf-assist-score strong { font-size:16px; }
.sf-vw-activity .sf-assist-actions { display:flex; align-items:center; }
.sf-vw-activity .sf-assist-chat-btn {
  min-height:43px;
  padding:0 12px;
  border-radius:9px;
  border-color:rgba(95,121,178,.15);
  background:linear-gradient(180deg,rgba(43,57,86,.72),rgba(32,44,68,.64));
  color:#a8b2c5;
  font-size:10px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.sf-vw-activity .sf-assist-chat-btn:disabled { opacity:.6; }

.sf-vw-activity .sf-current-stream {
  padding:0 0 4px;
  border:0;
  border-top:1px solid rgba(133,151,190,.08);
  border-radius:0;
  background:transparent;
  min-height:0;
}
.sf-vw-activity .sf-current-stream-head {
  gap:11px;
  margin:0;
  padding:14px 7px 12px;
  border-bottom:1px solid rgba(133,151,190,.07);
}
.sf-vw-activity .sf-current-stream-title-row > span:first-child { color:#f0f3f8; font-size:13px; font-weight:850; }
.sf-vw-activity .sf-current-stream-title-row > span:last-child { color:#8290a7; font-size:10px; }
.sf-vw-activity .sf-current-stream-actions { gap:7px; }
.sf-vw-activity .sf-feed-sort-toggle,
.sf-vw-activity .sf-current-tech-toggle {
  min-height:27px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(121,144,190,.13);
  background:rgba(36,52,82,.25);
  color:#9aa8c0;
  font-size:10px;
  font-weight:750;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.015);
}
.sf-vw-activity .sf-feed-sort-toggle { border-color:rgba(71,119,220,.22); color:#d1dcf2; background:rgba(41,79,157,.13); }
.sf-vw-activity .sf-feed-sort-toggle:hover,
.sf-vw-activity .sf-current-tech-toggle:hover { background:rgba(54,75,112,.25); }

.sf-vw-activity .sf-current-list {
  display:grid;
  gap:7px;
  height:clamp(210px,34vh,335px);
  max-height:clamp(210px,34vh,335px);
  padding:8px 4px 4px 0;
  scrollbar-gutter:stable;
}
.sf-vw-activity .sf-current-list .sf-event-item {
  grid-template-columns:32px minmax(0,1fr) auto;
  gap:10px;
  min-height:57px;
  padding:9px 10px 9px 8px;
  align-items:center;
  border:1px solid rgba(128,148,189,.09);
  border-radius:10px;
  background:linear-gradient(145deg,rgba(24,35,54,.66),rgba(17,27,44,.62));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.012);
}
.sf-vw-activity .sf-current-list .sf-current-event-row::before { display:none; }
.sf-vw-activity .sf-current-list .sf-current-event-row.is-click,
.sf-vw-activity .sf-current-list .sf-current-event-row.is-image,
.sf-vw-activity .sf-current-list .sf-current-event-row.is-scroll,
.sf-vw-activity .sf-current-list .sf-current-event-row.is-video,
.sf-vw-activity .sf-current-list .sf-current-event-row.is-technical {
  background:linear-gradient(145deg,rgba(24,35,54,.66),rgba(17,27,44,.62));
  border-color:rgba(128,148,189,.09);
}
.sf-vw-activity .sf-current-list .sf-event-main { color:#e9edf5; font-size:11.5px; line-height:1.3; font-weight:760; }
.sf-vw-activity .sf-current-list .sf-event-detail,
.sf-vw-activity .sf-current-list .sf-scroll-event-meta { margin-top:1px; color:#7c889f; font-size:10px; line-height:1.35; }
.sf-vw-activity .sf-current-list .sf-human-event-context { gap:4px; }
.sf-vw-activity .sf-current-list .sf-human-event-context > span { padding:0; border:0; background:transparent; color:#77859c; font-size:9.5px; }
.sf-vw-activity .sf-current-list .sf-human-event-time,
.sf-vw-activity .sf-current-list .sf-event-item > span:last-child { color:#7d899e!important; font-size:10px!important; padding:0; align-self:start; margin-top:2px; }
.sf-vw-activity .sf-current-list .sf-technical-details { display:none; }
.sf-vw-activity .sf-current-list .sf-scroll-event-body { gap:6px; }
.sf-vw-activity .sf-current-list .sf-scroll-event-meta { display:none; }
.sf-vw-activity .sf-current-list .sf-scroll-event-head { color:#dce4f2; font-size:11px; align-items:center; }
.sf-vw-activity .sf-current-list .sf-scroll-event-head strong { font-size:11.5px; }
.sf-vw-activity .sf-current-list .sf-scroll-depth-bar { width:min(56%,280px); height:7px; background:rgba(122,142,177,.13); }
.sf-vw-activity .sf-current-list .sf-scroll-depth-bar span { background:linear-gradient(90deg,#4d8ef2,#4aaaf6); }
/* Live feed wraps the exact same .sf-timeline-node used in Timeline. */
.sf-vw-activity .sf-current-event-icon {
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:block;
  position:relative;
}
.sf-vw-activity .sf-current-event-icon .sf-timeline-node {
  width:30px;
  height:30px;
  margin:0;
}
.sf-vw-activity .sf-current-event-icon .sf-timeline-node svg { width:16px; height:16px; display:block; }
.sf-vw-activity .sf-current-list .sf-event-body,
.sf-vw-activity .sf-current-list .sf-scroll-event-body,
.sf-vw-activity .sf-current-list .sf-human-event-body { min-width:0; overflow:hidden; }
.sf-vw-activity .sf-current-list .sf-event-main,
.sf-vw-activity .sf-current-list .sf-event-detail {
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sf-vw-activity .sf-current-list .sf-event-main { max-width:100%; }
.sf-vw-activity .sf-current-list .sf-event-detail { max-width:100%; }
.sf-vw-activity .sf-current-list .sf-current-event-row.is-technical-event .sf-event-main { color:#aab5c8; }
.sf-vw-activity .sf-current-list .sf-current-event-row.is-technical-event .sf-event-detail { color:#71809a; }
.sf-vw-activity .sf-current-list .sf-event-repeat-count { margin-left:5px; padding:1px 5px; font-size:8.5px; }

@container (max-width:760px) {
  .sf-vw-activity .sf-current-card { gap:9px; padding:10px; }
  .sf-vw-activity .sf-current-card-icon { width:34px; height:34px; flex-basis:34px; }
  .sf-vw-activity .sf-current-card-icon svg { width:19px; height:19px; }
  .sf-vw-activity .sf-assist-card { align-items:stretch; }
}
@container (max-width:520px) {
  .sf-vw-activity .sf-current-grid { grid-template-columns:1fr; }
  .sf-vw-activity .sf-assist-card { flex-direction:column; }
  .sf-vw-activity .sf-assist-actions { justify-content:flex-start; }
}



/* v2.6.163 — reference proportion pass.
   Keeps the left profile untouched and only adjusts the right/current visitor view. */
.sf-vw-activity .sf-vw-tabs {
  gap:8px;
  padding-bottom:11px;
}
.sf-vw-activity .sf-vw-tab {
  min-height:32px;
  padding:7px 13px;
  border-radius:12px;
  font-size:11.5px;
}
.sf-vw-activity .sf-current-head {
  min-height:82px;
  padding:16px 8px 14px;
}
.sf-vw-activity .sf-current-title { font-size:17px; }
.sf-vw-activity .sf-current-sub { margin-top:5px; font-size:11.5px; }
.sf-vw-activity .sf-current-badge {
  min-height:38px;
  padding:0 15px;
  font-size:11.5px;
}

.sf-vw-activity .sf-current-grid {
  gap:10px;
  padding:12px 0 14px;
}
.sf-vw-activity .sf-current-card,
.sf-vw-activity .sf-current-card-meta {
  min-height:86px;
  padding:14px 16px;
  border-radius:12px;
  gap:14px;
}
.sf-vw-activity .sf-current-card-icon {
  width:42px;
  height:42px;
  flex-basis:42px;
  border-radius:11px;
}
.sf-vw-activity .sf-current-card-icon svg { width:22px; height:22px; }
.sf-vw-activity .sf-current-label {
  margin-bottom:8px;
  font-size:10px;
  letter-spacing:.085em;
}
.sf-vw-activity .sf-current-value,
.sf-vw-activity .sf-current-card-meta .sf-current-value,
.sf-vw-activity .sf-current-target-title {
  font-size:13px;
  line-height:1.32;
}
.sf-vw-activity .sf-current-target-meta > span { font-size:10.5px; }
.sf-vw-activity .sf-current-grid-divider { margin:2px 0; }

.sf-vw-activity .sf-assist-card {
  margin:13px 0 16px;
  min-height:150px;
  padding:17px 16px;
  border-radius:13px;
  gap:16px;
}
.sf-vw-activity .sf-assist-kicker { gap:8px; font-size:10px; }
.sf-vw-activity .sf-assist-kicker-icon,
.sf-vw-activity .sf-assist-kicker-icon svg { width:15px; height:15px; }
.sf-vw-activity .sf-assist-level {
  min-height:28px;
  padding:0 11px;
  font-size:9px;
}
.sf-vw-activity .sf-assist-title-row { margin-top:12px; gap:16px; }
.sf-vw-activity .sf-assist-title { font-size:15px; }
.sf-vw-activity .sf-assist-reasons { margin-top:5px; font-size:11px; }
.sf-vw-activity .sf-assist-breakdown { margin-top:10px; gap:7px; }
.sf-vw-activity .sf-assist-signal {
  min-height:24px;
  padding:4px 8px;
  border-radius:7px;
  font-size:9px;
}
.sf-vw-activity .sf-assist-score {
  width:62px;
  height:62px;
  flex-basis:62px;
}
.sf-vw-activity .sf-assist-score strong { font-size:19px; }
.sf-vw-activity .sf-assist-score small { font-size:9px; }
.sf-vw-activity .sf-assist-chat-btn {
  min-height:48px;
  padding:0 15px;
  border-radius:10px;
  font-size:10.5px;
}

.sf-vw-activity .sf-current-stream-head {
  gap:13px;
  padding:17px 8px 14px;
}
.sf-vw-activity .sf-current-stream-title-row > span:first-child { font-size:15px; }
.sf-vw-activity .sf-current-stream-title-row > span:last-child { font-size:10.5px; }
.sf-vw-activity .sf-feed-sort-toggle,
.sf-vw-activity .sf-current-tech-toggle {
  min-height:30px;
  padding:0 12px;
  font-size:10.5px;
}
.sf-vw-activity .sf-current-list {
  gap:8px;
  height:clamp(240px,38vh,390px);
  max-height:clamp(240px,38vh,390px);
  padding:10px 5px 5px 0;
}
.sf-vw-activity .sf-current-list .sf-event-item {
  grid-template-columns:36px minmax(0,1fr) auto;
  gap:12px;
  min-height:66px;
  padding:11px 12px 11px 10px;
  border-radius:11px;
}
.sf-vw-activity .sf-current-event-icon {
  width:34px;
  height:34px;
  flex-basis:34px;
}
.sf-vw-activity .sf-current-event-icon svg { width:16px; height:16px; }
.sf-vw-activity .sf-current-list .sf-event-main { font-size:12.5px; }
.sf-vw-activity .sf-current-list .sf-event-detail,
.sf-vw-activity .sf-current-list .sf-scroll-event-meta { font-size:10.5px; }
.sf-vw-activity .sf-current-list .sf-human-event-context > span { font-size:10px; }
.sf-vw-activity .sf-current-list .sf-human-event-time,
.sf-vw-activity .sf-current-list .sf-event-item > span:last-child { font-size:10.5px!important; }
.sf-vw-activity .sf-current-list .sf-scroll-event-head,
.sf-vw-activity .sf-current-list .sf-scroll-event-head strong { font-size:12px; }
.sf-vw-activity .sf-current-list .sf-scroll-depth-bar {
  width:min(58%,320px);
  height:8px;
}

@container (min-width:900px) {
  .sf-vw-activity .sf-current-live { padding-left:4px; padding-right:4px; }
  .sf-vw-activity .sf-current-card,
  .sf-vw-activity .sf-current-card-meta { min-height:90px; }
  .sf-vw-activity .sf-assist-card { min-height:154px; }
}


/* v2.6.164 — compact hierarchy pass for the right visitor panel only. */
.sf-vw-activity .sf-vw-tabs {
  gap:7px;
  padding-bottom:9px;
}
.sf-vw-activity .sf-vw-tab {
  min-height:30px;
  padding:6px 12px;
  border-radius:11px;
  font-size:11px;
}
.sf-vw-activity .sf-vw-tab.sf-tab-active {
  background:linear-gradient(180deg,rgba(44,92,188,.26),rgba(34,69,145,.15));
  border-color:rgba(74,130,242,.40);
}
.sf-vw-activity .sf-current-head {
  min-height:68px;
  padding:11px 8px 10px;
}
.sf-vw-activity .sf-current-title { font-size:16px; }
.sf-vw-activity .sf-current-sub { margin-top:3px; font-size:11px; }
.sf-vw-activity .sf-current-badge {
  min-height:34px;
  padding:0 13px;
  font-size:11px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.sf-vw-activity .sf-current-grid {
  gap:8px;
  padding:9px 0 11px;
}
.sf-vw-activity .sf-current-card,
.sf-vw-activity .sf-current-card-meta {
  min-height:74px;
  padding:11px 14px;
  border-radius:11px;
  gap:12px;
  border-color:rgba(128,147,187,.075);
  background:linear-gradient(145deg,rgba(25,36,56,.64),rgba(17,27,44,.58));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.012);
}
.sf-vw-activity .sf-current-card:hover {
  background:linear-gradient(145deg,rgba(29,41,63,.70),rgba(19,29,47,.64));
  border-color:rgba(133,154,197,.12);
}
.sf-vw-activity .sf-current-card-icon {
  width:38px;
  height:38px;
  flex-basis:38px;
  border-radius:10px;
}
.sf-vw-activity .sf-current-card-icon svg { width:20px; height:20px; }
.sf-vw-activity .sf-current-label {
  margin-bottom:6px;
  font-size:9.5px;
  letter-spacing:.09em;
}
.sf-vw-activity .sf-current-value,
.sf-vw-activity .sf-current-card-meta .sf-current-value,
.sf-vw-activity .sf-current-target-title {
  font-size:12.5px;
  line-height:1.28;
}
.sf-vw-activity .sf-current-target-title {
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sf-vw-activity .sf-current-target-meta { max-height:18px; }
.sf-vw-activity .sf-current-target-meta > span { font-size:10px; }
.sf-vw-activity .sf-current-grid-divider { margin:1px 0; opacity:.8; }

.sf-vw-activity .sf-assist-card {
  margin:10px 0 12px;
  min-height:124px;
  padding:13px 14px;
  border-radius:12px;
  gap:14px;
  border-color:rgba(23,191,117,.15);
  background:linear-gradient(135deg,rgba(11,39,41,.30),rgba(15,27,43,.58));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.012);
}
.sf-vw-activity .sf-assist-main { min-width:0; flex:1 1 auto; }
.sf-vw-activity .sf-assist-kicker-row { gap:12px; }
.sf-vw-activity .sf-assist-kicker { font-size:9.5px; }
.sf-vw-activity .sf-assist-level { min-height:25px; padding:0 9px; font-size:8.5px; }
.sf-vw-activity .sf-assist-title-row { margin-top:8px; gap:14px; }
.sf-vw-activity .sf-assist-title { font-size:14px; }
.sf-vw-activity .sf-assist-reasons { margin-top:4px; font-size:10.5px; }
.sf-vw-activity .sf-assist-breakdown { margin-top:8px; gap:6px; }
.sf-vw-activity .sf-assist-signal { min-height:22px; padding:3px 7px; font-size:8.5px; }
.sf-vw-activity .sf-assist-score {
  width:58px;
  height:58px;
  flex-basis:58px;
  box-shadow:0 0 0 1px rgba(34,197,94,.06),inset 0 1px 0 rgba(255,255,255,.025);
}
.sf-vw-activity .sf-assist-score strong { font-size:18px; }
.sf-vw-activity .sf-assist-actions {
  flex:0 0 128px;
  justify-content:center;
  align-self:stretch;
}
.sf-vw-activity .sf-assist-chat-btn {
  width:100%;
  min-height:42px;
  padding:0 11px;
  border-radius:9px;
  font-size:10px;
}

.sf-vw-activity .sf-current-stream-head {
  gap:9px;
  padding:12px 8px 10px;
}
.sf-vw-activity .sf-current-stream-title-row > span:first-child { font-size:14px; }
.sf-vw-activity .sf-current-stream-title-row > span:last-child { font-size:10px; }
.sf-vw-activity .sf-feed-sort-toggle,
.sf-vw-activity .sf-current-tech-toggle {
  min-height:27px;
  padding:0 10px;
  font-size:10px;
}
.sf-vw-activity .sf-current-list {
  gap:7px;
  height:clamp(260px,42vh,430px);
  max-height:clamp(260px,42vh,430px);
  padding:8px 5px 5px 0;
}
.sf-vw-activity .sf-current-list .sf-event-item {
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:11px;
  min-height:62px;
  padding:10px 12px 10px 9px;
  border-radius:11px;
  border-color:rgba(128,148,189,.075);
  background:linear-gradient(145deg,rgba(23,34,53,.60),rgba(16,26,42,.56));
}
.sf-vw-activity .sf-current-event-icon {
  width:32px;
  height:32px;
  flex-basis:32px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.sf-vw-activity .sf-current-event-icon svg { width:15px; height:15px; }
.sf-vw-activity .sf-current-list .sf-event-main { font-size:12px; }
.sf-vw-activity .sf-current-list .sf-event-detail,
.sf-vw-activity .sf-current-list .sf-scroll-event-meta { font-size:10px; }
.sf-vw-activity .sf-current-list .sf-human-event-time,
.sf-vw-activity .sf-current-list .sf-event-item > span:last-child { font-size:10px!important; }
.sf-vw-activity .sf-current-list .sf-scroll-depth-bar { height:7px; }

@container (min-width:900px) {
  .sf-vw-activity .sf-current-live { padding-left:4px; padding-right:4px; }
  .sf-vw-activity .sf-current-card,
  .sf-vw-activity .sf-current-card-meta { min-height:74px; }
  .sf-vw-activity .sf-assist-card { min-height:124px; }
}
@container (max-width:760px) {
  .sf-vw-activity .sf-assist-actions { flex:0 0 auto; }
}


.sf-activity-note {
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  background:rgba(255,255,255,.03);
  color:#cdd5e6;
  font-size:13px;
  line-height:1.45;
}
.sf-event-list { display:grid; gap:10px; max-height: clamp(180px, 42vh, 360px); overflow-y:auto; overflow-x:hidden; padding-right:4px; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(136,148,176,.55) transparent; }
.sf-event-list::-webkit-scrollbar { width: 10px; }
.sf-event-list::-webkit-scrollbar-track { background: transparent; }
.sf-event-list::-webkit-scrollbar-thumb { background: rgba(136,148,176,.35); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
.sf-event-list::-webkit-scrollbar-thumb:hover { background: rgba(136,148,176,.55); border: 2px solid transparent; background-clip: content-box; }
.sf-pages-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:10px; }
.sf-pages-summary > div { padding:12px 14px; border-radius:12px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.05); }
.sf-pages-summary-value { margin-top:4px; color:#f3f6ff; font-size:18px; font-weight:800; }
.sf-pages-list { display:grid; gap:9px; min-height:0; overflow:visible; padding-right:4px; }
.sf-page-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px 14px; border-radius:12px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.045); }
.sf-page-main { min-width:0; }
.sf-page-title { color:#eef3ff; font-size:13px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-page-path { margin-top:4px; color:#9aa8c4; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-page-meta { margin-top:6px; color:#7f8ca7; font-size:11px; }
.sf-page-duration { display:flex; flex-direction:column; align-items:flex-end; gap:5px; color:#f5f7ff; font-size:14px; font-weight:800; white-space:nowrap; }
.sf-page-live { padding:3px 7px; border-radius:999px; background:rgba(79,214,145,.12); border:1px solid rgba(79,214,145,.25); color:#7ee2ad; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; }
.sf-pages-empty { padding:16px; border-radius:12px; background:rgba(255,255,255,.03); color:#9ba8c1; font-size:13px; text-align:center; }
@media (max-width: 680px) { .sf-pages-summary { grid-template-columns:1fr; } .sf-page-row { grid-template-columns:1fr; } .sf-page-duration { align-items:flex-start; } }
.sf-event-item {
  display:grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap:10px;
  align-items:start;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.03);
  color:#dbe3f4;
  font-size:13px;
}
.sf-current-card { min-height: 88px; }
.sf-current-card-meta { min-height:72px; padding-top:11px; padding-bottom:11px; }
.sf-current-card-meta .sf-current-value { font-size:12.5px; }
.sf-current-code { line-height:1.35; }
.sf-current-code.sf-current-target-human {
  font-family:inherit;
  color:#eef3ff;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.sf-current-target-title { color:#f4f7ff; font-size:13px; line-height:1.35; }
.sf-current-target-meta { display:flex; gap:6px; flex-wrap:wrap; min-width:0; }
.sf-current-target-meta > span {
  display:inline-block;
  max-width:100%;
  padding:3px 6px;
  border-radius:6px;
  background:rgba(91,112,157,.12);
  color:#9fb0cc;
  font-size:10.5px;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sf-current-target-human .sf-technical-details-content { max-height:120px; }
.sf-current-card-target .sf-current-value { overflow:hidden; }
.sf-current-target-human { max-height:142px; overflow:hidden; }
.sf-current-target-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.sf-current-target-meta { max-height:54px; overflow:hidden; }
.sf-current-target-human .sf-technical-details { margin-top:1px; flex:0 0 auto; }
@media (max-width:640px) {
  .sf-current-stream-title-row { align-items:flex-start; }
  .sf-current-stream-actions { gap:6px; }
}
.sf-event-body { display:flex; flex-direction:column; gap:4px; min-width:0; }
.sf-event-main { color:#eef3ff; line-height:1.35; font-weight:700; word-break:break-word; }
.sf-event-detail { color:#c2cae0; line-height:1.45; font-size:12px; word-break:break-word; }
.sf-event-item strong { color:#fff; }
.sf-event-item span:last-child { color:#97a0b4; font-size:12px; }
.sf-event-dot { width:10px; height:10px; border-radius:999px; margin-top:4px; }
.sf-event-dot-scroll { background:#58d46b; }
.sf-event-dot-click { background:#5da7ff; }
.sf-event-dot-media { background:#ffce5d; }
.sf-event-dot-video { background:#ef6dff; }
.sf-event-dot-hover { background:#7ce0d5; }
.sf-event-dot-bg { background:#ff7a88; }
.sf-event-item-human {
  padding:12px 14px;
  border:1px solid rgba(120,145,190,.12);
  background:rgba(255,255,255,.025);
}
.sf-event-item-human:hover { background:rgba(255,255,255,.04); border-color:rgba(120,145,190,.20); }
.sf-human-event-body { gap:7px; }
.sf-event-item-human .sf-event-main { font-size:13px; color:#f3f6ff; }
.sf-human-event-context { display:flex; align-items:center; gap:6px; flex-wrap:wrap; min-width:0; }
.sf-human-event-context > span {
  display:inline-flex;
  max-width:100%;
  padding:3px 7px;
  border-radius:7px;
  background:rgba(91,112,157,.12);
  border:1px solid rgba(120,145,190,.10);
  color:#aebbd3;
  font-size:11px;
  line-height:1.3;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sf-human-event-context > span.is-path { color:#8fb8ff; background:rgba(76,128,255,.08); }
.sf-human-event-time { color:#8f9ab0 !important; font-size:11px !important; white-space:nowrap; padding-top:1px; }
.sf-technical-details { margin-top:1px; }
.sf-technical-details summary {
  display:inline-flex;
  align-items:center;
  gap:5px;
  cursor:pointer;
  color:#7894c7;
  font-size:11px;
  font-weight:700;
  list-style:none;
  user-select:none;
}
.sf-technical-details summary::-webkit-details-marker { display:none; }
.sf-technical-details summary::after { content:'›'; font-size:15px; line-height:1; transition:transform .16s ease; }
.sf-technical-details[open] summary::after { transform:rotate(90deg); }
.sf-technical-details-content {
  margin-top:7px;
  padding:9px 10px;
  max-height:150px;
  overflow:auto;
  border-radius:8px;
  border:1px solid rgba(120,145,190,.12);
  background:rgba(4,10,22,.32);
  color:#8390a9;
  font:10.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

@media (max-width: 1100px) {
  .sf-app { grid-template-columns: 1fr; }
  .sf-sidebar { display:none; }
  .sf-workspace { overflow: visible; }
}