    * {
      box-sizing: border-box;
    }

    html, body {
      margin: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background:
        linear-gradient(rgba(0, 8, 20, 0.08), rgba(0, 8, 20, 0.28)),
        url('/images/bg.jpg');
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
      font-family: "Microsoft YaHei", Arial, sans-serif;
      color: #dffaff;
    }

    #three-container {
      position: absolute;
      inset: 0;
      z-index: 1;
    }

    .header {
      position: absolute;
      top: 22px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      text-align: center;
      pointer-events: none;
    }

    .title {
      font-size: 30px;
      font-weight: 800;
      letter-spacing: 5px;
      color: #e7fbff;
      text-shadow: 0 0 18px rgba(0, 225, 255, 0.9);
    }

    .subtitle {
      margin-top: 8px;
      font-size: 13px;
      color: #86eaff;
      letter-spacing: 2px;
    }

    .panel {
      position: absolute;
      z-index: 10;
      width: 280px;
      padding: 18px;
      border: 1px solid rgba(0, 221, 255, 0.38);
      border-radius: 16px;
      background: rgba(3, 18, 36, 0.72);
      box-shadow:
        0 0 24px rgba(0, 187, 255, 0.18),
        inset 0 0 24px rgba(0, 187, 255, 0.08);
      backdrop-filter: blur(8px);
      pointer-events: none;
    }

    .left-panel {
      top: 24px;
      left: 32px;
      max-height: calc(100vh - 48px);
      overflow-y: auto;
      pointer-events: auto;
    }

    .left-panel::-webkit-scrollbar {
      width: 4px;
    }

    .left-panel::-webkit-scrollbar-thumb {
      background: rgba(0, 234, 255, 0.35);
      border-radius: 999px;
    }

    .right-panel {
      top: 24px;
      right: 32px;
      pointer-events: auto;
      max-height: calc(100vh - 230px);
      overflow-y: auto;
    }

    .right-panel::-webkit-scrollbar {
      width: 4px;
    }

    .right-panel::-webkit-scrollbar-thumb {
      background: rgba(0, 234, 255, 0.35);
      border-radius: 999px;
    }

    .bottom-panel {
      right: 32px;
      bottom: 28px;
      width: 280px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .panel-title {
      font-size: 17px;
      font-weight: 700;
      margin-bottom: 14px;
      color: #77f2ff;
      border-left: 4px solid #00eaff;
      padding-left: 10px;
    }

    .item {
      display: flex;
      justify-content: space-between;
      padding: 9px 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      font-size: 14px;
    }

    .label {
      color: #9cc9d8;
    }

    .value {
      color: #ffffff;
      font-weight: 700;
    }

    .expand-row {
      cursor: pointer;
      user-select: none;
    }

    .expand-row:hover {
      background: rgba(0, 234, 255, 0.08);
      margin-left: -8px;
      margin-right: -8px;
      padding-left: 8px;
      padding-right: 8px;
      border-radius: 8px;
    }

    .telemetry-detail {
      display: none;
      margin-top: 10px;
      padding: 14px;
      border-radius: 14px;
      background: rgba(0, 30, 52, 0.72);
      border: 1px solid rgba(0, 234, 255, 0.25);
      box-shadow: inset 0 0 18px rgba(0, 234, 255, 0.08);
    }

    .telemetry-detail.show {
      display: block;
    }

    .detail-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .detail-icon {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 234, 255, 0.12);
      border: 1px solid rgba(0, 234, 255, 0.36);
      box-shadow: 0 0 14px rgba(0, 234, 255, 0.25);
      font-size: 22px;
    }

    .detail-main-value {
      font-size: 22px;
      font-weight: 900;
      color: #ffffff;
      text-shadow: 0 0 12px rgba(0, 234, 255, 0.8);
    }

    .detail-main-label {
      margin-top: 3px;
      font-size: 11px;
      color: #8bdff0;
    }

    .detail-progress {
      width: 100%;
      height: 8px;
      border-radius: 999px;
      background: rgba(255,255,255,0.12);
      overflow: hidden;
      margin-bottom: 12px;
    }

    .detail-progress-bar {
      height: 100%;
      width: 60%;
      border-radius: 999px;
      background: linear-gradient(90deg, #19ff9b, #00eaff);
      transition: width 0.35s ease;
    }

    .detail-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }

    .detail-mini-card {
      padding: 8px;
      border-radius: 10px;
      background: rgba(0, 184, 255, 0.10);
      border: 1px solid rgba(0, 225, 255, 0.18);
    }

    .detail-mini-value {
      font-size: 16px;
      font-weight: 800;
      color: #ffffff;
    }

    .detail-mini-label {
      margin-top: 4px;
      font-size: 11px;
      color: #8bdff0;
    }


    .battery-triangle {
      display: inline-block;
      margin-left: 4px;
      color: #00eaff;
      transform-origin: center;
      animation:
        batteryTriangleFloat 1.6s ease-in-out infinite,
        batteryTriangleGlow 2.2s ease-in-out infinite;
      transition:
        transform 0.35s ease,
        color 0.35s ease,
        text-shadow 0.35s ease;
    }

    .battery-row:hover .battery-triangle {
      animation:
        batteryTriangleShake 0.45s ease-in-out infinite,
        batteryTriangleGlow 0.8s ease-in-out infinite;
      color: #ffffff;
    }

    .battery-triangle.open {
      color: #19ff9b;
      transform: rotate(180deg) scale(1.18);
      text-shadow:
        0 0 8px rgba(25, 255, 155, 0.95),
        0 0 18px rgba(0, 234, 255, 0.75);
      animation: batteryTriangleOpenPulse 1.1s ease-in-out infinite;
    }

    @keyframes batteryTriangleFloat {
      0%, 100% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(3px);
      }
    }

    @keyframes batteryTriangleGlow {
      0%, 100% {
        text-shadow: 0 0 4px rgba(0, 234, 255, 0.45);
      }
      50% {
        text-shadow:
          0 0 10px rgba(0, 234, 255, 0.95),
          0 0 18px rgba(0, 234, 255, 0.55);
      }
    }

    @keyframes batteryTriangleShake {
      0%, 100% {
        transform: translateY(0) rotate(0deg);
      }
      25% {
        transform: translateY(1px) rotate(-12deg);
      }
      50% {
        transform: translateY(3px) rotate(0deg);
      }
      75% {
        transform: translateY(1px) rotate(12deg);
      }
    }

    @keyframes batteryTriangleOpenPulse {
      0%, 100% {
        transform: rotate(180deg) scale(1.08);
      }
      50% {
        transform: rotate(180deg) scale(1.24);
      }
    }

    .battery-shell {
      position: relative;
      width: 92px;
      height: 36px;
      border: 2px solid rgba(130, 240, 255, 0.9);
      border-radius: 8px;
      padding: 3px;
      box-shadow: 0 0 12px rgba(0, 234, 255, 0.28);
    }

    .battery-shell::after {
      content: "";
      position: absolute;
      right: -8px;
      top: 10px;
      width: 6px;
      height: 12px;
      border-radius: 2px;
      background: rgba(130, 240, 255, 0.9);
      box-shadow: 0 0 8px rgba(0, 234, 255, 0.5);
    }

    .battery-fill {
      height: 100%;
      width: 80%;
      border-radius: 5px;
      background: linear-gradient(90deg, #19ff9b, #00eaff);
      box-shadow: 0 0 14px rgba(0, 234, 255, 0.55);
      transition: width 0.35s ease;
    }


    .telemetry-triangle {
      display: inline-block;
      margin-left: 4px;
      color: #00eaff;
      transform-origin: center;
      animation:
        telemetryTriangleFloat 1.6s ease-in-out infinite,
        telemetryTriangleGlow 2.2s ease-in-out infinite;
      transition:
        transform 0.35s ease,
        color 0.35s ease,
        text-shadow 0.35s ease;
    }

    .expand-row:hover .telemetry-triangle {
      animation:
        telemetryTriangleShake 0.45s ease-in-out infinite,
        telemetryTriangleGlow 0.8s ease-in-out infinite;
      color: #ffffff;
    }

    .telemetry-triangle.open {
      color: #19ff9b;
      transform: rotate(180deg) scale(1.18);
      text-shadow:
        0 0 8px rgba(25, 255, 155, 0.95),
        0 0 18px rgba(0, 234, 255, 0.75);
      animation: telemetryTriangleOpenPulse 1.1s ease-in-out infinite;
    }

    @keyframes telemetryTriangleFloat {
      0%, 100% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(3px);
      }
    }

    @keyframes telemetryTriangleGlow {
      0%, 100% {
        text-shadow: 0 0 4px rgba(0, 234, 255, 0.45);
      }
      50% {
        text-shadow:
          0 0 10px rgba(0, 234, 255, 0.95),
          0 0 18px rgba(0, 234, 255, 0.55);
      }
    }

    @keyframes telemetryTriangleShake {
      0%, 100% {
        transform: translateY(0) rotate(0deg);
      }
      25% {
        transform: translateY(1px) rotate(-12deg);
      }
      50% {
        transform: translateY(3px) rotate(0deg);
      }
      75% {
        transform: translateY(1px) rotate(12deg);
      }
    }

    @keyframes telemetryTriangleOpenPulse {
      0%, 100% {
        transform: rotate(180deg) scale(1.08);
      }
      50% {
        transform: rotate(180deg) scale(1.24);
      }
    }

    .risk {
      font-size: 38px;
      font-weight: 900;
      color: #32ffb8;
      text-shadow: 0 0 18px rgba(50,255,184,0.8);
      margin: 12px 0;
    }

    .suggestion {
      margin-top: 12px;
      line-height: 1.8;
      color: #d7f8ff;
      font-size: 14px;
    }

    .metric-card {
      padding: 12px 8px;
      text-align: center;
      border-radius: 12px;
      background: rgba(0, 184, 255, 0.12);
      border: 1px solid rgba(0, 225, 255, 0.28);
    }

    .metric-value {
      font-size: 24px;
      font-weight: 900;
      color: #ffffff;
    }

    .metric-label {
      margin-top: 6px;
      font-size: 12px;
      color: #8bdff0;
    }


    /* loading-timeout-fixed */
    #loading {
      position: absolute;
      z-index: 20;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      color: #9eefff;
      font-size: 18px;
      text-shadow: 0 0 12px #00eaff;
      pointer-events: none;
    }
  
    /* drone-control-data-fix */
    #fallback_drone_3d_canvas {
      pointer-events: auto !important;
      z-index: 0 !important;
    }

    .left-panel,
    .right-panel,
    .bottom-panel,
    .top-title,
    .panel {
      z-index: 20 !important;
      pointer-events: auto !important;
    }
        
    /* advanced-3d-layer-fix */
    #advanced_drone_3d_canvas {
      pointer-events: auto !important;
      z-index: 1 !important;
    }

    .left-panel,
    .right-panel,
    .bottom-panel,
    .top-title,
    .panel {
      z-index: 30 !important;
      pointer-events: auto !important;
    }
        
    /* left-triangle-toggle-fix */
    .expand-row {
      cursor: pointer;
      user-select: none;
    }

    .telemetry-detail {
      display: none;
    }

    .telemetry-detail.show {
      display: block !important;
    }

    .telemetry-triangle {
      display: inline-block;
      margin-left: 4px;
      color: #00eaff;
      transform-origin: center;
      pointer-events: auto;
      animation:
        telemetryTriangleFloat 1.6s ease-in-out infinite,
        telemetryTriangleGlow 2.2s ease-in-out infinite;
      transition:
        transform 0.35s ease,
        color 0.35s ease,
        text-shadow 0.35s ease;
    }

    .expand-row:hover .telemetry-triangle {
      animation:
        telemetryTriangleShake 0.45s ease-in-out infinite,
        telemetryTriangleGlow 0.8s ease-in-out infinite;
      color: #ffffff;
    }

    .telemetry-triangle.open {
      color: #19ff9b;
      transform: rotate(180deg) scale(1.18);
      text-shadow:
        0 0 8px rgba(25, 255, 155, 0.95),
        0 0 18px rgba(0, 234, 255, 0.75);
      animation: telemetryTriangleOpenPulse 1.1s ease-in-out infinite;
    }

    @keyframes telemetryTriangleFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(3px); }
    }

    @keyframes telemetryTriangleGlow {
      0%, 100% {
        text-shadow: 0 0 4px rgba(0, 234, 255, 0.45);
      }
      50% {
        text-shadow:
          0 0 10px rgba(0, 234, 255, 0.95),
          0 0 18px rgba(0, 234, 255, 0.55);
      }
    }

    @keyframes telemetryTriangleShake {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      25% { transform: translateY(1px) rotate(-12deg); }
      50% { transform: translateY(3px) rotate(0deg); }
      75% { transform: translateY(1px) rotate(12deg); }
    }

    @keyframes telemetryTriangleOpenPulse {
      0%, 100% { transform: rotate(180deg) scale(1.08); }
      50% { transform: rotate(180deg) scale(1.24); }
    }
