    :root {
      --radius-xl: 26px;
      --radius-lg: 20px;
      --radius-md: 12px;
      --radius-sm: 8px;
    }
    
    body.theme-dark {
      --bg: #0c0d0f;
      --card-bg: #141619;
      --sidebar-bg: #0f1012;
      --border: #202328;
      --text: #f5f5f7;
      --text-muted: #8a99ad;
      --accent: #00e5ff;
      --accent-glow: rgba(0, 229, 255, 0.15);
      --green: #2ecc71;
      --green-glow: rgba(46, 204, 113, 0.15);
      --orange: #ff6a2e;
      --orange-glow: rgba(255, 106, 46, 0.15);
      --red: #ff4757;
      --red-glow: rgba(255, 71, 87, 0.15);
      --purple: #8b5cf6;
      --purple-glow: rgba(139, 92, 246, 0.15);
      --overlay-bg: rgba(11, 23, 39, 0.95);
    }
    
    body.theme-light {
      --bg: #f5f7fa;
      --card-bg: #ffffff;
      --sidebar-bg: #f0f2f5;
      --border: #e2e8f0;
      --text: #1e293b;
      --text-muted: #64748b;
      --accent: #00acc1;
      --accent-glow: rgba(0, 172, 193, 0.08);
      --green: #2ecc71;
      --green-glow: rgba(46, 204, 113, 0.08);
      --orange: #e67e22;
      --orange-glow: rgba(230, 126, 34, 0.08);
      --red: #e74c3c;
      --red-glow: rgba(231, 76, 60, 0.08);
      --purple: #8e44ad;
      --purple-glow: rgba(142, 68, 173, 0.08);
      --overlay-bg: rgba(255, 255, 255, 0.95);
    }
    
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      background: var(--bg);
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      display: flex;
      height: 100vh;
      overflow: hidden;
      transition: background-color 0.2s, color 0.2s;
    }
    
    /* Collapsible Sidebar */
    .sidebar {
      width: 50px;
      background: var(--sidebar-bg);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 18px 0;
      justify-content: space-between;
      height: 100%;
      flex-shrink: 0;
      transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s, border-color 0.2s;
      overflow: hidden;
      z-index: 100;
    }
    
    .sidebar.expanded {
      width: 200px;
      align-items: flex-start;
      padding: 18px 16px;
    }
    
    .sidebar-top {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 32px;
      width: 100%;
    }
    .sidebar.expanded .sidebar-top {
      align-items: flex-start;
    }
    
    .q-logo {
      width: 24px;
      height: 24px;
      position: relative;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.25s ease;
    }
    .sidebar.expanded .q-logo {
      display: none !important;
    }
    
    .menu-items {
      display: flex;
      flex-direction: column;
      gap: 16px;
      align-items: center;
      width: 100%;
    }
    .sidebar.expanded .menu-items {
      align-items: flex-start;
    }
    
    .menu-item {
      width: 34px;
      height: 34px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      cursor: pointer;
      text-decoration: none;
      transition: background 0.2s, color 0.2s, width 0.25s ease;
      position: relative;
      overflow: hidden;
    }
    .menu-item:hover, .menu-item.active {
      color: var(--accent);
      background: var(--accent-glow);
    }
    .sidebar.expanded .menu-item {
      width: 100%;
      justify-content: flex-start;
      padding: 0 10px;
      gap: 12px;
    }
    
    .menu-item-text {
      font-size: 0.82rem;
      font-weight: 500;
      opacity: 0;
      white-space: nowrap;
      transition: opacity 0.15s ease;
      display: none;
      color: var(--text);
    }
    .menu-item.active .menu-item-text {
      color: var(--accent);
      font-weight: 600;
    }
    .sidebar.expanded .menu-item-text {
      display: block;
      opacity: 1;
    }
    
    .sidebar-bottom {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      width: 100%;
    }
    .sidebar.expanded .sidebar-bottom {
      align-items: flex-start;
      padding-left: 6px;
    }
    
    .user-badge {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--border);
      color: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: bold;
      cursor: pointer;
    }
    
    /* Main Content Area */
    .content {
      flex: 1;
      display: flex;
      flex-direction: column;
      height: 100%;
      overflow: hidden;
    }
    
    /* Top Navigation Bar */
    .topbar {
      height: 55px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 12px;
      background: var(--card-bg);
      flex-shrink: 0;
      transition: background-color 0.2s, border-color 0.2s;
    }
    
    .topbar-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    
    .logo-img {
      height: 18px;
      width: auto;
      display: none;
    }
    
    body.theme-dark .logo-img-light { display: none !important; }
    body.theme-light .logo-img-dark { display: none !important; }
    
    .page-title {
      font-size: 0.95rem;
      color: var(--text-muted);
      border-left: none;
      padding-left: 0;
    }
    
    .topbar-right {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    
    /* Theme Toggle Button */
    .theme-toggle-btn {
      background: var(--bg);
      border: 1px solid var(--border);
      color: var(--text-muted);
      width: 34px;
      height: 34px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .theme-toggle-btn:hover {
      color: var(--accent);
      border-color: var(--accent);
      background: var(--accent-glow);
    }
    
    body.theme-dark .theme-icon-sun { display: block; }
    body.theme-dark .theme-icon-moon { display: none; }
    body.theme-light .theme-icon-sun { display: none; }
    body.theme-light .theme-icon-moon { display: block; }
    
    /* Workspace Card Container */
    .workspace {
      position: relative;
      padding: 12px;
      overflow-y: auto;
      flex: 1;
    }
    
    .card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
      transition: background-color 0.2s, border-color 0.2s;
    }
    
    /* Radar background decoration */
    .radar-bg-decoration {
      position: absolute;
      right: 0;
      top: 0;
      pointer-events: none;
      z-index: 1;
      opacity: 0.4;
    }
    
    body.theme-light .radar-bg-decoration {
      opacity: 0.15;
    }

    /* Collapsible Sidebar Brand Area */
    .sidebar-brand {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      cursor: pointer;
      gap: 10px;
      transition: justify-content 0.25s ease, padding 0.25s ease;
    }
    .sidebar.expanded .sidebar-brand {
      justify-content: flex-start;
      padding-left: 6px;
    }
    .sidebar-brand .sidebar-wordmark-light,
    .sidebar-brand .sidebar-wordmark-dark {
      display: none !important;
      height: 24px;
      width: 100%;
      object-fit: contain;
      object-position: left;
    }
    body.theme-dark .sidebar.expanded .sidebar-wordmark-light {
      display: block !important;
    }
    body.theme-light .sidebar.expanded .sidebar-wordmark-dark {
      display: block !important;
    }
    .sidebar.expanded ~ .content .logo-img-light,
    .sidebar.expanded ~ .content .logo-img-dark {
      display: none !important;
    }
    .sidebar.expanded ~ .content .page-title {
      border-left: none !important;
      padding-left: 0 !important;
    }
    
    /* Interactive SVG Network Node Animations */
    .network-node circle, .network-node polygon {
      transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), stroke-width 0.2s ease;
      transform-origin: center;
      transform-box: fill-box;
    }
    .network-node:hover circle, .network-node:hover polygon {
      transform: scale(1.15);
      stroke-width: 2.5px;
    }
    .network-node:hover text {
      fill: var(--accent) !important;
    }
    .alert-node-red:hover text {
      fill: var(--red) !important;
    }
    .alert-node-orange:hover text {
      fill: var(--orange) !important;
    }
