﻿
  #page3 * { margin: 0; padding: 0; box-sizing: border-box; }
  #page3 {
      background: #0a1628;
      overflow: hidden;
      display: block;
    }

    /* Layout */
  #page3 .dashboard {
      display: grid;
      grid-template-columns: 280px 1fr 300px;
      grid-template-rows: 56px 1fr 140px;
      gap: 6px;
      padding: 6px;
      width: 100%;
      height: 100%;
      min-height: 0;
    }

    /* Header */
  #page3 .header {
      grid-column: 1 / -1;
      background: linear-gradient(90deg, rgba(6,90,130,0.3), rgba(2,128,144,0.2), rgba(6,90,130,0.3));
      border: 1px solid rgba(0,212,255,0.2);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      position: relative;
      overflow: hidden;
    }
  #page3 .header::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, #00d4ff, #00ff88, #00d4ff, transparent);
      animation: scanline 3s linear infinite;
    }
    @keyframes scanline {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }
  #page3 .header-title {
      font-size: 20px;
      font-weight: 700;
      letter-spacing: 4px;
      background: linear-gradient(90deg, #00d4ff, #00ff88);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  #page3 .header-sub {
      font-size: 12px;
      color: #64748b;
      letter-spacing: 2px;
    }
  #page3 .header-time {
      font-size: 14px;
      color: #00d4ff;
      font-family: 'Consolas', monospace;
    }
  #page3 .header-stats {
      display: flex;
      gap: 24px;
    }
  #page3 .header-stat {
      text-align: center;
    }
  #page3 .header-stat-value {
      font-size: 18px;
      font-weight: 700;
      color: #00ff88;
    }
  #page3 .header-stat-label {
      font-size: 10px;
      color: #64748b;
    }

    /* Panels */
  #page3 .panel {
      background: rgba(10, 20, 40, 0.7);
      border: 1px solid rgba(0, 212, 255, 0.15);
      border-radius: 8px;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      overflow: hidden;
      min-height: 0;
    }
  #page3 .panel-title {
      font-size: 13px;
      font-weight: 600;
      color: #00d4ff;
      padding-bottom: 6px;
      border-bottom: 1px solid rgba(0, 212, 255, 0.15);
      display: flex;
      align-items: center;
      gap: 8px;
    }
  #page3 .panel-title::before {
      content: '';
      display: inline-block;
      width: 4px;
      height: 14px;
      background: #00d4ff;
      border-radius: 2px;
    }

    /* Left Panel */
  #page3 .left-panel {
      grid-row: 2 / 3;
    }

    /* 3D Scene */
  #page3 .scene-container {
      grid-row: 2 / 3;
      position: relative;
      background: #0a1a32;
      border-radius: 8px;
      overflow: hidden;
      min-height: 0;
    }
  #page3 #three-canvas {
      width: 100%;
      height: 100%;
      display: block;
    }

    /* Scene overlay labels */
  #page3 .scene-labels {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      z-index: 10;
    }
  #page3 .scene-label {
      position: absolute;
      background: rgba(0,0,0,0.6);
      border: 1px solid;
      border-radius: 4px;
      padding: 4px 8px;
      font-size: 11px;
      white-space: nowrap;
      backdrop-filter: blur(4px);
    }
  #page3 .scene-label.pv { border-color: #00d4ff; color: #00d4ff; }
  #page3 .scene-label.ess { border-color: #00ff88; color: #00ff88; }
  #page3 .scene-label.chg { border-color: #ffaa00; color: #ffaa00; }
  #page3 .scene-label.grid { border-color: #ff4444; color: #ff4444; }
  #page3 .scene-label.load { border-color: #ffffff; color: #ffffff; }
  #page3 .scene-label.dg { border-color: #ffcc66; color: #ffcc66; }
  #page3 .scene-label.ems { border-color: #4488ff; color: #4488ff; }

    /* Right Panel */
  #page3 .right-panel {
      grid-row: 2 / 3;
      overflow-y: auto;
      overflow-x: hidden;
      padding-top: 16px;
    }
  #page3 .right-panel::-webkit-scrollbar { width: 3px; }
  #page3 .right-panel::-webkit-scrollbar-track { background: transparent; }
  #page3 .right-panel::-webkit-scrollbar-thumb { background: rgba(0,212,255,.15); border-radius: 2px; }
  #page3 .right-panel > .panel-title { flex-shrink: 0; margin-top: 4px; }
  #page3 .right-panel > .panel-title:first-child { margin-top: 0; }
  #page3 .right-panel .alert-list { max-height: 220px; overflow-y: auto; flex-shrink: 0; }
  #page3 .right-panel .alert-list::-webkit-scrollbar { width: 2px; }
  #page3 .right-panel .alert-list::-webkit-scrollbar-thumb { background: rgba(0,212,255,.1); border-radius: 1px; }
  #page3 .right-panel .project-grid { flex-shrink: 0; margin-top: 2px; }

    /* Bottom Panel */
  #page3 .bottom-panel {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: 1fr 1fr 1fr 1fr;
      gap: 8px;
      padding: 6px;
    }
  #page3 .bottom-subpanel {
      background: rgba(10, 20, 40, 0.7);
      border: 1px solid rgba(0, 212, 255, 0.15);
      border-radius: 8px;
      padding: 6px 10px;
      display: flex;
      flex-direction: column;
      min-height: 0;
      overflow: hidden;
    }

    /* Metric cards */
  #page3 .metric-card {
      background: rgba(0, 212, 255, 0.05);
      border: 1px solid rgba(0, 212, 255, 0.1);
      border-radius: 6px;
      padding: 8px 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  #page3 .metric-info {}
  #page3 .metric-label {
      font-size: 11px;
      color: #64748b;
      margin-bottom: 4px;
    }
  #page3 .metric-value {
      font-size: 17px;
      font-weight: 700;
      font-family: 'Consolas', monospace;
    }
  #page3 .metric-unit {
      font-size: 11px;
      color: #64748b;
      margin-left: 2px;
    }
  #page3 .metric-trend {
      font-size: 10px;
      margin-top: 2px;
    }
  #page3 .metric-trend.up { color: #00ff88; }
  #page3 .metric-trend.down { color: #ff4444; }
  #page3 .metric-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
    }
  #page3 .metric-icon.pv { background: rgba(0,212,255,0.15); color: #00d4ff; }
  #page3 .metric-icon.ess { background: rgba(0,255,136,0.15); color: #00ff88; }
  #page3 .metric-icon.chg { background: rgba(255,170,0,0.15); color: #ffaa00; }
  #page3 .metric-icon.grid { background: rgba(255,68,68,0.15); color: #ff4444; }
  #page3 .metric-icon.profit { background: rgba(0,212,255,0.15); color: #00d4ff; }

    /* Alert list */
  #page3 .alert-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
  #page3 .alert-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 8px;
      border-radius: 4px;
      font-size: 11px;
      background: rgba(255,255,255,0.03);
    }
  #page3 .alert-item.warn { border-left: 2px solid #ffaa00; }
  #page3 .alert-item.error { border-left: 2px solid #ff4444; }
  #page3 .alert-item.info { border-left: 2px solid #00d4ff; }
  #page3 .alert-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
    }
  #page3 .alert-dot.warn { background: #ffaa00; }
  #page3 .alert-dot.error { background: #ff4444; }
  #page3 .alert-dot.info { background: #00d4ff; }
  #page3 .alert-time {
      color: #64748b;
      font-size: 10px;
      flex-shrink: 0;
    }
  #page3 .alert-text {
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    /* Mini chart canvas */
  #page3 .chart-container {
      flex: 1;
      min-height: 0;
      position: relative;
    }
  #page3 .chart-canvas {
      width: 100%;
      height: 100%;
    }

    /* Status badges */
  #page3 .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 500;
    }
  #page3 .status-badge.online {
      background: rgba(0,255,136,0.15);
      color: #00ff88;
    }
  #page3 .status-badge.offline {
      background: rgba(255,68,68,0.15);
      color: #ff4444;
    }
  #page3 .status-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      animation: pulse 2s infinite;
    }
  #page3 .status-dot.online { background: #00ff88; }
  #page3 .status-dot.offline { background: #ff4444; }
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
    }

    /* Progress bar */
  #page3 .progress-bar-bg {
      height: 6px;
      background: rgba(255,255,255,0.08);
      border-radius: 3px;
      overflow: hidden;
      margin-top: 4px;
    }
  #page3 .progress-bar-fill {
      height: 100%;
      border-radius: 3px;
      transition: width 0.5s ease;
    }
  #page3 .progress-bar-fill.pv { background: linear-gradient(90deg, #00d4ff, #00ff88); }
  #page3 .progress-bar-fill.ess { background: linear-gradient(90deg, #00ff88, #00d4ff); }
  #page3 .progress-bar-fill.chg { background: linear-gradient(90deg, #ffaa00, #ff4444); }

    /* Scrollbar */
  #page3::-webkit-scrollbar { width: 4px; }
  #page3::-webkit-scrollbar-track { background: transparent; }
  #page3::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 2px; }

    /* Tooltip */
  #page3 .tooltip {
      position: fixed;
      background: rgba(0,0,0,0.85);
      border: 1px solid rgba(0,212,255,0.3);
      border-radius: 6px;
      padding: 8px 12px;
      font-size: 12px;
      pointer-events: none;
      z-index: 1000;
      display: none;
      backdrop-filter: blur(8px);
      max-width: 220px;
    }
  #page3 .tooltip-title { color: #00d4ff; font-weight: 600; margin-bottom: 4px; }
  #page3 .tooltip-row { display: flex; justify-content: space-between; gap: 16px; color: #94a3b8; }
  #page3 .tooltip-value { color: #e0f2fe; font-weight: 500; }

    /* 3D controls hint */
  #page3 .controls-hint {
      position: absolute;
      bottom: 10px;
      left: 10px;
      font-size: 10px;
      color: rgba(100,116,139,0.6);
      pointer-events: none;
    }

    /* Project cards */
  #page3 .project-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px;
    }
  #page3 .project-card {
      background: rgba(0,212,255,0.03);
      border: 1px solid rgba(0,212,255,0.08);
      border-radius: 4px;
      padding: 6px;
      text-align: center;
    }
  #page3 .project-card-value {
      font-size: 13px;
      font-weight: 700;
      color: #00d4ff;
      font-family: 'Consolas', monospace;
    }
  #page3 .project-card-label {
      font-size: 9px;
      color: #64748b;
      margin-top: 1px;
    }
  
