:root {
  --page-bg-start: #96a1b0;
  --page-bg-end: #808c9d;
  --page-radial: rgba(255, 255, 255, 0.16);
  --shell-grad-start: #252a32;
  --shell-grad-end: #181c23;
  --shell-border: rgba(255, 255, 255, 0.07);
  --sidebar-grad-start: #171a1f;
  --sidebar-grad-end: #121518;
  --surface-strong-start: #343741;
  --surface-strong-end: #2d3038;
  --surface-card-start: #232720;
  --surface-card-end: #171a1f;
  --surface-switch-start: #23262d;
  --surface-switch-end: #1c1f24;
  --surface-switch-active-start: #1b1d22;
  --surface-switch-active-end: #121417;
  --header-grad-start: rgba(21, 24, 28, 0.98);
  --header-grad-end: rgba(17, 20, 24, 0.96);
  --canvas-grad-start: rgba(21, 24, 28, 0.78);
  --canvas-grad-end: rgba(17, 20, 24, 0.72);
  --text-strong: #f3f6fb;
  --text-main: #d8dde7;
  --text-muted: #9197a3;
  --text-subtle: #666d79;
  --line: rgba(255, 255, 255, 0.08);
  --hover-overlay: rgba(255, 255, 255, 0.05);
  --canvas-dash: rgba(255, 255, 255, 0.08);
  --inset-line: rgba(255, 255, 255, 0.02);
  --blue: #55a3ff;
  --green: #55e29e;
  --rose: #d394b8;
  --orange: #ff8937;
  --purple: #9d68ff;
  --badge: #3a3e45;
  --success: #30d869;
  --shadow: 0 24px 48px rgba(6, 10, 18, 0.36);
}

