.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-menu__sign-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.user-menu__sign-in:hover {
  background: var(--color-primary-hover);
}

.user-menu__container {
  position: relative;
}

.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: none;
  border: none;
  border-radius: 8px;
  transition: background-color 0.15s;
}

.user-menu__trigger:hover {
  background: var(--color-surface-hover);
}

.user-menu__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-menu__avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.user-menu__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.user-menu__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-card-hover);
  min-width: 180px;
  z-index: 100;
  padding: 4px;
}

.user-menu__dropdown-info {
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 4px;
}

.user-menu__dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.user-menu__dropdown-email {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.user-menu__dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  border-radius: 6px;
  transition: background-color 0.15s;
}

.user-menu__dropdown-item:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.project-list__empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.project-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.project-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.project-card:has(.project-card__name a:focus-visible) {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.project-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card__name a {
  color: inherit;
  text-decoration: none;
}

.project-card__name a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.project-card__name a:focus-visible {
  outline: none;
}

.project-card__url {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card__url:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.project-card__loop-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--color-status-active-bg);
  color: var(--color-status-active);
}

.project-card__stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.project-card__stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

@media (max-width: 640px) {
  .project-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .project-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .project-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-card {
    padding: 14px;
    border-radius: 10px;
  }
}
.status-filter {
  position: relative;
}

.status-filter__controls {
  display: flex;
  align-items: stretch;
}

.status-filter__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.status-filter__trigger:hover {
  border-color: var(--color-primary);
}

.status-filter__trigger--active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.status-filter__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary);
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: var(--color-primary);
}

.status-filter__clear:hover {
  background: var(--color-primary);
  color: white;
}

.status-filter__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 50;
  padding: 4px;
}

.status-filter__option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  color: var(--color-text-primary);
  border-radius: 6px;
}

.status-filter__option:hover {
  background: var(--color-surface-hover);
}

.status-filter__option--selected {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 500;
}
.create-project-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: var(--accent-primary, var(--color-primary));
  color: var(--text-on-accent, white);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: background 150ms ease;
}

.create-project-btn:hover {
  background: var(--accent-hover, var(--color-primary-hover));
}

.create-project-btn:active {
  background: var(--accent-pressed, var(--color-primary-dark));
}

.create-project-btn:focus-visible {
  outline: 2px solid var(--accent-primary, var(--color-primary));
  outline-offset: 2px;
}

.create-project-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .create-project-btn__label {
    display: none;
  }

  .create-project-btn {
    padding: 0 8px;
  }
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--color-surface-secondary, #f3f4f6);
  color: var(--color-text-primary, #111827);
  border: 1px solid var(--color-border-light, #e5e7eb);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.pagination__btn:hover:not(:disabled) {
  background: var(--color-border-light, #e5e7eb);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.pagination__info {
  font-size: 13px;
  color: var(--color-text-muted, #6b7280);
}
.dashboard {
  padding: 24px;
}

.dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.dashboard__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard__create-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.dashboard__create-btn:hover {
  background: var(--color-primary-hover);
}

/* Skeleton loading */
.project-card--skeleton {
  pointer-events: none;
}

.skeleton {
  background: var(--color-border-light);
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton--text {
  height: 14px;
}

.skeleton--title {
  width: 60%;
  height: 18px;
}

.skeleton--badge {
  width: 56px;
  height: 22px;
  border-radius: 12px;
}

.skeleton--url {
  width: 45%;
  margin-bottom: 16px;
}

.skeleton--stat {
  width: 72px;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Error state */
.dashboard__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--color-danger);
}

.dashboard__error-message {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.dashboard__retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.dashboard__retry-btn:hover {
  background: var(--color-primary-hover);
}

.dashboard__retry-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Refetching indicator */
.dashboard__content {
  position: relative;
}

.dashboard__refetching {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-surface-secondary);
  border-radius: 6px;
}

.dashboard__refetching-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* About section */
.about {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.about__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.about__intro {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 24px;
}

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

.about__stage {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
}

.about__stage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.about__stage-icon--explore {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.about__stage-icon--journey {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.about__stage-icon--polish {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.about__stage-icon--rootcause {
  background: rgba(240, 45, 94, 0.1);
  color: var(--color-primary);
}

.about__stage-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.about__stage-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.about__stage-desc strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

@media (max-width: 640px) {
  .dashboard {
    padding: 12px;
  }

  .dashboard__title {
    font-size: 20px;
  }

  .dashboard__error {
    padding: 32px 16px;
  }
}

@media (max-width: 480px) {
  .dashboard__header {
    margin-bottom: 16px;
  }

  .about__stages {
    grid-template-columns: 1fr;
  }
}
.project-form__error {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  background: var(--status-error-bg, var(--color-danger-bg));
  color: var(--status-error, var(--color-danger));
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
}

.project-form__error-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.7;
}

.project-form__error-dismiss:hover {
  opacity: 1;
}

.project-form__field {
  margin-bottom: 20px;
}

.project-form__field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, var(--color-text-primary));
  margin-bottom: 6px;
}

.project-form__field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-default, var(--color-border));
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary, var(--color-text-primary));
  background: var(--bg-base, var(--color-surface));
  transition: border-color 150ms ease;
}

.project-form__field input:focus {
  outline: none;
  border-color: var(--accent-primary, var(--color-primary));
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-primary, var(--color-primary));
}

.project-form__field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--bg-muted, var(--color-surface-hover));
}

.project-form__field-hint {
  font-size: 13px;
  color: var(--text-muted, var(--color-text-secondary));
  margin: 0 0 6px;
}

.project-form__field-error {
  display: block;
  color: var(--status-error, var(--color-danger));
  font-size: 13px;
  margin-top: 4px;
}

.project-form__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.project-form__cancel-btn {
  height: 36px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--border-default, var(--color-border));
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted, var(--color-text-secondary));
  transition: all 150ms ease;
}

.project-form__cancel-btn:hover {
  background: var(--bg-elevated, var(--color-surface-hover));
}

.project-form__cancel-btn:focus-visible {
  outline: 2px solid var(--accent-primary, var(--color-primary));
  outline-offset: 2px;
}

.project-form__submit-btn {
  height: 36px;
  padding: 0 14px;
  background: var(--accent-primary, var(--color-primary));
  color: var(--text-on-accent, white);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: background 150ms ease;
}

.project-form__submit-btn:hover {
  background: var(--accent-hover, var(--color-primary-hover));
}

.project-form__submit-btn:focus-visible {
  outline: 2px solid var(--accent-primary, var(--color-primary));
  outline-offset: 2px;
}

.project-form__submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.project-form__spinner {
  animation: project-form-spin 1s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes project-form-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .project-form__actions {
    flex-direction: column-reverse;
  }

  .project-form__cancel-btn,
  .project-form__submit-btn {
    width: 100%;
  }
}
.create-project {
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .create-project {
    padding: 12px;
  }

  .create-project__card {
    padding: 20px;
  }

  .create-project__title {
    font-size: 20px;
  }
}

.create-project__back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  padding: 0;
}

.create-project__back:hover {
  color: var(--color-primary);
}

.create-project__back:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.create-project__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
}

.create-project__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.create-project__error {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.create-project__field {
  margin-bottom: 20px;
}

.create-project__field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.create-project__field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-text-primary);
  background: var(--color-surface);
  transition: border-color 0.15s;
}

.create-project__field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.create-project__field-error {
  display: block;
  color: var(--color-danger);
  font-size: 13px;
  margin-top: 4px;
}