/* ai-chat-window-ui */
    .ai-chat-box {
      margin-top: 16px;
      padding: 14px;
      border-radius: 14px;
      background: rgba(0, 30, 52, 0.72);
      border: 1px solid rgba(0, 234, 255, 0.25);
      box-shadow: inset 0 0 18px rgba(0, 234, 255, 0.08);
    }

    .ai-chat-toolbar {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
    }

    .ai-chat-model-select {
      flex: 1;
      height: 34px;
      border-radius: 9px;
      border: 1px solid rgba(0, 234, 255, 0.32);
      background: rgba(2, 12, 24, 0.82);
      color: #ffffff;
      padding: 0 9px;
      outline: none;
      font-size: 12px;
    }

    .ai-chat-add-btn {
      width: 36px;
      height: 34px;
      border: none;
      border-radius: 10px;
      background: linear-gradient(135deg, #00eaff, #19ff9b);
      color: #02111f;
      font-size: 24px;
      font-weight: 900;
      line-height: 34px;
      cursor: pointer;
      box-shadow: 0 0 14px rgba(0, 234, 255, 0.35);
    }

    .ai-chat-add-btn:hover {
      filter: brightness(1.1);
      transform: scale(1.04);
    }

    .ai-chat-log {
      height: 180px;
      overflow-y: auto;
      padding: 10px;
      border-radius: 12px;
      background: rgba(2, 12, 24, 0.58);
      border: 1px solid rgba(0, 234, 255, 0.18);
      font-size: 12px;
      line-height: 1.6;
    }

    .ai-chat-log::-webkit-scrollbar {
      width: 4px;
    }

    .ai-chat-log::-webkit-scrollbar-thumb {
      background: rgba(0, 234, 255, 0.35);
      border-radius: 999px;
    }

    .ai-msg {
      margin-bottom: 9px;
      padding: 8px 10px;
      border-radius: 10px;
      word-break: break-word;
    }

    .ai-msg.assistant {
      background: rgba(0, 234, 255, 0.10);
      border: 1px solid rgba(0, 234, 255, 0.18);
      color: #d7f8ff;
    }

    .ai-msg.user {
      background: rgba(25, 255, 155, 0.12);
      border: 1px solid rgba(25, 255, 155, 0.20);
      color: #ffffff;
    }

    .ai-msg-role {
      font-weight: 900;
      color: #77f2ff;
      margin-bottom: 4px;
    }

    .ai-question-row {
      display: flex;
      gap: 8px;
      margin-top: 10px;
    }

    .ai-question-input {
      flex: 1;
      min-height: 42px;
      max-height: 90px;
      resize: vertical;
      border-radius: 10px;
      border: 1px solid rgba(0, 234, 255, 0.32);
      background: rgba(2, 12, 24, 0.76);
      color: #ffffff;
      padding: 9px;
      outline: none;
      font-size: 12px;
      line-height: 1.5;
      font-family: "Microsoft YaHei", Arial, sans-serif;
    }

    .ai-question-input:focus {
      border-color: rgba(0, 234, 255, 0.9);
      box-shadow: 0 0 10px rgba(0, 234, 255, 0.25);
    }

    .ai-send-btn {
      width: 54px;
      border: none;
      border-radius: 10px;
      background: linear-gradient(90deg, #00eaff, #19ff9b);
      color: #02111f;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 0 14px rgba(0, 234, 255, 0.35);
    }

    .ai-send-btn:hover {
      filter: brightness(1.08);
    }

    .ai-chat-tip {
      margin-top: 8px;
      font-size: 11px;
      color: #8bdff0;
      line-height: 1.5;
    }

    .ai-modal-mask {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 80;
      background: rgba(0, 8, 18, 0.68);
      backdrop-filter: blur(6px);
      align-items: center;
      justify-content: center;
      pointer-events: auto;
    }

    .ai-modal-mask.show {
      display: flex;
    }

    .ai-modal {
      width: 420px;
      max-width: calc(100vw - 36px);
      max-height: calc(100vh - 60px);
      overflow-y: auto;
      padding: 18px;
      border-radius: 18px;
      background: rgba(3, 18, 36, 0.96);
      border: 1px solid rgba(0, 234, 255, 0.36);
      box-shadow:
        0 0 28px rgba(0, 187, 255, 0.24),
        inset 0 0 22px rgba(0, 187, 255, 0.10);
    }

    .ai-modal-title {
      font-size: 17px;
      font-weight: 900;
      color: #77f2ff;
      margin-bottom: 14px;
      border-left: 4px solid #00eaff;
      padding-left: 10px;
    }

    .ai-modal-field {
      margin-bottom: 10px;
    }

    .ai-modal-field label {
      display: block;
      margin-bottom: 5px;
      font-size: 12px;
      color: #8bdff0;
    }

    .ai-modal-input {
      width: 100%;
      height: 34px;
      border-radius: 9px;
      border: 1px solid rgba(0, 234, 255, 0.32);
      background: rgba(2, 12, 24, 0.82);
      color: #ffffff;
      padding: 0 9px;
      outline: none;
      font-size: 12px;
    }

    .ai-modal-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .ai-modal-actions {
      display: flex;
      gap: 10px;
      margin-top: 14px;
    }

    .ai-modal-btn {
      flex: 1;
      height: 36px;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      font-weight: 900;
    }

    .ai-modal-save {
      background: linear-gradient(90deg, #00eaff, #19ff9b);
      color: #02111f;
    }

    .ai-modal-cancel {
      background: rgba(255,255,255,0.10);
      color: #dffaff;
      border: 1px solid rgba(255,255,255,0.18);
    }

    .ai-modal-status {
      margin-top: 8px;
      font-size: 12px;
      color: #8bdff0;
      line-height: 1.5;
    }

  
    /* ai-chat-width-fix */
    .right-panel {
      width: 280px !important;
      overflow-x: hidden !important;
    }

    .right-panel * {
      max-width: 100%;
      box-sizing: border-box;
    }

    .ai-chat-box {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
    }

    .ai-chat-toolbar {
      width: 100%;
      max-width: 100%;
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) 36px;
      gap: 8px;
    }

    .ai-chat-model-select {
      width: 100%;
      min-width: 0;
      max-width: 100%;
    }

    .ai-chat-add-btn {
      width: 36px;
      min-width: 36px;
      max-width: 36px;
      padding: 0;
    }

    .ai-chat-log {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }

    .ai-question-row {
      width: 100%;
      max-width: 100%;
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) 54px;
      gap: 8px;
    }

    .ai-question-input {
      width: 100%;
      min-width: 0;
      max-width: 100%;
    }

    .ai-send-btn {
      width: 54px;
      min-width: 54px;
      max-width: 54px;
      padding: 0;
    }

    .ai-msg {
      max-width: 100%;
      overflow-wrap: break-word;
      word-break: break-word;
    }

    .ai-modal {
      width: min(420px, calc(100vw - 36px));
      max-width: calc(100vw - 36px);
    }

    .ai-modal * {
      max-width: 100%;
      box-sizing: border-box;
    }

  
    /* ai-panel-full-height-fix */
    .right-panel {
      top: 24px !important;
      right: 32px !important;
      height: calc(100vh - 48px) !important;
      max-height: calc(100vh - 48px) !important;
      display: flex !important;
      flex-direction: column !important;
      overflow: hidden !important;
    }

    .right-panel .panel-title,
    .right-panel > .label,
    .right-panel > .risk,
    .right-panel > .item,
    .right-panel > .suggestion {
      flex-shrink: 0;
    }

    .right-panel > .suggestion {
      max-height: 92px;
      overflow-y: auto;
      padding-right: 4px;
    }

    .ai-chat-box {
      flex: 1 !important;
      min-height: 0 !important;
      display: flex !important;
      flex-direction: column !important;
      overflow: hidden !important;
    }

    .ai-chat-toolbar,
    .ai-question-row,
    .ai-chat-tip {
      flex-shrink: 0;
    }

    .ai-chat-log {
      flex: 1 !important;
      height: auto !important;
      min-height: 180px;
      max-height: none !important;
      overflow-y: auto !important;
    }

  
    /* left-panel-full-height-fix */
    .left-panel {
      top: 24px !important;
      left: 32px !important;
      height: calc(100vh - 48px) !important;
      max-height: calc(100vh - 48px) !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
    }

    .left-panel * {
      max-width: 100%;
      box-sizing: border-box;
    }

    .left-panel .panel-title {
      position: sticky;
      top: 0;
      z-index: 2;
      padding-top: 2px;
      padding-bottom: 10px;
      background: rgba(3, 18, 36, 0.92);
      backdrop-filter: blur(8px);
    }

    .left-panel .telemetry-detail {
      max-width: 100%;
      overflow-x: hidden;
    }

    .left-panel .detail-grid {
      width: 100%;
      max-width: 100%;
    }

    .left-panel .detail-mini-card {
      min-width: 0;
      overflow: hidden;
    }

    .left-panel .detail-mini-value,
    .left-panel .detail-mini-label {
      max-width: 100%;
      overflow-wrap: break-word;
      word-break: break-word;
    }

  
    /* ai-score-no-layout-shift-fix */
    .right-panel {
      display: flex !important;
      flex-direction: column !important;
      overflow: hidden !important;
    }

    .right-panel .panel-title {
      height: 26px !important;
      min-height: 26px !important;
      max-height: 26px !important;
      margin-bottom: 12px !important;
      flex: 0 0 26px !important;
    }

    .right-panel > .label {
      height: 18px !important;
      min-height: 18px !important;
      max-height: 18px !important;
      flex: 0 0 18px !important;
    }

    .right-panel > .risk {
      height: 50px !important;
      min-height: 50px !important;
      max-height: 50px !important;
      line-height: 50px !important;
      margin: 8px 0 8px 0 !important;
      flex: 0 0 50px !important;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
      overflow: hidden;
    }

    .right-panel > .item {
      height: 36px !important;
      min-height: 36px !important;
      max-height: 36px !important;
      flex: 0 0 36px !important;
      align-items: center !important;
    }

    .right-panel > .suggestion {
      height: 76px !important;
      min-height: 76px !important;
      max-height: 76px !important;
      flex: 0 0 76px !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      margin-top: 8px !important;
      padding-right: 4px !important;
    }

    .ai-chat-box {
      flex: 1 1 auto !important;
      min-height: 0 !important;
      margin-top: 12px !important;
      overflow: hidden !important;
    }

    .ai-chat-toolbar {
      height: 34px !important;
      min-height: 34px !important;
      max-height: 34px !important;
      flex: 0 0 34px !important;
      margin-bottom: 10px !important;
    }

    .ai-question-row {
      height: 54px !important;
      min-height: 54px !important;
      max-height: 54px !important;
      flex: 0 0 54px !important;
      margin-top: 10px !important;
    }

    .ai-question-input {
      height: 54px !important;
      min-height: 54px !important;
      max-height: 54px !important;
      resize: none !important;
    }

    .ai-chat-tip {
      height: 32px !important;
      min-height: 32px !important;
      max-height: 32px !important;
      flex: 0 0 32px !important;
      overflow: hidden !important;
    }

    .ai-chat-log {
      flex: 1 1 auto !important;
      min-height: 0 !important;
      height: auto !important;
      overflow-y: auto !important;
    }

  
    /* fleet_cockpit_patch_v1_style */
    .fleet-cockpit {
      position: fixed;
      inset: 0;
      z-index: 1200;
      display: grid;
      grid-template-columns: minmax(0, 62fr) minmax(360px, 38fr);
      gap: 16px;
      padding: 16px;
      box-sizing: border-box;
      background:
        radial-gradient(circle at 20% 10%, rgba(0, 220, 255, 0.16), transparent 28%),
        radial-gradient(circle at 80% 90%, rgba(0, 255, 180, 0.12), transparent 30%),
        rgba(2, 10, 22, 0.96);
      color: #dffcff;
      font-family: "Microsoft YaHei", Arial, sans-serif;
    }

    .fleet-left-panel,
    .fleet-right-panel {
      border: 1px solid rgba(0, 220, 255, 0.32);
      background: linear-gradient(180deg, rgba(6, 28, 48, 0.88), rgba(2, 13, 28, 0.92));
      box-shadow: 0 0 26px rgba(0, 210, 255, 0.18);
      border-radius: 18px;
      overflow: hidden;
      min-height: 0;
    }

    .fleet-left-panel {
      display: flex;
      flex-direction: column;
    }

    .fleet-header {
      height: 64px;
      flex: 0 0 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px;
      border-bottom: 1px solid rgba(0, 220, 255, 0.22);
      background: rgba(0, 18, 36, 0.58);
    }

    .fleet-title {
      font-size: 22px;
      font-weight: 700;
      letter-spacing: 1px;
      color: #7ff6ff;
      text-shadow: 0 0 14px rgba(0, 220, 255, 0.75);
    }

    .fleet-subtitle {
      font-size: 12px;
      color: rgba(210, 250, 255, 0.72);
      margin-top: 4px;
    }

    .fleet-top-stats {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .fleet-stat-pill {
      padding: 7px 10px;
      border-radius: 999px;
      border: 1px solid rgba(0, 220, 255, 0.28);
      background: rgba(0, 40, 70, 0.52);
      font-size: 12px;
      white-space: nowrap;
    }

    .fleet-scroll-area {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      padding: 16px;
    }

    .fleet-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
      gap: 14px;
      padding-bottom: 24px;
    }

    .fleet-drone-card {
      position: relative;
      min-height: 190px;
      border-radius: 16px;
      padding: 14px;
      box-sizing: border-box;
      border: 1px solid rgba(0, 220, 255, 0.28);
      background:
        linear-gradient(135deg, rgba(0, 90, 130, 0.22), rgba(0, 18, 36, 0.82)),
        radial-gradient(circle at 70% 20%, rgba(0, 255, 200, 0.14), transparent 30%);
      cursor: pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
      overflow: hidden;
    }

    .fleet-drone-card:hover {
      transform: translateY(-3px) scale(1.01);
      box-shadow: 0 0 24px rgba(0, 220, 255, 0.28);
      border-color: rgba(92, 245, 255, 0.72);
    }

    .fleet-drone-card.risk-low {
      border-color: rgba(50, 255, 184, 0.42);
    }

    .fleet-drone-card.risk-medium {
      border-color: rgba(255, 230, 109, 0.65);
      box-shadow: inset 0 0 18px rgba(255, 230, 109, 0.08);
    }

    .fleet-drone-card.risk-high {
      border-color: rgba(255, 77, 109, 0.85);
      box-shadow: 0 0 22px rgba(255, 77, 109, 0.22), inset 0 0 18px rgba(255, 77, 109, 0.10);
      animation: fleetHighRiskBlink 1.3s infinite alternate;
    }

    @keyframes fleetHighRiskBlink {
      from { filter: brightness(1); }
      to { filter: brightness(1.24); }
    }

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

    .fleet-drone-id {
      font-size: 16px;
      font-weight: 700;
      color: #eaffff;
    }

    .fleet-risk-badge {
      font-size: 12px;
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.2);
      background: rgba(0,0,0,0.22);
      white-space: nowrap;
    }

    .fleet-mini-visual {
      height: 52px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 12px;
      color: #8cf8ff;
      font-size: 34px;
      text-shadow: 0 0 18px rgba(0, 220, 255, 0.8);
    }

    .fleet-mini-visual.fault {
      color: #ff4d6d;
      text-shadow: 0 0 18px rgba(255, 77, 109, 0.9);
    }

    .fleet-card-metrics {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .fleet-metric {
      padding: 8px;
      border-radius: 10px;
      background: rgba(0, 25, 48, 0.58);
      border: 1px solid rgba(0, 220, 255, 0.12);
    }

    .fleet-metric-label {
      font-size: 11px;
      color: rgba(220, 250, 255, 0.62);
    }

    .fleet-metric-value {
      margin-top: 4px;
      font-size: 15px;
      font-weight: 700;
      color: #ffffff;
    }

    .fleet-health-line {
      height: 7px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      overflow: hidden;
      margin-top: 12px;
    }

    .fleet-health-fill {
      height: 100%;
      width: 50%;
      background: linear-gradient(90deg, #ff4d6d, #ffe66d, #32ffb8);
      border-radius: 999px;
    }

    .fleet-right-panel {
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    .fleet-right-body {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      padding: 14px;
    }

    .fleet-section {
      border-radius: 14px;
      border: 1px solid rgba(0, 220, 255, 0.22);
      background: rgba(0, 20, 42, 0.55);
      padding: 13px;
      margin-bottom: 14px;
    }

    .fleet-section-title {
      font-size: 15px;
      font-weight: 700;
      color: #7ff6ff;
      margin-bottom: 10px;
    }

    .fleet-report-box {
      min-height: 160px;
      white-space: pre-wrap;
      line-height: 1.65;
      font-size: 13px;
      color: #eaffff;
      background: rgba(0, 10, 24, 0.52);
      border-radius: 12px;
      padding: 12px;
      border: 1px solid rgba(255,255,255,0.08);
    }

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

    .fleet-risk-row {
      display: grid;
      grid-template-columns: 80px 1fr 58px;
      gap: 8px;
      align-items: center;
      font-size: 13px;
      padding: 8px;
      border-radius: 10px;
      background: rgba(0, 12, 26, 0.48);
    }

    .fleet-ai-target,
    .fleet-ai-input {
      width: 100%;
      box-sizing: border-box;
      border-radius: 10px;
      border: 1px solid rgba(0, 220, 255, 0.28);
      background: rgba(0, 12, 26, 0.78);
      color: #eaffff;
      padding: 9px 10px;
      outline: none;
      margin-bottom: 10px;
    }

    .fleet-ai-input {
      min-height: 74px;
      resize: vertical;
    }

    .fleet-button-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .fleet-btn {
      border: 1px solid rgba(0, 220, 255, 0.4);
      background: linear-gradient(135deg, rgba(0, 170, 220, 0.35), rgba(0, 255, 190, 0.18));
      color: #eaffff;
      border-radius: 10px;
      padding: 9px 12px;
      cursor: pointer;
      font-weight: 700;
    }

    .fleet-btn:hover {
      box-shadow: 0 0 18px rgba(0, 220, 255, 0.35);
    }

    .fleet-ai-answer {
      margin-top: 12px;
      min-height: 90px;
      white-space: pre-wrap;
      line-height: 1.6;
      font-size: 13px;
      background: rgba(0, 10, 24, 0.52);
      border-radius: 12px;
      padding: 12px;
      border: 1px solid rgba(255,255,255,0.08);
    }

    .fleet-detail-modal {
      position: fixed;
      inset: 0;
      z-index: 1400;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(0, 4, 12, 0.76);
      backdrop-filter: blur(6px);
    }

    .fleet-detail-box {
      width: min(1180px, 94vw);
      height: min(760px, 90vh);
      border-radius: 20px;
      border: 1px solid rgba(0, 220, 255, 0.45);
      background: linear-gradient(180deg, rgba(7, 31, 52, 0.96), rgba(1, 10, 22, 0.98));
      box-shadow: 0 0 36px rgba(0, 220, 255, 0.22);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .fleet-detail-head {
      height: 58px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px;
      border-bottom: 1px solid rgba(0, 220, 255, 0.22);
    }

    .fleet-detail-title {
      font-size: 20px;
      font-weight: 800;
      color: #7ff6ff;
    }

    .fleet-detail-close {
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(255, 77, 109, 0.16);
      color: #fff;
      border-radius: 10px;
      padding: 8px 12px;
      cursor: pointer;
    }

    .fleet-detail-body {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      padding: 16px;
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 16px;
    }

    .fleet-detail-visual {
      min-height: 360px;
      border-radius: 18px;
      border: 1px solid rgba(0, 220, 255, 0.22);
      background:
        radial-gradient(circle at 50% 45%, rgba(0, 220, 255, 0.18), transparent 32%),
        rgba(0, 12, 26, 0.58);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 120px;
      color: #8cf8ff;
      text-shadow: 0 0 34px rgba(0, 220, 255, 0.9);
    }

    .fleet-detail-visual.fault {
      color: #ff4d6d;
      text-shadow: 0 0 34px rgba(255, 77, 109, 0.9);
    }

    .fleet-detail-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 14px;
    }

    .fleet-detail-card {
      border-radius: 12px;
      border: 1px solid rgba(0, 220, 255, 0.16);
      background: rgba(0, 15, 32, 0.6);
      padding: 10px;
    }

    .fleet-detail-label {
      font-size: 12px;
      color: rgba(220, 250, 255, 0.62);
    }

    .fleet-detail-value {
      margin-top: 5px;
      font-size: 17px;
      font-weight: 800;
      color: #ffffff;
    }

    @media (max-width: 1100px) {
      .fleet-cockpit {
        grid-template-columns: 1fr;
      }
      .fleet-right-panel {
        min-height: 420px;
      }
    }

  
    /* fleet-card-click-to-single-screen-fix */
    .fleet-return-btn {
      display: none;
      position: fixed;
      top: 18px;
      right: 18px;
      z-index: 1600;
      border: 1px solid rgba(0, 220, 255, 0.55);
      background: linear-gradient(135deg, rgba(0, 170, 220, 0.72), rgba(0, 255, 190, 0.28));
      color: #eaffff;
      border-radius: 12px;
      padding: 10px 16px;
      cursor: pointer;
      font-weight: 800;
      letter-spacing: 1px;
      box-shadow: 0 0 22px rgba(0, 220, 255, 0.35);
    }

    .fleet-return-btn:hover {
      box-shadow: 0 0 28px rgba(0, 220, 255, 0.58);
      transform: translateY(-1px);
    }

  
    /* fleet-right-ai-clean-layout-fix */
    #fleet_risk_list,
    #fleet_ai_target {
      display: none !important;
    }

    #fleet_ai_answer {
      margin-top: 0 !important;
      margin-bottom: 12px !important;
      min-height: 150px !important;
    }

    #fleet_ai_question {
      margin-top: 0 !important;
    }

  
    /* remove-single-drone-ai-chat-fix */
    .right-panel > .ai-chat-box,
    .right-panel .ai-chat-box,
    .right-panel .ai-chat-toolbar,
    .right-panel .ai-chat-log,
    .right-panel .ai-question-row,
    .right-panel .ai-chat-tip {
      display: none !important;
    }

    /* 单机画面右侧只保留健康评分、风险等级、建议 */
    .right-panel {
      display: flex !important;
      flex-direction: column !important;
      overflow: hidden !important;
    }

    .right-panel > .suggestion {
      flex: 1 1 auto !important;
      min-height: 120px !important;
      max-height: none !important;
      overflow-y: auto !important;
    }

  
    /* single-ai-diagnosis-fit-below-return-btn-fix */
    .right-panel {
      top: 82px !important;
      right: 24px !important;
      bottom: auto !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: calc(100vh - 110px) !important;
      display: block !important;
      overflow: visible !important;
      padding: 16px !important;
      box-sizing: border-box !important;
    }

    .right-panel .panel-title {
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      margin-bottom: 12px !important;
      flex: none !important;
    }

    .right-panel > .label {
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      flex: none !important;
      margin-bottom: 6px !important;
    }

    .right-panel > .risk {
      height: 58px !important;
      min-height: 58px !important;
      max-height: 58px !important;
      line-height: 58px !important;
      margin: 6px 0 10px 0 !important;
      flex: none !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      font-variant-numeric: tabular-nums !important;
    }

    .right-panel > .item {
      height: 38px !important;
      min-height: 38px !important;
      max-height: 38px !important;
      flex: none !important;
      margin-bottom: 10px !important;
      align-items: center !important;
    }

    .right-panel > .suggestion {
      height: auto !important;
      min-height: 76px !important;
      max-height: 165px !important;
      flex: none !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      margin-top: 8px !important;
      margin-bottom: 0 !important;
      padding-right: 6px !important;
      box-sizing: border-box !important;
    }

    .right-panel > .ai-chat-box,
    .right-panel .ai-chat-box,
    .right-panel .ai-chat-toolbar,
    .right-panel .ai-chat-log,
    .right-panel .ai-question-row,
    .right-panel .ai-chat-tip {
      display: none !important;
      height: 0 !important;
      min-height: 0 !important;
      max-height: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
    }

    .fleet-return-btn {
      top: 18px !important;
      right: 24px !important;
      z-index: 1800 !important;
    }

  
    /* fleet-ai-model-select-fix */
    .fleet-ai-model-row {
      display: flex;
      gap: 8px;
      align-items: center;
      margin-bottom: 12px;
    }

    .fleet-ai-model-select {
      flex: 1 1 auto;
      min-width: 0;
      height: 36px;
      border-radius: 10px;
      border: 1px solid rgba(0, 220, 255, 0.28);
      background: rgba(0, 12, 26, 0.78);
      color: #eaffff;
      padding: 0 10px;
      outline: none;
    }

    .fleet-ai-model-add {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      border: 1px solid rgba(0, 220, 255, 0.45);
      background: linear-gradient(135deg, rgba(0, 170, 220, 0.55), rgba(0, 255, 190, 0.2));
      color: #eaffff;
      cursor: pointer;
      font-size: 20px;
      font-weight: 900;
      line-height: 32px;
    }

    .fleet-ai-model-add:hover {
      box-shadow: 0 0 18px rgba(0, 220, 255, 0.45);
    }

  
    /* fleet-ai-model-config-modal-fix */
    .fleet-ai-model-modal {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 2200;
      align-items: center;
      justify-content: center;
      background: rgba(0, 5, 14, 0.78);
      backdrop-filter: blur(6px);
    }

    .fleet-ai-model-modal-box {
      width: min(620px, 92vw);
      border-radius: 18px;
      border: 1px solid rgba(0, 220, 255, 0.42);
      background: linear-gradient(180deg, rgba(8, 34, 58, 0.98), rgba(2, 12, 28, 0.98));
      box-shadow: 0 0 34px rgba(0, 220, 255, 0.24);
      overflow: hidden;
      color: #eaffff;
    }

    .fleet-ai-model-modal-head {
      height: 56px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px;
      border-bottom: 1px solid rgba(0, 220, 255, 0.24);
    }

    .fleet-ai-model-modal-title {
      font-size: 18px;
      font-weight: 800;
      color: #7ff6ff;
      text-shadow: 0 0 14px rgba(0, 220, 255, 0.6);
    }

    .fleet-ai-model-modal-close {
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(255, 77, 109, 0.18);
      color: #fff;
      border-radius: 10px;
      padding: 7px 11px;
      cursor: pointer;
    }

    .fleet-ai-model-modal-body {
      padding: 16px 18px 18px 18px;
    }

    .fleet-ai-model-form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .fleet-ai-model-form-item {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .fleet-ai-model-form-item.full {
      grid-column: 1 / -1;
    }

    .fleet-ai-model-form-item label {
      font-size: 12px;
      color: rgba(220, 250, 255, 0.72);
    }

    .fleet-ai-model-form-item input {
      height: 36px;
      border-radius: 10px;
      border: 1px solid rgba(0, 220, 255, 0.28);
      background: rgba(0, 12, 26, 0.78);
      color: #eaffff;
      padding: 0 10px;
      outline: none;
      box-sizing: border-box;
    }

    .fleet-ai-model-form-item input:focus {
      border-color: rgba(0, 240, 255, 0.72);
      box-shadow: 0 0 14px rgba(0, 220, 255, 0.18);
    }

    .fleet-ai-model-modal-tip {
      margin-top: 12px;
      font-size: 12px;
      line-height: 1.6;
      color: rgba(220, 250, 255, 0.68);
      background: rgba(0, 12, 26, 0.55);
      border: 1px solid rgba(0, 220, 255, 0.14);
      border-radius: 10px;
      padding: 10px;
    }

    .fleet-ai-model-modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 16px;
    }

    .fleet-ai-model-modal-btn {
      border: 1px solid rgba(0, 220, 255, 0.4);
      background: linear-gradient(135deg, rgba(0, 170, 220, 0.46), rgba(0, 255, 190, 0.18));
      color: #eaffff;
      border-radius: 10px;
      padding: 9px 14px;
      cursor: pointer;
      font-weight: 800;
    }

    .fleet-ai-model-modal-btn.secondary {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.18);
    }

  
    /* fleet-card-x-plus-fix */
    .fleet-card-close {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.22);
      background: rgba(255, 77, 109, 0.16);
      color: #ffffff;
      font-size: 18px;
      font-weight: 900;
      line-height: 22px;
      text-align: center;
      cursor: default;
      z-index: 5;
      box-shadow: 0 0 12px rgba(255, 77, 109, 0.18);
      user-select: none;
    }

    .fleet-card-close:hover {
      background: rgba(255, 77, 109, 0.28);
      box-shadow: 0 0 18px rgba(255, 77, 109, 0.36);
    }

    .fleet-add-card {
      min-height: 190px;
      border-radius: 16px;
      border: 1px dashed rgba(0, 220, 255, 0.52);
      background:
        linear-gradient(135deg, rgba(0, 90, 130, 0.14), rgba(0, 18, 36, 0.62)),
        radial-gradient(circle at 50% 42%, rgba(0, 255, 200, 0.14), transparent 34%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #8cf8ff;
      box-sizing: border-box;
      user-select: none;
      cursor: default;
    }

    .fleet-add-symbol {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      border: 1px solid rgba(0, 220, 255, 0.42);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 46px;
      font-weight: 300;
      line-height: 1;
      margin-bottom: 12px;
      box-shadow: 0 0 22px rgba(0, 220, 255, 0.18);
    }

    .fleet-add-text {
      font-size: 14px;
      color: rgba(220, 250, 255, 0.72);
    }

  
    /* fleet-card-x-plus-real-fix */
    .fleet-card-close {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.22);
      background: rgba(255, 77, 109, 0.18);
      color: #ffffff;
      font-size: 18px;
      font-weight: 900;
      line-height: 22px;
      text-align: center;
      cursor: default;
      z-index: 20;
      box-shadow: 0 0 12px rgba(255, 77, 109, 0.22);
      user-select: none;
    }

    .fleet-card-close:hover {
      background: rgba(255, 77, 109, 0.34);
      box-shadow: 0 0 18px rgba(255, 77, 109, 0.42);
    }

    .fleet-add-card {
      min-height: 190px;
      border-radius: 16px;
      border: 1px dashed rgba(0, 220, 255, 0.55);
      background:
        linear-gradient(135deg, rgba(0, 90, 130, 0.14), rgba(0, 18, 36, 0.62)),
        radial-gradient(circle at 50% 42%, rgba(0, 255, 200, 0.14), transparent 34%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #8cf8ff;
      box-sizing: border-box;
      user-select: none;
      cursor: default;
    }

    .fleet-add-symbol {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      border: 1px solid rgba(0, 220, 255, 0.42);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 46px;
      font-weight: 300;
      line-height: 1;
      margin-bottom: 12px;
      box-shadow: 0 0 22px rgba(0, 220, 255, 0.18);
    }

    .fleet-add-text {
      font-size: 14px;
      color: rgba(220, 250, 255, 0.72);
    }

  
    /* fleet-delete-confirm-position-fix */
    .fleet-drone-card {
      padding-top: 18px !important;
      padding-right: 46px !important;
    }

    .fleet-drone-card .fleet-card-head {
      padding-right: 4px !important;
      gap: 10px !important;
    }

    .fleet-card-close {
      position: absolute !important;
      top: 8px !important;
      right: 8px !important;
      width: 24px !important;
      height: 24px !important;
      border-radius: 50% !important;
      border: 1px solid rgba(255, 105, 130, 0.65) !important;
      background: rgba(80, 8, 18, 0.92) !important;
      color: #ffffff !important;
      font-size: 17px !important;
      font-weight: 900 !important;
      line-height: 20px !important;
      text-align: center !important;
      cursor: pointer !important;
      z-index: 50 !important;
      box-shadow: 0 0 10px rgba(255, 77, 109, 0.35) !important;
      user-select: none !important;
    }

    .fleet-card-close:hover {
      background: rgba(255, 77, 109, 0.92) !important;
      transform: scale(1.08) !important;
      box-shadow: 0 0 18px rgba(255, 77, 109, 0.65) !important;
    }

    .fleet-risk-badge {
      max-width: 86px !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

  
    /* fleet-delete-button-position-v2-fix */
    .fleet-drone-card {
      padding: 18px 46px 14px 14px !important;
    }

    .fleet-drone-card .fleet-card-head {
      min-height: 34px !important;
      padding-right: 0 !important;
      margin-right: 0 !important;
      align-items: flex-start !important;
    }

    .fleet-drone-id {
      max-width: 130px !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
    }

    .fleet-risk-badge {
      max-width: 84px !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      margin-right: 0 !important;
    }

    .fleet-card-close {
      position: absolute !important;
      top: 8px !important;
      right: 8px !important;
      width: 24px !important;
      height: 24px !important;
      border-radius: 50% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      border: 1px solid rgba(255, 105, 130, 0.72) !important;
      background: rgba(80, 8, 18, 0.94) !important;
      color: #ffffff !important;
      font-size: 17px !important;
      font-weight: 900 !important;
      line-height: 1 !important;
      cursor: pointer !important;
      z-index: 80 !important;
      box-shadow: 0 0 12px rgba(255, 77, 109, 0.45) !important;
      user-select: none !important;
    }

    .fleet-card-close:hover {
      background: rgba(255, 77, 109, 0.96) !important;
      transform: scale(1.08) !important;
      box-shadow: 0 0 18px rgba(255, 77, 109, 0.75) !important;
    }

  
    /* fleet-add-drone-modal-v1 */
    .fleet-add-card {
      cursor: pointer !important;
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
    }

    .fleet-add-card:hover {
      transform: translateY(-3px) scale(1.01) !important;
      border-color: rgba(92, 245, 255, 0.85) !important;
      box-shadow: 0 0 24px rgba(0, 220, 255, 0.28) !important;
    }

    .fleet-add-drone-modal-mask {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 2300;
      align-items: center;
      justify-content: center;
      background: rgba(0, 5, 14, 0.78);
      backdrop-filter: blur(6px);
    }

    .fleet-add-drone-modal-box {
      width: min(660px, 92vw);
      border-radius: 18px;
      border: 1px solid rgba(0, 220, 255, 0.42);
      background: linear-gradient(180deg, rgba(8, 34, 58, 0.98), rgba(2, 12, 28, 0.98));
      box-shadow: 0 0 36px rgba(0, 220, 255, 0.26);
      color: #eaffff;
      overflow: hidden;
    }

    .fleet-add-drone-modal-head {
      height: 56px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px;
      border-bottom: 1px solid rgba(0, 220, 255, 0.24);
    }

    .fleet-add-drone-modal-title {
      font-size: 18px;
      font-weight: 900;
      color: #7ff6ff;
      text-shadow: 0 0 14px rgba(0, 220, 255, 0.62);
    }

    .fleet-add-drone-close {
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(255, 77, 109, 0.18);
      color: #ffffff;
      border-radius: 10px;
      padding: 7px 11px;
      cursor: pointer;
    }

    .fleet-add-drone-body {
      padding: 16px 18px 18px 18px;
    }

    .fleet-add-drone-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .fleet-add-drone-field {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .fleet-add-drone-field.full {
      grid-column: 1 / -1;
    }

    .fleet-add-drone-field label {
      font-size: 12px;
      color: rgba(220, 250, 255, 0.74);
    }

    .fleet-add-drone-field input,
    .fleet-add-drone-field select {
      height: 38px;
      border-radius: 10px;
      border: 1px solid rgba(0, 220, 255, 0.28);
      background: rgba(0, 12, 26, 0.78);
      color: #eaffff;
      padding: 0 10px;
      outline: none;
      box-sizing: border-box;
    }

    .fleet-add-drone-field input:focus,
    .fleet-add-drone-field select:focus {
      border-color: rgba(0, 240, 255, 0.72);
      box-shadow: 0 0 14px rgba(0, 220, 255, 0.18);
    }

    .fleet-add-drone-tip {
      margin-top: 12px;
      font-size: 12px;
      line-height: 1.6;
      color: rgba(220, 250, 255, 0.70);
      background: rgba(0, 12, 26, 0.55);
      border: 1px solid rgba(0, 220, 255, 0.14);
      border-radius: 10px;
      padding: 10px;
    }

    .fleet-add-drone-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 16px;
    }

    .fleet-add-drone-btn {
      border: 1px solid rgba(0, 220, 255, 0.4);
      background: linear-gradient(135deg, rgba(0, 170, 220, 0.46), rgba(0, 255, 190, 0.18));
      color: #eaffff;
      border-radius: 10px;
      padding: 9px 14px;
      cursor: pointer;
      font-weight: 800;
    }

    .fleet-add-drone-btn.secondary {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.18);
    }

  
    /* fleet-pending-drone-card-v1 */
    .fleet-pending-drone-card {
      border-color: rgba(0, 220, 255, 0.72) !important;
      background:
        linear-gradient(135deg, rgba(0, 120, 170, 0.22), rgba(0, 18, 36, 0.84)),
        radial-gradient(circle at 70% 18%, rgba(0, 255, 200, 0.16), transparent 32%) !important;
      box-shadow: inset 0 0 20px rgba(0, 220, 255, 0.08) !important;
    }

    .fleet-pending-badge {
      font-size: 12px;
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px solid rgba(0, 220, 255, 0.38);
      background: rgba(0, 220, 255, 0.14);
      color: #8cf8ff;
      white-space: nowrap;
    }

    .fleet-pending-drone-card .fleet-mini-visual {
      color: #8cf8ff !important;
    }

  
    /* fleet-pending-card-no-blink-v2 */
    .fleet-pending-drone-card,
    .fleet-pending-drone-card * {
      animation: none !important;
    }

    .fleet-pending-drone-card {
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
    }

  
    /* virtual-added-drone-screen-v1 */
    .fleet-virtual-added-drone-card {
      border-color: rgba(50, 255, 184, 0.72) !important;
      background:
        linear-gradient(135deg, rgba(0, 130, 120, 0.22), rgba(0, 18, 36, 0.84)),
        radial-gradient(circle at 70% 18%, rgba(50, 255, 184, 0.18), transparent 32%) !important;
      box-shadow: inset 0 0 20px rgba(50, 255, 184, 0.08) !important;
      animation: none !important;
    }

    .fleet-virtual-badge {
      font-size: 12px;
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px solid rgba(50, 255, 184, 0.42);
      background: rgba(50, 255, 184, 0.14);
      color: #9dffd8;
      white-space: nowrap;
    }

    .fleet-virtual-added-drone-card .fleet-mini-visual {
      color: #9dffd8 !important;
      text-shadow: 0 0 18px rgba(50, 255, 184, 0.75) !important;
    }

  
    /* fix-loading-stuck-fleet-single-v1 */
    body.fleet-mode #loading {
      display: none !important;
      pointer-events: none !important;
    }

    body.single-mode #loading.loading-hidden {
      display: none !important;
      pointer-events: none !important;
    }

  
    /* hard-hide-loading-v4 */
    #loading {
      display: none !important;
      pointer-events: none !important;
    }


    /* single-fleet-exclusive-clean-v40 */
    body.single-mode .fleet-cockpit,
    body.single-mode #fleet_cockpit_root,
    body.single-mode .fleet-detail-modal {
      display: none !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }

    body.single-mode #three-container,
    body.single-mode .header,
    body.single-mode .left-panel,
    body.single-mode .right-panel,
    body.single-mode .bottom-panel {
      visibility: visible !important;
      pointer-events: auto !important;
    }

    body.single-mode #three-container {
      display: block !important;
      z-index: 1 !important;
    }

    body.single-mode .bottom-panel {
      display: grid !important;
    }

    body.single-mode .fleet-return-btn {
      display: block !important;
      visibility: visible !important;
      pointer-events: auto !important;
    }

    body.fleet-mode #three-container,
    body.fleet-mode .header,
    body.fleet-mode .left-panel,
    body.fleet-mode .right-panel,
    body.fleet-mode .bottom-panel,
    body.fleet-mode #loading {
      display: none !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }

    body.fleet-mode .fleet-cockpit,
    body.fleet-mode #fleet_cockpit_root {
      display: grid !important;
      visibility: visible !important;
      pointer-events: auto !important;
    }

    body.fleet-mode .fleet-return-btn {
      display: none !important;
    }
    /* /single-fleet-exclusive-clean-v40 */

  