body[data-theme="light"] {
  --page-bg-start: #eef3fb;
  --page-bg-end: #dde6f3;
  --page-radial: rgba(255, 255, 255, 0.72);
  --shell-grad-start: #f3f6fb;
  --shell-grad-end: #e3eaf4;
  --shell-border: rgba(79, 101, 130, 0.16);
  --sidebar-grad-start: #fbfdff;
  --sidebar-grad-end: #eef3f9;
  --surface-strong-start: #dfe7f3;
  --surface-strong-end: #d3dcea;
  --surface-card-start: #ffffff;
  --surface-card-end: #edf3fa;
  --surface-switch-start: #e6edf7;
  --surface-switch-end: #dde6f1;
  --surface-switch-active-start: #ffffff;
  --surface-switch-active-end: #eef4fb;
  --header-grad-start: rgba(250, 252, 255, 0.98);
  --header-grad-end: rgba(238, 244, 251, 0.96);
  --canvas-grad-start: rgba(255, 255, 255, 0.86);
  --canvas-grad-end: rgba(239, 245, 251, 0.88);
  --text-strong: #16202e;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-subtle: #8a98ab;
  --line: rgba(108, 126, 150, 0.16);
  --hover-overlay: rgba(89, 110, 138, 0.08);
  --canvas-dash: rgba(108, 126, 150, 0.2);
  --inset-line: rgba(140, 157, 180, 0.18);
  --badge: #dde5f0;
  --shadow: 0 18px 38px rgba(71, 91, 122, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(
      circle at top left,
      var(--page-radial),
      transparent 20%
    ),
    linear-gradient(180deg, var(--page-bg-start) 0%, var(--page-bg-end) 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  color: var(--text-main);
  transition: background 220ms ease, color 220ms ease;
}

.layout {
  min-height: 100vh;
  position: relative;
}

.sidebar-shell {
  width: 210px;
  height: 100vh;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  background: transparent;
  box-shadow: none;
  transform: translateX(0);
  opacity: 1;
  display: flex;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

.sidebar-shell.is-hidden {
  transform: translateX(calc(-100% - 12px));
  opacity: 0;
  pointer-events: none;
}

.sidebar-toggle-fab {
  position: fixed;
  top: 5px;
  left: 158px;
  z-index: 45;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: left 320ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease, color 180ms ease, transform 180ms ease,
    box-shadow 180ms ease;
}

.sidebar-toggle-fab.is-collapsed {
  left: 10px;
}

.sidebar-toggle-fab:hover {
  color: var(--text-strong);
  transform: translateY(-1px);
}

.toggle-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.toggle-icon .toggle-frame {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  opacity: 0.95;
}

.toggle-icon .toggle-bar {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.sidebar-toggle-fab.is-collapsed .toggle-icon .toggle-bar {
  transform: translateX(4px);
}

.sidebar-toggle-fab:focus-visible {
  outline: 2px solid #7eb2ff;
  outline-offset: 2px;
}

.sidebar {
  height: 100%;
  width: 100%;
  padding: 10px 10px 12px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(
    180deg,
    var(--sidebar-grad-start) 0%,
    var(--sidebar-grad-end) 100%
  );
  border: 1px solid var(--shell-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--blue);
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 12px rgba(59, 130, 246, 0.18));
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
}

.collapse-button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.collapse-button:hover,
.nav-item:hover,
.list-item:hover,
.theme-option:hover {
  background: var(--hover-overlay);
}

.collapse-button:focus-visible,
.nav-item:focus-visible,
.list-item:focus-visible,
.theme-option:focus-visible {
  outline: 2px solid #7eb2ff;
  outline-offset: 2px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-home {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-topics {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: calc(100% + 20px);
  margin: 0 -10px;
}

.nav-item,
.list-item,
.theme-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 180ms ease, transform 180ms ease,
    color 180ms ease;
}

.nav-item,
.list-item {
  min-height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.nav-item:hover,
.list-item:hover,
.theme-option:hover {
  transform: translateY(-1px);
}

.nav-item.active,
.list-item.active {
  background: linear-gradient(
    180deg,
    var(--surface-strong-start) 0%,
    var(--surface-strong-end) 100%
  );
}

.nav-home .nav-item {
  min-height: 44px;
  border-radius: 14px;
}

.nav-topics .nav-item {
  position: relative;
  min-height: 72px;
  padding: 0 18px;
  border-radius: 0;
}

.nav-topics .nav-item.active {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--blue) 12%, var(--surface-card-start)) 0%,
    color-mix(in srgb, var(--blue) 8%, var(--surface-card-end)) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-topics .nav-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
}

.nav-item .label,
.list-item .label {
  font-size: 12.5px;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-item.active .label,
.list-item.active .label {
  color: var(--text-strong);
  font-weight: 700;
  text-shadow: 0 0 0.75px rgba(255, 255, 255, 0.88),
    0 0 8px color-mix(in srgb, var(--blue) 18%, transparent);
}

.nav-item .shortcut {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #c8ccd5;
  background: rgba(255, 255, 255, 0.08);
}

.section-divider {
  width: calc(100% + 20px);
  height: 1px;
  margin: 2px -10px 0;
  background: var(--line);
}

.list-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  min-height: 24px;
  color: var(--text-subtle);
  font-size: 12px;
}

.caret {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex: 0 0 auto;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

.swatch.purple {
  background: #9d68ff;
}

.swatch.blue {
  background: #4fa2ff;
}

.swatch.orange {
  background: #ea6d1f;
}

.count {
  margin-left: auto;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #afb6c1;
  background: var(--badge);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.user-card {
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    var(--surface-card-start) 0%,
    var(--surface-card-end) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--inset-line);
}

.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 35% 30%, #f1d1bc 0 14%, transparent 15%),
    radial-gradient(circle at 50% 52%, #88583d 0 23%, transparent 24%),
    radial-gradient(circle at 50% 80%, #3c6a56 0 28%, transparent 29%),
    linear-gradient(180deg, #d0f1ea 0%, #285548 100%);
}

.avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  border: 2px solid #16181d;
}

.user-meta {
  min-width: 0;
  flex: 1;
}

.user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-mail {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-switch {
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    var(--surface-switch-start) 0%,
    var(--surface-switch-end) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.theme-option {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.theme-option.active {
  color: var(--text-strong);
  background: linear-gradient(
    180deg,
    var(--surface-switch-active-start) 0%,
    var(--surface-switch-active-end) 100%
  );
  text-shadow: 0 0 0.75px rgba(255, 255, 255, 0.88),
    0 0 8px color-mix(in srgb, var(--blue) 16%, transparent);
}

.theme-option.is-hidden {
  display: none;
}

.content {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.workspace-body {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.feature-rail {
  position: fixed;
  top: 0;
  right: 0;
  width: 210px;
  height: 100vh;
  padding: 0;
  z-index: 32;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(calc(100% + 12px), 0, 0);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-rail.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

body[data-page="vms-epic3"] .feature-rail {
  display: none;
}

.feature-sidebar {
  height: 100%;
  padding: 56px 10px 12px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--sidebar-grad-start) 28%, transparent) 0%,
      color-mix(in srgb, var(--sidebar-grad-end) 34%, transparent) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    -18px 0 36px rgba(15, 23, 42, 0.12), 0 18px 36px rgba(6, 10, 18, 0.16);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

body[data-theme="light"] .feature-sidebar {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.03) 100%
    ),
    linear-gradient(
      180deg,
      rgba(213, 226, 244, 0.14) 0%,
      rgba(196, 214, 236, 0.18) 100%
    );
  border-color: rgba(159, 179, 205, 0.16);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    -18px 0 36px rgba(96, 122, 160, 0.08), 0 18px 36px rgba(96, 122, 160, 0.1);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.feature-list::-webkit-scrollbar {
  display: none;
}

.feature-list:has(.feature-item.active) .feature-item:not(.active) {
  opacity: 0.82;
}

.feature-item {
  position: relative;
  width: 100%;
  min-height: 108px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    180deg,
    var(--surface-card-start) 0%,
    var(--surface-card-end) 100%
  );
  color: color-mix(in srgb, var(--text-main) 92%, #2d3748 8%);
  cursor: pointer;
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease;
}

.feature-item:hover {
  background: var(--hover-overlay);
  transform: translateY(-1px);
  opacity: 1;
}

.feature-item:focus-visible {
  outline: 2px solid #7eb2ff;
  outline-offset: 2px;
}

.feature-item.active {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--blue) 30%, var(--surface-card-start)) 0%,
    color-mix(in srgb, var(--blue) 22%, var(--surface-card-end)) 100%
  );
  color: color-mix(in srgb, var(--text-strong) 94%, #0f172a 6%);
  border-color: color-mix(in srgb, var(--blue) 34%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 14px color-mix(in srgb, var(--blue) 14%, transparent);
  transform: none;
}

.feature-name {
  font-size: 12.5px;
  font-weight: 700;
  color: color-mix(in srgb, var(--text-main) 90%, #334155 10%);
}

.feature-item.active .feature-name {
  color: color-mix(in srgb, var(--text-strong) 96%, #ffffff 4%);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.92),
    0 0 10px color-mix(in srgb, var(--blue) 22%, transparent);
}

.workspace {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.headerbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px 0 64px;
  background: linear-gradient(
    180deg,
    var(--header-grad-start) 0%,
    var(--header-grad-end) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 18;
  backdrop-filter: blur(12px);
}

.epic-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 1 auto;
  min-width: 0;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-left: 28px;
  padding-right: 24px;
  min-width: 0;
}

.epic-button {
  position: relative;
  min-width: 78px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.epic-button + .epic-button::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 1px;
  height: 30px;
  transform: translateY(-50%);
  background: color-mix(in srgb, var(--text-muted) 52%, transparent);
  opacity: 0.72;
}

.epic-button:hover {
  color: var(--text-main);
  transform: translateY(-1px);
}

.epic-button:focus-visible {
  outline: 2px solid #7eb2ff;
  outline-offset: 2px;
}

.epic-button.active {
  color: var(--text-strong);
  text-shadow: 0 0 0.75px rgba(255, 255, 255, 0.88),
    0 0 8px color-mix(in srgb, var(--blue) 16%, transparent);
}

.epic-button::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 180ms ease, opacity 180ms ease;
  opacity: 0;
}

.epic-button.active::after {
  background: var(--blue);
  opacity: 1;
}

.header-search {
  width: min(560px, 100%);
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(
    180deg,
    var(--surface-switch-start) 0%,
    var(--surface-switch-end) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--inset-line);
}

.header-search:focus-within {
  border-color: rgba(126, 178, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(126, 178, 255, 0.25);
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex: 0 0 auto;
}

.search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
}

.search-input::placeholder {
  color: var(--text-subtle);
}

.canvas-panel {
  flex: 1;
  min-height: 0;
  margin: 18px 20px 20px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.canvas-placeholder {
  height: 100%;
  min-height: 180px;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    var(--canvas-grad-start) 0%,
    var(--canvas-grad-end) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--inset-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 13px;
  padding: 32px;
  text-align: center;
}

.hidden {
  display: none !important;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.topic-icon {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(77, 151, 255, 0.1));
}

body[data-theme="light"] .topic-icon {
  filter: drop-shadow(0 3px 8px rgba(77, 151, 255, 0.08));
}

.icon.brand-fill {
  fill: currentColor;
  stroke: none;
}

.vms-home-content,
.vms-live-content {
  min-height: calc(100vh - 90px);
}

.vms-home-content {
  display: flex;
  gap: 12px;
}

.vms-live-content {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
}

.vms-home-content .ux-map-card,
.vms-home-content .ux-site-panel,
.vms-live-content .ux-monitor-sites,
.vms-live-content .ux-monitor-workspace {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 10px;
}

.vms-home-content .ux-map-card {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.vms-home-content .ux-map-canvas {
  position: relative;
  height: calc(100vh - 88px);
  overflow: hidden;
  background: #dce8f2;
}

.vms-home-content .ux-map-canvas img,
.vms-home-content .ux-floor-image img,
.vms-live-content .ux-monitor-tile img,
.vms-live-content .ux-monitor-focus-viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ux-image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #48647b;
  background: linear-gradient(160deg, #d6ebf7, #c8deed);
}

.vms-home-content .ux-site-dot {
  position: absolute;
  width: 34px;
  min-height: 34px;
  border-radius: 999px;
  border: 2px solid #98c954;
  background: #c8e48f;
  color: #345027;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(42, 67, 31, 0.25);
}

.vms-home-content .ux-site-dot.selected {
  box-shadow: 0 0 0 4px rgba(200, 228, 143, 0.55), 0 7px 18px rgba(42, 67, 31, 0.32);
}

.vms-home-content .ux-site-dot.disconnected {
  border-color: #d34747;
  background: #ffb3b3;
  color: #772424;
  box-shadow: 0 6px 14px rgba(125, 30, 30, 0.24);
}

.vms-home-content .ux-site-panel {
  width: 360px;
  transition: width 0.26s ease, opacity 0.2s ease, padding 0.2s ease, border-width 0.2s ease;
  overflow: hidden;
  opacity: 1;
  padding: 8px;
}

.vms-home-content .ux-site-panel.collapsed {
  width: 0;
  opacity: 0;
  padding: 0;
  border-width: 0;
}

.vms-home-content .ux-site-panel-inner {
  height: calc(100vh - 106px);
  min-width: 344px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vms-home-content .ux-floor-panel {
  flex: 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-height: 0;
}

.vms-home-content .ux-floor-panel h2,
.vms-live-content .ux-monitor-sites h2,
.vms-live-content .ux-monitor-head h1 {
  margin: 0;
}

.vms-home-content .ux-floor-image {
  position: relative;
  min-height: 220px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  overflow: hidden;
}

.vms-home-content .ux-floor-camera-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vms-home-content .ux-floor-camera-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #39c45a;
  border: 2px solid #e9ffe9;
  box-shadow: 0 0 0 5px rgba(57, 196, 90, 0.22);
}

.vms-home-content .ux-recent-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.vms-home-content .ux-recent-panel h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.vms-home-content .ux-recent-scroll {
  min-height: 0;
  overflow-y: auto;
}

.vms-home-content .ux-recent-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.vms-home-content .ux-recent-panel th,
.vms-home-content .ux-recent-panel td {
  text-align: left;
  border-bottom: 1px solid #e7edf2;
  padding: 8px 6px;
}

.vms-home-content .ux-recent-panel th {
  background: #053247;
  color: #ffffff;
  font-weight: 700;
}

.ux-action-btn {
  min-height: 40px;
  border: 1px solid rgba(0, 181, 226, 0.35);
  border-radius: 8px;
  background: #e6f8fd;
  color: #0090be;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.vms-home-content .ux-view-detail-btn {
  justify-self: center;
  align-self: end;
  width: 170px;
  border-color: #0b4d66;
  background: #053247;
  color: #ffffff;
}

.vms-home-content .ux-action-btn.reconnect {
  border-color: #8f1f1f;
  background: #b52a2a;
  color: #ffffff;
}

.vms-home-content .ux-offline-panel {
  flex: 1;
  border: 1px dashed #f1b2b2;
  border-radius: 10px;
  background: #fff6f6;
  padding: 18px 14px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.vms-home-content .ux-offline-text {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #d35050;
}

.vms-live-content .ux-monitor-sites {
  padding: 12px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.vms-live-content .ux-monitor-sites h2 {
  font-size: 22px;
}

.vms-live-content .ux-monitor-sites p,
.vms-live-content .ux-monitor-head p,
.vms-live-content .ux-monitor-site-item p,
.vms-live-content .ux-monitor-empty p,
.vms-live-content .ux-zoom-block,
.vms-live-content .ux-ptz-status {
  margin: 0;
  color: #6f8598;
  font-size: 12px;
}

.vms-live-content .ux-monitor-site-list {
  overflow-y: auto;
  display: grid;
  gap: 8px;
  align-content: start;
}

.vms-live-content .ux-monitor-site-item {
  border: 1px solid #dde3ea;
  border-radius: 10px;
  background: #f9fcff;
  text-align: left;
  padding: 10px;
  display: grid;
  gap: 5px;
  cursor: pointer;
}

.vms-live-content .ux-monitor-site-item.active {
  border-color: rgba(0, 181, 226, 0.45);
  background: #eef9ff;
}

.vms-live-content .ux-monitor-site-item:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.vms-live-content .ux-monitor-site-item-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.vms-live-content .ux-monitor-site-item-top strong,
.vms-live-content .ux-monitor-controls h3 {
  font-size: 13px;
  color: #294055;
}

.vms-live-content .ux-status-pill {
  min-height: 20px;
  border-radius: 999px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
}

.vms-live-content .ux-status-pill.connected {
  background: #e9faee;
  color: #24894b;
}

.vms-live-content .ux-status-pill.disconnected {
  background: #feeceb;
  color: #a13b3b;
}

.vms-live-content .ux-monitor-workspace {
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  min-height: 0;
}

.vms-live-content .ux-monitor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.vms-live-content .ux-monitor-head h1 {
  font-size: 26px;
}

.vms-live-content .ux-monitor-empty {
  min-height: 120px;
  border: 1px dashed #f1b2b2;
  border-radius: 10px;
  background: #fff6f6;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
}

.vms-live-content .ux-monitor-empty strong {
  font-size: 30px;
  color: #c64242;
}

.vms-live-content .ux-monitor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.vms-live-content .ux-monitor-tile {
  position: relative;
  border: 1px solid #dde3ea;
  border-radius: 10px;
  overflow: hidden;
  background: #122f41;
  min-height: 230px;
  cursor: pointer;
  padding: 0;
}

.vms-live-content .ux-monitor-tile:hover {
  border-color: rgba(0, 181, 226, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 181, 226, 0.2);
}

.vms-live-content .ux-monitor-cam-tag,
.vms-live-content .ux-monitor-live-pill,
.vms-live-content .ux-monitor-focus-name {
  position: absolute;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.vms-live-content .ux-monitor-cam-tag,
.vms-live-content .ux-monitor-focus-name {
  left: 8px;
  top: 8px;
  background: rgba(5, 50, 71, 0.8);
  border-radius: 999px;
  padding: 4px 8px;
}

.vms-live-content .ux-monitor-live-pill {
  right: 8px;
  top: 8px;
  background: #ff3b3b;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 10px;
}

.vms-live-content .ux-monitor-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 10px;
  min-height: 0;
}

.vms-live-content .ux-monitor-focus-viewer {
  position: relative;
  border: 1px solid #dde3ea;
  border-radius: 10px;
  overflow: hidden;
  background: #102638;
  min-height: 520px;
}

.vms-live-content .ux-monitor-focus-viewer img {
  transform-origin: center;
  transition: transform 0.2s ease;
}

.vms-live-content .ux-monitor-controls {
  border: 1px solid #dde3ea;
  border-radius: 10px;
  background: #f9fcff;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.vms-live-content .ux-ptz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vms-live-content .ux-ptz-grid button,
.vms-live-content .ux-audio-btn {
  min-height: 38px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #ffffff;
  color: #355870;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.vms-live-content .ux-audio-btn.connected {
  background: #e6f8fd;
  color: #0090be;
}

.vms-live-content .ux-zoom-block {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.vms-live-content .ux-zoom-block input {
  width: 100%;
}

.blue {
  color: var(--blue);
}

.green {
  color: var(--green);
}

.rose {
  color: var(--rose);
}

.orange {
  color: var(--orange);
}

.purple {
  color: var(--purple);
}

@media (max-width: 960px) {
  .sidebar-toggle-fab {
    left: 10px;
  }

  .feature-rail {
    display: none;
  }

  .workspace-body {
    display: block;
  }

  .headerbar {
    padding: 0 12px;
    min-height: 48px;
    gap: 10px;
  }

  .epic-nav {
    width: auto;
    flex: 1;
    overflow-x: auto;
  }

  .header-center {
    flex: 0 0 auto;
    padding-left: 12px;
    padding-right: 0;
  }

  .epic-button {
    min-height: 48px;
    padding: 0 18px;
  }

  .header-search {
    width: 260px;
    height: 34px;
    padding: 0 12px;
  }

  .canvas-panel {
    margin: 14px 14px 16px;
  }

  .vms-home-content,
  .vms-live-content,
  .vms-live-content .ux-monitor-focus {
    grid-template-columns: 1fr;
    display: grid;
  }

  .vms-home-content .ux-site-panel,
  .vms-home-content .ux-site-panel.collapsed {
    width: 100%;
    min-width: 0;
    opacity: 1;
    padding: 8px;
    border-width: 1px;
  }

  .vms-home-content .ux-site-panel-inner,
  .vms-home-content .ux-map-canvas,
  .vms-live-content .ux-monitor-focus-viewer {
    height: auto;
    min-height: 360px;
  }

  .vms-live-content .ux-monitor-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-shell,
  .nav-item,
  .list-item,
  .epic-button,
  .theme-option,
  .collapse-button,
  .sidebar-toggle-fab,
  .feature-rail {
    transition: none;
  }

  .toggle-icon .toggle-bar {
    transition: none;
  }
}

/* --- VSS Chatbot --- */
.chatbot-view {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.chatbot-sidebar {
  background: var(--surface-strong-start);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.chatbot-search-container {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.chatbot-search-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-card-start);
  color: var(--text-strong);
  font-size: 13px;
  outline: none;
}

.chatbot-topic-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chatbot-topic-item {
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chatbot-topic-item:hover,
.chatbot-topic-item.active {
  background: var(--hover-overlay);
  color: var(--text-strong);
}

.chatbot-main {
  background: var(--canvas-grad-start);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chatbot-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chatbot-msg.ai {
  align-self: flex-start;
  background: var(--surface-card-start);
  color: var(--text-main);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.chatbot-msg.user {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chatbot-composer {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: var(--header-grad-start);
  display: flex;
  gap: 12px;
  align-items: center;
}

.chatbot-input-field {
  flex: 1;
  background: var(--surface-card-start);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--text-strong);
  font-size: 14px;
  outline: none;
}

.chatbot-send-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chatbot-send-button:hover {
  transform: scale(1.05);
}

.chatbot-send-button svg {
  width: 18px;
  height: 18px;
}

.chatbot-footer-actions {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.btn-ai-config {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

body[data-page="vms-epic3"] .chatbot-search-container,
body[data-page="vms-epic3"] .chatbot-footer-actions,
body[data-page="vms-epic3"] .chatbot-composer {
  padding: 0;
  border: 0;
  background: transparent;
}

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800&display=swap");

body[data-page="vms-epic3"] {
  font-family: "Roboto", Arial, sans-serif;
}

body[data-page="vms-epic3"] .chatbot-view {
  grid-template-columns: 320px 1fr;
  background: linear-gradient(180deg, var(--canvas-grad-start) 0%, var(--canvas-grad-end) 100%);
}

body[data-page="vms-epic3"] .chatbot-sidebar {
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong-start) 90%, transparent);
  display: flex;
  flex-direction: column;
}

body[data-page="vms-epic3"] .chatbot-main {
  background: transparent;
  padding: 20px;
}

.vms-filter-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vms-filter-sidebar {
  min-height: 0;
}

.vms-video-list-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0 0;
  background: #ffffff;
}

.vms-video-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: #ffffff;
}

.vms-video-list-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vms-video-list-title {
  margin: 0;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.vms-video-list-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}

.vms-video-list {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 0;
  background: #ffffff;
}

.vms-video-list-item {
  width: 100%;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 0;
  border: 0;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.vms-video-list-item:hover,
.vms-video-list-item:focus-visible {
  transform: none;
  border-color: transparent;
  box-shadow: none;
  outline: none;
  background: #f4f8ff;
}

.vms-video-list-item.is-active {
  border-color: transparent;
  background: #eaf3ff;
}

.vms-video-thumb {
  width: 108px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
}

body[data-page="vms-epic3"] .vms-video-thumb {
  border-radius: 6px;
}

.vms-video-thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.vms-video-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vms-video-date {
  color: var(--text-strong);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.vms-video-time {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.vms-snapshot-panel {
  flex: 1;
  min-height: 0;
}

.vms-filter-header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.vms-filter-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  color: var(--text-strong);
}

.vms-filter-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vms-filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vms-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vms-filter-control {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-card-start) 88%, transparent);
  color: var(--text-strong);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.vms-filter-control:focus {
  border-color: rgba(126, 178, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(126, 178, 255, 0.16);
}

.vms-filter-control::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.85;
  filter: saturate(0.2);
}

.vms-filter-body {
  flex: 1;
  min-height: 0;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-card-start) 78%, transparent);
  border: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 24px;
}

body[data-page="vms-epic3"] .vms-filter-body {
  border-radius: 8px;
}

.vms-snapshot-carousel {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.vms-snapshot-viewport {
  min-height: 0;
  overflow: hidden;
  display: block;
  border-radius: 22px;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-decoration: none;
  transition: transform 180ms ease;
}

.vms-snapshot-viewport:hover {
  transform: translateY(-1px);
}

.vms-snapshot-track {
  height: 100%;
  display: flex;
  transition: transform 260ms ease;
  will-change: transform;
}

.vms-snapshot-slide {
  min-width: 100%;
  padding: 0;
  display: flex;
}

.vms-snapshot-image {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: 22px;
  background: #0d1117;
  display: block;
  box-shadow: none;
}


.vms-filter-body.is-player-open {
  padding: 0;
  background: #000;
  border-color: transparent;
}

.vms-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  text-align: center;
}

.vms-empty-state.is-hidden {
  display: none;
}

.vms-empty-image {
  width: min(100%, 360px);
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}


.vms-empty-copy {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  color: color-mix(in srgb, var(--text-main) 88%, #3f4c62 12%);
}

.vms-camera-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.vms-camera-grid.is-hidden {
  display: none;
}

.vms-camera-card {
  min-height: 244px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-card-start) 94%, white 6%) 0%,
    color-mix(in srgb, var(--surface-card-end) 98%, white 2%) 100%
  );
  box-shadow: inset 0 1px 0 var(--inset-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vms-camera-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vms-camera-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--blue) 18%, transparent);
  color: var(--blue);
  flex: 0 0 auto;
}

.vms-camera-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.vms-camera-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-strong);
}

.vms-camera-preview {
  flex: 1;
  min-height: 160px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  position: relative;
}

.vms-camera-preview video,
.vms-camera-screen {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.vms-camera-screen {
  background: linear-gradient(180deg, #05070a 0%, #000 100%);
}

.vms-recording-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.vms-recording-grid.is-hidden {
  display: none;
}

.vms-recording-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-card-start) 94%, white 6%) 0%,
    color-mix(in srgb, var(--surface-card-end) 98%, white 2%) 100%
  );
  box-shadow: inset 0 1px 0 var(--inset-line);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.vms-recording-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  box-shadow: inset 0 1px 0 var(--inset-line),
    0 10px 22px color-mix(in srgb, var(--blue) 10%, transparent);
}

.vms-recording-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(28, 30, 34, 0.42) 0%, rgba(18, 20, 23, 0.42) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 6px 18px rgba(8, 12, 18, 0.1);
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.vms-recording-time,
.vms-recording-duration {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: #f4f8ff;
}

.vms-recording-preview {
  aspect-ratio: 4 / 3;
  background: #000;
  overflow: hidden;
}

.vms-recording-preview video,
.vms-recording-blackout {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.vms-recording-blackout {
  background: linear-gradient(180deg, #05070a 0%, #000 100%);
}

.vms-recording-empty {
  min-height: 220px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  background: color-mix(in srgb, var(--surface-card-start) 70%, transparent);
}

.vms-player-view {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: inherit;
  overflow: hidden;
  background: #000;
}

.vms-player-view.is-hidden {
  display: none;
}

.vms-analyze-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 1;
  visibility: visible;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.vms-analyze-modal.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vms-analyze-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.vms-analyze-shell {
  position: relative;
  z-index: 1;
  width: min(90vw, 1500px);
  height: min(90vh, 900px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 2.45fr) minmax(430px, 1fr);
  transform: translateY(0) scale(1);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.vms-analyze-modal.is-hidden .vms-analyze-shell {
  transform: translateY(20px) scale(0.98);
}

.vms-analyze-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #eef4fb 0%, #f8fbff 100%);
}

.vms-analyze-video-panel {
  background: #000;
  flex: 0 0 43%;
  min-height: 300px;
}

.vms-analyze-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.vms-analyze-summary-panel {
  flex: 1 0 auto;
  min-height: 360px;
  padding: 28px 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vms-analyze-heading-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vms-analyze-title {
  margin: 0;
  font-size: clamp(28px, 2vw, 42px);
  line-height: 1.04;
  letter-spacing: 0;
  color: #162033;
}

.vms-analyze-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #677588;
  font-size: 13px;
  font-weight: 700;
}

.vms-analyze-meta-item {
  display: inline-flex;
  align-items: center;
}

.vms-analyze-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.56);
}

.vms-analyze-badge {
  margin-left: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #d9fbe8 0%, #c7f5de 100%);
  color: #16834f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.vms-analyze-summary-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vms-analyze-summary-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1f2937;
  flex: 0 0 auto;
}

.vms-analyze-summary-card {
  flex: 1 1 auto;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.vms-analyze-summary-card p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.vms-analyze-summary-card p:last-child {
  margin-bottom: 0;
}

.vms-analyze-summary-card strong {
  color: #1491c7;
}

.vms-analyze-side {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(203, 213, 225, 0.7);
  background: rgba(255, 255, 255, 0.98);
}

.vms-analyze-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  min-height: 74px;
  flex: 0 0 auto;
}

.vms-analyze-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vms-analyze-tab {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #677588;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.vms-analyze-tab.is-active {
  color: #172033;
  border-color: rgba(226, 232, 240, 0.95);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.vms-analyze-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #4b5563;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease;
}

.vms-analyze-close:hover {
  transform: scale(1.04);
  color: #111827;
}

.vms-analyze-close svg {
  width: 24px;
  height: 24px;
  display: block;
}

.vms-analyze-panels {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  height: auto;
  max-height: none;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.vms-analyze-panel {
  display: none;
  grid-area: 1 / 1;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.vms-analyze-panel.is-active {
  display: flex;
  flex-direction: column;
}

.vms-analyze-panel[data-analyze-panel="transcript"] {
  display: none;
  grid-template-rows: minmax(0, 1fr);
  padding: 22px 20px 18px;
  position: relative;
  overflow: hidden;
}

.vms-analyze-panel[data-analyze-panel="transcript"].is-active {
  display: grid;
}

.vms-analyze-transcript-list {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vms-analyze-transcript-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.vms-analyze-transcript-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 16px 12px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08);
}

.vms-analyze-transcript-item--info {
  border-color: rgba(209, 234, 246, 0.95);
  background: rgba(248, 253, 255, 0.98);
}

.vms-analyze-transcript-item--warn {
  border-color: rgba(247, 222, 196, 0.95);
  background: rgba(255, 249, 241, 0.98);
}

.vms-analyze-transcript-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 28px;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
}

.vms-analyze-transcript-time--info {
  color: #1090c8;
}

.vms-analyze-transcript-time--warn {
  color: #d36a1d;
}

.vms-analyze-transcript-copy {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.vms-analyze-panel[data-analyze-panel="ask-ai"] {
  display: none;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 0;
  gap: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.vms-analyze-panel[data-analyze-panel="ask-ai"].is-active {
  display: grid;
  position: relative;
}

.vms-analyze-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  min-width: 0;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vms-analyze-chat::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.vms-analyze-main::-webkit-scrollbar {
  width: 8px;
}

.vms-analyze-main::-webkit-scrollbar-track {
  background: transparent;
}

.vms-analyze-main::-webkit-scrollbar-thumb {
  background: rgba(108, 126, 150, 0.2);
  border-radius: 99px;
}

.vms-analyze-chat-bubble {
  max-width: 82%;
  width: fit-content;
  min-width: 0;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  background: #ffffff;
  color: #334155;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: pre-wrap;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08);
  flex: 0 0 auto;
}

.vms-analyze-chat-bubble + .vms-analyze-chat-bubble {
  margin-top: 16px;
}

.vms-analyze-chat-bubble--user {
  align-self: flex-end;
  background: #55a3ff;
  border-color: #55a3ff;
  color: #ffffff;
  border-top-right-radius: 8px;
  box-shadow: 0 10px 22px rgba(85, 163, 255, 0.28);
}

.vms-analyze-chat-bubble--assistant {
  align-self: flex-start;
  background: #ffffff;
  border-top-left-radius: 8px;
  color: #334155;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.vms-analyze-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 20px;
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
}

.vms-analyze-input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(108, 126, 150, 0.16);
  border-radius: 12px;
  outline: 0;
  background: #ffffff;
  color: #16202e;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.vms-analyze-input::placeholder {
  color: #6b7280;
  opacity: 0.9;
}

.vms-analyze-send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #55a3ff;
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.vms-analyze-send:hover {
  transform: scale(1.05);
}

.vms-analyze-send svg {
  width: 18px;
  height: 18px;
  display: block;
}

.vms-player-toolbar {
  position: absolute;
  inset: 8px 8px auto 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.vms-player-view.controls-visible .vms-player-toolbar,
.vms-player-view:focus-within .vms-player-toolbar,
.vms-player-view:hover .vms-player-toolbar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vms-player-back {
  order: 2;
  width: 38px;
  height: 38px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: linear-gradient(180deg, rgba(28, 30, 34, 0.42) 0%, rgba(18, 20, 23, 0.42) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 6px 18px rgba(8, 12, 18, 0.1);
  color: #f4f8ff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 800;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.vms-player-back:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 10px 22px rgba(8, 12, 18, 0.16);
  filter: brightness(1.04);
}

.vms-player-back svg {
  width: 26px;
  height: 26px;
  display: block;
}

.vms-player-meta {
  order: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 0;
  border-radius: 999px;
  background: transparent;
}

.vms-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(28, 30, 34, 0.42) 0%, rgba(18, 20, 23, 0.42) 100%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 6px 18px rgba(8, 12, 18, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.vms-mode-button {
  min-width: 46px;
  min-height: 22px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.vms-mode-button.is-active {
  background: linear-gradient(180deg, #f8fbff 0%, #dceeff 100%);
  color: #142031;
  box-shadow: 0 4px 10px rgba(93, 169, 255, 0.22);
}

.vms-player-time,
.vms-player-duration {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: #ffffff;
}

.vms-player-stage {
  flex: 1;
  min-height: 0;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vms-player-stage video,
.vms-player-blackout {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  transform-origin: center center;
  transition: transform 180ms ease;
}

.vms-player-media {
  width: 100%;
  height: 100%;
  position: relative;
}

.vms-player-blackout {
  background: linear-gradient(180deg, #05070a 0%, #000 100%);
}

.vms-player-view[data-zoom="1"] .vms-player-stage video,
.vms-player-view[data-zoom="1"] .vms-player-blackout {
  transform: scale(1.35);
}

.vms-player-view[data-zoom="2"] .vms-player-stage video,
.vms-player-view[data-zoom="2"] .vms-player-blackout {
  transform: scale(1.7);
}

.vms-player-action {
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #f4f8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.vms-player-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.vms-player-action svg {
  width: 16px;
  height: 16px;
  display: block;
}

.vms-player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 12px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(28, 30, 34, 0.42) 0%, rgba(18, 20, 23, 0.42) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 6px 18px rgba(8, 12, 18, 0.1);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.vms-player-view.controls-visible .vms-player-controls,
.vms-player-view:focus-within .vms-player-controls,
.vms-player-view:hover .vms-player-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vms-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.vms-control-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.vms-control-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.vms-control-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.vms-date-jump-button {
  position: relative;
}

.vms-date-picker-popup {
  position: fixed;
  z-index: 140;
  width: 260px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: linear-gradient(180deg, rgba(28, 30, 34, 0.42) 0%, rgba(18, 20, 23, 0.42) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 12px 28px rgba(8, 12, 18, 0.2);
  color: #f4f8ff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.vms-date-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.vms-date-picker-label {
  font-size: 13px;
  font-weight: 800;
  color: #f4f8ff;
}

.vms-date-picker-nav {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f4f8ff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, background-color 180ms ease;
}

.vms-date-picker-nav:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  background: rgba(255, 255, 255, 0.06);
}

.vms-date-picker-nav svg {
  width: 16px;
  height: 16px;
}

.vms-date-picker-weekdays,
.vms-date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.vms-date-picker-weekdays {
  margin-bottom: 8px;
}

.vms-date-picker-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(244, 248, 255, 0.72);
}

.vms-date-picker-filler {
  min-height: 30px;
}

.vms-date-picker-day {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 248, 255, 0.82);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, background-color 180ms ease, color 180ms ease;
}

.vms-date-picker-day:disabled {
  opacity: 0.26;
  cursor: not-allowed;
}

.vms-date-picker-day.is-selected {
  background: linear-gradient(180deg, #f8fbff 0%, #dceeff 100%);
  color: #142031;
  box-shadow: 0 4px 10px rgba(93, 169, 255, 0.22);
}

.vms-date-picker-day:not(:disabled):hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  background: rgba(255, 255, 255, 0.06);
}

.vms-player-action-inline {
  min-width: 0;
  flex: 0 0 auto;
}

.vms-time-label {
  min-width: 96px;
  padding: 0 18px;
  min-height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.vms-progress-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  position: relative;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
}

.vms-flag-markers {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 24px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  transition: opacity 180ms ease;
}

.vms-flag-markers.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.vms-flag-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #46d66f;
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-58%);
  pointer-events: auto;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.vms-flag-marker:hover {
  transform: translateY(-66%);
  filter: brightness(1.08);
}

.vms-flag-marker svg {
  width: 12px;
  height: 12px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(70, 214, 111, 0.32));
}

.vms-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.16) 100%);
  outline: 0;
  cursor: pointer;
}

#vmsProgressRange {
  height: 8px;
  background: linear-gradient(90deg, #ff2d2d 0%, #ff2d2d 0%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.16) 100%);
}

#vmsProgressRange::-webkit-slider-thumb {
  background: #ff3b30;
  border: 2px solid #ffd4d1;
  box-shadow: 0 3px 10px rgba(255, 59, 48, 0.36);
}

#vmsProgressRange::-moz-range-thumb {
  background: #ff3b30;
  border: 2px solid #ffd4d1;
  box-shadow: 0 3px 10px rgba(255, 59, 48, 0.36);
}

.vms-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #9fd0ff;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(74, 153, 255, 0.3);
}

.vms-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #9fd0ff;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(74, 153, 255, 0.3);
}

#vmsVolumeRange::-webkit-slider-thumb {
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 8px rgba(8, 12, 18, 0.22);
}

#vmsVolumeRange::-moz-range-thumb {
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 8px rgba(8, 12, 18, 0.22);
}

.vms-range:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.vms-volume-stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.vms-volume-wrap {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 8px);
  width: 40px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  padding: 10px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: linear-gradient(180deg, rgba(28, 30, 34, 0.42) 0%, rgba(18, 20, 23, 0.42) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 6px 18px rgba(8, 12, 18, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.vms-volume-stack.is-open .vms-volume-wrap {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

#vmsVolumeRange {
  width: 6px;
  height: 100%;
  writing-mode: vertical-lr;
  direction: rtl;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.16) 100%);
}

.vms-speed-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.vms-speed-label {
  color: #f4f8ff;
  font-size: 12px;
  font-weight: 700;
}

.vms-speed-select {
  min-width: 74px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  outline: 0;
  cursor: pointer;
}

.vms-speed-select option {
  background: rgba(58, 62, 68, 0.96);
  color: #ffffff;
}

.vms-speed-select:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

@media (max-width: 960px) {
  body[data-page="vms-epic3"] .chatbot-view {
    grid-template-columns: 1fr;
  }

  body[data-page="vms-epic3"] .chatbot-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .vms-video-list-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .vms-video-thumb {
    width: 96px;
  }

  body[data-page="vms-epic3"] .chatbot-main {
    padding: 14px;
  }

  .vms-camera-grid {
    grid-template-columns: 1fr;
  }

  .vms-recording-grid {
    grid-template-columns: 1fr;
  }

  .vms-player-toolbar {
    inset: 6px 6px auto 6px;
  }

  .vms-player-controls {
    left: 0;
    right: 0;
    bottom: 0;
    flex-wrap: wrap;
    gap: 10px;
  }

  .vms-time-label {
    min-width: auto;
  }

  .vms-volume-stack {
    order: 10;
  }

  .vms-mode-switch {
    width: 100%;
  }

  .vms-mode-button {
    flex: 1 1 0;
  }

  .vms-empty-copy {
    font-size: 16px;
  }

  .vms-analyze-modal {
    padding: 12px;
  }

  .vms-analyze-shell {
    width: 100%;
    height: calc(100vh - 24px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.35fr) minmax(360px, 1fr);
  }

  .vms-analyze-main {
    overflow-y: auto;
  }

  .vms-analyze-video-panel {
    flex-basis: 40%;
    min-height: 220px;
  }

  .vms-analyze-summary-panel {
    min-height: 320px;
    padding: 22px 18px 18px;
  }

  .vms-analyze-side {
    border-left: 0;
    border-top: 1px solid rgba(203, 213, 225, 0.7);
  }

  .vms-analyze-topbar {
    padding: 14px;
  }

  .vms-analyze-panel[data-analyze-panel="transcript"],
  .vms-analyze-panel[data-analyze-panel="ask-ai"] {
    padding: 16px 14px 14px;
  }

  .vms-analyze-panel[data-analyze-panel="ask-ai"] {
    padding: 0;
  }
}