.create-project__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.create-project__cancel-btn {
  padding: 10px 20px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.create-project__cancel-btn:hover {
  background: var(--color-surface-hover);
}

.create-project__submit-btn {
  padding: 10px 20px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.create-project__submit-btn:hover {
  background: var(--color-primary-hover);
}

.create-project__submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.project-header__name {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.project-header__url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.project-header__url:hover {
  color: var(--color-primary);
}

.project-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-header__loop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.project-header__loop-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary, #3b82f6);
  cursor: pointer;
}

.project-header__loop-label {
  color: var(--color-text-tertiary, #999);
}

.project-header__loop-label--active {
  color: var(--color-status-active, #22c55e);
}

.project-header__url:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.project-header__delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--color-danger, #ef4444);
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-danger, #ef4444);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.project-header__delete-btn:hover {
  background: var(--color-danger, #ef4444);
  color: white;
}

.project-header__delete-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.project-header__confirm-delete-btn {
  padding: 6px 12px;
  border: none;
  background: var(--color-danger, #ef4444);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.project-header__confirm-delete-btn:hover {
  opacity: 0.9;
}

.project-header__cancel-delete-btn {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.project-header__cancel-delete-btn:hover {
  background: var(--color-surface-hover);
}

@media (max-width: 640px) {
  .project-header__name {
    font-size: 20px;
  }

  .project-header__url {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-header__loop-toggle {
    font-size: 12px;
  }
}
.tab-navigation {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.tab-navigation__tab {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.tab-navigation__tab:hover {
  color: var(--color-text-primary);
}

.tab-navigation__tab:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.tab-navigation__tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

@media (max-width: 640px) {
  .tab-navigation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
  }

  .tab-navigation__tab {
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
}
.status-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-indicator--completed {
  background: var(--color-status-completed-bg);
  color: var(--color-status-completed);
}

.status-indicator--failed {
  background: var(--color-status-failed-bg);
  color: var(--color-status-failed);
}

.status-indicator--in-progress {
  background: var(--color-status-in-progress-bg);
  color: var(--color-status-in-progress);
  animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.status-indicator__tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: #111318;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  pointer-events: none;
  z-index: 10;
}

.status-indicator__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #111318;
}
.journeys-tab {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journeys-tab__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
}

.journeys-tab__total {
  font-size: 0.8125rem;
  color: var(--text-secondary, #666);
}

.journeys-tab__loading,
.journeys-tab__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-tertiary, #999);
  font-size: 0.875rem;
}

.journeys-tab__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--text-secondary, #666);
}

.journeys-tab__error button {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 0.8125rem;
}

.journeys-tab__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.journeys-tab__journey {
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 8px;
  overflow: hidden;
}

.journeys-tab__journey-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.journeys-tab__journey-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: var(--surface-secondary, #f5f5f5);
  cursor: pointer;
  font-size: 0.875rem;
  text-align: left;
  color: var(--text-primary, #333);
}

.journeys-tab__journey-toggle:hover {
  background: var(--surface-hover, #eee);
}

.journeys-tab__journey-icon {
  color: var(--primary, #4f46e5);
  flex-shrink: 0;
}

.journeys-tab__journey-name {
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journeys-tab__status-icon--completed {
  color: var(--success, #22c55e);
}

.journeys-tab__status-icon--failed {
  color: var(--danger, #e53e3e);
}

.journeys-tab__status-icon--in-progress {
  color: var(--warning, #f59e0b);
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.journeys-tab__journey-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary, #999);
  white-space: nowrap;
}

.journeys-tab__run-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  margin-right: 0.75rem;
  border: none;
  border-radius: 6px;
  background: var(--primary, #4f46e5);
  color: white;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.journeys-tab__run-btn:hover {
  opacity: 0.9;
}

.journeys-tab__run-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.journeys-tab__journey-desc {
  padding: 0.5rem 0.75rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary, #666);
  border-top: 1px solid var(--border-color, #e0e0e0);
  background: var(--surface-primary, #fff);
}

.journeys-tab__actions {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border-color, #e0e0e0);
}

.journeys-tab__actions-title,
.journeys-tab__runs-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary, #999);
  margin: 0 0 0.5rem;
}

.journeys-tab__actions-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.journeys-tab__action {
  font-size: 0.8125rem;
  color: var(--text-primary, #333);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
}

.journeys-tab__action-type {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary, #999);
  background: var(--surface-secondary, #f5f5f5);
  padding: 0.0625rem 0.375rem;
  border-radius: 3px;
}

.journeys-tab__action--failed {
  border-left: 2px solid var(--danger, #e53e3e);
  padding-left: 0.5rem;
  margin-left: -0.5rem;
}

.journeys-tab__action-error {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--danger, #e53e3e);
  margin-top: 0.25rem;
}

.journeys-tab__action-desc {
  flex: 1;
}

.journeys-tab__checks {
  width: 100%;
  list-style: none;
  padding: 0.125rem 0 0 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.journeys-tab__check {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-tertiary, #999);
}

.journeys-tab__variables {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border-color, #e0e0e0);
}

.journeys-tab__variable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.journeys-tab__variable-tag {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--primary, #4f46e5);
  background: var(--surface-secondary, #f5f5f5);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color, #e0e0e0);
}

.journeys-tab__action-details {
  display: flex;
  gap: 0.375rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.journeys-tab__action-selector {
  font-size: 0.6875rem;
  color: var(--text-secondary, #666);
  background: var(--surface-secondary, #f5f5f5);
  padding: 0.0625rem 0.375rem;
  border-radius: 3px;
}

.journeys-tab__action-value {
  font-size: 0.6875rem;
  color: var(--text-secondary, #666);
  font-style: italic;
}

.journeys-tab__action-var {
  font-size: 0.6875rem;
  font-family: monospace;
  color: var(--primary, #4f46e5);
}

.journeys-tab__versions {
  border-top: 1px solid var(--border-color, #e0e0e0);
}

.journeys-tab__versions-empty {
  border-top: 1px solid var(--border-color, #e0e0e0);
  padding: 0.5rem 0.75rem 0.75rem;
}

.journeys-tab__version {
  border-top: 1px solid var(--border-color, #e0e0e0);
}

.journeys-tab__version:first-child {
  border-top: none;
}

.journeys-tab__version--current {
  background: var(--surface-primary, #fff);
}

.journeys-tab__version-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.8125rem;
  text-align: left;
  color: var(--text-primary, #333);
}

.journeys-tab__version-header:hover {
  background: var(--surface-hover, #eee);
}

.journeys-tab__version-label {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.journeys-tab__version-current-badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary, #4f46e5);
  background: var(--surface-secondary, #f5f5f5);
  padding: 0.0625rem 0.375rem;
  border-radius: 3px;
  border: 1px solid var(--primary, #4f46e5);
}

.journeys-tab__version-run-info {
  font-size: 0.75rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journeys-tab__version-run-info--completed {
  color: var(--success, #22c55e);
}

.journeys-tab__version-run-info--failed {
  color: var(--danger, #e53e3e);
}

.journeys-tab__version-run-info--in-progress {
  color: var(--warning, #f59e0b);
}

.journeys-tab__version-run-info--none {
  color: var(--text-tertiary, #999);
}

.journeys-tab__version-run-info--resolved {
  color: var(--success, #22c55e);
}

.journeys-tab__version-error {
  color: var(--text-secondary, #666);
  font-style: italic;
}

.journeys-tab__version-meta {
  font-size: 0.6875rem;
  color: var(--text-tertiary, #999);
  white-space: nowrap;
}

.journeys-tab__version-content {
  padding: 0 0.75rem 0.5rem 1.75rem;
}

.journeys-tab__version-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--color-danger, #dc3545);
  background: none;
  border: 1px solid var(--color-danger, #dc3545);
  border-radius: 6px;
  cursor: pointer;
}

.journeys-tab__version-delete-btn:hover {
  background: var(--color-danger, #dc3545);
  color: white;
}

.journeys-tab__runs {
  padding: 0.5rem 0 0.25rem;
}

.journeys-tab__no-runs {
  font-size: 0.8125rem;
  color: var(--text-tertiary, #999);
  margin: 0.25rem 0;
}

.journeys-tab__runs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.journeys-tab__runs-table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-tertiary, #999);
  padding: 0.375rem 0.5rem;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.journeys-tab__runs-table td {
  padding: 0.375rem 0.5rem;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.journeys-tab__run-row {
  cursor: pointer;
}

.journeys-tab__run-row:hover {
  background: var(--surface-secondary, #f5f5f5);
}

.journeys-tab__run-date {
  font-size: 0.75rem;
  color: var(--text-secondary, #666);
}

.journeys-tab__run-duration {
  font-variant-numeric: tabular-nums;
}

.journeys-tab__replay-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary, #4f46e5);
  text-decoration: none;
  font-size: 0.75rem;
}

.journeys-tab__replay-link:hover {
  text-decoration: underline;
}

/* Bug link indicator */
.journeys-tab__bug-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger, #e53e3e);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.15s;
}

.journeys-tab__bug-link:hover {
  background: rgba(239, 68, 68, 0.2);
}

.journeys-tab__bug-link:focus-visible {
  outline: 2px solid var(--danger, #e53e3e);
  outline-offset: 1px;
  border-radius: 4px;
}

.journeys-tab__bug-count {
  font-variant-numeric: tabular-nums;
}

.journeys-tab__bug-link--resolved {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success, #22c55e);
}

.journeys-tab__bug-link--resolved:hover {
  background: rgba(34, 197, 94, 0.2);
}

.journeys-tab__bug-link--resolved:focus-visible {
  outline-color: var(--success, #22c55e);
}

.journeys-tab__bug-resolved-label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Context labels for multiplayer journeys */
.journeys-tab__contexts {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border-color, #e0e0e0);
}

.journeys-tab__context-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.journeys-tab__context-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--primary, #4f46e5);
  background: var(--surface-secondary, #f5f5f5);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color, #e0e0e0);
}

.journeys-tab__action-context {
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  background: var(--primary, #4f46e5);
  padding: 0.0625rem 0.375rem;
  border-radius: 3px;
}

.journeys-tab__context-icon {
  vertical-align: middle;
  margin-right: 0.125rem;
}

.journeys-tab__recording-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* Viewport filter */
.journeys-tab__viewport-filter {
  display: flex;
  gap: 2px;
  background: var(--surface-secondary, #f5f5f5);
  border-radius: 8px;
  padding: 2px;
}

.journeys-tab__filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary, #666);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.journeys-tab__filter-btn:hover {
  background: var(--surface-hover, #eee);
}

.journeys-tab__filter-btn--active {
  background: white;
  color: var(--text-primary, #111);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Mobile badge */
.journeys-tab__mobile-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--primary, #4f46e5);
  background: rgba(79, 70, 229, 0.08);
  flex-shrink: 0;
}

/* Mobile toggle in expanded journey */
.journeys-tab__journey-settings {
  padding: 0 0.5rem 0.5rem 2rem;
}

.journeys-tab__mobile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary, #666);
  cursor: pointer;
  margin-top: 4px;
}

.journeys-tab__mobile-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* Default variant - project status */
.status-badge--default-active {
  background: var(--color-status-active-bg);
  color: var(--color-status-active);
}

.status-badge--default-paused {
  background: var(--color-status-paused-bg);
  color: var(--color-status-paused);
}

.status-badge--default-completed {
  background: var(--color-status-completed-bg);
  color: var(--color-status-completed);
}

.status-badge--default-failed {
  background: var(--color-status-failed-bg);
  color: var(--color-status-failed);
}

.status-badge--default-in-progress {
  background: var(--color-status-in-progress-bg);
  color: var(--color-status-in-progress);
}

/* Severity variant */
.status-badge--severity-critical {
  background: var(--color-severity-critical-bg);
  color: var(--color-severity-critical);
}

.status-badge--severity-high {
  background: var(--color-severity-high-bg);
  color: var(--color-severity-high);
}

.status-badge--severity-medium {
  background: var(--color-severity-medium-bg);
  color: var(--color-severity-medium);
}

.status-badge--severity-low {
  background: var(--color-severity-low-bg);
  color: var(--color-severity-low);
}

/* Bug status variant */
.status-badge--bug-open {
  background: var(--color-bug-open-bg);
  color: var(--color-bug-open);
}

.status-badge--bug-confirmed {
  background: var(--color-bug-confirmed-bg);
  color: var(--color-bug-confirmed);
}

.status-badge--bug-fixed {
  background: var(--color-bug-fixed-bg);
  color: var(--color-bug-fixed);
}

.status-badge--bug-dismissed {
  background: var(--color-bug-dismissed-bg);
  color: var(--color-bug-dismissed);
}

.status-badge--bug-judge-rejected {
  background: rgba(249, 115, 22, 0.1);
  color: rgb(194, 65, 12);
}
.bug-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.bug-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
}

.bug-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border-light);
}

.bug-table__row {
  cursor: pointer;
}

.bug-table__row:hover td {
  background: var(--color-surface-hover);
}

.bug-table__title {
  font-weight: 500;
  color: var(--color-text-primary);
}

.bug-table__date {
  color: var(--color-text-muted);
  font-size: 13px;
}

.bug-table__run {
  color: var(--color-text-muted);
  font-size: 13px;
  font-family: monospace;
}

.bug-table__tooltip-wrapper {
  display: inline-flex;
}

.bug-table__send-webhook-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: underline;
}

.bug-table__send-webhook-btn:hover:not(:disabled) {
  background: var(--color-primary-light, rgba(59, 130, 246, 0.1));
}

.bug-table__send-webhook-btn:disabled {
  color: var(--color-text-muted);
  cursor: default;
  text-decoration: none;
}

.bug-table-loading,
.bug-table-empty {
  text-align: center;
  padding: 32px;
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .bug-table__col-discovered {
    display: none;
  }
}

@media (max-width: 768px) {
  .bug-table__col-run {
    display: none;
  }
}

@media (max-width: 480px) {
  .bug-table thead {
    display: none;
  }

  .bug-table__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    align-items: center;
  }

  .bug-table__row td {
    border-bottom: none;
    padding: 0;
  }

  .bug-table__row td.bug-table__title {
    flex-basis: 100%;
  }

  .bug-table__row td.bug-table__col-discovered,
  .bug-table__row td.bug-table__col-run {
    display: none;
  }
}
.severity-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: all 150ms ease;
}

.severity-sort:hover {
  border-color: var(--color-primary);
}

.severity-sort--asc {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.bug-list-tab__controls {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.bug-list-tab__add-wrapper {
  margin-left: auto;
}

.bug-list-tab__error {
  text-align: center;
  padding: 32px;
  color: var(--color-text-muted, #6B7280);
}

.bug-list-tab__error button {
  margin-top: 8px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bug-list-tab__error button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.bug-list-tab__delete-all-wrapper {
  margin-left: auto;
}

.bug-list-tab__delete-all-btn {
  padding: 8px 16px;
  background: var(--color-danger, #EF4444);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bug-list-tab__delete-all-btn:hover {
  opacity: 0.9;
}

.bug-list-tab__delete-all-btn:focus-visible {
  outline: 2px solid var(--color-danger, #EF4444);
  outline-offset: 2px;
}

.bug-list-tab__confirm-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted, #6B7280);
}

.bug-list-tab__confirm-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.bug-list-tab__confirm-btn--yes {
  background: var(--color-danger, #EF4444);
  color: white;
}

.bug-list-tab__confirm-btn--no {
  background: var(--color-bg-secondary, #F3F4F6);
  color: var(--color-text, #1F2937);
}

@media (max-width: 480px) {
  .bug-list-tab__add-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .bug-list-tab__delete-all-wrapper {
    margin-left: 0;
    width: 100%;
  }
}
.members-loading {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 12px 0;
}

.members-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.members-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 8px;
}

.members-list__info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.members-list__email {
  font-size: 14px;
  font-weight: 500;
}

.members-list__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
}

.members-list__badge--owner {
  background: var(--color-primary-bg, rgba(59, 130, 246, 0.1));
  color: var(--color-primary);
}

.members-list__badge--pending {
  background: rgba(234, 179, 8, 0.1);
  color: #b45309;
}

.members-list__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.members-list__remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 6px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.members-list__remove-btn:hover {
  background: var(--color-danger-bg);
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.members-list__confirm {
  display: flex;
  gap: 6px;
}

.members-list__confirm button {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 6px;
  cursor: pointer;
}

.members-list__confirm-btn {
  background: var(--color-danger) !important;
  color: white !important;
  border-color: var(--color-danger) !important;
}

.members-invite {
  margin-top: 4px;
}

.members-invite__error {
  font-size: 13px;
  color: var(--color-danger);
  margin-top: 6px;
}
.project-settings {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
}

.settings-section--danger {
  border-color: var(--color-danger);
}

.settings-section__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.settings-section__title--danger {
  color: var(--color-danger);
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-section__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.settings-section__field {
  margin-bottom: 12px;
}

.settings-section__field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.settings-section__field input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
}

.settings-section__field input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.settings-section__input-row {
  display: flex;
  gap: 8px;
}

.settings-section__input-row input {
  flex: 1;
}

.settings-section__test-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.settings-section__test-btn:hover {
  background: var(--color-surface-hover);
}

.settings-section__test-result {
  font-size: 13px;
  margin-top: 6px;
}

.settings-section__test-result--success {
  color: var(--color-status-active);
}

.settings-section__test-result--error {
  color: var(--color-danger);
}

.settings-section__save-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.settings-section__save-btn:hover {
  background: var(--color-primary-hover);
}

.settings-section__save-btn:disabled {
  opacity: 0.6;
}

.settings-section__frequency-options {
  display: flex;
  gap: 4px;
}

.settings-section__freq-btn {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.settings-section__freq-btn--active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.settings-section__delete-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.settings-section__delete-btn:hover {
  background: var(--color-danger);
  color: white;
}

.settings-section__delete-confirm p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.settings-section__delete-error {
  color: var(--color-danger) !important;
}

.settings-section__delete-actions {
  display: flex;
  gap: 8px;
}

.settings-section__delete-actions button {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 8px;
  font-size: 14px;
}

.settings-section__confirm-delete-btn {
  background: var(--color-danger) !important;
  color: white !important;
  border-color: var(--color-danger) !important;
}

.settings-section__toggle-field {
  margin-bottom: 12px;
}

.settings-section__toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.settings-section__toggle-input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.settings-section__toggle-text {
  font-size: 14px;
  font-weight: 500;
}

.settings-section__toggle-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 4px;
  margin-left: 24px;
}

.settings-section__setup-instructions {
  margin-top: 20px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.settings-section__setup-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.settings-section__service-guide {
  margin-bottom: 16px;
}

.settings-section__service-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.settings-section__steps {
  font-size: 13px;
  color: var(--color-text-secondary);
  padding-left: 20px;
  margin: 0;
}

.settings-section__steps li {
  margin-bottom: 4px;
}

.settings-section__steps code {
  background: var(--color-surface-hover);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 12px;
}

.settings-section__payload-info {
  margin-bottom: 0;
}

.settings-section__payload-info p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.settings-section__payload-example {
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  overflow-x: auto;
  margin: 0;
}

@media (max-width: 640px) {
  .settings-section {
    padding: 16px;
  }

  .settings-section__input-row {
    flex-direction: column;
  }

  .settings-section__frequency-options {
    flex-wrap: wrap;
  }

  .settings-section__delete-actions {
    flex-wrap: wrap;
  }
}
.explorations-tab__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.explorations-tab__new-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.explorations-tab__new-btn:hover {
  background: var(--color-primary-hover);
}

.explorations-tab__new-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.explorations-tab__loading {
  padding: 48px 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

.explorations-tab__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--color-danger);
}

.explorations-tab__error button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.explorations-tab__empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

.explorations-tab__table {
  width: 100%;
  border-collapse: collapse;
}

.explorations-tab__table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
}

.explorations-tab__table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-primary);
}

.explorations-tab__prompt {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorations-tab__status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.explorations-tab__status--pending {
  background: var(--color-border-light);
  color: var(--color-text-secondary);
}

.explorations-tab__status--in-progress {
  background: color-mix(in srgb, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
}

.explorations-tab__status--completed {
  background: color-mix(in srgb, var(--color-success) 15%, transparent);
  color: var(--color-success);
}

.explorations-tab__status--failed {
  background: color-mix(in srgb, var(--color-danger) 15%, transparent);
  color: var(--color-danger);
}

/* Modal */
.explorations-tab__modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.explorations-tab__modal {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 24px;
  width: 480px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.explorations-tab__modal h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.explorations-tab__modal-field {
  margin-bottom: 16px;
}

.explorations-tab__modal-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.explorations-tab__modal-field textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.explorations-tab__modal-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.explorations-tab__modal-field input[type="number"] {
  width: 80px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-size: 14px;
}

.explorations-tab__modal-field input[type="number"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.explorations-tab__modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.explorations-tab__modal-cancel {
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-size: 14px;
  cursor: pointer;
}

.explorations-tab__modal-cancel:hover {
  background: var(--color-border-light);
}

.explorations-tab__modal-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.explorations-tab__modal-submit:hover {
  background: var(--color-primary-hover);
}

.explorations-tab__modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.explorations-tab__create-error {
  margin-top: 12px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--color-danger) 10%, transparent);
  border: 1px solid var(--color-danger);
  border-radius: 8px;
  color: var(--color-danger);
  font-size: 13px;
}

/* Expandable rows */
.explorations-tab__row {
  transition: background 0.1s;
}

.explorations-tab__row:hover {
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
}

.explorations-tab__row--expanded {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

/* Logs panel */
.explorations-tab__logs {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 12px 16px;
}

.explorations-tab__logs-loading,
.explorations-tab__logs-empty {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 8px 0;
}

.explorations-tab__logs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 400px;
  overflow-y: auto;
}

.explorations-tab__log-entry {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.explorations-tab__log-time {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.explorations-tab__log-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
}

.explorations-tab__log-message {
  color: var(--color-text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  min-width: 0;
}
.polish-tab__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.polish-tab__refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.polish-tab__refresh-btn:hover {
  background: var(--color-border-light);
}

.polish-tab__loading {
  padding: 48px 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

.polish-tab__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--color-danger);
}

.polish-tab__error button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.polish-tab__empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

.polish-tab__table {
  width: 100%;
  border-collapse: collapse;
}

.polish-tab__table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
}

.polish-tab__table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-primary);
}

.polish-tab__journey {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.polish-tab__status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.polish-tab__status--pending {
  background: var(--color-border-light);
  color: var(--color-text-secondary);
}

.polish-tab__status--in-progress {
  background: color-mix(in srgb, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
}

.polish-tab__status--completed {
  background: color-mix(in srgb, var(--color-success) 15%, transparent);
  color: var(--color-success);
}

.polish-tab__status--failed {
  background: color-mix(in srgb, var(--color-danger) 15%, transparent);
  color: var(--color-danger);
}

.polish-tab__pass-summary {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* Expandable rows */
.polish-tab__row {
  transition: background 0.1s;
}

.polish-tab__row:hover {
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
}

.polish-tab__row--expanded {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

/* Detail panel */
.polish-tab__detail {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 12px 16px;
}

.polish-tab__detail-loading,
.polish-tab__detail-empty {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 8px 0;
}

/* Passes */
.polish-tab__passes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.polish-tab__pass {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.polish-tab__pass-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.1s;
}

.polish-tab__pass-header:hover {
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
}

.polish-tab__pass-icon--completed {
  color: var(--color-success);
}

.polish-tab__pass-icon--failed {
  color: var(--color-danger);
}

.polish-tab__pass-icon--in-progress {
  color: var(--color-primary);
  animation: polish-spin 1s linear infinite;
}

.polish-tab__pass-icon--pending {
  color: var(--color-text-muted);
}

@keyframes polish-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.polish-tab__pass-type {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  flex: 1;
}

.polish-tab__pass-bugs {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.polish-tab__pass-expand {
  color: var(--color-text-muted);
}

.polish-tab__pass-detail {
  border-top: 1px solid var(--color-border);
  padding: 12px;
  background: color-mix(in srgb, var(--color-bg) 50%, var(--color-surface));
}

/* Pass output */
.polish-tab__pass-output {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.polish-tab__pass-output-empty {
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Metrics (core web vitals) */
.polish-tab__metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.polish-tab__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  min-width: 80px;
}

.polish-tab__metric--good {
  border-color: var(--color-success);
  background: color-mix(in srgb, var(--color-success) 8%, transparent);
}

.polish-tab__metric--needs-improvement {
  border-color: #f59e0b;
  background: color-mix(in srgb, #f59e0b 8%, transparent);
}

.polish-tab__metric--poor {
  border-color: var(--color-danger);
  background: color-mix(in srgb, var(--color-danger) 8%, transparent);
}

.polish-tab__metric-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.polish-tab__metric-rating {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-transform: capitalize;
}

/* Findings */
.polish-tab__findings {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.polish-tab__finding {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
}

.polish-tab__finding-title {
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

/* Bugs list within a pass */
.polish-tab__pass-bugs-list {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

.polish-tab__pass-bugs-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.polish-tab__bugs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 400px;
  overflow-y: auto;
}

.polish-tab__bug-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  padding: 4px 0;
}

.polish-tab__severity {
  flex-shrink: 0;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.polish-tab__severity--critical {
  background: color-mix(in srgb, var(--color-danger) 15%, transparent);
  color: var(--color-danger);
}

.polish-tab__severity--high {
  background: color-mix(in srgb, #f59e0b 15%, transparent);
  color: #d97706;
}

.polish-tab__severity--medium {
  background: color-mix(in srgb, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
}

.polish-tab__severity--low {
  background: var(--color-border-light);
  color: var(--color-text-secondary);
}

.polish-tab__bug-category {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
}

.polish-tab__bug-title {
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.polish-tab__bug-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 8px;
}

.polish-tab__bug-status--open {
  background: color-mix(in srgb, var(--color-danger) 10%, transparent);
  color: var(--color-danger);
}

.polish-tab__bug-status--confirmed {
  background: color-mix(in srgb, #f59e0b 10%, transparent);
  color: #d97706;
}

.polish-tab__bug-status--fixed,
.polish-tab__bug-status--resolved {
  background: color-mix(in srgb, var(--color-success) 10%, transparent);
  color: var(--color-success);
}

.polish-tab__bug-status--dismissed {
  background: var(--color-border-light);
  color: var(--color-text-muted);
}
.project-detail {
  padding: 24px;
}

.project-detail__back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  padding: 0;
  cursor: pointer;
}

.project-detail__back:hover {
  color: var(--color-primary);
}

.project-detail__back:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.project-detail__error {
  padding: 48px;
  text-align: center;
  color: var(--color-text-muted);
}

.project-detail__error-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.project-detail__error button {
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-detail__error-back-btn {
  background: var(--color-surface, #374151) !important;
}

.project-detail__error button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.project-detail__update-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  background: var(--color-error-bg, #FEE2E2);
  color: var(--color-error, #DC2626);
  border-radius: 8px;
  font-size: 14px;
}

.project-detail__update-error button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.3; }
}

.project-detail__skeleton-back {
  width: 140px;
  height: 16px;
  background: var(--color-text-muted, #6B7280);
  border-radius: 4px;
  margin-bottom: 20px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.project-detail__skeleton-header {
  margin-bottom: 20px;
}

.project-detail__skeleton-title {
  width: 260px;
  height: 28px;
  background: var(--color-text-muted, #6B7280);
  border-radius: 6px;
  margin-bottom: 8px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.project-detail__skeleton-url {
  width: 200px;
  height: 14px;
  background: var(--color-text-muted, #6B7280);
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  animation-delay: 0.1s;
}

.project-detail__skeleton-tabs {
  width: 100%;
  height: 40px;
  background: var(--color-text-muted, #6B7280);
  border-radius: 8px;
  margin-bottom: 20px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  animation-delay: 0.2s;
}

.project-detail__skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-detail__skeleton-block {
  width: 100%;
  height: 120px;
  background: var(--color-text-muted, #6B7280);
  border-radius: 8px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  animation-delay: 0.3s;
}

.project-detail__skeleton-block--short {
  width: 70%;
  height: 80px;
  animation-delay: 0.4s;
}

.project-detail__content {
  min-height: 200px;
}

@media (max-width: 640px) {
  .project-detail {
    padding: 12px;
  }

  .project-detail__loading,
  .project-detail__error {
    padding: 32px;
  }

  .project-detail__back {
    margin-bottom: 16px;
  }
}
.bug-report {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bug-report__header {
  margin-bottom: 4px;
}

.bug-report__title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bug-report__severity-wrapper {
  position: relative;
  flex-shrink: 0;
  margin-top: 4px;
}

.bug-report__badge-btn {
  background: none;
  border: none;
  padding: 0;
}

.bug-report__badge-btn:hover {
  opacity: 0.8;
}

.bug-report__badge-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.bug-report__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 50;
  padding: 4px;
  min-width: 120px;
}

.bug-report__dropdown-item {
  display: block;
  width: 100%;
  padding: 6px 8px;
  background: none;
  border: none;
  border-radius: 4px;
  text-align: left;
}

.bug-report__dropdown-item:hover,
.bug-report__dropdown-item:focus-visible {
  background: var(--color-surface-hover);
}

.bug-report__dropdown-item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.bug-report__title {
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.bug-report__title:hover,
.bug-report__title:focus-visible {
  color: var(--color-primary);
}

.bug-report__title:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.bug-report__title-edit {
  flex: 1;
}

.bug-report__title-input {
  font-size: 22px;
  font-weight: 700;
  width: 100%;
  padding: 4px 8px;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  outline: none;
}

.bug-report__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bug-report__section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
}

.bug-report__section h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.bug-report__section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-primary);
}

.bug-report__editable-text {
  cursor: pointer;
}

.bug-report__editable-text:hover,
.bug-report__editable-text:focus-visible {
  background: var(--color-surface-hover);
  border-radius: 4px;
  margin: -4px;
  padding: 4px;
}

.bug-report__editable-text:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.bug-report__empty-text {
  color: var(--color-text-muted);
  font-style: italic;
}

.bug-report__steps {
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--color-text-primary);
}

.bug-report__behavior-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .bug-report__behavior-grid {
    grid-template-columns: 1fr;
  }

  .bug-report__title {
    font-size: 18px;
  }

  .bug-report__title-input {
    font-size: 18px;
  }

  .bug-report__section {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .bug-report__section {
    padding: 12px;
  }
}

.bug-report__section--expected {
  border-left: 3px solid var(--color-status-active);
}

.bug-report__section--actual {
  border-left: 3px solid var(--color-danger);
}

.bug-report__edit-input,
.bug-report__edit-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  font-family: inherit;
  resize: vertical;
}

.bug-report__validation-error {
  display: block;
  color: var(--color-danger);
  font-size: 12px;
  margin-top: 4px;
}

/* Evidence banner */
.bug-report__evidence-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.bug-report__spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Causal chain */
.bug-report__chain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: chain-step;
}

.bug-report__chain-step {
  counter-increment: chain-step;
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
}

.bug-report__chain-step:last-child {
  margin-bottom: 0;
}

.bug-report__chain-step::before {
  content: counter(chain-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bug-report__chain-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin: 0;
}

/* Chronology of events */
.bug-report__chronology-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: chronology-step;
}

.bug-report__chronology-step {
  counter-increment: chronology-step;
  position: relative;
  padding-left: 32px;
  margin-bottom: 20px;
  border-left: 2px solid var(--color-border);
  padding-bottom: 4px;
}

.bug-report__chronology-step:last-child {
  margin-bottom: 0;
  border-left-color: transparent;
}

.bug-report__chronology-step::before {
  content: counter(chronology-step);
  position: absolute;
  left: -12px;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--color-text-secondary);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bug-report__chronology-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
}

.bug-report__chronology-screenshot {
  margin: 8px 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
}

.bug-report__chronology-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  background: var(--color-surface-hover);
}

/* Evidence panel */
.evidence-panel {
  margin-top: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}

.evidence-panel__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.evidence-item {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 4px;
  overflow: hidden;
}

.evidence-item:last-child {
  margin-bottom: 0;
}

.evidence-item__header {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-primary);
  text-align: left;
}

.evidence-item__header:hover {
  background: var(--color-surface-hover);
}

.evidence-item__tool {
  font-weight: 600;
  font-family: monospace;
  font-size: 12px;
}

.evidence-item__status {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.evidence-item__status--resolved {
  background: rgba(34, 197, 94, 0.1);
  color: rgb(22, 163, 74);
}

.evidence-item__status--pending {
  background: rgba(234, 179, 8, 0.1);
  color: rgb(161, 98, 7);
}

.evidence-item__status--error {
  background: rgba(239, 68, 68, 0.1);
  color: rgb(220, 38, 38);
}

.evidence-item__body {
  padding: 8px 10px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-hover);
}

.evidence-item__params,
.evidence-item__result {
  margin-bottom: 8px;
}

.evidence-item__params:last-child,
.evidence-item__result:last-child {
  margin-bottom: 0;
}

.evidence-item__params-label,
.evidence-item__result-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.evidence-item__params code {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--color-text-primary);
}

.evidence-item__result pre {
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--color-text-primary);
  font-family: monospace;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

/* Judge Assessment Section */
.bug-report__section--judge {
  border-left: 3px solid var(--color-primary);
}

.bug-report__section--judge h2 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bug-report__judge-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.bug-report__judge-verdict--approved {
  background: rgba(34, 197, 94, 0.08);
}

.bug-report__judge-verdict--rejected {
  background: rgba(239, 68, 68, 0.08);
}

.bug-report__judge-verdict-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.bug-report__judge-verdict--approved .bug-report__judge-verdict-icon {
  color: rgb(22, 163, 74);
}

.bug-report__judge-verdict--rejected .bug-report__judge-verdict-icon {
  color: rgb(220, 38, 38);
}

.bug-report__judge-verdict-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-primary);
}

.bug-report__judge-verdict-text strong {
  display: block;
  margin-bottom: 4px;
}

.bug-report__judge-assessment-text {
  margin: 6px 0 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-primary);
  font-weight: normal;
}

.bug-report__judge-problems {
  list-style: disc;
  padding-left: 20px;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.bug-report__judge-problems li {
  margin-bottom: 2px;
  line-height: 1.5;
}

.bug-report__judge-history {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

.bug-report__judge-history-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.bug-report__judge-attempt {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 6px;
}

.bug-report__judge-attempt:last-child {
  margin-bottom: 0;
}

.bug-report__judge-attempt--approved {
  border-left: 3px solid rgb(22, 163, 74);
}

.bug-report__judge-attempt--rejected {
  border-left: 3px solid rgb(220, 38, 38);
}

.bug-report__judge-attempt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bug-report__judge-attempt-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.bug-report__judge-attempt-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.bug-report__judge-attempt-badge--approved {
  background: rgba(34, 197, 94, 0.1);
  color: rgb(22, 163, 74);
}

.bug-report__judge-attempt-badge--rejected {
  background: rgba(239, 68, 68, 0.1);
  color: rgb(220, 38, 38);
}

.bug-report__judge-attempt-time {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: auto;
}
.status-manager {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.status-manager h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.status-manager__status-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-manager__badge-wrapper {
  flex-shrink: 0;
}

.status-manager__dropdown-wrapper {
  position: relative;
  flex: 1;
}

.status-manager__dropdown-btn {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  background: var(--color-surface);
  color: var(--color-text-primary);
  text-align: left;
}

.status-manager__dropdown-btn:hover {
  border-color: var(--color-primary);
}

.status-manager__dropdown-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.status-manager__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 50;
  padding: 4px;
}

.status-manager__dropdown-item {
  display: block;
  width: 100%;
  padding: 6px 10px;
  background: none;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  color: var(--color-text-primary);
}

.status-manager__dropdown-item:hover,
.status-manager__dropdown-item:focus-visible {
  background: var(--color-surface-hover);
}

.status-manager__dropdown-item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.status-manager__notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-manager__notes-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
}

.status-manager__notes-textarea:focus {
  border-color: var(--color-primary);
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.status-manager__notes-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.status-manager__saved-indicator {
  color: var(--color-status-active);
  font-size: 13px;
  font-weight: 500;
  animation: status-manager-fade 2s ease-out forwards;
}

@keyframes status-manager-fade {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

.status-manager__save-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  background: var(--color-primary);
  color: white;
  border: none;
  transition: background 150ms ease;
}

.status-manager__save-btn:hover {
  background: var(--color-primary-hover);
}

.status-manager__save-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .status-manager {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .status-manager {
    padding: 12px;
  }
}
.replay-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary, var(--color-primary));
  font-size: 14px;
  text-decoration: none;
  transition: color 150ms ease;
}

.replay-link:hover {
  color: var(--accent-hover, var(--color-primary-hover));
  text-decoration: underline;
}

.replay-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.replay-link__id {
  font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace);
  font-size: 13px;
}

@media (max-width: 640px) {
  .replay-link {
    font-size: 13px;
    word-break: break-all;
  }

  .replay-link__id {
    font-size: 12px;
  }
}
.bug-metadata {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
}

.bug-metadata h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.bug-metadata__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.bug-metadata__list dd {
  margin: 0;
}

.bug-metadata__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.bug-metadata__icon {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.bug-metadata__label {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
  min-width: 72px;
  flex-shrink: 0;
}

.bug-metadata__value {
  color: var(--color-text-primary);
}

.bug-metadata__value--muted {
  color: var(--color-text-muted);
  font-style: italic;
}

.bug-metadata__link {
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bug-metadata__link:hover {
  text-decoration: underline;
}

.bug-metadata__recording-id {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: 4px;
}

@media (max-width: 640px) {
  .bug-metadata {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .bug-metadata {
    padding: 12px;
  }

  .bug-metadata__item {
    flex-wrap: wrap;
  }
}
.bug-detail {
  padding: 24px;
  max-width: 1100px;
}

@media (max-width: 640px) {
  .bug-detail {
    padding: 12px;
  }
}

.bug-detail__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--color-danger);
}

.bug-detail__error-message {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.bug-detail__error-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bug-detail__retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.bug-detail__retry-btn:hover {
  background: var(--color-primary-hover);
}

.bug-detail__retry-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.bug-detail__back-link {
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.bug-detail__back-link:hover {
  background: var(--color-surface-secondary);
}

.bug-detail__mutation-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.bug-detail__skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
}

.bug-detail__skeleton-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bug-detail__skeleton-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton {
  background: var(--color-border-light);
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton--text {
  height: 14px;
}

.skeleton--title {
  width: 60%;
  height: 18px;
}

.skeleton--badge {
  width: 56px;
  height: 22px;
  border-radius: 12px;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.bug-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.bug-detail__back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 14px;
  padding: 0;
}

.bug-detail__back:hover,
.bug-detail__back:focus-visible {
  color: var(--color-primary);
}

.bug-detail__back:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.bug-detail__delete {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--color-danger, #dc3545);
  color: var(--color-danger, #dc3545);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.bug-detail__delete:hover,
.bug-detail__delete:focus-visible {
  background: var(--color-danger, #dc3545);
  color: #fff;
}

.bug-detail__delete:focus-visible {
  outline: 2px solid var(--color-danger, #dc3545);
  outline-offset: 2px;
}

.bug-detail__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .bug-detail__layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.bug-detail__main {
  min-width: 0;
}

.bug-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.run-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.run-summary__stat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
  color: var(--color-text-muted);
}

.run-summary__label {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.run-summary__value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

@media (max-width: 640px) {
  .run-summary {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }

  .run-summary__stat {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .run-summary {
    grid-template-columns: 1fr;
  }
}
.tree-path-view {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
}

.tree-path-view__header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.tree-path-view__json {
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: var(--color-text-primary);
}

@media (max-width: 640px) {
  .tree-path-view {
    padding: 14px;
  }

  .tree-path-view__header {
    font-size: 12px;
  }

  .tree-path-view__json {
    padding: 12px;
    font-size: 12px;
    max-height: 300px;
  }
}
.tree-diff-view {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
}

.tree-diff-view__header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.tree-diff-view__json {
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: var(--color-text-primary);
}

@media (max-width: 640px) {
  .tree-diff-view {
    padding: 14px;
  }

  .tree-diff-view__header {
    font-size: 12px;
  }

  .tree-diff-view__json {
    padding: 12px;
    font-size: 12px;
    max-height: 300px;
  }
}
.bugs-found-list {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
}

.bugs-found-list__header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.bugs-found-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bugs-found-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--color-surface-secondary);
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font: inherit;
  width: 100%;
  text-align: left;
}

.bugs-found-list__item:hover {
  background: var(--color-surface-hover);
}

.bugs-found-list__item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.bugs-found-list__title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
}

@media (max-width: 640px) {
  .bugs-found-list {
    padding: 14px;
  }

  .bugs-found-list__header {
    font-size: 12px;
  }

  .bugs-found-list__item {
    gap: 8px;
    padding: 8px 10px;
  }

  .bugs-found-list__title {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .bugs-found-list__item {
    flex-wrap: wrap;
  }
}
.screenshot-timeline {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.screenshot-timeline__heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.screenshot-timeline__list {
  display: flex;
  flex-direction: column;
}

.screenshot-timeline__item {
  display: flex;
  gap: 16px;
}

.screenshot-timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 16px;
  padding-top: 4px;
}

.screenshot-timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.screenshot-timeline__dot--action {
  background: #f59e0b;
}

.screenshot-timeline__dot--discovery {
  background: #10b981;
}

.screenshot-timeline__dot--error {
  background: var(--color-danger, #ef4444);
}

.screenshot-timeline__dot--agent {
  background: #8b5cf6;
}

.screenshot-timeline__dot--info {
  background: #6b7280;
}

.screenshot-timeline__line {
  width: 2px;
  flex: 1;
  background: var(--color-border);
  margin-top: 4px;
}

.screenshot-timeline__content {
  flex: 1;
  min-width: 0;
  padding-bottom: 20px;
}

.screenshot-timeline__content--log {
  padding-bottom: 16px;
}

.screenshot-timeline__item:last-child .screenshot-timeline__content {
  padding-bottom: 0;
}

.screenshot-timeline__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.screenshot-timeline__time {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.screenshot-timeline__url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screenshot-timeline__caption {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.screenshot-timeline__thumb-btn {
  display: block;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s;
  width: 100%;
}

.screenshot-timeline__thumb-btn:hover {
  border-color: var(--color-primary);
}

.screenshot-timeline__thumb-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.screenshot-timeline__img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  object-position: top left;
  transition: max-height 0.3s ease;
}

.screenshot-timeline__img--expanded {
  max-height: none;
  object-fit: contain;
}

/* Log entries */
.screenshot-timeline__log-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #6b7280;
}

.screenshot-timeline__log-badge--action {
  background: #fef3c7;
  color: #92400e;
}

.screenshot-timeline__log-badge--discovery {
  background: #d1fae5;
  color: #065f46;
}

.screenshot-timeline__log-badge--error {
  background: #fee2e2;
  color: #991b1b;
}

.screenshot-timeline__log-badge--agent {
  background: #ede9fe;
  color: #5b21b6;
}

.screenshot-timeline__dot--container {
  background: var(--color-primary);
}

.screenshot-timeline__log-badge--container {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.screenshot-timeline__log-message {
  font-size: 13px;
  color: var(--color-text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .screenshot-timeline {
    padding: 14px;
  }

  .screenshot-timeline__heading {
    font-size: 12px;
  }

  .screenshot-timeline__item {
    gap: 10px;
  }

  .screenshot-timeline__url {
    max-width: 160px;
  }
}
.test-run-detail {
  padding: 24px;
  max-width: 900px;
}

@media (max-width: 640px) {
  .test-run-detail {
    padding: 12px;
  }

  .test-run-detail__title {
    font-size: 18px;
  }

  .test-run-detail__header {
    margin-bottom: 16px;
  }

  .test-run-detail__section {
    padding: 14px;
  }

  .test-run-detail__section h2 {
    font-size: 12px;
  }

  .test-run-detail__error {
    padding: 32px 16px;
  }
}

.test-run-detail__back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  padding: 0;
}

.test-run-detail__back:hover {
  color: var(--color-primary);
}

.test-run-detail__back:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.test-run-detail__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.test-run-detail__title {
  font-size: 22px;
  font-weight: 700;
}

.test-run-detail__goal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.test-run-detail__goal-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.test-run-detail__goal-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-primary);
}

.test-run-detail__journey {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.test-run-detail__journey-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.test-run-detail__journey-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-primary);
}

.test-run-detail__section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.test-run-detail > .run-summary {
  margin-bottom: 24px;
}

.test-run-detail > .tree-path-view,
.test-run-detail > .tree-diff-view,
.test-run-detail > .bugs-found-list {
  margin-bottom: 16px;
}

.test-run-detail__section h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* Journey actions */
.test-run-detail__actions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.test-run-detail__action-item {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
}

.test-run-detail__action-item--failed {
  border-color: var(--color-danger);
  background: color-mix(in srgb, var(--color-danger) 5%, var(--color-bg));
}

.test-run-detail__action-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.test-run-detail__action-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-border-light);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.test-run-detail__action-item--failed .test-run-detail__action-step {
  background: var(--color-danger);
  color: white;
}

.test-run-detail__action-type {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--color-border-light);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  flex-shrink: 0;
}

.test-run-detail__action-desc {
  font-size: 13px;
  color: var(--color-text-primary);
}

.test-run-detail__action-details {
  margin-top: 6px;
  padding-left: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.test-run-detail__action-selector {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-bg));
  color: var(--color-primary);
  font-family: monospace;
}

.test-run-detail__action-value {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.test-run-detail__action-var {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-family: monospace;
}

.test-run-detail__action-checks {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.test-run-detail__action-checks li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.test-run-detail__action-checks li svg {
  flex-shrink: 0;
  color: var(--color-success);
}

.test-run-detail__action-item--failed .test-run-detail__action-checks li svg {
  color: var(--color-danger);
}

/* Skeleton loading */
.test-run-detail .skeleton {
  background: var(--color-border-light);
  border-radius: 4px;
  animation: test-run-detail-skeleton-pulse 1.5s ease-in-out infinite;
}

.test-run-detail .skeleton--text {
  height: 14px;
}

.test-run-detail .skeleton--back {
  width: 120px;
  height: 14px;
  margin-bottom: 20px;
}

.test-run-detail .skeleton--heading {
  width: 140px;
  height: 22px;
}

.test-run-detail .skeleton--badge {
  width: 64px;
  height: 22px;
  border-radius: 12px;
}

.test-run-detail__skeleton-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.test-run-detail .skeleton--stat-line {
  width: 45%;
  height: 14px;
}

.test-run-detail__skeleton-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.test-run-detail .skeleton--section-title {
  width: 30%;
  height: 14px;
}

.test-run-detail .skeleton--section-body {
  width: 80%;
  height: 14px;
}

.test-run-detail .skeleton--section-body-short {
  width: 55%;
  height: 14px;
}

@keyframes test-run-detail-skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Error state */
.test-run-detail__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--color-danger);
}

.test-run-detail__error-message {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.test-run-detail__retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.test-run-detail__retry-btn:hover {
  background: var(--color-primary-hover);
}

.test-run-detail__retry-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Judge Review History */
.test-run-detail__section--judge {
  border-left: 3px solid var(--color-primary);
}

.test-run-detail__section--judge h2 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.test-run-detail__judge-bug {
  margin-bottom: 16px;
}

.test-run-detail__judge-bug:last-child {
  margin-bottom: 0;
}

.test-run-detail__judge-bug-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.test-run-detail__judge-submissions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.test-run-detail__judge-submission {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
}

.test-run-detail__judge-submission--approved {
  border-left: 3px solid rgb(22, 163, 74);
}

.test-run-detail__judge-submission--rejected {
  border-left: 3px solid rgb(220, 38, 38);
}

.test-run-detail__judge-submission-icon {
  flex-shrink: 0;
  display: flex;
}

.test-run-detail__judge-submission--approved .test-run-detail__judge-submission-icon {
  color: rgb(22, 163, 74);
}

.test-run-detail__judge-submission--rejected .test-run-detail__judge-submission-icon {
  color: rgb(220, 38, 38);
}

.test-run-detail__judge-submission-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.test-run-detail__judge-submission-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.test-run-detail__judge-submission-badge--approved {
  background: rgba(34, 197, 94, 0.1);
  color: rgb(22, 163, 74);
}

.test-run-detail__judge-submission-badge--rejected {
  background: rgba(239, 68, 68, 0.1);
  color: rgb(220, 38, 38);
}

.test-run-detail__judge-submission-time {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: auto;
}

.test-run-detail__judge-submission-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}

.test-run-detail__judge-submission-toggle {
  flex-shrink: 0;
  display: flex;
  color: var(--color-text-muted);
}

.test-run-detail__judge-submission-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.test-run-detail__judge-submitted-data h4,
.test-run-detail__judge-response h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 6px;
}

.test-run-detail__judge-field {
  margin-bottom: 8px;
}

.test-run-detail__judge-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.test-run-detail__judge-field-value {
  font-size: 13px;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.test-run-detail__judge-field-pre {
  font-size: 12px;
  line-height: 1.5;
  background: var(--color-surface-secondary, #f8f8f8);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 8px 10px;
  margin: 0;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.test-run-detail__judge-rejected-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(249, 115, 22, 0.1);
  color: rgb(194, 65, 12);
  margin-left: 8px;
  vertical-align: middle;
}

.test-run-detail__judge-assessment {
  margin: 8px 0 0;
  padding: 10px 12px;
  background: var(--color-bg);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-primary);
}

.test-run-detail__judge-problems {
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.test-run-detail__judge-problems li {
  margin-bottom: 2px;
  line-height: 1.5;
}

/* Multi-context journey recordings */
.test-run-detail__recordings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.test-run-detail__recording-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
}

.test-run-detail__recording-context {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-bg));
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Context badges on journey actions */
.test-run-detail__contexts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--color-bg);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.test-run-detail__contexts-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.test-run-detail__context-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-bg));
  padding: 2px 8px;
  border-radius: 4px;
}

.test-run-detail__action-context-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  background: var(--color-primary);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Empty / not found state */
.test-run-detail__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.test-run-detail__polish-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.test-run-detail__polish-btn:hover {
  background: var(--color-primary-hover);
}

.test-run-detail__polish-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.processing {
  padding: 24px;
}

.processing__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.processing__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.processing__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.processing__config {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.processing__config-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background 0.15s;
}

.processing__config-btn:hover:not(:disabled) {
  background: var(--color-surface-hover);
}

.processing__config-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.processing__config-value {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text-primary);
  min-width: 24px;
  text-align: center;
}

.processing__refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}

.processing__refresh-btn:hover {
  background: var(--color-surface-hover);
}

.processing__section {
  margin-bottom: 32px;
}

.processing__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.processing__count {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface-secondary);
  padding: 2px 10px;
  border-radius: 12px;
}

.processing__empty {
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 24px;
  text-align: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: 10px;
}

.processing__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.processing__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
}

.processing__card--running {
  border-left: 3px solid var(--color-status-in-progress);
}

.processing__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.processing__card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.processing__card-status--running {
  color: var(--color-status-in-progress);
}

.processing__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-status-in-progress);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.processing__container-name {
  font-size: 12px;
  color: var(--color-text-muted);
  font-family: monospace;
}

.processing__card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.processing__card-field {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.processing__card-label {
  color: var(--color-text-muted);
  min-width: 64px;
  flex-shrink: 0;
}

.processing__card-value {
  color: var(--color-text-primary);
  font-weight: 500;
}

.processing__card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: none;
}

.processing__card-link:hover {
  text-decoration: underline;
}

.processing__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
}

.processing__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.processing__table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-secondary);
}

.processing__table td {
  padding: 10px 16px;
  color: var(--color-text-primary);
}

.processing__queue-row:not(:last-child) td {
  border-bottom: 1px solid var(--color-border-light);
}

.processing__queue-pos {
  width: 40px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.processing__queue-time {
  color: var(--color-text-muted);
  white-space: nowrap;
}

.processing__loading {
  padding: 48px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

.processing__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--color-danger);
}

.processing__retry-btn {
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.processing__retry-btn:hover {
  background: var(--color-primary-hover);
}

@media (max-width: 640px) {
  .processing {
    padding: 12px;
  }

  .processing__title {
    font-size: 20px;
  }

  .processing__cards {
    grid-template-columns: 1fr;
  }
}
/*! tailwindcss v4.2.3 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-border-style: solid;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: .25rem;
    --radius-sm: .25rem;
    --radius-lg: .5rem;
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-primary: #f02d5e;
    --color-primary-hover: #d4224e;
    --color-primary-light: #fde8ee;
    --color-primary-dark: #d4224e;
    --color-surface: #fff;
    --color-surface-secondary: #f7f8fa;
    --color-surface-hover: #f3f4f6;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --color-text-primary: #1a1a2e;
    --color-text-secondary: #374151;
    --color-text-muted: #6b7280;
    --color-text-disabled: #9ca3af;
    --color-status-active: #10b981;
    --color-status-active-bg: #ecfdf5;
    --color-status-paused: #f59e0b;
    --color-status-paused-bg: #fffbeb;
    --color-status-completed: #10b981;
    --color-status-completed-bg: #ecfdf5;
    --color-status-failed: #ef4444;
    --color-status-failed-bg: #fef2f2;
    --color-status-in-progress: #f59e0b;
    --color-status-in-progress-bg: #fffbeb;
    --color-severity-critical: #dc2626;
    --color-severity-critical-bg: #fef2f2;
    --color-severity-high: #ea580c;
    --color-severity-high-bg: #fff7ed;
    --color-severity-medium: #d97706;
    --color-severity-medium-bg: #fffbeb;
    --color-severity-low: #2563eb;
    --color-severity-low-bg: #eff6ff;
    --color-bug-open: #ef4444;
    --color-bug-open-bg: #fef2f2;
    --color-bug-confirmed: #f59e0b;
    --color-bug-confirmed-bg: #fffbeb;
    --color-bug-fixed: #10b981;
    --color-bug-fixed-bg: #ecfdf5;
    --color-bug-dismissed: #6b7280;
    --color-bug-dismissed-bg: #f3f4f6;
    --color-danger: #ef4444;
    --color-danger-bg: #fef2f2;
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .fixed {
    position: fixed;
  }

  .start {
    inset-inline-start: var(--spacing);
  }

  .end {
    inset-inline-end: var(--spacing);
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .block {
    display: block;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .table {
    display: table;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .bg-surface {
    background-color: var(--color-surface);
  }

  .text-primary {
    color: var(--color-primary);
  }

  .uppercase {
    text-transform: uppercase;
  }

  .underline {
    text-decoration-line: underline;
  }

  .accent-primary {
    accent-color: var(--color-primary);
  }

  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .ring {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }

  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }

  @media not all and (min-width: 40rem) {
    .max-sm\:hidden {
      display: none;
    }
  }
}

:root {
  --shadow-card: 0 1px 3px #0000000a, 0 1px 2px #00000005;
  --shadow-card-hover: 0 8px 25px #00000014, 0 0 0 1px #0000000a;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --gradient-cta: linear-gradient(135deg, #f02d5e, #ff4d73);
  --color-code-bg: #1a1a2e;
  --color-code-text: #e2e8f0;
  --primary: var(--color-primary);
  --danger: var(--color-danger);
  --success: var(--color-status-active);
  --warning: var(--color-status-paused);
  --border-color: var(--color-border);
  --surface-secondary: var(--color-surface-secondary);
  --surface-hover: var(--color-surface-hover);
  --surface-primary: var(--color-surface);
  --text-primary: var(--color-text-primary);
  --text-secondary: var(--color-text-secondary);
  --text-tertiary: var(--color-text-muted);
  --text-muted: var(--color-text-muted);
  --accent-primary: var(--color-primary);
  --accent-hover: var(--color-primary-hover);
  --bg-base: var(--color-surface);
  --bg-surface: var(--color-surface-secondary);
  --bg-elevated: var(--color-surface-hover);
  --border-default: var(--color-border);
  --text-on-accent: #fff;
  --color-bg: var(--color-surface-secondary);
  --color-text: var(--color-text-primary);
  --color-info: var(--color-primary);
  --color-success: var(--color-status-active);
  --color-error: var(--color-danger);
  --color-error-bg: var(--color-danger-bg);
  --status-error: var(--color-danger);
  --status-error-bg: var(--color-danger-bg);
}

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

body {
  background-color: var(--color-surface-secondary);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-family: Inter, Inter Variable, SF Pro Display, -apple-system, system-ui, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
}

.app-shell {
  flex-direction: column;
  min-height: 100vh;
  display: flex;
}

.app-shell__header {
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: 50;
  background: #ffffffd1;
  border-bottom: 1px solid #0000000f;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  display: flex;
  position: sticky;
  top: 0;
}

.app-shell__logo-link {
  color: var(--color-text-primary);
  align-items: center;
  gap: 10px;
  text-decoration: none;
  display: inline-flex;
}

.app-shell__logo-link:hover {
  text-decoration: none;
}

.app-shell__logo-mark {
  flex-shrink: 0;
}

.app-shell__logo-text {
  color: var(--color-text-primary);
  letter-spacing: -.01em;
  font-size: 18px;
  font-weight: 700;
}

.app-shell__main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .app-shell__header {
    padding: 12px 16px;
  }

  .app-shell__logo-text {
    font-size: 16px;
  }
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-ease {
  syntax: "*";
  inherits: false
}
