/* Extracted from lighthouse-app.html (UI redesign N1) — load order matters */
    /* What's New Card - AI Narrative Summary */
    .whats-new-card {
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(59, 130, 246, 0.12) 100%);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: var(--radius-xl);
      padding: 24px;
      margin-bottom: 24px;
      position: relative;
      overflow: hidden;
      transition: border-color 0.3s ease;
      box-shadow: var(--shadow-card);
    }

    .whats-new-card:hover {
      border-color: rgba(168, 85, 247, 0.4);
    }
    
    /* whats-new-card: no decorative top-stripe or shimmer */

    .whats-new-brand-watermark {
      position: absolute;
      bottom: 12px;
      right: 16px;
      width: 36px;
      height: 36px;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      opacity: 0.10;
      pointer-events: none;
      z-index: 0;
      border-radius: 4px;
    }

    .whats-new-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }
    
    .whats-new-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--accent-purple);
    }
    
    .whats-new-icon {
      font-size: 18px;
    }
    
    .whats-new-timestamp {
      font-size: 11px;
      color: var(--text-muted);
    }
    
    .whats-new-content {
      font-size: 16px;
      line-height: 1.8;
      color: var(--text-primary);
    }
    
    .whats-new-content p {
      margin: 0 0 12px 0;
    }
    
    .whats-new-content p:last-child {
      margin-bottom: 0;
    }
    
    .whats-new-highlight {
      color: var(--accent);
      font-weight: 600;
    }
    
    /* Key Metrics Grid */
    .key-metrics-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-bottom: 24px;
    }
    
    @media (max-width: 900px) {
      .key-metrics-grid {
        grid-template-columns: 1fr;
      }
    }
    
    .key-metric-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 20px;
      transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
      box-shadow: var(--shadow-card);
    }

    /* key-metric-card: no decorative hover stripe */
    
    .key-metric-card:hover {
      border-color: rgba(168, 85, 247, 0.3);
    }
    
    .key-metric-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }
    
    .key-metric-title {
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-secondary);
    }
    
    .key-metric-value {
      font-size: 36px;
      font-weight: 700;
      color: var(--text-primary);
      line-height: 1;
      margin-bottom: 4px;
    }
    
    .key-metric-change {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 16px;
    }
    
    .key-metric-change.positive {
      color: var(--accent-green);
    }
    
    .key-metric-change.negative {
      color: var(--accent-red);
    }
    
    .key-metric-chart {
      height: 60px;
      margin-bottom: 12px;
      position: relative;
    }
    
    .key-metric-rank {
      font-size: 11px;
      color: var(--text-muted);
      border-top: 1px solid var(--border);
      padding-top: 12px;
    }
    
    .key-metric-rank-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 4px 0;
    }
    
    .key-metric-rank-item.you {
      color: var(--accent);
      font-weight: 600;
    }
    
    /* SOV Donut Chart */
    .sov-donut-container {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .sov-donut {
      width: 60px;
      height: 60px;
      position: relative;
    }
    
    .sov-legend {
      display: flex;
      flex-direction: column;
      gap: 4px;
      font-size: 10px;
    }
    
    .sov-legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    
    .sov-legend-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }

    /* Issue Cards */
    .issues-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    
    .issue-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 20px;
      transition: border-color 0.2s ease;
    }

    .issue-card:hover {
      border-color: var(--accent);
    }
    
    .issue-header {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 12px;
    }
    
    .issue-priority {
      padding: 4px 10px;
      border-radius: var(--radius-sm);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
    }
    
    .issue-priority.critical {
      background: rgba(239, 68, 68, 0.15);
      color: var(--accent-red);
    }
    
    .issue-priority.high {
      background: rgba(249, 115, 22, 0.15);
      color: var(--accent-orange);
    }
    
    .issue-priority.medium {
      background: rgba(234, 179, 8, 0.15);
      color: var(--accent-yellow);
    }
    
    .issue-priority.low {
      background: rgba(34, 197, 94, 0.15);
      color: var(--accent-green);
    }
    
    .issue-category {
      padding: 4px 10px;
      background: var(--bg-tertiary);
      border-radius: var(--radius-sm);
      font-size: 11px;
      color: var(--text-muted);
    }
    
    .issue-title {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 8px;
    }
    
    .issue-impact {
      font-size: 13px;
      color: var(--text-secondary);
      margin-bottom: 12px;
    }
    
    .issue-fix {
      background: var(--bg-tertiary);
      border-radius: var(--radius-md);
      padding: 12px;
      font-size: 13px;
      color: var(--accent-green);
    }
    
    .issue-fix-label {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-muted);
      margin-bottom: 4px;
    }
    
    .issue-effort {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: 12px;
      font-size: 11px;
      color: var(--text-muted);
    }
    
    /* Quick Wins */
    .quick-wins {
      display: grid;
      gap: 12px;
    }
    
    .quick-win {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 16px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }
    
    .quick-win-icon {
      width: 32px;
      height: 32px;
      background: rgba(34, 197, 94, 0.15);
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent-green);
      flex-shrink: 0;
    }
    
    .quick-win-content {
      flex: 1;
    }
    
    .quick-win-action {
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 4px;
    }
    
    .quick-win-impact {
      font-size: 12px;
      color: var(--text-secondary);
    }
    
    .quick-win-time {
      font-size: 11px;
      color: var(--accent);
      margin-top: 4px;
    }
    
    /* Strategic Recommendations */
    .strategy-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 24px;
      margin-bottom: 16px;
    }
    
    .strategy-title {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--accent-purple);
    }
    
    .strategy-rationale {
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 16px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border);
    }
    
    .strategy-implementation {
      font-size: 13px;
      color: var(--text-primary);
      margin-bottom: 16px;
      line-height: 1.7;
    }
    
    .strategy-insight {
      background: rgba(168, 85, 247, 0.06);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: var(--radius-md);
      padding: 12px 16px;
      font-size: 13px;
      font-style: italic;
      color: var(--text-secondary);
    }
    
    .strategy-insight-label {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--accent-purple);
      font-style: normal;
      margin-bottom: 4px;
    }
    
    /* Right Sidebar */
    .sidebar {
      background: var(--bg-secondary);
      border-left: 1px solid var(--border);
      overflow-y: auto;
      max-height: calc(100vh - 200px);
      position: sticky;
      top: 68px;
    }
    
    .sidebar-section {
      padding: 20px;
      padding-top: 0;
      border-bottom: none;
    }
    .sidebar-section + .sidebar-section {
      border-top: 1px solid var(--border);
    }
    
    .sidebar-title {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    /* Custom Prompt Input */
    .custom-prompt-form {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    
    .custom-prompt-input {
      width: 100%;
      padding: 14px 16px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      color: var(--text-primary);
      font-size: 14px;
      font-family: inherit;
      resize: none;
      outline: none;
      transition: border-color 0.2s ease;
    }

    .custom-prompt-input:focus {
      border-color: var(--accent);
    }
    
    .custom-prompt-input::placeholder {
      color: var(--text-muted);
    }
    
    .custom-prompt-btn {
      width: 100%;
      padding: 12px;
      background: var(--accent);
      border: none;
      border-radius: var(--radius-md);
      color: var(--bg-primary);
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: filter 0.2s ease, opacity 0.2s ease;
    }

    .custom-prompt-btn:hover:not(:disabled) {
      filter: brightness(1.1);
    }
    
    .custom-prompt-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
    
    /* Prompt Results */
    .prompt-result {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      margin-bottom: 12px;
      overflow: hidden;
    }
    
    .prompt-result-header {
      padding: 14px 16px;
      cursor: pointer;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      transition: background 0.2s ease;
    }
    
    .prompt-result-header:hover {
      background: var(--bg-tertiary);
    }
    
    .prompt-result-status {
      width: 24px;
      height: 24px;
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      flex-shrink: 0;
    }
    
    .prompt-result-status.found {
      background: rgba(34, 197, 94, 0.15);
      color: var(--accent-green);
    }
    
    .prompt-result-status.not-found {
      background: rgba(239, 68, 68, 0.15);
      color: var(--accent-red);
    }
    
    .prompt-result-text {
      flex: 1;
      font-size: 13px;
      line-height: 1.4;
    }
    
    .prompt-result-intent {
      font-size: 10px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-top: 4px;
    }
    
    .prompt-result-body {
      display: none;
      padding: 16px;
      border-top: 1px solid var(--border);
      background: var(--bg-tertiary);
    }
    
    .prompt-result.expanded .prompt-result-body {
      display: block;
    }
    
    /* Prompt Visibility Summary */
    .prompt-visibility-summary {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }
    
    .visibility-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 20px;
      position: relative;
      overflow: hidden;
      box-shadow: var(--shadow-card);
    }
    
    .visibility-card.unbranded {
      background: rgba(59, 130, 246, 0.06);
      border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .visibility-card.branded {
      background: rgba(168, 85, 247, 0.06);
      border: 1px solid rgba(168, 85, 247, 0.2);
    }
    
    .visibility-icon {
      font-size: 32px;
      margin-bottom: 8px;
    }
    
    .visibility-stats {
      margin-bottom: 12px;
    }
    
    .visibility-label {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
    }
    
    .visibility-value {
      font-size: 28px;
      font-weight: 700;
      color: var(--text-primary);
      font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
    }
    
    .visibility-desc {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 4px;
    }
    
    .visibility-bar {
      height: 6px;
      background: var(--bg-tertiary);
      border-radius: var(--radius-xs);
      overflow: hidden;
    }
    
    .visibility-bar-fill {
      height: 100%;
      border-radius: var(--radius-xs);
      transition: width 0.5s ease;
    }
    
    /* Prompt Section */
    .prompt-section {
      margin-bottom: 24px;
    }
    
    .prompt-section-header {
      margin-bottom: 16px;
    }
    
    .prompt-section-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-primary);
    }
    
    .prompt-section-desc {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 4px;
    }
    
    /* Prompt type badges */
    .prompt-result.unbranded {
      background: rgba(59, 130, 246, 0.06);
      border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .prompt-result.branded {
      background: rgba(168, 85, 247, 0.06);
      border: 1px solid rgba(168, 85, 247, 0.2);
    }
    
    .search-stage-badge {
      font-size: 9px;
      padding: 2px 6px;
      border-radius: var(--radius-xs);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-right: 8px;
    }
    
    .search-stage-badge.awareness {
      background: rgba(59, 130, 246, 0.2);
      color: #60a5fa;
    }
    
    .search-stage-badge.consideration {
      background: rgba(234, 179, 8, 0.2);
      color: #fde047;
    }
    
    .search-stage-badge.decision {
      background: rgba(34, 197, 94, 0.2);
      color: #86efac;
    }
    
    .prompt-response {
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.6;
      margin-bottom: 16px;
      max-height: 200px;
      overflow-y: auto;
    }
    
