/*
  Shared Studio shell and structural component styles.
  Futurism theme overrides and themed page styling belong in futurism.css.
*/

:root {
  --bg-1: #040817;
  --bg-2: #120d31;
  --panel: rgba(15, 21, 56, 0.78);
  --panel-strong: rgba(19, 25, 68, 0.88);
  --border: rgba(133, 153, 255, 0.22);
  --text: #f6f3ff;
  --muted: #b6b2d8;
  --indigo: #5f7cff;
  --cyan: #4ec7ff;
  --emerald: #4edc9b;
  --amber: #ffb34d;
  --rose: #ff6f9a;
  --slate: #6f78a8;
  --shadow: 0 24px 60px rgba(2, 6, 22, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

input[type="search"] {
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

input[type="search"]:focus {
  outline: none;
  border-color: rgba(95, 124, 255, 0.34);
  background: rgba(18, 24, 58, 0.92);
  will-change: box-shadow, border-color, filter;
  box-shadow:
    0 0 0 1px rgba(95, 124, 255, 0.14),
    0 0 20px rgba(78, 199, 255, 0.12),
    0 0 34px rgba(95, 124, 255, 0.18),
    0 12px 28px rgba(2, 6, 22, 0.2);
  animation: search-input-aura 4.6s ease-in-out infinite;
}

.dashboard-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 18%, rgba(180, 95, 255, 0.28), transparent 28%),
    radial-gradient(circle at 20% 74%, rgba(48, 109, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #060a1c 0%, #060916 38%, #120927 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(109, 127, 255, 0.2);
  background: rgba(7, 10, 26, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(2, 6, 22, 0.18);
}

.topbar-start {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.nav-toggle,
.sidebar-close {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(120, 144, 255, 0.22);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(20, 26, 64, 0.96), rgba(9, 12, 34, 0.96));
  box-shadow:
    0 18px 34px rgba(2, 6, 22, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -10px 20px rgba(3, 6, 18, 0.24);
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease, width 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--text);
  border-color: rgba(120, 144, 255, 0.34);
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 22px 42px rgba(2, 6, 22, 0.38),
    0 0 0 1px rgba(95, 124, 255, 0.12),
    0 0 28px rgba(95, 124, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-toggle[aria-expanded="true"] {
  color: var(--text);
  border-color: rgba(120, 144, 255, 0.36);
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(34, 44, 98, 0.96), rgba(12, 17, 44, 0.98));
  box-shadow:
    0 24px 46px rgba(2, 6, 22, 0.4),
    0 0 0 1px rgba(95, 124, 255, 0.18),
    0 0 36px rgba(95, 124, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sidebar-close {
  display: none;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 165;
  background:
    radial-gradient(circle at 120px 110px, rgba(95, 124, 255, 0.18), transparent 22%),
    rgba(4, 8, 23, 0.48);
  backdrop-filter: blur(8px);
}

.nav-overlay[hidden] {
  display: none;
}

.subnav-ribbon {
  position: sticky;
  top: 72px;
  z-index: 150;
  display: flex;
  justify-content: center;
  padding: 0 28px;
  margin-top: -10px;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
  transform-origin: top center;
}

.subnav {
  position: relative;
  max-width: max-content;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px 12px;
  border: 1px solid rgba(109, 127, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(14, 18, 45, 0.96), rgba(9, 13, 34, 0.92));
  box-shadow:
    0 16px 34px rgba(2, 6, 22, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transform-origin: top center;
}

html.subnav-animate .subnav-ribbon {
  animation: subnav-ribbon-expand 420ms cubic-bezier(0.2, 0.9, 0.24, 1);
}

html.subnav-animate .subnav {
  animation: subnav-island-expand 500ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.subnav::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% - 2px);
  transform: translateX(-50%);
  width: clamp(120px, 22vw, 220px);
  height: 18px;
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(180deg, rgba(18, 22, 52, 0.84), rgba(18, 22, 52, 0.08));
  opacity: 0.9;
  filter: blur(0.4px);
  pointer-events: none;
}

.subnav::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  width: clamp(64px, 12vw, 108px);
  height: 28px;
  background:
    radial-gradient(circle at 50% 100%, rgba(95, 124, 255, 0.18), transparent 68%);
  opacity: 0.8;
  pointer-events: none;
}

.subnav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
}

.subnav-link:hover,
.subnav-link:focus-visible {
  color: var(--text);
  border-color: rgba(95, 124, 255, 0.24);
}

.subnav-link.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(83, 113, 255, 0.18), rgba(83, 113, 255, 0.06));
  border-color: rgba(95, 124, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(95, 124, 255, 0.08),
    0 10px 24px rgba(39, 56, 136, 0.18);
}

.subnav-link.active::before,
.subnav-link.active::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  pointer-events: none;
}

.subnav-link.active::before {
  background:
    radial-gradient(circle at 20% 50%, rgba(78, 199, 255, 0.3), transparent 36%),
    radial-gradient(circle at 78% 46%, rgba(95, 124, 255, 0.38), transparent 38%),
    radial-gradient(circle at 54% 84%, rgba(88, 219, 199, 0.24), transparent 42%);
  filter: blur(14px);
  opacity: 1;
  animation:
    aura-cloud-orbit 6.8s ease-in-out infinite,
    aura-cloud-pulse 2.6s ease-in-out infinite;
}

.subnav-link.active::after {
  inset: -2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  opacity: 0.7;
}

.section-insights .subnav,
.section-admin .subnav,
.section-devices .subnav,
.section-projects .subnav,
.section-reports .subnav {
  justify-content: center;
  max-width: max-content;
  gap: 8px;
  padding: 10px 16px 12px;
}

.section-insights .subnav-ribbon,
.section-admin .subnav-ribbon,
.section-devices .subnav-ribbon,
.section-projects .subnav-ribbon,
.section-reports .subnav-ribbon {
  margin-top: -12px;
}

@keyframes subnav-ribbon-expand {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subnav-island-expand {
  0% {
    opacity: 0;
    transform: translateY(-10px) scaleX(0.72) scaleY(0.58);
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleX(1) scaleY(1);
  }
}

.section-insights .subnav-link,
.section-admin .subnav-link,
.section-devices .subnav-link,
.section-projects .subnav-link,
.section-reports .subnav-link {
  padding: 7px 12px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.06);
}

.section-insights .subnav-link:hover,
.section-insights .subnav-link:focus-visible,
.section-admin .subnav-link:hover,
.section-admin .subnav-link:focus-visible,
.section-devices .subnav-link:hover,
.section-devices .subnav-link:focus-visible,
.section-projects .subnav-link:hover,
.section-projects .subnav-link:focus-visible,
.section-reports .subnav-link:hover,
.section-reports .subnav-link:focus-visible {
  border-color: rgba(88, 219, 199, 0.3);
}

.section-insights .subnav-link.active,
.section-admin .subnav-link.active,
.section-devices .subnav-link.active,
.section-projects .subnav-link.active,
.section-reports .subnav-link.active {
  background: linear-gradient(180deg, rgba(88, 219, 199, 0.22), rgba(88, 219, 199, 0.08));
  border-color: rgba(88, 219, 199, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(88, 219, 199, 0.08),
    0 10px 24px rgba(18, 98, 98, 0.18);
}

.section-insights .subnav-link.active::before,
.section-admin .subnav-link.active::before,
.section-devices .subnav-link.active::before,
.section-projects .subnav-link.active::before,
.section-reports .subnav-link.active::before {
  background:
    radial-gradient(circle at 24% 50%, rgba(88, 219, 199, 0.34), transparent 36%),
    radial-gradient(circle at 78% 48%, rgba(78, 199, 255, 0.28), transparent 40%),
    radial-gradient(circle at 56% 84%, rgba(95, 124, 255, 0.2), transparent 42%);
}

.brand {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav,
.toolbar,
.hero-actions,
.badge-row,
.tab-row,
.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a,
.toolbar a {
  color: var(--muted);
}

.toolbar {
  flex-wrap: nowrap;
  min-width: 0;
  justify-self: end;
  justify-content: flex-end;
}

.toolbar-popover {
  position: relative;
  flex: 0 0 auto;
}

.toolbar-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: min(340px, calc(100vw - 32px));
  height: 14px;
}

.toolbar-popover-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.92rem;
}

.toolbar-popover-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.toolbar-popover-trigger-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.toolbar-popover-trigger-unread .toolbar-popover-trigger-icon {
  color: #d4af37;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.28);
}

.toolbar-popover-trigger-unread .toolbar-popover-trigger-icon svg path:first-child {
  fill: currentColor;
}

.toolbar-popover-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: min(340px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(78, 199, 255, 0.24);
  background:
    radial-gradient(circle at top right, rgba(78, 199, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(12, 30, 58, 0.98), rgba(9, 16, 40, 0.98));
  color: var(--text);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(78, 199, 255, 0.08);
  backdrop-filter: blur(20px);
  z-index: 40;
}

.toolbar-popover-panel[hidden] {
  display: none;
}

.toolbar-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.toolbar-popover-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-popover-mark-read {
  min-width: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(78, 199, 255, 0.18);
  background: rgba(78, 199, 255, 0.08);
  color: #a9e7ff;
  font-size: 0.82rem;
  cursor: pointer;
}

.toolbar-popover-close {
  min-width: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
}

.toolbar-popover-list {
  display: grid;
  gap: 8px;
}

.toolbar-notification-item,
.toolbar-notification-empty {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(78, 199, 255, 0.06);
  border: 1px solid rgba(78, 199, 255, 0.08);
  color: var(--text);
}

.toolbar-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar-notification-item-unread {
  border-color: rgba(91, 144, 255, 0.28);
  background: linear-gradient(180deg, rgba(91, 144, 255, 0.1), rgba(78, 199, 255, 0.06));
}

.toolbar-notification-item span,
.toolbar-notification-item small,
.toolbar-notification-empty span {
  color: var(--muted);
}

.toolbar-notification-item strong,
.toolbar-notification-empty strong {
  color: var(--text);
}

.notification-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  border: 1.5px solid rgba(169, 191, 214, 0.85);
  background: transparent;
}

.notification-status-dot-unread {
  border-color: #4ec7ff;
  background: #4ec7ff;
  box-shadow: 0 0 0 3px rgba(78, 199, 255, 0.16);
}

.toolbar-popover-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(78, 199, 255, 0.14);
  color: #a9e7ff;
}

.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
  transition: flex-basis 220ms ease, transform 220ms ease;
}

.topbar-search:focus-within {
  flex-basis: min(420px, 34vw);
}

.topbar-search input {
  width: clamp(150px, 15vw, 180px);
  min-width: 0;
  padding: 9px 12px 9px 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition:
    width 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.topbar-search-icon {
  position: absolute;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.topbar-search-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.topbar-search:focus-within input {
  width: min(420px, 34vw);
  border-color: rgba(95, 124, 255, 0.34);
  background: rgba(18, 24, 58, 0.92);
  box-shadow:
    0 0 0 1px rgba(95, 124, 255, 0.14),
    0 12px 28px rgba(2, 6, 22, 0.2);
}

.topbar-search::before,
.topbar-search::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.topbar-search::before {
  inset: -8px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 50%, rgba(88, 219, 199, 0.28), transparent 34%),
    radial-gradient(circle at 76% 48%, rgba(95, 124, 255, 0.34), transparent 36%),
    radial-gradient(circle at 54% 82%, rgba(78, 199, 255, 0.22), transparent 40%);
  filter: blur(14px);
}

.topbar-search::after {
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.topbar-search:focus-within::before,
.topbar-search:focus-within::after {
  opacity: 1;
}

.topbar-search:focus-within::before {
  animation:
    aura-cloud-orbit 5.6s ease-in-out infinite,
    aura-cloud-pulse 2.2s ease-in-out infinite;
}

.topbar-search input::placeholder {
  color: var(--muted);
}

@keyframes aura-cloud-orbit {
  0% {
    transform: translate(0, 0) scale(0.96) rotate(0deg);
  }
  25% {
    transform: translate(4px, -2px) scale(1.03) rotate(0.6deg);
  }
  50% {
    transform: translate(1px, 3px) scale(1) rotate(0deg);
  }
  75% {
    transform: translate(-4px, -1px) scale(1.04) rotate(-0.6deg);
  }
  100% {
    transform: translate(0, 0) scale(0.98) rotate(0deg);
  }
}

@keyframes aura-cloud-pulse {
  0% {
    opacity: 0.72;
    filter: blur(12px);
  }
  50% {
    opacity: 1;
    filter: blur(16px);
  }
  100% {
    opacity: 0.82;
    filter: blur(13px);
  }
}

@keyframes aura-cloud-orbit-centered {
  0% {
    transform: translateX(-50%) translate(0, 0) scale(0.96) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) translate(4px, -2px) scale(1.03) rotate(0.6deg);
  }
  50% {
    transform: translateX(-50%) translate(1px, 3px) scale(1) rotate(0deg);
  }
  75% {
    transform: translateX(-50%) translate(-4px, -1px) scale(1.04) rotate(-0.6deg);
  }
  100% {
    transform: translateX(-50%) translate(0, 0) scale(0.98) rotate(0deg);
  }
}

@keyframes aura-cloud-pulse-centered {
  0% {
    opacity: 0.72;
    filter: blur(11px);
  }
  50% {
    opacity: 1;
    filter: blur(15px);
  }
  100% {
    opacity: 0.82;
    filter: blur(12px);
  }
}

@keyframes search-input-aura {
  0% {
    border-color: rgba(95, 124, 255, 0.24);
    filter: saturate(0.98);
    box-shadow:
      0 0 0 1px rgba(95, 124, 255, 0.12),
      0 0 10px rgba(78, 199, 255, 0.07),
      0 0 20px rgba(95, 124, 255, 0.11),
      0 12px 28px rgba(2, 6, 22, 0.18);
  }
  50% {
    border-color: rgba(88, 219, 199, 0.28);
    filter: saturate(1.03);
    box-shadow:
      0 0 0 1px rgba(88, 219, 199, 0.16),
      0 0 14px rgba(88, 219, 199, 0.1),
      0 0 26px rgba(78, 199, 255, 0.13),
      0 0 36px rgba(95, 124, 255, 0.16),
      0 13px 30px rgba(2, 6, 22, 0.22);
  }
  100% {
    border-color: rgba(95, 124, 255, 0.24);
    filter: saturate(0.98);
    box-shadow:
      0 0 0 1px rgba(95, 124, 255, 0.12),
      0 0 10px rgba(78, 199, 255, 0.07),
      0 0 20px rgba(95, 124, 255, 0.11),
      0 12px 28px rgba(2, 6, 22, 0.18);
  }
}

@keyframes search-shell-aura {
  0% {
    border-color: rgba(95, 124, 255, 0.26);
    filter: saturate(0.98);
    box-shadow:
      0 0 0 1px rgba(95, 124, 255, 0.12),
      0 0 12px rgba(88, 219, 199, 0.08),
      0 0 22px rgba(78, 199, 255, 0.1),
      0 0 30px rgba(95, 124, 255, 0.12),
      0 12px 28px rgba(7, 10, 26, 0.36);
  }
  50% {
    border-color: rgba(88, 219, 199, 0.32);
    filter: saturate(1.03);
    box-shadow:
      0 0 0 1px rgba(88, 219, 199, 0.16),
      0 0 18px rgba(88, 219, 199, 0.12),
      0 0 28px rgba(78, 199, 255, 0.14),
      0 0 40px rgba(95, 124, 255, 0.18),
      0 13px 30px rgba(7, 10, 26, 0.4);
  }
  100% {
    border-color: rgba(95, 124, 255, 0.26);
    filter: saturate(0.98);
    box-shadow:
      0 0 0 1px rgba(95, 124, 255, 0.12),
      0 0 12px rgba(88, 219, 199, 0.08),
      0 0 22px rgba(78, 199, 255, 0.1),
      0 0 30px rgba(95, 124, 255, 0.12),
      0 12px 28px rgba(7, 10, 26, 0.36);
  }
}

.profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.account-menu-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.account-menu-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.account-menu {
  position: relative;
  flex: 0 0 auto;
}

.account-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 180px;
  height: 14px;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 160px;
  display: none;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(78, 199, 255, 0.24);
  background:
    radial-gradient(circle at top right, rgba(78, 199, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(12, 30, 58, 0.98), rgba(9, 16, 40, 0.98));
  color: var(--text);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(78, 199, 255, 0.08);
  backdrop-filter: blur(20px);
  z-index: 120;
}

.account-menu:hover .account-menu-panel,
.account-menu:focus-within .account-menu-panel {
  display: grid;
  gap: 6px;
}

.account-menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(78, 199, 255, 0.06);
  border: 1px solid rgba(78, 199, 255, 0.08);
}

.account-menu-panel a:hover,
.account-menu-panel a:focus-visible {
  background: rgba(78, 199, 255, 0.14);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 22px;
}

.app-shell-wide {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar,
.panel,
.hero-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.sidebar {
  position: fixed;
  top: 92px;
  left: 28px;
  height: auto;
  padding: 20px 16px;
  border-radius: 24px;
}

.studio-sidebar {
  display: grid;
  gap: 20px;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 124px);
  overflow: auto;
  z-index: 170;
  border-color: rgba(120, 144, 255, 0.18);
  background:
    radial-gradient(circle at top left, rgba(95, 124, 255, 0.22), transparent 38%),
    radial-gradient(circle at 80% 18%, rgba(78, 199, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(17, 23, 58, 0.96), rgba(9, 13, 34, 0.94));
  box-shadow:
    0 30px 70px rgba(2, 6, 22, 0.42),
    0 0 0 1px rgba(95, 124, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-origin: 32px 26px;
  transform: translateY(-18px) scale(0.54);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 260ms cubic-bezier(0.2, 0.88, 0.22, 1),
    opacity 220ms ease;
}

.studio-sidebar::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 22px;
  width: 64px;
  height: 24px;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(95, 124, 255, 0.26), transparent 68%);
  opacity: 0.9;
  pointer-events: none;
}

body.nav-drawer-open .studio-sidebar {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-title,
.library-meta,
.breadcrumbs,
.filter-chip,
.status-pill,
.metric-label,
.panel small {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.sidebar-subtitle,
.sidebar-section-label {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.sidebar-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
}

.sidebar-nav-primary {
  gap: 10px;
}

.sidebar-nav-item {
  display: grid;
  gap: 10px;
}

.sidebar-nav-primary > .sidebar-nav-item > a {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(14, 18, 45, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.sidebar-nav-primary > .sidebar-nav-item > a:hover,
.sidebar-nav-primary > .sidebar-nav-item > a:focus-visible {
  color: var(--text);
  transform: translateX(4px);
  border-color: rgba(120, 144, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
    rgba(18, 24, 58, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 28px rgba(9, 16, 48, 0.18);
}

.sidebar-nav-primary > .sidebar-nav-item > a.active {
  border-color: rgba(116, 147, 255, 0.3);
  background:
    radial-gradient(circle at left center, rgba(78, 199, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(95, 124, 255, 0.22), rgba(95, 124, 255, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(9, 16, 48, 0.24);
}

.sidebar-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #c8d0ff;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-link-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.sidebar-nav-primary > .sidebar-nav-item > a.active .sidebar-link-icon {
  color: #eef3ff;
  background: linear-gradient(180deg, rgba(123, 150, 255, 0.36), rgba(90, 118, 232, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(49, 72, 172, 0.24);
}

.sidebar-link-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sidebar-link-label {
  white-space: nowrap;
  font-size: 0.98rem;
}

.sidebar-link-meta {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-quick-links {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
  padding-left: 16px;
  padding-bottom: 4px;
}

.sidebar-quick-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.9rem;
}

.sidebar-quick-links a:hover,
.sidebar-quick-links a:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
}

.page-content {
  display: grid;
  gap: 18px;
}

@media (min-width: 1181px) {
  .app-shell {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
    max-width: none;
    margin: 0;
    padding: 22px 22px 22px 0;
  }

  .nav-toggle {
    display: none;
  }

  .nav-overlay {
    display: none;
  }

  .sidebar {
    position: sticky;
    top: 92px;
    left: auto;
    height: auto;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .studio-sidebar {
    width: 100%;
    max-height: calc(100vh - 124px);
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
}

.hero-panel {
  padding: 22px 24px 18px;
  border-radius: 26px;
}

.detail-title-region {
  padding: 24px 24px 22px;
  background:
    radial-gradient(circle at top right, rgba(95, 124, 255, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(24, 31, 84, 0.94), rgba(10, 15, 42, 0.92));
}

.detail-title-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-back-row {
  margin-bottom: 14px;
}

.detail-back-link {
  display: inline-flex;
}

.detail-title-copy {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.detail-title-eyebrow {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-title-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.detail-title-copy p {
  max-width: 72ch;
  margin: 0;
}

.detail-title-actions {
  flex: 0 0 auto;
  align-self: flex-start;
}

.device-detail-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 250px));
  justify-content: end;
  gap: 10px 14px;
  width: auto;
}

.detail-title-actions .device-detail-action-row + .device-detail-action-row {
  margin-top: 10px;
}

.device-detail-action-row .cta {
  width: 100%;
  min-height: 56px;
}

.detail-title-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.detail-title-stat {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.detail-title-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-title-stat strong {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.dashboard-hero {
  padding: 12px 0 12px;
  border: 0;
  border-color: rgba(120, 144, 255, 0.14);
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.dashboard-hero .hero-row {
  align-items: stretch;
  justify-content: flex-start;
}

.dashboard-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.dashboard-hero-copy {
  display: grid;
  gap: 16px;
  max-width: 880px;
}

.dashboard-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.9rem, 6vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.dashboard-hero-copy p {
  max-width: 60ch;
  margin: 0;
  color: #d1daef;
  font-size: 1.02rem;
  line-height: 1.65;
}

.dashboard-hero-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-hero .hero-actions {
  display: none;
}

.dashboard-hero-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: #98e8ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dashboard-hero-link,
.dashboard-hero-status {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(188, 202, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 14, 36, 0.54);
  box-shadow:
    0 20px 40px rgba(2, 6, 22, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.dashboard-hero-link {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  min-height: 118px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.dashboard-hero-link::before,
.dashboard-hero-status::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(127, 196, 255, 0.16), transparent 36%),
    radial-gradient(circle at bottom left, rgba(255, 188, 124, 0.12), transparent 30%);
  pointer-events: none;
}

.dashboard-hero-link strong,
.dashboard-hero-status strong {
  position: relative;
  z-index: 1;
}

.dashboard-hero-link strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.dashboard-hero-link span,
.dashboard-hero-status p {
  position: relative;
  z-index: 1;
  color: #afbad8;
  font-size: 0.9rem;
  line-height: 1.55;
}

.dashboard-hero-link:hover,
.dashboard-hero-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(140, 180, 255, 0.28);
  box-shadow:
    0 26px 46px rgba(2, 6, 22, 0.3),
    0 0 0 1px rgba(108, 140, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dashboard-hero-status {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px 22px;
}

.dashboard-hero-status-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(113, 198, 255, 0.12);
  color: #a9e9ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-hero-status strong {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.dashboard-hero-status p {
  margin: 0;
}

.dashboard-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.dashboard-hero-metric {
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(188, 202, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 14, 36, 0.54);
  box-shadow:
    0 18px 36px rgba(2, 6, 22, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.dashboard-hero-metric:hover,
.dashboard-hero-metric:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(140, 180, 255, 0.28);
  box-shadow:
    0 24px 44px rgba(2, 6, 22, 0.3),
    0 0 0 1px rgba(108, 140, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dashboard-hero-metric strong {
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  letter-spacing: -0.04em;
}

.dashboard-hero-metric span {
  color: #afbad8;
  font-size: 0.82rem;
  line-height: 1.45;
}

.dashboard-hero-metric.tone-violet {
  border-color: rgba(184, 104, 255, 0.24);
}

.dashboard-hero-metric.tone-cyan {
  border-color: rgba(101, 223, 255, 0.24);
}

.dashboard-hero-metric.tone-amber {
  border-color: rgba(255, 178, 97, 0.24);
}

.dashboard-hero-metric.tone-rose {
  border-color: rgba(255, 135, 127, 0.24);
}

.search-hero {
  padding-bottom: 10px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.search-hero .hero-row {
  flex-direction: column;
  align-items: center;
}

.search-hero .hero-actions {
  width: 100%;
  justify-content: center;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.breadcrumbs a::after {
  content: "›";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumbs a:last-child::after {
  display: none;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.hero-row h1 {
  margin: 4px 0 10px;
  font-size: clamp(2.3rem, 5vw, 3.5rem);
}

.hero-row p,
.list-card span,
.library-card p,
.feature-panel p,
.detail-list,
pre,
td,
th,
input,
select,
textarea,
button {
  color: var(--muted);
}

.hero-actions {
  justify-content: flex-end;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(560px, 100%);
}

.hero-search input {
  min-width: 320px;
}

.hero-search button {
  min-width: 100px;
}

.global-search-form {
  display: grid;
  gap: 14px;
  width: min(900px, 100%);
}

.global-search-input {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(95, 124, 255, 0.35);
  box-shadow: 0 12px 28px rgba(7, 10, 26, 0.38);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, filter 180ms ease;
}

.global-search-input:focus-within {
  border-color: rgba(95, 124, 255, 0.42);
  will-change: box-shadow, border-color, filter;
  box-shadow:
    0 0 0 1px rgba(95, 124, 255, 0.14),
    0 0 18px rgba(88, 219, 199, 0.12),
    0 0 30px rgba(78, 199, 255, 0.14),
    0 0 42px rgba(95, 124, 255, 0.18),
    0 12px 28px rgba(7, 10, 26, 0.38);
  animation: search-shell-aura 4.8s ease-in-out infinite;
}

.global-search-input input {
  border: 0;
  border-radius: 0;
  padding: 18px 20px;
  background: rgba(4, 8, 23, 0.7);
}

.global-search-input input:focus {
  box-shadow: none;
}

.global-search-input button {
  min-width: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
}

.global-search-filters,
.search-tabs,
.search-results-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-filter,
.search-filter-button,
.search-tab {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.search-filter-button {
  background: rgba(95, 124, 255, 0.18);
  color: var(--text);
}

.search-results-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.search-results-main,
.search-results-side {
  min-height: 540px;
}

.search-results-meta {
  justify-content: space-between;
  margin-bottom: 16px;
}

.search-tabs {
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 4px;
  border-bottom: 0;
}

.search-tab {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.search-tab.active {
  color: var(--text);
  box-shadow: inset 0 0 0 1px currentColor;
}

.search-tab span {
  font-weight: 700;
}

.search-tab small {
  color: inherit;
  opacity: 0.78;
  font-size: 0.76rem;
}

.search-tab.tone-indigo {
  color: #9ab1ff;
  border-color: rgba(95, 124, 255, 0.24);
  background: linear-gradient(180deg, rgba(95, 124, 255, 0.14), rgba(255, 255, 255, 0.03));
}

.search-tab.tone-emerald {
  color: #9cf0c5;
  border-color: rgba(78, 220, 155, 0.24);
  background: linear-gradient(180deg, rgba(78, 220, 155, 0.14), rgba(255, 255, 255, 0.03));
}

.search-tab.tone-cyan {
  color: #98e8ff;
  border-color: rgba(78, 199, 255, 0.24);
  background: linear-gradient(180deg, rgba(78, 199, 255, 0.14), rgba(255, 255, 255, 0.03));
}

.search-tab.tone-amber {
  color: #ffd391;
  border-color: rgba(255, 179, 77, 0.24);
  background: linear-gradient(180deg, rgba(255, 179, 77, 0.14), rgba(255, 255, 255, 0.03));
}

.search-tab.tone-rose {
  color: #ffadc5;
  border-color: rgba(255, 111, 154, 0.24);
  background: linear-gradient(180deg, rgba(255, 111, 154, 0.14), rgba(255, 255, 255, 0.03));
}

.search-tab.tone-slate {
  color: #c2c8df;
  border-color: rgba(111, 120, 168, 0.24);
  background: linear-gradient(180deg, rgba(111, 120, 168, 0.14), rgba(255, 255, 255, 0.03));
}

.search-section-title {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.search-section-title h2 {
  margin: 0;
  font-size: 1.8rem;
}

.search-card-list,
.recent-search-list {
  display: grid;
  gap: 10px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-result-card.tone-indigo {
  border-color: rgba(95, 124, 255, 0.24);
  background: linear-gradient(180deg, rgba(95, 124, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.search-result-card.tone-emerald {
  border-color: rgba(78, 220, 155, 0.24);
  background: linear-gradient(180deg, rgba(78, 220, 155, 0.11), rgba(255, 255, 255, 0.03));
}

.search-result-card.tone-cyan {
  border-color: rgba(78, 199, 255, 0.24);
  background: linear-gradient(180deg, rgba(78, 199, 255, 0.11), rgba(255, 255, 255, 0.03));
}

.search-result-card.tone-amber {
  border-color: rgba(255, 179, 77, 0.24);
  background: linear-gradient(180deg, rgba(255, 179, 77, 0.11), rgba(255, 255, 255, 0.03));
}

.search-result-card.tone-rose {
  border-color: rgba(255, 111, 154, 0.24);
  background: linear-gradient(180deg, rgba(255, 111, 154, 0.11), rgba(255, 255, 255, 0.03));
}

.search-result-card.tone-slate {
  border-color: rgba(111, 120, 168, 0.24);
  background: linear-gradient(180deg, rgba(111, 120, 168, 0.12), rgba(255, 255, 255, 0.03));
}

.search-result-empty {
  grid-template-columns: minmax(0, 1fr);
}

.search-result-icon {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 6px;
  background: linear-gradient(180deg, #8d5dff, #5370ff);
  box-shadow: 0 0 18px rgba(95, 124, 255, 0.45);
}

.search-result-card.tone-indigo .search-result-icon {
  background: linear-gradient(180deg, #8d5dff, #5370ff);
  box-shadow: 0 0 18px rgba(95, 124, 255, 0.45);
}

.search-result-card.tone-emerald .search-result-icon {
  background: linear-gradient(180deg, #7cf2c5, #2bbf7c);
  box-shadow: 0 0 18px rgba(78, 220, 155, 0.4);
}

.search-result-card.tone-cyan .search-result-icon {
  background: linear-gradient(180deg, #7ce5ff, #2e9cff);
  box-shadow: 0 0 18px rgba(78, 199, 255, 0.4);
}

.search-result-card.tone-amber .search-result-icon {
  background: linear-gradient(180deg, #ffd084, #ff9e3d);
  box-shadow: 0 0 18px rgba(255, 179, 77, 0.38);
}

.search-result-card.tone-rose .search-result-icon {
  background: linear-gradient(180deg, #ff9cc1, #ff5f91);
  box-shadow: 0 0 18px rgba(255, 111, 154, 0.4);
}

.search-result-card.tone-slate .search-result-icon {
  background: linear-gradient(180deg, #b8bfd9, #6f78a8);
  box-shadow: 0 0 18px rgba(111, 120, 168, 0.35);
}

.search-result-body {
  display: grid;
  gap: 6px;
}

.search-result-subtitle,
.search-result-snippet,
.recent-search-list a {
  color: var(--muted);
}

.search-result-action {
  color: var(--text);
  white-space: nowrap;
}

.recent-search-list a {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


.cta,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.cta.primary,
button {
  background: linear-gradient(180deg, #1e56ff, #1438bb);
}

.cta.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.tab-row {
  margin-top: 18px;
  padding-top: 6px;
}

.tab-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--muted);
}

.dashboard-actions {
  display: none;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.dashboard-grid .panel {
  padding: 14px;
  min-width: 0;
}

.dashboard-grid .panel-head {
  margin-bottom: 10px;
}

.dashboard-grid .panel-head h2 {
  font-size: 1.2rem;
}

.dashboard-grid .panel-head a,
.dashboard-grid .panel-foot-link {
  font-size: 0.86rem;
}

.dashboard-grid .stack-list,
.dashboard-grid .insight-summary-list,
.dashboard-grid .session-summary-list {
  gap: 8px;
}

.dashboard-grid .list-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
}

.dashboard-grid .list-card strong,
.dashboard-grid .insight-summary-copy strong,
.dashboard-grid .session-summary-copy strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.2;
}

.dashboard-grid .list-card span,
.dashboard-grid .insight-summary-copy span,
.dashboard-grid .session-summary-copy span,
.dashboard-grid .list-card small,
.dashboard-grid .insight-summary-head small,
.dashboard-grid .session-summary-head small,
.dashboard-grid .insight-summary-card p {
  font-size: 0.8rem;
  line-height: 1.35;
}

.dashboard-grid .list-card span,
.dashboard-grid .insight-summary-copy span,
.dashboard-grid .session-summary-copy span,
.dashboard-grid .insight-summary-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dashboard-grid .insight-summary-card,
.dashboard-grid .session-summary-card {
  gap: 10px;
  padding: 12px;
}

.dashboard-grid .insight-summary-head,
.dashboard-grid .session-summary-head {
  gap: 10px;
}

.dashboard-grid .insight-summary-ring {
  width: 46px;
  height: 46px;
}

.dashboard-grid .insight-summary-ring span {
  font-size: 0.8rem;
}

.dashboard-grid .session-summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.dashboard-grid .session-summary-dot {
  width: 14px;
  height: 14px;
}

.dashboard-grid .insight-summary-graph,
.dashboard-grid .session-summary-graph {
  height: 52px;
  gap: 6px;
  padding: 8px 8px 6px;
}

.dashboard-grid .insight-summary-metrics,
.dashboard-grid .session-summary-metrics,
.dashboard-grid .session-summary-meta {
  gap: 6px;
}

.dashboard-grid .insight-summary-metrics span,
.dashboard-grid .session-summary-metrics span,
.dashboard-grid .session-summary-meta span {
  padding: 5px 8px;
  font-size: 0.72rem;
}

.dashboard-home-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  position: relative;
}

.dashboard-home-grid::before {
  content: "";
  position: absolute;
  inset: -14px -8px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 174, 255, 0.28), rgba(255, 202, 135, 0.22), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.dashboard-focus-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(198, 205, 255, 0.14);
  background:
    radial-gradient(circle at 82% 8%, rgba(215, 180, 255, 0.16), transparent 26%),
    radial-gradient(circle at 12% 100%, rgba(250, 160, 123, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(29, 24, 52, 0.92), rgba(18, 17, 34, 0.96));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(136, 151, 255, 0.08);
  backdrop-filter: blur(22px);
}

.dashboard-focus-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(220, 226, 255, 0.12);
}

.dashboard-focus-head h2 {
  font-size: clamp(1.35rem, 1.6vw, 1.7rem);
  letter-spacing: -0.03em;
}

.dashboard-focus-head a {
  color: #7fa0ff;
  font-weight: 700;
}

.dashboard-comment-card {
  border-color: rgba(255, 171, 203, 0.14);
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 168, 204, 0.13), transparent 26%),
    radial-gradient(circle at 8% 88%, rgba(255, 197, 145, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(40, 24, 48, 0.92), rgba(18, 17, 34, 0.96));
}

.dashboard-card {
  background:
    radial-gradient(circle at top right, rgba(178, 88, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(48, 22, 93, 0.94), rgba(28, 14, 60, 0.92));
}

.dashboard-command-card {
  grid-column: span 8;
  min-height: 470px;
  border-color: rgba(124, 146, 255, 0.16);
  background:
    radial-gradient(circle at 84% 18%, rgba(141, 174, 255, 0.16), transparent 24%),
    radial-gradient(circle at 8% 92%, rgba(116, 149, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(28, 30, 62, 0.92), rgba(18, 17, 34, 0.96));
}

.dashboard-attention-card {
  grid-column: span 4;
  min-height: 470px;
}

.dashboard-session-card {
  border-color: rgba(102, 226, 183, 0.14);
  background:
    radial-gradient(circle at top right, rgba(92, 228, 172, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(20, 54, 59, 0.92), rgba(16, 22, 44, 0.94));
  grid-column: span 7;
  min-height: 420px;
}

.dashboard-report-card {
  border-color: rgba(255, 189, 120, 0.14);
  background:
    radial-gradient(circle at top right, rgba(255, 184, 107, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(58, 34, 28, 0.92), rgba(25, 18, 41, 0.94));
  grid-column: span 5;
  min-height: 420px;
}

.dashboard-overview-body,
.dashboard-overview-metrics,
.dashboard-project-grid,
.dashboard-study-list,
.dashboard-session-list,
.dashboard-report-list,
.dashboard-comment-list {
  display: grid;
  gap: 14px;
}

.dashboard-command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.dashboard-command-section {
  display: grid;
  align-content: start;
  gap: 14px;
}

.dashboard-command-section-head,
.dashboard-home-grid .panel-head > div {
  display: grid;
  gap: 4px;
}

.dashboard-command-section-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.dashboard-command-section-head h3 {
  margin: 0;
  font-size: 1rem;
}

.dashboard-command-section-head a,
.dashboard-section-intro {
  color: var(--muted);
}

.dashboard-section-intro {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.dashboard-overview-list {
  display: grid;
  gap: 0;
  margin-top: 6px;
}

.dashboard-overview-item {
  display: block;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(220, 226, 255, 0.12);
  transition: transform 160ms ease, background 160ms ease;
}

.dashboard-overview-item:first-child {
  padding-top: 10px;
}

.dashboard-overview-item:last-child {
  border-bottom: 0;
  padding-bottom: 6px;
}

.dashboard-overview-item:hover,
.dashboard-overview-item:focus-visible {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-overview-item-main {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
}

.dashboard-overview-item strong {
  font-size: clamp(1.55rem, 2.1vw, 1.95rem);
  line-height: 1;
}

.dashboard-overview-item span:last-child {
  color: #d4cce9;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
}

.dashboard-overview-icon {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: 0 0 30px;
}

.dashboard-overview-icon::before,
.dashboard-overview-icon::after {
  content: "";
  position: absolute;
}

.dashboard-overview-item.tone-violet .dashboard-overview-icon {
  background: linear-gradient(180deg, rgba(167, 99, 255, 0.28), rgba(128, 61, 226, 0.18));
  color: #b868ff;
  box-shadow: inset 0 0 0 1px rgba(184, 104, 255, 0.28);
}

.dashboard-overview-item.tone-cyan .dashboard-overview-icon {
  background: linear-gradient(180deg, rgba(91, 218, 255, 0.24), rgba(46, 173, 208, 0.16));
  color: #65dfff;
  box-shadow: inset 0 0 0 1px rgba(101, 223, 255, 0.26);
}

.dashboard-overview-item.tone-amber .dashboard-overview-icon {
  background: linear-gradient(180deg, rgba(255, 193, 102, 0.24), rgba(210, 114, 44, 0.16));
  color: #ffb261;
  box-shadow: inset 0 0 0 1px rgba(255, 178, 97, 0.26);
}

.dashboard-overview-item.tone-rose .dashboard-overview-icon {
  background: linear-gradient(180deg, rgba(255, 124, 124, 0.22), rgba(255, 89, 126, 0.16));
  color: #ff877f;
  box-shadow: inset 0 0 0 1px rgba(255, 135, 127, 0.26);
}

.dashboard-overview-icon.icon-projects::before {
  left: 5px;
  right: 5px;
  top: 10px;
  bottom: 7px;
  border-radius: 4px;
  background: currentColor;
}

.dashboard-overview-icon.icon-projects::after {
  left: 6px;
  top: 7px;
  width: 11px;
  height: 6px;
  border-radius: 3px 3px 0 0;
  background: currentColor;
}

.dashboard-overview-icon.icon-studies::before {
  left: 8px;
  right: 8px;
  top: 6px;
  bottom: 6px;
  border: 3px solid currentColor;
  border-top-width: 2px;
  border-radius: 4px 4px 8px 8px;
}

.dashboard-overview-icon.icon-studies::after {
  left: 11px;
  right: 11px;
  top: 3px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.dashboard-overview-icon.icon-reports::before {
  left: 8px;
  right: 8px;
  top: 5px;
  bottom: 5px;
  border-radius: 4px;
  border: 2px solid currentColor;
}

.dashboard-overview-icon.icon-reports::after {
  left: 11px;
  top: 11px;
  width: 8px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.dashboard-overview-icon.icon-issues::before {
  left: 7px;
  top: 5px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 18px solid currentColor;
}

.dashboard-overview-icon.icon-issues::after {
  left: 14px;
  top: 10px;
  width: 2px;
  height: 6px;
  background: rgba(22, 12, 28, 0.92);
  box-shadow: 0 9px 0 rgba(22, 12, 28, 0.92);
}

.dashboard-project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-project-tile,
.dashboard-session-item,
.dashboard-report-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.dashboard-project-copy,
.dashboard-study-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-project-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-project-tile:hover,
.dashboard-project-tile:focus-visible,
.dashboard-session-item:hover,
.dashboard-session-item:focus-visible,
.dashboard-report-item:hover,
.dashboard-report-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(171, 196, 255, 0.18);
  box-shadow:
    0 18px 34px rgba(2, 6, 22, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-project-art,
.dashboard-report-art {
  height: 76px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 225, 164, 0.35), transparent 24%),
    linear-gradient(135deg, rgba(104, 62, 178, 0.88), rgba(42, 30, 102, 0.92));
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.dashboard-project-bars,
.dashboard-report-bars,
.dashboard-session-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 100%;
  padding: 12px 10px 8px;
}

.dashboard-project-bars span,
.dashboard-report-bars span,
.dashboard-session-bars span {
  flex: 1;
  min-height: 8px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(196, 255, 167, 0.95), rgba(76, 118, 255, 0.88));
}

.dashboard-project-tile strong,
.dashboard-study-item strong,
.dashboard-session-copy strong,
.dashboard-report-copy strong,
.dashboard-comment-copy strong {
  font-size: 1rem;
}

.dashboard-project-meta,
.dashboard-session-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.dashboard-project-meta span,
.dashboard-session-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-project-tile small,
.dashboard-study-item span,
.dashboard-report-copy span,
.dashboard-report-copy small,
.dashboard-comment-copy span,
.dashboard-comment-item small {
  color: var(--muted);
}

.dashboard-study-item,
.dashboard-comment-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-study-item,
.dashboard-comment-item {
  transition: transform 180ms ease, color 180ms ease;
}

.dashboard-study-item:last-child,
.dashboard-comment-item:last-child {
  border-bottom: 0;
}

.dashboard-study-item:hover,
.dashboard-study-item:focus-visible,
.dashboard-comment-item:hover,
.dashboard-comment-item:focus-visible {
  transform: translateX(4px);
}

.dashboard-focus-card .dashboard-comment-list {
  gap: 0;
  margin-top: 8px;
}

.dashboard-focus-card .dashboard-comment-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px 2px;
  border-bottom: 1px solid rgba(220, 226, 255, 0.12);
}

.dashboard-focus-card .dashboard-comment-item small {
  align-self: center;
  color: #d7d0ea;
  font-size: 1.5rem;
  line-height: 1;
}

.dashboard-focus-card .dashboard-comment-copy strong {
  font-size: clamp(0.96rem, 1.05vw, 1.12rem);
  color: #ece7ff;
}

.dashboard-focus-card .dashboard-comment-copy span {
  color: #847da7;
  font-size: 0.88rem;
}

.dashboard-comment-empty {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 220px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(255, 168, 204, 0.09), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

.dashboard-comment-empty strong {
  font-size: 1rem;
}

.dashboard-comment-empty span {
  color: #b0a7ca;
  line-height: 1.55;
}

.dashboard-study-dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: currentColor;
}

.dashboard-study-dot.tone-emerald { color: #6de5a6; }
.dashboard-study-dot.tone-amber { color: #ffbf54; }
.dashboard-study-dot.tone-cyan { color: #63d8ff; }

.dashboard-study-item small {
  font-size: 1.1rem;
  color: var(--text);
}

.dashboard-session-copy,
.dashboard-report-copy,
.dashboard-comment-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dashboard-session-bars {
  height: 38px;
  padding: 0;
}

.dashboard-report-item {
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
}

.dashboard-report-art {
  height: 64px;
}

.project-summary-banner,
.project-banner-preview {
  width: 100%;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-summary-banner {
  height: 180px;
  margin-bottom: 14px;
}

.project-banner-preview {
  height: 148px;
  margin-bottom: 10px;
}

.metrics-grid,
.forms-grid,
.card-grid {
  display: grid;
  gap: 18px;
}

.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metrics-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.forms-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.project-overview-grid,
.project-overview-stats {
  display: grid;
  gap: 18px;
}

.project-overview-grid {
  grid-template-columns: 320px minmax(0, 1fr);
}

.project-overview-summary-grid {
  grid-template-columns: minmax(0, 1fr);
}

.project-overview-stats {
  grid-template-columns: 1.1fr 1.1fr 1fr;
}

.main-column,
.side-column,
.stack-list {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 18px;
  border-radius: 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.55rem;
}

.metric-card .metric-value {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
}

.metric-card .sparkline,
.mini-lines {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 18px 0 10px;
}

.sparkline span,
.mini-lines span {
  display: block;
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(95, 124, 255, 0.8));
}

.sparkline span:nth-child(2) { height: 18px; }
.sparkline span:nth-child(3) { height: 26px; }
.sparkline span:nth-child(4) { height: 20px; }
.sparkline span:nth-child(5) { height: 30px; }

.sparkline-trend span:nth-child(1) {
  height: 18px;
  background: linear-gradient(90deg, rgba(95, 124, 255, 0.62), rgba(255, 111, 154, 0.82));
}

.sparkline-trend span:nth-child(2) {
  height: 26px;
  background: linear-gradient(90deg, rgba(78, 220, 155, 0.62), rgba(255, 179, 77, 0.82));
}

.sparkline-trend span:nth-child(3) {
  height: 20px;
  background: linear-gradient(90deg, rgba(255, 111, 154, 0.62), rgba(95, 124, 255, 0.82));
}

.sparkline-trend span:nth-child(4) {
  height: 24px;
  background: linear-gradient(90deg, rgba(255, 179, 77, 0.62), rgba(95, 124, 255, 0.82));
}

.sparkline-trend span:nth-child(5) {
  height: 22px;
  background: linear-gradient(90deg, rgba(78, 199, 255, 0.62), rgba(255, 111, 154, 0.82));
}

.tone-indigo { box-shadow: inset 0 0 0 1px rgba(95, 124, 255, 0.16); }
.tone-cyan { box-shadow: inset 0 0 0 1px rgba(78, 199, 255, 0.16); }
.tone-emerald { box-shadow: inset 0 0 0 1px rgba(78, 220, 155, 0.16); }
.tone-amber { box-shadow: inset 0 0 0 1px rgba(255, 179, 77, 0.16); }
.tone-rose { box-shadow: inset 0 0 0 1px rgba(255, 111, 154, 0.16); }
.tone-slate { box-shadow: inset 0 0 0 1px rgba(111, 120, 168, 0.18); }

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.stack-list {
  gap: 10px;
}

.insight-summary-list {
  display: grid;
  gap: 12px;
}

.insight-summary-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.insight-summary-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.insight-summary-ring {
  --metric-progress: 54;
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(8, 12, 31, 1) 56%, transparent 58%),
    conic-gradient(from -90deg, rgba(78, 220, 155, 0.95) calc(var(--metric-progress) * 1%), rgba(255, 255, 255, 0.08) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 30px rgba(4, 8, 24, 0.34);
}

.insight-summary-ring span {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.insight-summary-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.insight-summary-copy strong {
  font-size: 1rem;
}

.insight-summary-copy span,
.insight-summary-card p,
.insight-summary-head small {
  color: var(--muted);
}

.insight-summary-head small {
  white-space: nowrap;
}

.insight-summary-graph {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 76px;
  padding: 12px 10px 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(6, 10, 28, 0.62), rgba(22, 30, 69, 0.38));
}

.insight-summary-graph span {
  display: block;
  flex: 1;
  min-height: 14px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(164, 255, 203, 0.96), rgba(79, 129, 255, 0.88));
  box-shadow: 0 0 18px rgba(95, 124, 255, 0.22);
}

.insight-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.insight-summary-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.insight-summary-metrics strong {
  color: var(--text);
  font-size: 0.86rem;
}

.insight-summary-card p {
  margin: 0;
  line-height: 1.45;
}

.session-summary-list {
  display: grid;
  gap: 12px;
}

.session-summary-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(95, 124, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.session-summary-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.session-summary-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(23, 33, 84, 0.96), rgba(10, 14, 36, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 24px rgba(4, 8, 24, 0.28);
}

.session-summary-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #b5fff0, #4ec7ff 52%, #1f56ff 100%);
  box-shadow: 0 0 18px rgba(78, 199, 255, 0.45);
}

.session-summary-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.session-summary-copy strong {
  font-size: 1rem;
}

.session-summary-copy span,
.session-summary-head small,
.session-summary-meta {
  color: var(--muted);
}

.session-summary-head small {
  white-space: nowrap;
}

.session-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.session-summary-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

.session-summary-graph {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 68px;
  padding: 10px 10px 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(6, 10, 28, 0.62), rgba(19, 31, 67, 0.34));
}

.session-summary-graph span {
  display: block;
  flex: 1;
  min-height: 12px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(255, 196, 122, 0.96), rgba(255, 111, 154, 0.9));
  box-shadow: 0 0 14px rgba(255, 111, 154, 0.2);
}

.session-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.session-summary-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.session-summary-metrics strong {
  color: var(--text);
  font-size: 0.86rem;
}

.panel-foot-link,
.mini-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.panel-foot-link {
  justify-self: start;
  padding-left: 0;
  border-color: transparent;
  background: transparent;
  color: #9ab1ff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 7, 20, 0.72);
  backdrop-filter: blur(12px);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-card {
  width: min(560px, 100%);
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(21, 28, 70, 0.96), rgba(13, 19, 50, 0.96));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.device-config-modal-card {
  width: min(1180px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.device-scan-modal-card {
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.device-scan-modal-surface {
  position: relative;
  padding: 28px 28px 26px;
  background:
    radial-gradient(circle at top right, rgba(86, 210, 255, 0.22), transparent 34%),
    radial-gradient(circle at top left, rgba(111, 129, 255, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(24, 31, 79, 0.985), rgba(9, 13, 34, 0.985));
  box-shadow:
    0 30px 64px rgba(2, 5, 20, 0.5),
    0 0 0 1px rgba(113, 135, 255, 0.08),
    0 0 44px rgba(75, 116, 255, 0.14);
}

.device-scan-modal-surface::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px solid rgba(120, 155, 255, 0.12);
  pointer-events: none;
}

.study-create-modal-card {
  width: min(1360px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.modal-backdrop-nested {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(3, 7, 20, 0.84);
}

.modal-card-compact {
  width: min(420px, 100%);
}

.modal-form label {
  display: grid;
  gap: 8px;
}

.modal-form label span {
  color: var(--text);
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.device-config-form {
  display: grid;
  gap: 16px;
}

.device-config-modal-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.25fr);
  gap: 18px;
  align-items: start;
}

.device-config-modal-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.device-config-summary {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(124, 145, 255, 0.18);
  border-radius: 18px;
  background: rgba(12, 18, 44, 0.78);
}

.device-config-summary strong,
.device-config-study-head h3,
.device-config-study-option strong {
  color: var(--text-strong);
}

.device-config-summary p,
.device-config-summary span,
.device-config-study-option span {
  color: var(--text-muted);
}

.device-config-study-groups {
  display: grid;
  gap: 14px;
}

.device-config-study-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(124, 145, 255, 0.16);
  border-radius: 20px;
  background: rgba(10, 16, 40, 0.82);
}

.device-config-form input,
.device-config-form select,
.device-config-form textarea {
  color: #f4f7ff;
  border-color: rgba(126, 210, 255, 0.18);
  background: rgba(8, 12, 30, 0.84);
}

.device-config-form input::placeholder,
.device-config-form textarea::placeholder {
  color: rgba(219, 224, 247, 0.48);
}

.device-config-form input:focus-visible,
.device-config-form select:focus-visible,
.device-config-form textarea:focus-visible {
  outline: none;
  border-color: rgba(126, 210, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(126, 210, 255, 0.12);
}

.device-config-form select option {
  color: #f4f7ff;
  background: #0c1230;
}

.device-config-sensors-panel {
  min-width: 0;
}

.device-config-study-head {
  align-items: center;
}

.device-config-study-list {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.device-config-sensor-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.device-config-sensor-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(124, 145, 255, 0.12);
  background: rgba(16, 21, 54, 0.7);
}

.device-config-sensor-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.device-config-sensor-option p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.device-config-study-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(124, 145, 255, 0.12);
  background: rgba(16, 21, 54, 0.7);
}

.device-config-study-option input {
  margin-top: 3px;
}

@media (max-width: 820px) {
  .device-config-sensor-library {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .device-config-modal-card {
    width: min(760px, calc(100vw - 20px));
  }

  .device-config-modal-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .modal-backdrop {
    padding: 10px;
    align-items: stretch;
  }

  .device-config-modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .device-config-study-group {
    padding: 16px;
  }

  .device-config-study-head {
    align-items: flex-start;
  }
}

.device-configurations-list {
  display: grid;
  gap: 10px;
}

.device-configuration-item {
  border: 1px solid rgba(124, 145, 255, 0.16);
  border-radius: 18px;
  background: rgba(12, 18, 46, 0.56);
  overflow: hidden;
}

.device-configuration-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.device-configuration-item summary::-webkit-details-marker {
  display: none;
}

.device-configuration-item summary div {
  display: grid;
  gap: 4px;
}

.device-configuration-item summary strong {
  color: var(--text-strong);
}

.device-configuration-item summary span,
.device-configuration-body p {
  color: var(--text-muted);
}

.device-configuration-update-key {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-strong);
  font-size: 0.93rem;
  letter-spacing: 0.02em;
}

.device-configuration-update-key strong {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(124, 145, 255, 0.2);
  background: rgba(16, 21, 54, 0.76);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  color: var(--text-strong);
  user-select: all;
  -webkit-user-select: all;
  cursor: text;
}

.device-configuration-copy {
  min-width: 0;
  padding: 6px 10px;
  line-height: 1;
}

.device-configuration-item summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 0.95rem;
  transition: transform 160ms ease;
}

.device-configuration-item[open] summary::after {
  transform: rotate(180deg);
}

.device-configuration-body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.device-configuration-study-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.study-create-modal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.92fr);
  gap: 22px;
  margin-top: 18px;
}

.study-template-browser,
.study-create-form-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.study-template-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.study-template-search {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
}

.study-template-search span {
  color: var(--text);
  font-size: 0.95rem;
}

.study-template-search input {
  min-height: 42px;
  border-radius: 10px;
  background: rgba(13, 18, 46, 0.72);
}

.study-template-tabs .model-library-tab {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.study-template-grid {
  max-height: min(58vh, 560px);
  overflow: auto;
  padding-right: 4px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  align-content: start;
  align-items: start;
}

.study-template-grid .model-library-card {
  text-align: left;
  cursor: default;
  min-height: 0;
  height: auto;
  padding: 14px;
  gap: 10px;
  align-self: start;
}

.study-template-grid .model-library-card[hidden] {
  display: none;
}

.study-template-summary {
  list-style: none;
  display: block;
  cursor: pointer;
}

.study-template-summary::-webkit-details-marker {
  display: none;
}

.study-template-summary-copy {
  display: grid;
  gap: 10px;
}

.study-template-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.study-template-summary-copy h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.study-template-expand-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(220, 227, 255, 0.28);
  background: linear-gradient(180deg, rgba(206, 214, 240, 0.22), rgba(134, 144, 176, 0.18));
  color: #eef2ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  line-height: 1;
  transition: transform 140ms ease;
}

.study-template-grid details[open] .study-template-expand-label {
  transform: rotate(180deg);
}

.study-template-body {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.study-template-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.study-template-body .model-card-foot {
  align-items: center;
  gap: 10px;
}

.study-template-body .cta.secondary {
  min-width: 0;
  padding: 8px 12px;
}

.study-selection-meta {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.study-selection-meta strong {
  font-size: 0.82rem;
  color: var(--muted);
}

.study-selection-icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.study-selection-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.study-selection-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-selection-icon.tone-indigo { color: #cbd5ff; background: rgba(95, 124, 255, 0.14); }
.study-selection-icon.tone-cyan { color: #bdeeff; background: rgba(78, 199, 255, 0.14); }
.study-selection-icon.tone-rose { color: #ffd0de; background: rgba(255, 111, 154, 0.14); }
.study-selection-icon.tone-amber { color: #ffe0a9; background: rgba(255, 179, 77, 0.14); }
.study-selection-icon.tone-emerald { color: #c6ffe4; background: rgba(78, 220, 155, 0.14); }
.study-selection-icon.tone-slate { color: #d6daf2; background: rgba(111, 120, 168, 0.16); }

.study-selection-icon-list:empty::after {
  content: "No modalities specified";
  color: var(--muted);
  line-height: 1.4;
}

.study-template-card-selected {
  border-color: rgba(111, 228, 180, 0.9);
  box-shadow: 0 0 0 2px rgba(111, 228, 180, 0.24), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.study-create-selection {
  gap: 10px;
}

.study-create-selection.study-create-selection-indigo {
  background:
    radial-gradient(circle at top right, rgba(95, 124, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(24, 30, 76, 0.94), rgba(13, 18, 47, 0.96));
  border-color: rgba(95, 124, 255, 0.24);
}

.study-create-selection.study-create-selection-amber {
  background:
    radial-gradient(circle at top right, rgba(255, 179, 77, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(40, 29, 58, 0.94), rgba(20, 17, 42, 0.96));
  border-color: rgba(255, 179, 77, 0.22);
}

.study-create-selection.study-create-selection-rose {
  background:
    radial-gradient(circle at top right, rgba(255, 111, 154, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(41, 24, 55, 0.94), rgba(20, 15, 40, 0.96));
  border-color: rgba(255, 111, 154, 0.22);
}

.study-create-selection.study-create-selection-slate {
  background:
    radial-gradient(circle at top right, rgba(111, 120, 168, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(24, 27, 62, 0.94), rgba(14, 18, 46, 0.96));
  border-color: rgba(111, 120, 168, 0.2);
}

.study-create-selection strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.study-create-selection p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.study-create-form {
  gap: 12px;
}

.issue-modal-card {
  width: min(560px, 100%);
}

.issue-modal-actions {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.issue-modal-actions form {
  display: inline-flex;
  margin: 0;
}

.issue-modal-actions .cta,
.issue-modal-actions button {
  min-width: 120px;
  justify-content: center;
}

.project-settings-form fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.project-settings-form fieldset[disabled] {
  opacity: 0.58;
}

.project-danger-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-danger-section p {
  margin: 0 0 14px;
  color: var(--muted);
}

.danger-button {
  background: linear-gradient(180deg, rgba(255, 123, 123, 0.92), rgba(210, 63, 95, 0.9));
  color: #170811;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.member-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.member-pill.tone-indigo {
  background: rgba(95, 124, 255, 0.16);
}

.member-pill.tone-emerald {
  background: rgba(78, 220, 155, 0.16);
}

.member-pill.tone-amber {
  background: rgba(255, 179, 77, 0.16);
}

.member-pill.tone-rose {
  background: rgba(255, 111, 154, 0.16);
}

.member-pill.tone-slate {
  background: rgba(111, 120, 168, 0.16);
}

.member-pill-remove {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1;
}

.member-role-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.member-role-option {
  min-width: 0;
  justify-content: flex-start;
}

.comment-thread-shell,
.comment-list,
.comment-form {
  display: grid;
  gap: 12px;
}

.page-content-with-comment-sidebar {
  width: min(1040px, calc(100vw - 96px));
  margin-inline: auto;
  padding-right: 0;
  box-sizing: border-box;
}

.session-detail-page.page-content-with-comment-sidebar {
  width: min(1240px, calc(100vw - 48px));
  max-width: 1240px;
  margin-inline: auto;
  padding-right: 336px;
  box-sizing: border-box;
}

.session-detail-page.page-content-with-comment-sidebar > :not(.comment-thread-sidebar-shell) {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
}

.comment-thread-sidebar-shell {
  position: fixed;
  top: 126px;
  right: 24px;
  width: min(300px, calc(100vw - 48px));
  margin: 0;
  z-index: 20;
}

.comment-thread-panel {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 150px);
  padding: 16px;
}

.comment-thread-panel .panel-head {
  margin-bottom: 10px;
}

.comment-thread-panel .panel-head h2 {
  font-size: 1.2rem;
}

.comment-thread-panel textarea {
  width: 100%;
  min-height: 112px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(13, 18, 46, 0.72);
  font-size: 0.9rem;
}

.comment-composer {
  position: relative;
}

.comment-mention-autocomplete {
  position: absolute;
  display: grid;
  gap: 6px;
  min-width: 200px;
  max-width: min(240px, calc(100% - 16px));
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(124, 147, 255, 0.22);
  background: rgba(15, 21, 52, 0.9);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  z-index: 10;
}

.comment-caret-mirror {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: pre-wrap;
}

.comment-mention-autocomplete-list {
  display: grid;
  gap: 6px;
}

.comment-autocomplete-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  font-size: 0.82rem;
}

.comment-autocomplete-option span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
}

.comment-autocomplete-option.is-active,
.comment-autocomplete-option:hover {
  border-color: rgba(124, 147, 255, 0.28);
  background: rgba(95, 124, 255, 0.12);
}

.comment-mention-help {
  color: var(--muted);
  font-size: 0.8rem;
}

.comment-thread-mark-read {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

.comment-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
}

.comment-card-link {
  color: inherit;
  text-decoration: none;
}

.comment-list {
  max-height: calc((5 * 94px) + 24px);
  overflow-y: auto;
  padding-right: 6px;
}

.comment-card-unread {
  border-color: rgba(95, 124, 255, 0.28);
  background: linear-gradient(180deg, rgba(95, 124, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.comment-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.comment-card-head span,
.comment-card p {
  color: var(--muted);
}

.comment-card-head strong {
  font-size: 0.92rem;
}

.comment-card-head span {
  font-size: 0.76rem;
}

.comment-card p {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.84rem;
  line-height: 1.45;
}

.comment-list::-webkit-scrollbar {
  width: 8px;
}

.comment-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 147, 255, 0.28);
}

.pairing-status-panel {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(95, 124, 255, 0.22);
  background: rgba(95, 124, 255, 0.08);
}

.pairing-status-panel strong {
  color: var(--text);
}

.pairing-status-panel p {
  margin: 0;
  color: var(--muted);
}

.pairing-status-panel[data-tone="success"] {
  border-color: rgba(78, 220, 155, 0.28);
  background: rgba(78, 220, 155, 0.1);
}

.pairing-status-panel[data-tone="alert"] {
  border-color: rgba(95, 124, 255, 0.28);
  background: rgba(95, 124, 255, 0.12);
}

.pairing-status-panel[data-tone="pending"] {
  border-color: rgba(78, 199, 255, 0.24);
  background: rgba(78, 199, 255, 0.08);
}

.pairing-status-panel[data-tone="error"] {
  border-color: rgba(255, 120, 140, 0.26);
  background: rgba(255, 120, 140, 0.1);
}

.pairing-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pairing-code-value {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(124, 145, 255, 0.2);
  background: rgba(16, 21, 54, 0.76);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  user-select: all;
  -webkit-user-select: all;
  cursor: text;
}

.pairing-code-copy {
  min-width: 0;
  padding: 6px 10px;
  line-height: 1;
}

.metric-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
}

.status-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex: 0 0 14px;
  background: rgba(255, 255, 255, 0.14);
}

.status-icon::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: currentColor;
}

.icon-queue { color: #5f7cff; }
.icon-location { color: #4edc9b; }
.icon-status { color: #ffb34d; }
.icon-sensor { color: #4ec7ff; }

.device-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.device-status-grid strong,
.device-status-section strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.device-status-grid p,
.device-status-section {
  margin: 0;
}

.device-status-section + .device-status-section {
  margin-top: 16px;
}

.sensor-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.sensor-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sensor-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sensor-card-head strong,
.metric-map {
  color: var(--text);
}

.sensor-status,
.sensor-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.sensor-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sensor-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.member-detail-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.member-detail-grid strong {
  display: block;
  margin-bottom: 6px;
}

.device-detail-shell {
  display: grid;
  gap: 22px;
}

.device-section {
  padding: 0;
  overflow: hidden;
}

.device-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(9, 13, 34, 0.72);
}

.device-section summary::-webkit-details-marker {
  display: none;
}

.device-section-summary-copy {
  display: grid;
  gap: 4px;
}

.device-section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214, 226, 255, 0.48);
}

.device-section-summary-copy strong {
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.device-section-summary-copy small {
  color: rgba(223, 217, 255, 0.72);
}

.device-section-summary-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-section summary::after {
  content: "▾";
  font-size: 1rem;
  color: rgba(214, 226, 255, 0.62);
  transition: transform 180ms ease;
}

.device-section[open] summary::after {
  transform: rotate(180deg);
}

.device-section-body {
  display: grid;
  gap: 18px;
  padding: 0 18px 18px;
}

.device-section-detail > summary {
  border-top: 3px solid rgba(104, 212, 255, 0.72);
}

.device-section-sensors > summary {
  border-top: 3px solid rgba(255, 179, 77, 0.72);
}

.device-section-owner > summary {
  border-top: 3px solid rgba(78, 220, 155, 0.72);
}

.device-section-configurations > summary {
  border-top: 3px solid rgba(95, 124, 255, 0.78);
}

.device-section-streaming > summary {
  border-top: 3px solid rgba(255, 111, 154, 0.78);
}

.device-section-sessions > summary {
  border-top: 3px solid rgba(168, 140, 255, 0.72);
}

.device-detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.device-detail-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.device-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(115, 91, 255, 0.14), rgba(26, 19, 57, 0.78)),
    rgba(12, 8, 31, 0.82);
}

.device-hero-visual {
  position: relative;
  min-height: 260px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(150, 126, 255, 0.18);
  background:
    radial-gradient(circle at 74% 24%, rgba(71, 108, 255, 0.35), transparent 22%),
    radial-gradient(circle at 28% 72%, rgba(191, 93, 255, 0.24), transparent 25%),
    linear-gradient(160deg, rgba(92, 64, 189, 0.32), rgba(21, 17, 51, 0.92));
}

.device-hero-unit {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 240px;
  height: 118px;
  transform: translate(-50%, -50%) perspective(800px) rotateX(15deg) rotateY(-18deg);
  border-radius: 18px;
  border: 1px solid rgba(194, 184, 255, 0.18);
  background: linear-gradient(160deg, rgba(56, 49, 96, 0.98), rgba(17, 14, 39, 0.98));
  box-shadow: -26px 24px 44px rgba(5, 3, 18, 0.6), 0 0 26px rgba(87, 118, 255, 0.24);
}

.device-hero-unit::before,
.device-hero-unit::after {
  content: "";
  position: absolute;
  border-radius: 12px;
}

.device-hero-unit::before {
  inset: 14px 18px auto 18px;
  height: 56px;
  background: linear-gradient(135deg, rgba(17, 16, 43, 0.96), rgba(24, 32, 89, 0.88));
  box-shadow: inset 0 0 0 1px rgba(180, 169, 255, 0.08);
}

.device-hero-unit::after {
  right: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at 50% 50%, rgba(45, 116, 255, 0.95), rgba(45, 116, 255, 0.02) 70%);
}

.device-hero-unit span {
  position: absolute;
  top: 22px;
  width: 18px;
  height: 34px;
  border-radius: 6px;
  background: rgba(11, 10, 29, 0.92);
  border: 1px solid rgba(183, 174, 255, 0.1);
}

.device-hero-unit span:nth-child(1) { left: 16px; }
.device-hero-unit span:nth-child(2) { left: 40px; }
.device-hero-unit span:nth-child(3) { right: 46px; }
.device-hero-unit span:nth-child(4) { right: 22px; }

.device-assignment-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 260px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-assignment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.device-assignment-card strong {
  font-size: 1.5rem;
  color: var(--text);
}

.device-assignment-project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.device-assignment-card span,
.device-assignment-card small {
  color: rgba(223, 217, 255, 0.74);
}

.device-assignment-actions,
.device-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.device-assignment-actions .cta,
.device-owner-actions .cta {
  min-width: 0;
  padding: 9px 14px;
}

.device-owner-card,
.device-health-card {
  padding: 18px;
}

.device-configurations-card {
  padding: 0 4px 4px;
}

.device-health-card-top {
  aspect-ratio: 1 / 1;
  display: grid;
  align-content: start;
}

.device-pairing-card {
  padding: 18px;
}

.device-pairing-copy {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.device-stream-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}

.device-stream-chat,
.device-stream-live-grid {
  display: grid;
  gap: 14px;
}

.device-stream-chat-head,
.device-stream-card-head {
  display: grid;
  gap: 4px;
}

.device-stream-chat-head strong,
.device-stream-card-head strong {
  color: var(--text);
}

.device-stream-chat-head span,
.device-stream-card-head span {
  color: rgba(223, 217, 255, 0.66);
}

.device-stream-chat-thread {
  display: grid;
  gap: 10px;
  min-height: 220px;
  max-height: 332px;
  overflow: auto;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(104, 212, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(104, 212, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
}

.device-stream-chat-message {
  display: grid;
  gap: 6px;
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-stream-chat-message-own {
  margin-left: auto;
  background: linear-gradient(180deg, rgba(104, 212, 255, 0.16), rgba(104, 212, 255, 0.08));
  border-color: rgba(104, 212, 255, 0.22);
}

.device-stream-chat-message-peer {
  background: linear-gradient(180deg, rgba(239, 31, 143, 0.14), rgba(255, 210, 76, 0.08));
  border-color: rgba(239, 31, 143, 0.2);
}

.device-stream-chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(223, 217, 255, 0.66);
  font-size: 0.76rem;
}

.device-stream-chat-meta strong,
.device-stream-chat-meta span,
.device-stream-chat-message p {
  color: inherit;
}

.device-stream-chat-message p {
  margin: 0;
  color: rgba(240, 242, 255, 0.94);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.device-stream-compose {
  gap: 12px;
  margin: 0;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(104, 212, 255, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(239, 31, 143, 0.1), transparent 38%),
    rgba(12, 16, 38, 0.88);
}

.device-stream-compose textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(104, 212, 255, 0.22);
  background: rgba(5, 7, 20, 0.92);
  color: #f6f7ff;
  font: inherit;
  resize: vertical;
}

.device-stream-compose textarea::placeholder {
  color: rgba(246, 247, 255, 0.42);
}

.device-stream-compose textarea:focus-visible {
  outline: none;
  border-color: rgba(104, 212, 255, 0.46);
  box-shadow: 0 0 0 3px rgba(104, 212, 255, 0.12);
}

.device-stream-compose-actions {
  display: flex;
  justify-content: flex-end;
}

.device-stream-live-grid {
  grid-template-columns: 1fr;
}

.device-stream-status-card,
.device-stream-telemetry-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.device-stream-status-card {
  background:
    linear-gradient(180deg, rgba(255, 210, 76, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
}

.device-stream-status-card span {
  color: rgba(223, 217, 255, 0.66);
}

.device-stream-status-card strong {
  color: var(--text);
  font-size: 1.02rem;
}

.device-stream-status-card p {
  margin: 0;
  color: rgba(223, 217, 255, 0.72);
  line-height: 1.5;
}

.device-stream-chart-shell,
.device-stream-map-shell {
  min-height: 182px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 9, 22, 0.72);
}

.device-stream-map-shell a {
  color: #9bddff;
  text-decoration: none;
}

.device-stream-empty {
  margin: 0;
  color: rgba(223, 217, 255, 0.66);
  line-height: 1.5;
}

.device-stream-feedback {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(126, 210, 255, 0.18);
  background: rgba(78, 199, 255, 0.08);
  color: rgba(236, 244, 255, 0.92);
}

.device-stream-feedback[data-tone="success"] {
  border-color: rgba(78, 220, 155, 0.2);
  background: rgba(78, 220, 155, 0.08);
}

.device-stream-feedback[data-tone="error"] {
  border-color: rgba(255, 115, 115, 0.24);
  background: rgba(255, 115, 115, 0.08);
}

.device-pairing-actions {
  margin-top: 14px;
}

.device-owner-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.device-owner-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(107, 135, 255, 0.78), rgba(189, 96, 255, 0.82));
  color: #fff;
  font-weight: 700;
}

.device-owner-profile strong,
.device-owner-meta strong,
.device-session-item strong,
.device-sensor-row strong {
  color: var(--text);
}

.device-owner-profile span,
.device-owner-profile small,
.device-owner-meta span,
.device-session-item span,
.device-sensor-row span {
  color: rgba(222, 216, 255, 0.72);
}

.device-owner-profile > div,
.device-owner-meta div,
.device-health-item,
.device-session-item > div {
  display: grid;
  gap: 4px;
}

.device-scan-actions,
.device-scan-list {
  display: grid;
  gap: 12px;
}

.device-scan-title-block {
  display: grid;
  gap: 8px;
}

.device-scan-title-block h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 0.96;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5f7ff;
  text-shadow: 0 0 24px rgba(111, 129, 255, 0.2);
}

.device-scan-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(126, 210, 255, 0.92);
}

.device-scan-lead {
  margin: 2px 0 18px;
  max-width: 62ch;
  color: rgba(232, 236, 255, 0.86);
  font-size: 0.98rem;
  line-height: 1.62;
}

.device-scan-feedback {
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.device-scan-list {
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.device-scan-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(121, 142, 255, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(10, 14, 38, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(2, 6, 22, 0.22);
}

.device-scan-item-pending {
  border-color: rgba(78, 199, 255, 0.18);
}

.device-scan-item-alert {
  border-color: rgba(95, 124, 255, 0.24);
  background:
    radial-gradient(circle at top right, rgba(95, 124, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(20, 27, 68, 0.94), rgba(11, 16, 43, 0.94));
}

.device-scan-item-success {
  border-color: rgba(78, 220, 155, 0.2);
  background:
    radial-gradient(circle at top right, rgba(78, 220, 155, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(17, 35, 49, 0.96), rgba(10, 20, 31, 0.96));
}

.device-scan-item-muted {
  border-color: rgba(255, 255, 255, 0.08);
}

.device-scan-item > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.device-scan-item-main {
  gap: 10px;
}

.device-scan-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.device-scan-item-head > div {
  display: grid;
  gap: 4px;
}

.device-scan-item strong {
  color: #f5f7ff;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.device-scan-item span,
.device-scan-item small {
  color: rgba(219, 224, 247, 0.82);
  word-break: break-word;
}

.device-scan-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.device-scan-summary {
  margin: 0;
  color: rgba(236, 239, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.5;
}

.device-scan-code-row {
  margin-top: 2px;
}

.device-scan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.device-scan-badge-pending {
  color: #85d9ff;
  background: rgba(78, 199, 255, 0.1);
  border-color: rgba(78, 199, 255, 0.18);
}

.device-scan-badge-alert {
  color: #aebcff;
  background: rgba(95, 124, 255, 0.12);
  border-color: rgba(95, 124, 255, 0.22);
}

.device-scan-badge-success {
  color: #97edc3;
  background: rgba(78, 220, 155, 0.12);
  border-color: rgba(78, 220, 155, 0.22);
}

.device-scan-badge-muted {
  color: rgba(224, 230, 255, 0.74);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.device-scan-item .device-scan-actions {
  grid-auto-rows: min-content;
  align-content: start;
  min-width: 132px;
}

.device-scan-item .device-scan-actions button {
  width: 100%;
}

.device-scan-empty-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(10, 14, 38, 0.7);
  border-color: rgba(120, 155, 255, 0.12);
}

.device-scan-modal-surface .modal-close {
  align-self: start;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(234, 238, 255, 0.88);
}

.device-scan-modal-surface .modal-close:hover,
.device-scan-modal-surface .modal-close:focus-visible {
  color: #fff;
  border-color: rgba(126, 210, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.device-scan-modal-surface > .panel-head {
  align-items: start;
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .device-scan-item {
    grid-template-columns: 1fr;
  }

  .device-scan-item-head {
    flex-direction: column;
  }

  .device-scan-item .device-scan-actions {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.device-owner-meta {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.device-health-list {
  display: grid;
  gap: 12px;
  align-content: start;
  height: 100%;
}

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

.device-health-head span {
  color: rgba(223, 217, 255, 0.74);
}

.device-health-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.device-health-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(95, 124, 255, 0.85), rgba(122, 220, 166, 0.92));
}

.device-health-bar .tone-amber {
  background: linear-gradient(90deg, rgba(255, 176, 78, 0.92), rgba(255, 221, 102, 0.92));
}

.device-health-bar .tone-indigo {
  background: linear-gradient(90deg, rgba(95, 124, 255, 0.92), rgba(151, 117, 255, 0.9));
}

.device-detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(260px, 0.76fr);
  gap: 18px;
  align-items: start;
}

.device-detail-main-column {
  display: grid;
  gap: 18px;
}

.device-sensor-list,
.device-session-list,
.device-info-grid {
  display: grid;
}

.device-sensor-list {
  gap: 0;
}

.device-sensor-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(110px, 0.75fr) minmax(150px, 1fr) minmax(110px, 0.72fr) minmax(140px, 0.85fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.device-sensor-row-header {
  padding-top: 0;
  padding-bottom: 12px;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.device-sensor-row-header strong,
.device-sensor-row-header span {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.device-sensor-row:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.device-sensor-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #4edc9b;
  box-shadow: 0 0 10px rgba(78, 220, 155, 0.45);
}

.device-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.device-info-grid div,
.device-info-grid-link {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.device-info-grid span,
.device-info-grid-link span {
  color: rgba(223, 217, 255, 0.66);
}

.device-info-grid-link {
  text-decoration: none;
}

.device-info-grid-link strong {
  color: var(--text);
}

.device-assignment-card .device-info-grid {
  margin-top: 8px;
}

.device-session-list {
  gap: 10px;
}

.device-location-card {
  display: grid;
  gap: 10px;
}

.device-location-card iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.device-location-card small {
  color: rgba(223, 217, 255, 0.62);
}

.device-session-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.device-session-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.device-session-item small {
  color: rgba(223, 217, 255, 0.62);
  white-space: nowrap;
}

.device-session-table-wrap {
  overflow-x: auto;
}

.device-session-table {
  width: 100%;
  border-collapse: collapse;
}

.device-session-table th,
.device-session-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: middle;
}

.device-session-table th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(223, 217, 255, 0.58);
}

.device-session-table tbody tr {
  cursor: pointer;
}

.device-session-table tbody tr:hover,
.device-session-table tbody tr:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.device-detail-side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

@media (max-width: 1120px) {
  .device-detail-top-grid,
  .device-detail-main-grid,
  .device-hero-card {
    grid-template-columns: 1fr;
  }

  .device-health-card-top {
    aspect-ratio: auto;
  }
}

@media (max-width: 760px) {
  .device-assignment-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .device-sensor-row,
  .device-info-grid,
  .device-section summary {
    grid-template-columns: 1fr;
  }

  .device-section summary {
    display: grid;
  }

  .device-hero-visual {
    min-height: 220px;
  }

  .device-hero-unit {
    width: 200px;
    height: 98px;
  }

  .device-stream-shell {
    grid-template-columns: 1fr;
  }
}

.modal-close {
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.table-link-button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ab1ff;
  font: inherit;
}

.list-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.list-card strong,
.library-card h2,
.feature-panel li,
.explorer-group strong,
th,
.metric-line-head strong {
  color: var(--text);
}

.list-card div,
.explorer-group,
.builder-items {
  display: grid;
  gap: 6px;
}

.library-card {
  display: grid;
  gap: 10px;
  min-height: 200px;
}

.card-button {
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.card-grid-four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insights-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 20px;
}

.insights-home-primary,
.insights-home-activity {
  min-width: 0;
}

.insights-home-card-grid {
  margin-top: 20px;
}

.insights-home-card-grid .library-card {
  min-height: 220px;
}

.library-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 10px 0 4px;
}

.library-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.library-divider strong {
  display: block;
  color: var(--text);
  text-align: center;
}

.library-divider p {
  margin: 4px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.benchmark-library-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 179, 77, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.03);
}

.benchmark-library-card::before {
  content: "Benchmark";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 179, 77, 0.14);
  color: #ffd7a1;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.model-library-shell,
.model-library-search,
.model-card-copy {
  display: grid;
  gap: 18px;
}

.model-library-shell {
  width: 100%;
  min-width: 0;
}

.model-library-shell > * {
  min-width: 0;
}

.model-library-shell-insights {
  gap: 22px;
}

.model-library-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
}

.model-library-page-header-main {
  min-width: 0;
}

.model-library-header-action {
  flex: 0 0 auto;
}

.model-library-back-link {
  display: inline-flex;
  margin-bottom: 16px;
}

.page-title-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
  margin-bottom: 20px;
}

.model-library-page-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--text);
}

.page-title-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--text);
}

.model-library-page-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.page-title-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.page-title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 111, 154, 0.28);
  background: linear-gradient(180deg, rgba(42, 20, 46, 0.96), rgba(24, 10, 31, 0.98));
  color: #ffd3df;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-fab:hover,
.admin-fab:focus-visible {
  border-color: rgba(255, 111, 154, 0.44);
  color: #fff0f5;
}

.help-library-shell {
  display: grid;
  gap: 12px;
}

.settings-shell,
.settings-accordion {
  display: grid;
  gap: 12px;
}

.settings-nav-grid {
  grid-template-columns: minmax(0, 1fr);
}

.settings-search-form input {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  background: rgba(13, 18, 46, 0.72);
}

.settings-section {
  padding: 0;
  overflow: hidden;
}

.settings-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 700;
}

.settings-section summary::-webkit-details-marker {
  display: none;
}

.settings-section summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.1rem;
}

.settings-section[open] summary::after {
  content: "-";
}

.settings-section .detail-list {
  padding: 0 18px 18px;
}

.user-directory-panel,
.user-directory-list {
  display: grid;
  gap: 10px;
}

.user-directory-header,
.user-directory-row summary,
.user-directory-memberships-head,
.user-directory-membership-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1.5fr 0.8fr auto;
  gap: 16px;
  align-items: center;
}

.user-directory-header {
  padding: 0 4px 6px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-directory-row {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  overflow: visible;
}

.user-directory-row summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.user-directory-row summary::-webkit-details-marker {
  display: none;
}

.user-directory-row[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-directory-cell {
  min-width: 0;
}

.user-directory-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-directory-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(95, 124, 255, 0.24), rgba(95, 124, 255, 0.08));
  color: var(--text);
  font-weight: 700;
}

.user-directory-user-copy {
  min-width: 0;
}

.user-directory-user-copy strong,
.user-directory-cell {
  overflow-wrap: anywhere;
}

.user-directory-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-directory-memberships {
  padding: 14px 16px 16px;
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, rgba(95, 124, 255, 0.08), rgba(95, 124, 255, 0.03));
}

.user-directory-memberships-head,
.user-directory-membership-row {
  grid-template-columns: 1fr auto;
}

.user-directory-memberships-head {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-directory-membership-row {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.user-directory-project-link {
  color: #b9c8ff;
}

.user-directory-project-link:hover,
.user-directory-project-link:focus-visible {
  color: #d8e0ff;
}

.user-directory-actions-cell {
  display: flex;
  justify-content: flex-end;
}

.user-actions-menu {
  position: relative;
  z-index: 2;
}

.user-directory-row:has(.user-actions-menu.open) {
  z-index: 12;
}

.user-actions-trigger {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(28, 35, 82, 0.88), rgba(15, 20, 49, 0.94));
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  appearance: none;
}

.user-actions-trigger-dots {
  display: inline-grid;
  gap: 4px;
  justify-items: center;
}

.user-actions-trigger-dots span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.user-actions-menu.open .user-actions-trigger,
.user-actions-trigger:hover,
.user-actions-trigger:focus-visible {
  color: var(--text);
  border-color: rgba(95, 124, 255, 0.24);
  background: linear-gradient(180deg, rgba(39, 50, 113, 0.96), rgba(18, 25, 58, 0.98));
}

.user-actions-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 210px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 22, 57, 0.98), rgba(10, 14, 38, 0.98));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.user-actions-menu-panel[hidden] {
  display: none;
}

.user-actions-menu-panel button {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 12px;
}

.user-actions-menu-panel button:hover,
.user-actions-menu-panel button:focus-visible {
  background: rgba(95, 124, 255, 0.14);
}

.user-actions-menu-panel button:disabled {
  opacity: 0.45;
}

.invite-link-card {
  margin-bottom: 16px;
}

.invite-error-card {
  border-color: rgba(255, 108, 137, 0.26);
  background:
    radial-gradient(circle at top right, rgba(255, 108, 137, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(55, 17, 34, 0.72), rgba(31, 12, 25, 0.78));
}

.invite-link-anchor {
  display: block;
  margin-top: 8px;
  color: #b9c8ff;
  word-break: break-all;
}

.invite-link-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.invite-link-row .invite-link-anchor {
  flex: 1;
  margin-top: 0;
}

.invite-link-copy {
  min-width: 84px;
  flex: 0 0 auto;
}

.invite-link-anchor:hover,
.invite-link-anchor:focus-visible {
  color: #dbe3ff;
}

.invite-accept-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(87, 66, 180, 0.32), transparent 28%),
    radial-gradient(circle at bottom left, rgba(67, 90, 193, 0.18), transparent 24%),
    linear-gradient(180deg, #090b1f, #121332 56%, #17163c);
}

.invite-accept-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.invite-accept-card {
  width: min(100%, 520px);
}

.invite-accept-card h1 {
  margin: 0;
}

.invite-accept-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
}

.project-list-page-header h1 {
  margin: 0 0 16px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.app-footer {
  margin-top: auto;
  padding: 24px 32px 28px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.project-list-shell {
  display: grid;
  gap: 18px;
  width: 100%;
}

.project-list-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding-top: 8px;
}

.project-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
}

.project-list-shell-insights {
  width: 100%;
  gap: 22px;
}

.project-list-shell-insights .project-list-page-header,
.project-list-shell-insights .project-list-toolbar,
.project-list-shell-insights .project-list-tabs,
.project-list-shell-insights .project-list-panel {
  width: 100%;
}

.project-list-search {
  flex: 1;
  display: grid;
  gap: 8px;
}

.project-list-search input {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  background: rgba(13, 18, 46, 0.72);
}

.project-list-shell-insights .project-list-page-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--text);
}

.project-list-shell-insights .project-list-page-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.project-list-shell-insights .project-list-tabs {
  margin-bottom: 0;
}

.project-list-shell-insights .project-list-panel {
  border-radius: 24px;
}

.project-list-panel {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.data-hierarchy {
  display: grid;
  gap: 18px;
}

.data-project-group {
  display: grid;
  gap: 16px;
}

.data-project-group summary,
.data-study-group summary {
  list-style: none;
  cursor: pointer;
}

.data-project-group summary::-webkit-details-marker,
.data-study-group summary::-webkit-details-marker {
  display: none;
}

.data-project-header,
.data-study-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.data-project-summary,
.data-study-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.data-group-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.data-group-toggle::before,
.data-group-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.data-group-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.data-project-group[open] .data-group-toggle::after,
.data-study-group[open] .data-group-toggle::after {
  opacity: 0;
}

.data-group-copy {
  display: grid;
  gap: 8px;
}

.data-group-copy h2,
.data-group-copy h3 {
  margin: 0;
}

.data-group-copy h2 {
  font-size: 1.2rem;
}

.data-group-copy h3 {
  font-size: 1rem;
}

.data-group-meta,
.data-study-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.data-group-meta span,
.data-study-count {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.data-download-cta {
  white-space: nowrap;
}

.data-study-table .data-download-cta {
  min-width: 0;
  padding-inline: 12px;
}

.data-study-stack {
  display: grid;
  gap: 14px;
  margin-top: -2px;
}

.data-study-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.data-study-table {
  width: 100%;
}

.data-project-group:not([open]),
.data-study-group:not([open]) {
  gap: 0;
}

.data-hierarchy-empty {
  padding: 24px 18px;
}

.model-library-shell-insights .project-list-table {
  width: 100%;
  table-layout: fixed;
}

.project-list-clear {
  justify-self: start;
  color: #9ab1ff;
  font-size: 0.92rem;
}

.project-list-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-list-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.project-list-filter-group select {
  min-height: 44px;
  min-width: 150px;
  border-radius: 10px;
  background: rgba(13, 18, 46, 0.72);
}

.data-filter-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.data-filter-picker {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.data-filter-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.data-filter-clear {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #9ab1ff;
  font-size: 0.84rem;
}

.data-filter-pill-list {
  margin-top: 0;
  min-height: 22px;
}

.data-filter-pill {
  background: rgba(95, 124, 255, 0.12);
}

.data-filter-input {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  background: rgba(13, 18, 46, 0.72);
}

.data-range-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.data-range-field {
  display: grid;
  gap: 8px;
}

.data-range-field input {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  background: rgba(13, 18, 46, 0.72);
}

.data-range-actions {
  display: flex;
  align-items: end;
}

@media (max-width: 980px) {
  .data-filter-pills {
    grid-template-columns: 1fr;
  }

  .data-range-filters {
    grid-template-columns: 1fr 1fr;
  }

  .data-range-actions {
    grid-column: 1 / -1;
  }
}

.project-list-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.project-list-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 600;
}

.project-list-tab:hover {
  color: var(--text);
  border-color: rgba(95, 124, 255, 0.28);
}

.project-list-tab.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(83, 113, 255, 0.2), rgba(83, 113, 255, 0.05));
  border-color: rgba(95, 124, 255, 0.26);
  box-shadow: inset 0 -2px 0 #5f7cff;
}

.project-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 10px;
}

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

.issue-summary-panel {
  align-self: start;
  padding: 16px 18px;
}

.issue-summary-panel .detail-list {
  gap: 8px;
}

.model-library-toolbar,
.model-library-actions,
.model-library-tabs,
.model-card-head,
.model-card-foot {
  display: flex;
}

.model-library-toolbar,
.model-card-head,
.model-card-foot {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.model-library-toolbar {
  margin-top: 10px;
}

.model-library-search {
  flex: 1;
}

.model-library-search input {
  min-height: 42px;
  border-radius: 10px;
  background: rgba(13, 18, 46, 0.72);
}

.model-library-clear {
  justify-self: start;
  color: #9ab1ff;
  font-size: 0.92rem;
}

.model-library-actions {
  gap: 10px;
}

.model-library-actions .cta.primary {
  min-width: 152px;
  min-height: 42px;
  justify-content: center;
  padding-inline: 20px;
}

.model-library-menu-button {
  min-width: 46px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(20, 26, 60, 0.86);
  color: var(--muted);
  font: inherit;
}

.model-library-tabs {
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(130, 145, 255, 0.16);
}

.model-library-tab {
  padding: 10px 14px 12px;
  border-radius: 10px 10px 0 0;
  color: var(--muted);
}

.model-library-tab.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(83, 113, 255, 0.2), rgba(83, 113, 255, 0.05));
  box-shadow: inset 0 -2px 0 #5f7cff;
}

.model-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.model-library-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 18px;
}

.model-library-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 12px;
  margin: 8px 0 18px;
}

.model-library-shell-insights .model-library-panel-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.model-library-shell-insights .model-library-overview-grid,
.model-library-shell-insights .model-library-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.model-library-overview-card {
  min-height: 148px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 10px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(24, 29, 68, 0.92), rgba(13, 17, 42, 0.96));
  border: 1px solid rgba(108, 123, 220, 0.16);
}

.model-library-overview-meta {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.model-library-overview-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
}

.model-library-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.model-library-highlight-card {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(24, 29, 68, 0.92), rgba(13, 17, 42, 0.96));
  border: 1px solid rgba(108, 123, 220, 0.16);
}

.model-library-highlight-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.2;
}

.model-library-highlight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.study-category-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 2px 0 0;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.study-category-badge.tone-indigo {
  background: rgba(95, 124, 255, 0.16);
  color: #aebdff;
}

.study-category-badge.tone-amber {
  background: rgba(255, 179, 77, 0.16);
  color: #ffd7a1;
}

.study-category-badge.tone-rose {
  background: rgba(255, 111, 154, 0.16);
  color: #ffbfd4;
}

.study-category-badge.tone-slate {
  background: rgba(111, 120, 168, 0.16);
  color: #c0c7ea;
}

.study-category-badge-corner {
  align-self: flex-end;
}

.model-library-card {
  min-height: 228px;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 16px;
  border-radius: 10px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(26, 31, 73, 0.94), rgba(15, 19, 49, 0.96));
  border: 1px solid rgba(108, 123, 220, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.model-library-card.category-indigo {
  background:
    radial-gradient(circle at top right, rgba(95, 124, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(23, 30, 76, 0.95), rgba(14, 19, 50, 0.97));
  border-color: rgba(95, 124, 255, 0.22);
}

.model-library-card.category-amber {
  background:
    radial-gradient(circle at top right, rgba(255, 179, 77, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(42, 31, 63, 0.95), rgba(20, 19, 46, 0.97));
  border-color: rgba(255, 179, 77, 0.2);
}

.model-library-card.category-rose {
  background:
    radial-gradient(circle at top right, rgba(255, 111, 154, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(39, 24, 57, 0.96), rgba(20, 14, 37, 0.97));
  border-color: rgba(255, 111, 154, 0.2);
}

.model-library-card.category-slate {
  background:
    radial-gradient(circle at top right, rgba(111, 120, 168, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(29, 32, 63, 0.95), rgba(17, 20, 44, 0.97));
  border-color: rgba(111, 120, 168, 0.2);
}

.model-library-card.is-benchmark {
  background:
    radial-gradient(circle at top right, rgba(255, 179, 77, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(30, 26, 58, 0.96), rgba(17, 15, 36, 0.97));
}

.model-card-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.model-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.92);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.model-card-menu {
  color: var(--muted);
  letter-spacing: 0.18em;
}

.model-card-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.library-info-button,
.model-card-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #dbe7ff;
  font: inherit;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.library-info-button:hover,
.model-card-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.model-card-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.15;
}

.model-card-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.model-card-foot {
  align-self: end;
  color: var(--muted);
  font-size: 0.9rem;
}

.model-card-modalities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.model-card-tags {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.modality-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modality-chip.tone-indigo {
  background: rgba(95, 124, 255, 0.14);
  color: #cbd5ff;
}

.modality-chip.tone-cyan {
  background: rgba(78, 199, 255, 0.14);
  color: #bdeeff;
}

.modality-chip.tone-rose {
  background: rgba(255, 111, 154, 0.14);
  color: #ffd0de;
}

.modality-chip.tone-amber {
  background: rgba(255, 179, 77, 0.14);
  color: #ffe0a9;
}

.modality-chip.tone-emerald {
  background: rgba(78, 220, 155, 0.14);
  color: #c6ffe4;
}

.modality-chip.tone-slate {
  background: rgba(111, 120, 168, 0.16);
  color: #d6daf2;
}

.model-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 179, 77, 0.16);
  color: #ffd7a1;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.model-library-footer {
  color: var(--muted);
  font-size: 0.95rem;
}

.model-library-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.model-library-empty strong {
  color: var(--text);
}

.model-library-empty p {
  margin: 0;
  color: var(--muted);
}

.reports-library-shell {
  display: grid;
  gap: 20px;
}

.reports-studio-entry-grid,
.reports-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reports-template-panel,
.report-editor-shell {
  display: grid;
  gap: 18px;
}

.report-editor-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  align-items: start;
}

.report-editor-sidebar,
.report-editor-canvas-panel,
.report-editor-inspector {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 2px solid #1d1d22;
  background:
    linear-gradient(180deg, rgba(255, 210, 76, 0.08), rgba(255, 255, 255, 0.98) 30%),
    linear-gradient(90deg, rgba(104, 212, 255, 0.05), rgba(255, 255, 255, 0) 55%),
    #ffffff;
  color: #1d1d22;
  box-shadow: 8px 8px 0 rgba(29, 29, 34, 0.08);
}

.report-editor-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow: auto;
  align-self: start;
}

.report-editor-palette {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0 4px;
  border-top: 2px solid rgba(29, 29, 34, 0.16);
  border-bottom: 2px solid rgba(29, 29, 34, 0.16);
}

.report-palette-item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  width: 100%;
  min-height: 92px;
  padding: 10px 8px 8px;
  text-align: left;
  border: 2px solid #1d1d22;
  background: #ffffff;
  color: #1d1d22;
  border-radius: 22px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.report-palette-swatch {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 210, 76, 0.2), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 34, 0.08);
}

.report-palette-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #1d1d22;
  background: #ffffff;
  font-family: "Orbitron", "Bank Gothic", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-palette-item.is-disabled {
  opacity: 0.42;
}

.report-palette-item:hover,
.report-palette-item:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(29, 29, 34, 0.12);
  border-color: #68d4ff;
}

.report-palette-label {
  font-size: 0.58rem;
  font-family: "Orbitron", "Bank Gothic", sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.18;
  color: #1d1d22;
  text-align: center;
  text-wrap: balance;
}

.report-palette-item span,
.report-editor-note p,
.report-editor-status,
.report-block-meta,
.report-block-placeholder-copy p,
.report-editor-empty p {
  color: #4c4f5d;
}

.report-editor-note {
  display: grid;
  gap: 8px;
  padding: 12px 0 0;
}

.report-editor-note p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.report-editor-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-editor-meta-grid,
.report-editor-filter-grid {
  display: grid;
  gap: 12px;
}

.report-editor-meta-grid {
  grid-template-columns: 1.3fr 1fr;
}

.report-editor-field,
.report-block-control {
  display: grid;
  gap: 8px;
}

.report-editor-field input,
.report-editor-field select,
.report-block-control input,
.report-block-control textarea,
.report-block-control select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 2px solid #1d1d22;
  background: #ffffff;
  color: #1d1d22;
  box-shadow: none;
}

.report-block-control textarea {
  min-height: 120px;
  resize: vertical;
}

.report-editor-status {
  min-height: 24px;
  font-size: 0.92rem;
  color: #3d404d;
}

.report-editor-layout-hint {
  color: #3d404d;
  font-size: 0.88rem;
}

.report-editor-toolbar-actions .cta {
  border: 2px solid #1d1d22;
  color: #1d1d22;
  box-shadow: none;
}

.report-editor-toolbar-actions .cta.secondary {
  background: #ffffff;
}

.report-editor-toolbar-actions .cta.primary {
  background: linear-gradient(180deg, #3f57ff, #2940d6);
  border-color: #2940d6;
  color: #ffffff;
}

.report-editor-canvas {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding: 16px;
  border: 2px solid rgba(29, 29, 34, 0.18);
  background:
    linear-gradient(rgba(29, 29, 34, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 34, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(104, 212, 255, 0.08), rgba(255, 255, 255, 0.96) 18%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}

.report-editor-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 2px dashed rgba(29, 29, 34, 0.24);
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.92);
}

.report-editor-empty p,
.report-inspector-card p,
.report-block-placeholder-copy p {
  margin: 0;
}

.report-block {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 2px solid #1d1d22;
  background:
    linear-gradient(180deg, rgba(255, 196, 0, 0.08), rgba(255, 255, 255, 0.98) 28%),
    #ffffff;
  grid-column: span 3;
  position: relative;
  color: #1d1d22;
}

.report-block.is-selected {
  border-color: #ffd24c;
  box-shadow: 6px 6px 0 rgba(29, 29, 34, 0.12);
}

.report-block.report-block-half {
  grid-column: span 1;
}

.report-block.is-dragging {
  opacity: 0.5;
}

.report-block-head,
.report-block-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.report-block-actions {
  justify-content: flex-end;
}

.report-block-toolbar {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.report-block-toolbar button {
  min-width: 38px;
  min-height: 38px;
  border: 2px solid #1d1d22;
  background: #ffffff;
  color: #1d1d22;
}

.report-block-drag-handle {
  cursor: grab;
  font-family: "Orbitron", "Bank Gothic", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-block-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-block-placement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-block-control-wide {
  grid-column: 1 / -1;
}

.report-block-preview {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 2px solid rgba(29, 29, 34, 0.16);
  background: rgba(255, 255, 255, 0.96);
}

.report-block-preview-chart,
.report-block-preview-map,
.report-block-preview-stream,
.report-block-preview-image {
  min-height: 180px;
  border-radius: 14px;
  overflow: hidden;
}

.report-block-preview-chart svg,
.report-block-preview-map svg,
.report-block-preview-stream svg {
  display: block;
  width: 100%;
  height: 180px;
}

.report-block-preview-image {
  display: grid;
  place-items: center;
  background: rgba(104, 212, 255, 0.08);
}

.report-block-preview-image img {
  max-width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.report-block-placeholder-copy,
.report-inspector-card {
  display: grid;
  gap: 8px;
}

.report-drop-zone-row {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.report-drop-zone-split {
  min-height: 72px;
}

.report-drop-zone {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px dashed rgba(29, 29, 34, 0.22);
  color: #4c4f5d;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  appearance: none;
  font-family: "Orbitron", "Bank Gothic", sans-serif;
  font-weight: 900;
}

.report-drop-zone.is-active {
  border-color: #68d4ff;
  box-shadow: 6px 6px 0 rgba(29, 29, 34, 0.12);
  color: #1d1d22;
}

.reports-library-creator,
.reports-library-table-shell {
  display: grid;
  gap: 18px;
}

.reports-library-creator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reports-library-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  width: fit-content;
}

.reports-library-toolbar {
  align-items: center;
}

.reports-library-search {
  flex: 0 1 520px;
  max-width: 520px;
}

.reports-library-table-wrap {
  overflow-x: auto;
}

.reports-library-table {
  width: 100%;
  table-layout: fixed;
}

.reports-library-table th:nth-child(1) {
  width: 22%;
}

.reports-library-table th:nth-child(2) {
  width: 14%;
}

.reports-library-table th:nth-child(4) {
  width: 110px;
}

.reports-library-table td,
.reports-library-table th {
  vertical-align: top;
}

.reports-library-table td strong {
  color: var(--text);
}

.reports-library-row {
  cursor: pointer;
}

.reports-library-row:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.reports-library-row-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.reports-library-actions-cell {
  text-align: right;
}

.reports-library-menu {
  position: relative;
  display: inline-block;
}

.reports-library-menu-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.reports-library-menu-trigger::-webkit-details-marker {
  display: none;
}

.reports-library-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 148px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(78, 199, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(78, 199, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(12, 30, 58, 0.98), rgba(9, 16, 40, 0.98));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.reports-library-menu-panel a,
.reports-library-menu-panel button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
}

.reports-library-menu-panel a:hover,
.reports-library-menu-panel a:focus-visible,
.reports-library-menu-panel button:hover,
.reports-library-menu-panel button:focus-visible {
  background: rgba(78, 199, 255, 0.14);
}

@media (max-width: 980px) {
  .study-create-modal-shell {
    grid-template-columns: 1fr;
  }

  .study-template-grid {
    grid-template-columns: 1fr;
    max-height: 42vh;
  }

  .reports-studio-entry-grid,
  .reports-template-grid,
  .reports-library-creator-grid {
    grid-template-columns: 1fr;
  }

  .report-editor-layout,
  .report-editor-meta-grid,
  .report-block-grid,
  .report-block-placement-grid,
  .report-drop-zone-split,
  .report-editor-canvas {
    grid-template-columns: 1fr;
  }

  .report-editor-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .report-editor-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-block,
  .report-block.report-block-half {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1380px) {
  .topbar-search {
    flex-basis: 42px;
  }

  .topbar-search input {
    width: 42px;
    color: transparent;
    caret-color: var(--text);
    padding-right: 0;
  }

  .topbar-search input::placeholder {
    color: transparent;
  }

  .topbar-search:focus-within input {
    width: min(320px, 30vw);
    color: var(--text);
    padding-right: 12px;
  }

  .topbar-search:focus-within input::placeholder {
    color: var(--muted);
  }

  .toolbar-popover-trigger-label,
  .account-menu-label {
    display: none;
  }

  .toolbar-popover-trigger,
  .profile {
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
  }

  .account-menu-icon {
    display: inline-flex;
  }
}

.explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.explorer-group {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.builder-section {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.builder-section:first-of-type {
  border-top: 0;
}

.builder-items {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 10px;
}

.builder-items span,
.filter-chip {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

form {
  display: grid;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(4, 8, 23, 0.45);
  font: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.session-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.session-sidebar,
.session-main,
.preview-grid,
.timeline-grid {
  display: grid;
  gap: 18px;
}

.preview-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.preview-card {
  min-height: 190px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.video-preview {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(135deg, rgba(11, 14, 36, 0.8), rgba(26, 36, 92, 0.4));
}

.chart-preview,
.map-preview {
  display: grid;
  align-content: space-between;
}

.map-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffb34d, #ff6f9a);
  box-shadow: 0 0 22px rgba(255, 179, 77, 0.75);
  justify-self: center;
  align-self: center;
}

.timeline-row,
.metric-line {
  display: grid;
  gap: 8px;
}

.timeline-row {
  grid-template-columns: 62px 1fr;
  align-items: center;
}

.timeline-bar,
.progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.timeline-bar span,
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5677ff, #ffb34d, #ff6f9a);
}

.metric-line-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.code-block {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(2, 7, 24, 0.55);
  overflow: auto;
}

.extension-editor-toolbar,
.extension-editor-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.extension-editor {
  position: relative;
  display: grid;
  gap: 10px;
}

.extension-editor-stage {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 420px;
  border-radius: 18px;
  border: 1px solid rgba(95, 124, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(78, 199, 255, 0.08), transparent 28%),
    rgba(5, 9, 24, 0.88);
  overflow: hidden;
}

.extension-editor-gutter {
  border-right: 1px solid rgba(95, 124, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.extension-editor-code {
  position: relative;
  min-width: 0;
}

.extension-editor-line-numbers,
.extension-editor-highlight,
.extension-editor textarea[name="source_code"] {
  margin: 0;
  padding: 18px 20px;
  min-height: 420px;
  font-family: "Fira Code", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 4;
}

.extension-editor-line-numbers {
  padding-right: 14px;
  text-align: right;
  color: #6773a7;
  user-select: none;
  overflow: hidden;
}

.extension-editor-highlight {
  color: #d8e0ff;
  pointer-events: none;
}

.extension-editor textarea[name="source_code"] {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  text-shadow: 0 0 0 rgba(226, 232, 255, 0.02);
  caret-color: #f6f3ff;
  resize: vertical;
  overflow: auto;
}

.extension-editor textarea[name="source_code"]::selection {
  background: rgba(95, 124, 255, 0.28);
}

.extension-editor textarea[name="source_code"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(95, 124, 255, 0.24);
}

.extension-editor-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.extension-editor-completions {
  position: absolute;
  top: 54px;
  right: 14px;
  z-index: 5;
  width: min(420px, calc(100vw - 80px));
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(95, 124, 255, 0.22);
  background: rgba(9, 13, 34, 0.98);
  box-shadow: 0 24px 44px rgba(2, 6, 22, 0.34);
}

.extension-editor-completions[hidden] {
  display: none;
}

.extension-editor-completions button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "Fira Code", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
}

.extension-editor-completions button:hover,
.extension-editor-completions button:focus-visible {
  border-color: rgba(95, 124, 255, 0.24);
  background: rgba(95, 124, 255, 0.12);
}

.token-keyword {
  color: #8fb3ff;
}

.token-type {
  color: #77e1d4;
}

.token-string {
  color: #ffd38a;
}

.token-attr {
  color: #d4a6ff;
}

.token-comment {
  color: #7f88b6;
}

.session-shell {
  padding-inline: 20px;
}

.session-hero {
  gap: 18px;
}

.session-hero-row,
.session-title-row,
.session-tab-strip,
.player-shell,
.player-track-row,
.session-fact-row,
.session-chip-row,
.preview-card-head,
.player-toolbar,
.timeline-ruler {
  display: flex;
}

.session-hero-row,
.session-title-row,
.session-tab-strip,
.player-shell {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.session-hero-copy,
.session-meta-line,
.session-facts,
.player-tracks,
.timeline-layers {
  display: grid;
  gap: 12px;
}

.session-meta-line {
  grid-auto-flow: column;
  justify-content: start;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.session-meta-line span + span::before {
  content: "•";
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.28);
}

.session-tab-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.session-mode-pills {
  display: flex;
  gap: 10px;
}

.session-layout-enhanced {
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
}

.session-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.session-report-form {
  margin: 0;
  display: inline-flex;
  flex: 0 0 auto;
}

.session-report-button {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 600;
}

.session-report-button:hover,
.session-report-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.session-data-link,
.session-report-link {
  min-width: 0;
}

.session-info-panel,
.key-metrics-panel,
.session-preview-panel,
.player-panel {
  background: linear-gradient(180deg, rgba(21, 28, 70, 0.96), rgba(12, 18, 49, 0.96));
}

.session-fact-row {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.session-fact-row:last-child {
  border-bottom: 0;
}

.session-fact-row > span {
  color: var(--muted);
}

.session-fact-row strong {
  color: var(--text);
  text-align: right;
}

.session-chip-row {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.metric-progress {
  height: 8px;
}

.preview-grid-enhanced {
  grid-template-columns: 1.15fr 1fr 0.95fr;
}

.cinematic-preview,
.signal-preview,
.movement-preview {
  display: grid;
  gap: 14px;
}

.preview-card-head {
  align-items: center;
  justify-content: space-between;
}

.preview-card-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.video-stage {
  position: relative;
  min-height: 178px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(33, 47, 114, 0.94), rgba(8, 13, 36, 0.98));
}

.interactive-stage {
  min-height: 220px;
}

.video-frame,
.video-scrim {
  position: absolute;
  inset: 0;
}

.session-video,
.session-video-canvas {
  display: block;
  width: 100%;
  min-height: 220px;
  height: 220px;
  border: 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 197, 92, 0.2), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
    linear-gradient(135deg, rgba(24, 35, 86, 0.98), rgba(8, 13, 36, 0.98));
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 14px 14px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.video-frame {
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 197, 92, 0.55), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 18px, transparent 18px, transparent 44px);
  opacity: 0.85;
}

.video-scrim {
  background:
    linear-gradient(180deg, transparent, rgba(5, 8, 24, 0.62)),
    linear-gradient(120deg, transparent 63%, rgba(255, 255, 255, 0.62) 64%, transparent 65%);
}

.video-duration {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 11, 32, 0.78);
  color: var(--text);
  font-size: 0.88rem;
}

.signal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-key {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.signal-key::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.signal-key.tone-indigo { color: #7c93ff; box-shadow: none; }
.signal-key.tone-amber { color: #ffb34d; box-shadow: none; }
.signal-key.tone-emerald { color: #4edc9b; box-shadow: none; }

.signal-chart {
  position: relative;
  min-height: 178px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 42px),
    linear-gradient(180deg, rgba(11, 16, 44, 0.98), rgba(7, 11, 28, 0.98));
}

.interactive-chart,
.interactive-map {
  min-height: 220px;
}

.signal-plot,
.map-plot {
  display: block;
  width: 100%;
  height: 220px;
}

.chart-grid-line,
.timeline-grid-line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.chart-playhead-line,
.timeline-playhead-line {
  stroke: rgba(124, 147, 255, 0.96);
  stroke-width: 2;
}

.signal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.signal-stats-grid div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.signal-stats-grid span {
  color: var(--muted);
  font-size: 0.8rem;
}

.signal-stats-grid strong {
  color: var(--text);
  font-size: 1rem;
}

.map-stats-grid strong {
  font-size: 0.95rem;
}

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

.session-value-readout {
  color: var(--muted);
  font-size: 0.9rem;
}

.session-value-readout strong {
  color: var(--text);
}

.signal-wave {
  position: absolute;
  inset-inline: 12px;
  height: 56px;
  border-radius: 999px;
  opacity: 0.95;
}

.wave-indigo {
  top: 22px;
  background: radial-gradient(circle at 10% 50%, rgba(124, 147, 255, 0.95), transparent 18%), linear-gradient(90deg, rgba(124, 147, 255, 0.3), rgba(124, 147, 255, 0.95), rgba(124, 147, 255, 0.2));
  clip-path: polygon(0 58%, 10% 46%, 20% 56%, 30% 28%, 40% 60%, 50% 38%, 60% 52%, 70% 62%, 80% 40%, 90% 54%, 100% 44%, 100% 100%, 0 100%);
}

.wave-amber {
  top: 70px;
  background: linear-gradient(90deg, rgba(255, 179, 77, 0.18), rgba(255, 179, 77, 0.95), rgba(255, 111, 154, 0.22));
  clip-path: polygon(0 62%, 12% 60%, 24% 48%, 36% 58%, 48% 52%, 60% 64%, 72% 50%, 84% 55%, 100% 43%, 100% 100%, 0 100%);
}

.wave-emerald {
  top: 118px;
  background: linear-gradient(90deg, rgba(78, 220, 155, 0.18), rgba(78, 220, 155, 0.95), rgba(78, 199, 255, 0.25));
  clip-path: polygon(0 70%, 10% 76%, 20% 58%, 30% 66%, 40% 54%, 50% 60%, 60% 44%, 70% 58%, 80% 48%, 90% 64%, 100% 56%, 100% 100%, 0 100%);
}

.map-grid {
  position: relative;
  min-height: 178px;
  border-radius: 18px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(95, 124, 255, 0.08), rgba(95, 124, 255, 0.08) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(0deg, rgba(95, 124, 255, 0.08), rgba(95, 124, 255, 0.08) 1px, transparent 1px, transparent 32px),
    linear-gradient(180deg, rgba(16, 22, 55, 0.98), rgba(7, 11, 28, 0.98));
}

.map-route {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(95, 124, 255, 0.28);
  clip-path: polygon(10% 70%, 42% 70%, 42% 32%, 70% 32%, 70% 56%, 86% 56%, 86% 84%, 24% 84%, 24% 48%, 10% 48%);
}

.map-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #7c93ff;
  box-shadow: 0 0 0 5px rgba(124, 147, 255, 0.12);
}

.node-a { top: 34px; left: 34px; }
.node-b { top: 48px; left: 116px; }
.node-c { bottom: 54px; right: 54px; background: #ffb34d; box-shadow: 0 0 0 5px rgba(255, 179, 77, 0.16); }
.node-d { bottom: 34px; left: 72px; }

.player-toolbar {
  gap: 10px;
}

.player-shell {
  align-items: stretch;
}

.player-tracks {
  width: 220px;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.player-track-row {
  flex-direction: column;
  gap: 8px;
}

.player-track-label {
  color: var(--text);
  font-size: 0.95rem;
}

.player-track-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.player-track-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.player-track-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(95, 124, 255, 0.95), rgba(255, 111, 154, 0.95));
}

.player-timeline {
  position: relative;
  flex: 1;
  display: grid;
  gap: 16px;
}

.timeline-scrubber-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeline-scrubber {
  flex: 1;
  accent-color: #7c93ff;
}

.timeline-current-readout {
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  text-align: center;
  font-size: 0.85rem;
}

.timeline-ruler {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

.timeline-layers {
  gap: 12px;
}

.timeline-layer {
  position: relative;
  min-height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.timeline-layer::after {
  display: none;
}

.timeline-plot,
.timeline-sparkline {
  display: block;
  width: 100%;
  height: 64px;
}

.timeline-plot {
  height: 88px;
}

.timeline-playhead {
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 38%;
  width: 2px;
  background: linear-gradient(180deg, rgba(122, 150, 255, 0), rgba(122, 150, 255, 1), rgba(122, 150, 255, 0));
  box-shadow: 0 0 18px rgba(122, 150, 255, 0.7);
}

.timeline-playhead::after {
  content: "";
  position: absolute;
  top: 48%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #7c93ff;
  transform: translate(-50%, -50%);
}

.playback-speed-button,
.session-sync-button.active {
  box-shadow: 0 0 0 1px rgba(124, 147, 255, 0.35);
}

.layout.dashboard > .panel > .panel-head h2,
.layout.dashboard .dashboard-grid > .panel > .panel-head h2 {
  font-size: 1.35rem;
}

.layout.dashboard .route-card strong,
.layout.dashboard .project-list .list-row strong,
.layout.dashboard .insight-list .insight-item strong,
.layout.dashboard .session-list .session-row strong {
  font-size: 1.08rem;
  line-height: 1.3;
}

.layout.dashboard .route-card span,
.layout.dashboard .project-list .list-row span,
.layout.dashboard .project-list .list-row small,
.layout.dashboard .insight-list .insight-item span,
.layout.dashboard .session-list .session-row span {
  font-size: 0.96rem;
  line-height: 1.45;
}

.layout.dashboard .metrics .metric-value {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1;
}

.layout.dashboard .metrics .metric-label {
  font-size: 0.96rem;
  letter-spacing: 0.05em;
}

.layout.dashboard .metrics .metric-meta,
.layout.dashboard .metrics .qc-pill,
.layout.dashboard .panel-link {
  font-size: 0.95rem;
}

@media (max-width: 1180px) {
  .app-shell,
  .content-grid,
  .session-layout,
  .search-results-shell,
  .project-overview-grid,
  .project-overview-stats {
    grid-template-columns: 1fr;
  }

  .studio-sidebar {
    top: 84px;
    left: 14px;
    height: auto;
    width: min(320px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 98px);
  }

  .sidebar-close {
    display: inline-flex;
  }

  .studio-sidebar {
    gap: 16px;
  }

  .sidebar-nav-primary > .sidebar-nav-item > a {
    min-height: 42px;
  }

  .dashboard-home-grid,
  .dashboard-focus-row,
  .dashboard-project-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-home-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-command-card,
  .dashboard-attention-card,
  .dashboard-session-card,
  .dashboard-report-card {
    grid-column: auto;
    min-height: 0;
  }

  .dashboard-command-layout,
  .dashboard-hero-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-shell,
  .dashboard-hero-links {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    text-align: left;
  }

  .dashboard-hero .hero-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-hero .hero-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .dashboard-projects-card,
  .dashboard-session-card {
    grid-row: auto;
  }

  .page-content-with-comment-sidebar {
    width: 100%;
    padding-right: 0;
  }

  .session-detail-page.page-content-with-comment-sidebar {
    max-width: none;
    padding-right: 0;
  }

  .comment-thread-sidebar-shell {
    position: static;
    width: 100%;
    margin-top: 22px;
  }

  .comment-thread-panel {
    max-height: none;
  }

  .card-grid,
  .forms-grid,
  .insights-home-layout,
  .metrics-grid,
  .split-grid,
  .preview-grid,
  .model-library-grid {
    grid-template-columns: 1fr;
  }

  .session-layout-enhanced {
    grid-template-columns: 1fr;
  }

  .player-shell,
  .session-hero-row,
  .session-tab-strip,
  .detail-title-header {
    flex-direction: column;
    align-items: stretch;
  }

  .player-tracks {
    width: 100%;
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .model-library-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-title-stats {
    grid-template-columns: 1fr;
  }

  .user-directory-header,
  .user-directory-row summary {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .user-directory-header span:nth-child(4),
  .user-directory-header span:nth-child(5),
  .user-directory-header span:nth-child(6),
  .user-directory-row summary > span:nth-child(4),
  .user-directory-row summary > span:nth-child(5),
  .user-directory-row summary > span:nth-child(6) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .dashboard-overview-item-main {
    grid-template-columns: auto auto;
  }

  .dashboard-overview-item span:last-child {
    grid-column: 1 / -1;
    padding-left: 42px;
  }

  .dashboard-report-item,
  .dashboard-comment-item,
  .dashboard-study-item {
    grid-template-columns: 1fr;
  }

  .topbar,
  .hero-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    gap: 14px;
    padding: 14px;
  }

  .topbar-start {
    justify-content: space-between;
  }

  .subnav-ribbon {
    top: 0;
    margin-top: 0;
    padding: 8px 14px 0;
  }

  .subnav,
  .section-insights .subnav,
  .section-admin .subnav,
  .section-devices .subnav,
  .section-projects .subnav,
  .section-reports .subnav {
    width: 100%;
    justify-content: flex-start;
    border-radius: 24px;
  }

  .app-shell {
    padding: 14px;
  }

  .dashboard-hero-metric {
    min-height: 0;
  }

  .dashboard-hero-copy h1 {
    font-size: clamp(2.5rem, 11vw, 3.6rem);
  }

  .toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .hero-search,
  .hero-search input,
  .global-search-input {
    width: 100%;
    min-width: 0;
  }

  .global-search-input {
    grid-template-columns: 1fr;
  }

  .model-library-actions {
    width: 100%;
  }

  .model-library-actions > * {
    flex: 1;
  }

  .insight-summary-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .insight-summary-head small {
    grid-column: 1 / -1;
  }

  .session-summary-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .session-summary-head small {
    grid-column: 1 / -1;
  }

  .user-directory-header {
    display: none;
  }

  .user-directory-row summary {
    grid-template-columns: 1fr;
  }

  .user-directory-memberships-head,
  .user-directory-membership-row {
    grid-template-columns: 1fr;
  }

  .session-meta-line {
    grid-auto-flow: row;
  }

  .session-meta-line span + span::before {
    content: "";
    margin-right: 0;
  }
}

.atlas-body {
  margin: 0;
  min-height: 100vh;
  color: #eef2ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(78, 199, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(78, 220, 155, 0.14), transparent 32%),
    linear-gradient(180deg, #07111d 0%, #081423 52%, #091827 100%);
.atlas-menubar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(110, 152, 255, 0.16);
  background: rgba(7, 15, 27, 0.94);
  backdrop-filter: blur(20px);
}

.atlas-menubar-start,
.atlas-menubar-end,
.atlas-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.atlas-menubar-end {
  margin-left: auto;
}

.atlas-brand,
.atlas-return-link {
  color: #f8fbff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.atlas-owner {
  color: #9fb0ca;
  font-size: 0.92rem;
}

.atlas-menubar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.14);
}

.atlas-menu-group {
  position: relative;
}

.atlas-menu-trigger {
  border: 1px solid rgba(109, 127, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 23, 52, 0.82), rgba(10, 14, 34, 0.9));
  color: #dbe7ff;
  padding: 6px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 0.94rem;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.atlas-menu-trigger:hover,
.atlas-menu-trigger[aria-expanded="true"] {
  color: #ffffff;
  border-color: rgba(78, 199, 255, 0.28);
  background: linear-gradient(180deg, rgba(24, 36, 78, 0.92), rgba(11, 18, 44, 0.96));
  box-shadow:
    0 0 0 1px rgba(78, 199, 255, 0.08),
    0 10px 22px rgba(2, 8, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.atlas-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 140;
  display: grid;
  min-width: 230px;
  padding: 8px;
  border: 1px solid rgba(110, 150, 220, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(14, 20, 38, 0.99), rgba(8, 13, 28, 0.99));
  box-shadow:
    0 18px 36px rgba(2, 8, 18, 0.34),
    0 0 0 1px rgba(78, 199, 255, 0.05);
}

.atlas-menu-dropdown[hidden] {
  display: none;
}

.atlas-menu-action {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e6efff;
  font: inherit;
  text-align: left;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.atlas-menu-action:hover {
  background: linear-gradient(180deg, rgba(36, 61, 114, 0.72), rgba(20, 34, 68, 0.88));
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(116, 182, 255, 0.18);
}

.atlas-switcher-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #aebddb;
  background: linear-gradient(180deg, rgba(15, 22, 49, 0.84), rgba(10, 15, 34, 0.92));
  border: 1px solid rgba(109, 127, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.atlas-switcher-link.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(78, 199, 255, 0.24), rgba(54, 120, 255, 0.1));
  border-color: rgba(78, 199, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(78, 199, 255, 0.08),
    0 10px 22px rgba(2, 8, 18, 0.16);
}

.atlas-window {
  display: grid;
  grid-template-columns: 56px 290px minmax(0, 1fr);
  min-height: calc(100vh - 59px);
}

.atlas-window.atlas-window-sidebar-collapsed,
.atlas-body.atlas-sidebar-collapsed .atlas-window,
.atlas-body.atlas-compact .atlas-window {
  grid-template-columns: 56px minmax(0, 1fr);
}

.atlas-activitybar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-right: 1px solid rgba(115, 146, 204, 0.14);
  background:
    linear-gradient(180deg, rgba(12, 18, 43, 0.96), rgba(8, 13, 31, 0.98));
}

.atlas-activity-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0;
  color: #93a6ce;
  background: transparent;
  font: inherit;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.atlas-activity-button:hover {
  color: #edf4ff;
  background: rgba(255, 255, 255, 0.06);
}

.atlas-activity-button.active {
  color: #f4f7ff;
  border-color: rgba(109, 127, 255, 0.24);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(20, 26, 64, 0.82), rgba(9, 12, 34, 0.88));
  box-shadow:
    0 10px 24px rgba(2, 6, 22, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.atlas-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid rgba(115, 146, 204, 0.14);
  background: #181c20;
}

.atlas-window.atlas-window-sidebar-collapsed .atlas-sidebar,
.atlas-body.atlas-sidebar-collapsed .atlas-sidebar,
.atlas-body.atlas-compact .atlas-sidebar {
  display: none;
}

.atlas-sidebar-head {
  min-height: 18px;
  padding: 8px 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #202428;
}

.atlas-path {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8b939d;
  font-size: 0.75rem;
}

.atlas-file-browser {
  flex: 1 1 auto;
  min-height: 100%;
  overflow: auto;
  padding: 8px 0 14px;
}

.atlas-file-section + .atlas-file-section {
  margin-top: 10px;
}

.atlas-file-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px 6px 12px;
}

.atlas-file-section-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.atlas-file-tree-label {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  font: inherit;
}

.atlas-file-chevron {
  color: #b8bec6;
  font-size: 0.8rem;
  transition: transform 140ms ease;
}

.atlas-file-section-head strong {
  color: #c7ccd1;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-file-list {
  display: grid;
  min-height: 28px;
  padding-bottom: 6px;
}

.atlas-file-section.collapsed .atlas-file-list {
  display: none;
}

.atlas-file-section.collapsed .atlas-file-chevron {
  transform: rotate(-90deg);
}

.atlas-folder-row,
.atlas-file-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 3px 12px 3px 26px;
  color: #d4d8dd;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.atlas-folder-row {
  color: #bcc4cc;
}

.atlas-file-row.active {
  color: #ffffff;
  background: #373c43;
}

.atlas-folder-row:hover,
.atlas-file-row:hover {
  background: #2a2f36;
}

.atlas-folder-row.drag-over,
.atlas-file-section-head.drag-over {
  background: rgba(117, 190, 255, 0.12);
}

.atlas-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #75beff;
  background: transparent;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.atlas-folder-icon {
  color: #d8b764;
}

.atlas-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}

.atlas-file-empty {
  color: #7f8790;
  font-size: 0.76rem;
}

.atlas-file-state {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: transparent;
  opacity: 0;
  transition: opacity 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.atlas-file-state.is-active {
  opacity: 1;
  background: rgba(143, 215, 255, 0.48);
}

.atlas-file-state.is-dirty {
  opacity: 1;
  background: #ffbf70;
  box-shadow: 0 0 8px rgba(255, 191, 112, 0.25);
}

.atlas-file-empty {
  padding: 3px 12px 3px 26px;
}

.atlas-folder-add {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  color: #c7ccd1;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  line-height: 1;
}

.atlas-folder-add:hover {
  background: rgba(255, 255, 255, 0.12);
}

.atlas-file-row.dragging {
  opacity: 0.5;
}

.atlas-context-menu {
  position: fixed;
  z-index: 220;
  display: grid;
  min-width: 154px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #202428;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.atlas-context-menu[hidden] {
  display: none;
}

.atlas-context-action {
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: #e7ebef;
  background: transparent;
  text-align: left;
  font: inherit;
}

.atlas-context-action:hover {
  background: #2f353c;
}

.atlas-context-action.danger {
  color: #ff9ba5;
}

.atlas-editor-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 8px minmax(160px, var(--atlas-runner-height, 260px));
  min-height: calc(100vh - 59px);
}

.atlas-runner-resize-handle {
  cursor: ns-resize;
  touch-action: none;
  background:
    linear-gradient(180deg, rgba(115, 146, 204, 0.08), rgba(115, 146, 204, 0.24), rgba(115, 146, 204, 0.08));
}

.atlas-body.atlas-resizing-runner {
  user-select: none;
}

.atlas-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(115, 146, 204, 0.12);
  background: rgba(9, 19, 32, 0.74);
}

.atlas-status-copy {
  display: grid;
  gap: 4px;
}

.atlas-status-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.atlas-status-copy strong {
  font-size: 1rem;
}

.atlas-status-copy span {
  color: #a6b5cf;
  font-size: 0.9rem;
}

.atlas-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #eef7ff;
  background: rgba(78, 199, 255, 0.12);
  border: 1px solid rgba(78, 199, 255, 0.18);
  font-size: 0.86rem;
}

.atlas-editor-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  background: #08101b;
}

.atlas-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(115, 146, 204, 0.12);
  background: rgba(11, 22, 36, 0.88);
}

.atlas-editor-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.atlas-editor-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(115, 146, 204, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe7ff;
  font: inherit;
}

.atlas-editor-nav:hover:not(:disabled) {
  background: rgba(78, 199, 255, 0.12);
  color: #ffffff;
}

.atlas-editor-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.atlas-editor-tab,
.atlas-editor-lang {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.atlas-editor-tab {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.atlas-editor-lang {
  color: #8ea3c8;
}

.atlas-code-highlight,
.atlas-code-lines,
.atlas-code-editor,
.atlas-terminal,
.atlas-req-input {
  width: 100%;
  border: 0;
  background: #07111c;
  color: #d9f3ff;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.65;
}

.atlas-editor-surface {
  display: block;
  min-height: 0;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(12, 21, 36, 0.98), rgba(8, 16, 29, 1));
}

.atlas-monaco-editor {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.atlas-code-editor-state {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.atlas-editor-gutter {
  overflow: hidden;
  border-right: 1px solid rgba(115, 146, 204, 0.12);
  background: #09121e;
}

.atlas-code-lines {
  margin: 0;
  padding: 20px 12px 20px 0;
  overflow: hidden;
  color: #536782;
  text-align: right;
  user-select: none;
}

.atlas-editor-input-shell {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #0a1422;
}

.atlas-code-highlight,
.atlas-code-editor {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 20px 22px;
  overflow: auto;
  white-space: pre;
  tab-size: 4;
}

.atlas-code-highlight {
  pointer-events: none;
  color: #dfe9f8;
}

.atlas-code-editor {
  resize: none;
  outline: none;
  color: transparent;
  caret-color: #edf4ff;
  background: transparent;
  -webkit-text-fill-color: transparent;
}

.atlas-code-editor::selection {
  background: rgba(95, 124, 255, 0.32);
}

.atlas-code-editor:focus {
  box-shadow: inset 0 0 0 1px rgba(95, 124, 255, 0.16);
}

.token-keyword {
  color: #7aa2ff;
  font-weight: 700;
}

.token-builtin {
  color: #58d1ff;
}

.token-string {
  color: #9ee37d;
}

.token-number {
  color: #ffbf70;
}

.token-comment {
  color: #657894;
  font-style: italic;
}

.token-decorator {
  color: #f08fc0;
}

.atlas-runner-dock {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  border-top: 1px solid rgba(115, 146, 204, 0.14);
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.98), rgba(4, 8, 18, 1));
}

.atlas-runner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(115, 146, 204, 0.12);
  background: rgba(8, 13, 24, 0.88);
}

.atlas-runner-head strong {
  display: block;
}

.atlas-runner-head span {
  color: #95a7c5;
  font-size: 0.86rem;
}

.atlas-runner-prompt {
  color: #63d7ff;
  font-family: "Courier New", monospace;
}

.atlas-runner-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.atlas-debug-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #95a7c5;
  font-size: 0.82rem;
}

.atlas-debug-toggle input {
  margin: 0;
}

.atlas-terminal-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(115, 146, 204, 0.12);
  background: rgba(9, 14, 25, 0.94);
}

.atlas-terminal-form .cta {
  min-width: 92px;
}

.atlas-author-form,
.atlas-upload-form {
  display: grid;
  gap: 14px;
}

.atlas-author-form label,
.atlas-upload-form label {
  display: grid;
  gap: 8px;
}

.atlas-author-form input,
.atlas-author-form select,
.atlas-author-form textarea,
.atlas-upload-form input,
.atlas-upload-form select,
.atlas-terminal-form input {
  width: 100%;
  border: 1px solid rgba(115, 146, 204, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef2ff;
  padding: 11px 13px;
  font: inherit;
}

.atlas-author-form select,
.atlas-upload-form select {
  background-color: #23274f;
  color: #eef2ff;
}

.atlas-author-form select option,
.atlas-upload-form select option {
  background: #151a33;
  color: #eef2ff;
}

.atlas-author-form textarea {
  min-height: 120px;
  resize: vertical;
}

.atlas-deploy-summary {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(115, 146, 204, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 44, 0.9), rgba(10, 16, 30, 0.96));
}

.atlas-deploy-detected {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(115, 146, 204, 0.14);
  border-radius: 14px;
  background: rgba(8, 14, 30, 0.5);
}

.atlas-deploy-detected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.atlas-deploy-detected-head span {
  color: #8ea3c8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.atlas-deploy-detected-head strong {
  color: #eef2ff;
}

.atlas-deploy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.atlas-deploy-tab {
  border: 1px solid rgba(109, 127, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 23, 52, 0.82), rgba(10, 14, 34, 0.9));
  color: #dbe7ff;
  padding: 8px 12px;
  font: inherit;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.atlas-deploy-tab:hover,
.atlas-deploy-tab.active {
  color: #ffffff;
  border-color: rgba(78, 199, 255, 0.28);
  background: linear-gradient(180deg, rgba(24, 36, 78, 0.92), rgba(11, 18, 44, 0.96));
  box-shadow:
    0 0 0 1px rgba(78, 199, 255, 0.08),
    0 10px 22px rgba(2, 8, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.atlas-deploy-kind-study .atlas-deploy-summary,
.atlas-deploy-kind-study .atlas-deploy-detected {
  border-color: rgba(255, 179, 77, 0.2);
  background:
    radial-gradient(circle at top right, rgba(255, 179, 77, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(29, 24, 43, 0.92), rgba(16, 13, 24, 0.97));
}

.atlas-deploy-kind-signal .atlas-deploy-summary,
.atlas-deploy-kind-signal .atlas-deploy-detected {
  border-color: rgba(78, 199, 255, 0.16);
}

.atlas-deploy-summary-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.atlas-deploy-summary-row span,
.atlas-deploy-summary-stack span,
.atlas-deploy-summary-grid span {
  color: #8ea3c8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.atlas-deploy-summary-row strong,
.atlas-deploy-summary-stack p,
.atlas-deploy-summary-grid li,
.atlas-deploy-note {
  color: #eef2ff;
}

.atlas-deploy-summary-stack,
.atlas-deploy-summary-grid {
  display: grid;
  gap: 8px;
}

.atlas-deploy-summary-stack p,
.atlas-deploy-note,
.atlas-deploy-summary-grid ul {
  margin: 0;
}

.atlas-deploy-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.atlas-deploy-summary-grid ul {
  padding-left: 18px;
}

.atlas-deploy-note {
  font-size: 0.88rem;
}

.atlas-req-input {
  min-height: 150px;
}

.atlas-terminal {
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  background: #050912;
}

.atlas-terminal-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.atlas-terminal-line + .atlas-terminal-line {
  margin-top: 8px;
}

.atlas-terminal-empty {
  color: #7f90a9;
}

.atlas-terminal-debug {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(115, 146, 204, 0.12);
}

.atlas-terminal-debug[hidden] {
  display: none;
}

.atlas-panel-copy,
.atlas-inline-notice,
.atlas-rule-list,
.atlas-blocked-list span {
  color: #a6b5cf;
}

.atlas-blocked-list,
.atlas-rule-list {
  margin-top: 14px;
}

.atlas-blocked-list {
  display: grid;
  gap: 10px;
}

.atlas-blocked-list span {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.atlas-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.atlas-hidden-form {
  display: none;
}

.atlas-modal-card {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 112px);
  overflow: auto;
  overscroll-behavior: contain;
}

.atlas-body .modal-backdrop {
  place-items: start center;
  overflow: auto;
  padding: 72px 20px 20px;
}

@media (max-width: 1180px) {
  .atlas-window,
  .atlas-body.atlas-compact .atlas-window {
    grid-template-columns: 56px 1fr;
  }

  .atlas-sidebar {
    display: none;
  }

  .atlas-menubar {
    flex-wrap: wrap;
  }

  .atlas-editor-stage {
    grid-template-rows: auto minmax(0, 1fr) 8px minmax(180px, var(--atlas-runner-height, 300px));
  }
}
