    :root {
      --bg-dark: #0a0b10;
      --bg-card: rgba(18, 20, 32, 0.75);
      --bg-card-hover: rgba(28, 32, 52, 0.85);
      --border-color: rgba(157, 0, 255, 0.2);
      --border-bright: rgba(0, 240, 255, 0.5);
      --primary: #9d00ff;
      --primary-light: #c060ff;
      --cyan: #00f0ff;
      --pink: #ff007a;
      --gold: #ffd700;
      --text-main: #f0f2ff;
      --text-muted: #8c93b0;
      --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      --font-head: 'Space Grotesk', sans-serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background-color: var(--bg-dark);
      background-image: 
        radial-gradient(ellipse at 15% 15%, rgba(157, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 85%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 122, 0.05) 0%, transparent 60%);
      background-attachment: fixed;
      color: var(--text-main);
      font-family: var(--font-body);
      min-height: 100vh;
      line-height: 1.6;
    }

    .container {
      max-width: 1440px;
      margin: 0 auto;
      padding: 1.75rem 1.5rem;
    }

    /* Header */
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--border-color);
      margin-bottom: 2rem;
      flex-wrap: wrap;
      gap: 1.25rem;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      flex-shrink: 0;
    }

    .logo-badge {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--primary), var(--cyan));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      box-shadow: 0 0 20px rgba(157, 0, 255, 0.4);
      flex-shrink: 0;
    }

    .brand-text h1 {
      font-family: var(--font-head);
      font-size: 1.35rem;
      letter-spacing: -0.02em;
      white-space: nowrap;
      background: linear-gradient(90deg, #fff, var(--cyan));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .brand-text p {
      font-size: 0.8rem;
      color: var(--text-muted);
      white-space: nowrap;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: nowrap;
    }

    .btn {
      background: linear-gradient(135deg, var(--primary), #6e00ff);
      color: white;
      border: 1px solid rgba(255, 255, 255, 0.2);
      padding: 0.55rem 0.95rem;
      border-radius: 10px;
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      box-shadow: 0 4px 15px rgba(110, 0, 255, 0.3);
      white-space: nowrap;
      flex-shrink: 0;
      line-height: 1.3;
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 25px rgba(0, 240, 255, 0.4);
      border-color: var(--cyan);
    }

    .btn:active {
      transform: translateY(0);
    }

    .btn.btn-outline {
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      box-shadow: none;
    }

    .btn.btn-outline:hover {
      background: rgba(157, 0, 255, 0.15);
      border-color: var(--primary-light);
    }

    /* Stats Grid */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1.25rem;
      margin-bottom: 2rem;
    }

    .stat-card {
      background: var(--bg-card);
      backdrop-filter: blur(12px);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 1.25rem;
      position: relative;
      overflow: hidden;
    }

    .stat-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--primary), var(--cyan));
    }

    .stat-label {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .stat-value {
      font-family: var(--font-head);
      font-size: 1.8rem;
      font-weight: 700;
      color: #fff;
    }

    .stat-sub {
      font-size: 0.75rem;
      color: var(--cyan);
      margin-top: 0.25rem;
    }

    /* Main View Switcher Tabs */
    .main-view-tabs {
      display: flex;
      gap: 0.5rem;
      background: rgba(15, 23, 42, 0.7);
      padding: 0.35rem;
      border-radius: 14px;
      border: 1px solid var(--border-color);
      margin-bottom: 1.25rem;
      width: fit-content;
    }

    .view-tab {
      background: transparent;
      border: none;
      color: var(--text-muted);
      padding: 0.55rem 1.25rem;
      border-radius: 10px;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .view-tab:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.05);
    }

    .view-tab.active {
      background: linear-gradient(135deg, var(--primary), #6e00ff);
      color: #fff;
      box-shadow: 0 4px 15px rgba(110, 0, 255, 0.35);
    }

    .view-tab .badge-count {
      font-size: 0.75rem;
      padding: 0.15rem 0.5rem;
      border-radius: 9999px;
      background: rgba(0, 0, 0, 0.35);
      font-weight: 600;
    }

    .view-tab.active .badge-count {
      background: rgba(255, 255, 255, 0.25);
      color: #fff;
    }

    /* Raw Post Card Styles */
    .raw-post-card {
      background: var(--bg-card);
      backdrop-filter: blur(14px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 1.25rem 1.5rem;
      transition: all 0.25s ease;
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }

    .raw-post-card:hover {
      background: var(--bg-card-hover);
      border-color: rgba(0, 240, 255, 0.4);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 240, 255, 0.1);
    }

    .raw-post-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .raw-meta-group {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .raw-badge-kw {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--cyan);
      background: rgba(0, 240, 255, 0.1);
      border: 1px solid rgba(0, 240, 255, 0.3);
      padding: 0.2rem 0.6rem;
      border-radius: 8px;
    }

    .raw-badge-time {
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    .raw-post-body {
      color: var(--text-main);
      font-size: 0.93rem;
      line-height: 1.6;
      word-break: break-word;
    }

    .raw-post-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding-top: 0.75rem;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .raw-metrics {
      display: flex;
      gap: 1rem;
      font-size: 0.82rem;
      color: var(--text-muted);
    }

    /* Filter & Controls */
    .controls-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .category-pills {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .pill {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-color);
      color: var(--text-muted);
      padding: 0.4rem 1rem;
      border-radius: 20px;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .pill.active, .pill:hover {
      background: var(--primary);
      color: white;
      border-color: var(--cyan);
      box-shadow: 0 0 12px rgba(157, 0, 255, 0.4);
    }

    /* Story Cards */
    .stories-container {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .story-card {
      background: var(--bg-card);
      backdrop-filter: blur(16px);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      padding: 1.75rem;
      transition: all 0.3s ease;
      position: relative;
    }

    .story-card:hover {
      background: var(--bg-card-hover);
      border-color: var(--cyan);
      transform: translateY(-3px);
      box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
    }

    .story-card.highlight-target {
      border-color: #00ff88 !important;
      box-shadow: 0 0 35px rgba(0, 255, 136, 0.5), 0 0 15px rgba(0, 240, 255, 0.3) !important;
      animation: pulseHighlight 1.5s infinite alternate ease-in-out;
    }

    @keyframes pulseHighlight {
      0% { transform: scale(1); box-shadow: 0 0 25px rgba(0, 255, 136, 0.4); }
      100% { transform: scale(1.02); box-shadow: 0 0 45px rgba(0, 255, 136, 0.8); }
    }

    .story-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .author-info {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .author-avatar {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: linear-gradient(135deg, #3a1c71, #d7657b);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: white;
      font-size: 1rem;
    }

    .author-meta .handle {
      font-weight: 700;
      color: #fff;
      font-size: 1rem;
    }

    .author-meta .elapsed {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .score-badge-group {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .badge {
      padding: 0.35rem 0.85rem;
      border-radius: 8px;
      font-size: 0.8rem;
      font-weight: 700;
    }

    .badge-score {
      background: rgba(255, 0, 122, 0.2);
      border: 1px solid var(--pink);
      color: #ff5ba8;
      font-family: var(--font-head);
    }

    .badge-velocity {
      background: rgba(0, 240, 255, 0.15);
      border: 1px solid var(--cyan);
      color: var(--cyan);
      font-family: var(--font-mono);
    }

    .badge-category {
      background: rgba(157, 0, 255, 0.2);
      border: 1px solid var(--primary-light);
      color: #d896ff;
    }

    .story-body {
      background: rgba(0, 0, 0, 0.3);
      border-left: 3px solid var(--primary-light);
      padding: 1rem 1.25rem;
      border-radius: 0 10px 10px 0;
      margin-bottom: 1.25rem;
      font-size: 0.95rem;
      color: #e4e7fa;
      white-space: pre-wrap;
    }

    /* 1-Cut Comic Scene Guide Box */
    .scene-guide-box {
      background: linear-gradient(135deg, rgba(157, 0, 255, 0.1), rgba(0, 240, 255, 0.05));
      border: 1px dashed var(--border-bright);
      border-radius: 12px;
      padding: 1.25rem;
      margin-bottom: 1.25rem;
    }

    .scene-guide-title {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--cyan);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .scene-guide-content {
      font-size: 0.95rem;
      color: #ffffff;
      font-weight: 500;
    }

    /* Actions & Tools */
    .card-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      padding-top: 1rem;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .action-btns {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .btn-sm {
      padding: 0.45rem 0.9rem;
      font-size: 0.8rem;
      border-radius: 8px;
    }

    .metrics-summary {
      display: flex;
      align-items: center;
      gap: 1rem;
      font-size: 0.85rem;
      color: var(--text-muted);
      font-family: var(--font-mono);
    }

    /* Story Card Footer - Radar Registered Time & Delete Action */
    .story-card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-top: 0.85rem;
      padding-top: 0.75rem;
      border-top: 1px dashed rgba(255, 255, 255, 0.08);
      font-size: 0.78rem;
    }

    .radar-registered-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      color: #94a3b8;
      font-family: var(--font-mono);
      background: rgba(15, 23, 42, 0.65);
      padding: 0.3rem 0.65rem;
      border-radius: 6px;
      border: 1px solid rgba(0, 240, 255, 0.2);
    }

    .radar-registered-tag .radar-dot-live {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--cyan);
      box-shadow: 0 0 8px var(--cyan);
      animation: blinkDot 2s infinite ease-in-out;
    }

    @keyframes blinkDot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.85); }
    }

    .radar-registered-tag .reg-label {
      color: var(--cyan);
      font-weight: 600;
    }

    .radar-registered-tag .reg-time {
      color: #f1f5f9;
      font-weight: 500;
    }

    .radar-registered-tag .reg-relative {
      color: #38bdf8;
      font-weight: 600;
      margin-left: 0.2rem;
    }

    .btn-delete-card {
      background: rgba(255, 0, 122, 0.08);
      border: 1px solid rgba(255, 0, 122, 0.35);
      color: #ff5ba8;
      padding: 0.35rem 0.75rem;
      font-size: 0.78rem;
      border-radius: 6px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      transition: all 0.2s ease;
      font-family: var(--font-sans);
    }

    .btn-delete-card:hover {
      background: rgba(255, 0, 122, 0.25);
      border-color: #ff007a;
      color: #ffffff;
      box-shadow: 0 0 10px rgba(255, 0, 122, 0.4);
      transform: translateY(-1px);
    }

    .btn-clear-all {
      background: rgba(255, 0, 122, 0.08);
      border: 1px solid rgba(255, 0, 122, 0.3);
      color: #ff6b9d;
      padding: 0.35rem 0.8rem;
      font-size: 0.78rem;
      border-radius: 8px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      transition: all 0.2s ease;
    }

    .btn-clear-all:hover {
      background: rgba(255, 0, 122, 0.2);
      border-color: #ff007a;
      color: #ffffff;
      box-shadow: 0 0 10px rgba(255, 0, 122, 0.3);
    }

    .empty-state {
      text-align: center;
      padding: 5rem 2rem;
      background: var(--bg-card);
      border-radius: 20px;
      border: 1px dashed var(--border-color);
    }

    .empty-state h3 {
      font-size: 1.4rem;
      margin-bottom: 0.5rem;
      color: #fff;
    }

    .toast {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background: #191c2b;
      color: white;
      border: 1px solid var(--cyan);
      padding: 0.85rem 1.5rem;
      border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      z-index: 1000;
      transform: translateY(100px);
      opacity: 0;
      transition: all 0.3s ease;
      font-size: 0.9rem;
    }

    .toast.show {
      transform: translateY(0);
      opacity: 1;
    }

    @media (max-width: 768px) {
      .header-actions {
        width: 100%;
        justify-content: stretch;
      }
      .header-actions .btn {
        flex: 1;
      }
    }

    /* Keyword Studio Modal */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(5, 7, 15, 0.88);
      backdrop-filter: blur(8px);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
      opacity: 0;
      pointer-events: none;
      transition: all 0.25s ease;
    }
    .modal-overlay.open {
      opacity: 1;
      pointer-events: auto;
    }
    .modal-window {
      background: #111322;
      border: 1px solid var(--border-bright);
      border-radius: 20px;
      width: 100%;
      max-width: 820px;
      max-height: 90vh;
      overflow-y: auto;
      padding: 2rem;
      box-shadow: 0 20px 60px rgba(0, 240, 255, 0.25);
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 1rem;
    }
    .modal-header h2 {
      font-family: var(--font-head);
      font-size: 1.4rem;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .chip-group {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-top: 0.75rem;
    }
    .kw-chip {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      padding: 0.45rem 0.95rem;
      font-size: 0.9rem;
      color: var(--text-main);
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      cursor: pointer;
      transition: all 0.2s ease;
      user-select: none;
    }
    .kw-chip.enabled {
      background: rgba(157, 0, 255, 0.2);
      border-color: var(--cyan);
      box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    }
    .kw-chip.disabled {
      opacity: 0.45;
      border-style: dashed;
      text-decoration: line-through;
    }
    .kw-chip .del-btn {
      color: var(--text-muted);
      font-size: 1.1rem;
      cursor: pointer;
      margin-left: 0.25rem;
      padding: 0 0.2rem;
      line-height: 1;
    }
    .kw-chip .del-btn:hover {
      color: var(--pink);
    }
    .kw-input-row {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
    }
    .kw-input-row select, .kw-input-row input {
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid var(--border-color);
      color: #fff;
      padding: 0.75rem 1rem;
      border-radius: 10px;
      font-size: 0.95rem;
      outline: none;
    }
    .kw-input-row select:focus, .kw-input-row input:focus {
      border-color: var(--cyan);
      box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    }
    .kw-input-row input {
      flex: 1;
      min-width: 220px;
    }

    /* Settings Form Grid */
    .settings-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.25rem;
    }
    .setting-item {
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 1.25rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .setting-item label {
      font-size: 0.9rem;
      font-weight: 700;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .setting-item .setting-desc {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.4;
    }
    .setting-item input, .setting-item select {
      background: rgba(10, 12, 24, 0.9);
      border: 1px solid var(--border-color);
      color: #fff;
      padding: 0.75rem 1rem;
      border-radius: 10px;
      font-size: 0.95rem;
      outline: none;
      transition: all 0.2s ease;
    }
    .setting-item input:focus, .setting-item select:focus {
      border-color: var(--cyan);
      box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    }
    
    /* Live Trends Box */
    .trend-badge-card {
      background: rgba(255, 0, 122, 0.08);
      border: 1px solid rgba(255, 0, 122, 0.3);
      border-radius: 12px;
      padding: 0.8rem 1.1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.2s ease;
    }
    .trend-badge-card:hover {
      background: rgba(255, 0, 122, 0.16);
      border-color: var(--pink);
      transform: translateY(-2px);
    }
    .trend-rank {
      font-family: var(--font-head);
      font-size: 1.1rem;
      color: var(--pink);
      font-weight: 800;
      width: 28px;
    }

    /* Live Scan HUD Styles */
    .scan-hud {
      background: rgba(13, 17, 34, 0.85);
      backdrop-filter: blur(16px);
      border: 1px solid var(--border-bright);
      border-radius: 16px;
      padding: 1.25rem 1.5rem;
      margin-bottom: 2rem;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.15);
      position: relative;
      overflow: hidden;
      transition: all 0.3s ease;
    }
    .scan-hud::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--cyan), var(--primary), var(--pink));
    }
    .hud-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
    }
    .hud-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-family: var(--font-head);
    }
    .live-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--cyan);
      display: inline-block;
    }
    .live-dot.pulse {
      box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
      animation: pulse 1.5s infinite;
    }
    @keyframes pulse {
      0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
      70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
      100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
    }
    .hud-badge {
      background: rgba(0, 240, 255, 0.15);
      border: 1px solid var(--cyan);
      color: var(--cyan);
      font-size: 0.75rem;
      padding: 0.2rem 0.6rem;
      border-radius: 6px;
      font-family: var(--font-mono);
    }
    .pipeline-steps {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1.25rem;
      flex-wrap: wrap;
    }
    .step-chip {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 0.4rem 0.8rem;
      font-size: 0.85rem;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.25s ease;
    }
    .step-chip.active {
      background: rgba(0, 240, 255, 0.15);
      border-color: var(--cyan);
      color: #fff;
      box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
    }
    .step-chip.completed {
      background: rgba(0, 255, 136, 0.12);
      border-color: #00ff88;
      color: #00ff88;
    }
    .step-num {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 700;
    }
    .step-chip.active .step-num {
      background: var(--cyan);
      color: #000;
    }
    .step-chip.completed .step-num {
      background: #00ff88;
      color: #000;
    }
    .step-arrow {
      color: var(--text-muted);
      font-size: 0.9rem;
    }
    .progress-section {
      margin-bottom: 1.25rem;
    }
    .progress-info {
      display: flex;
      justify-content: space-between;
      font-size: 0.85rem;
      margin-bottom: 0.4rem;
      color: var(--text-main);
    }
    .progress-bar-bg {
      height: 8px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 4px;
      overflow: hidden;
      position: relative;
    }
    .progress-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--cyan), var(--primary-light), var(--pink));
      border-radius: 4px;
      transition: width 0.3s ease;
      box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    }
    /* Terminal Console */
    .terminal-window {
      background: #080a14;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
    }
    .terminal-bar {
      background: #111424;
      padding: 0.4rem 0.8rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .terminal-dots {
      display: flex;
      gap: 6px;
    }
    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }
    .dot.red { background: #ff5f56; }
    .dot.yellow { background: #ffbd2e; }
    .dot.green { background: #27c93f; }
    .terminal-title {
      font-size: 0.75rem;
      color: var(--text-muted);
      font-family: var(--font-mono);
    }
    .terminal-clear {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 0.75rem;
      cursor: pointer;
    }
    .terminal-clear:hover { color: #fff; }
    .terminal-console {
      height: 140px;
      overflow-y: auto;
      padding: 0.75rem 1rem;
      font-family: var(--font-mono);
      font-size: 0.82rem;
      line-height: 1.6;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }
    .terminal-console::-webkit-scrollbar {
      width: 6px;
    }
    .terminal-console::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 3px;
    }
    .log-line {
      color: #a0aec0;
      word-break: break-all;
    }
    .log-line.info { color: #00f0ff; }
    .log-line.success { color: #00ff88; font-weight: 700; }
    .log-line.warn { color: #ffaa00; }
    .log-line.error { color: #ff007a; }

    /* Auto Patrol Neon Toggle Switch */
    .toggle-switch-wrap {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      background: rgba(15, 23, 42, 0.85);
      padding: 0.4rem 0.85rem;
      border-radius: 9999px;
      border: 1px solid rgba(255, 255, 255, 0.15);
      cursor: pointer;
      user-select: none;
      transition: all 0.25s ease;
    }
    .toggle-switch-wrap:hover {
      border-color: rgba(0, 240, 255, 0.4);
    }
    .toggle-switch-wrap.active {
      border-color: #00ff88;
      box-shadow: 0 0 14px rgba(0, 255, 136, 0.35);
      background: rgba(0, 255, 136, 0.08);
    }
    .toggle-switch-wrap input {
      display: none;
    }
    .toggle-slider {
      position: relative;
      width: 36px;
      height: 20px;
      background: #334155;
      border-radius: 20px;
      transition: 0.25s;
    }
    .toggle-slider::before {
      content: '';
      position: absolute;
      width: 14px;
      height: 14px;
      left: 3px;
      top: 3px;
      background: white;
      border-radius: 50%;
      transition: 0.25s;
    }
    .toggle-switch-wrap input:checked + .toggle-slider {
      background: #00ff88;
    }
    .toggle-switch-wrap input:checked + .toggle-slider::before {
      transform: translateX(16px);
      background: #050811;
    }
    .toggle-label {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--text-muted);
      transition: color 0.2s ease;
    }
    .toggle-switch-wrap.active .toggle-label {
      color: #00ff88;
      text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
    }
  </style>