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

.user-menu__sign-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--color-primary);
  color: var(--text-on-accent, #fafafa);
  border: none;
  border-radius: var(--radius-pill);
  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: var(--radius);
  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: var(--text-on-accent, #fafafa);
  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: var(--radius-lg);
  box-shadow: var(--shadow-float);
  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);
}

.user-menu--sidebar-collapsed .user-menu__trigger {
  justify-content: center;
  padding: 8px;
  width: 100%;
}

.user-menu--sidebar-collapsed .user-menu__name {
  display: none;
}

.user-menu--sidebar-collapsed .user-menu__sign-in {
  min-width: auto;
}
.app-layout {
  height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--text-on-accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.skip-nav:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.app-layout__mock-banner {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 12px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.app-layout__body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: visible;
}

.app-sidebar {
  flex-shrink: 0;
  width: 232px;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 12px 10px 12px;
  transition: width 0.22s ease, padding 0.22s ease;
  position: relative;
  z-index: 2;
}

.app-layout__body--sidebar-collapsed .app-sidebar {
  width: 64px;
  padding-left: 8px;
  padding-right: 8px;
}

.app-sidebar__top {
  flex-shrink: 0;
}

.app-sidebar__brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.app-sidebar__brand-row--collapsed {
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--color-text-primary);
}

.app-sidebar__brand img {
  flex-shrink: 0;
}

.app-sidebar__brand-hover {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border-radius: var(--radius);
}

.app-sidebar__brand-hover--rail {
  width: 100%;
}

.app-sidebar__brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--color-text-primary);
  border-radius: var(--radius);
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.app-sidebar__brand-mark--collapsed {
  justify-content: center;
  padding: 8px;
}

.app-sidebar__pin-btn--overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.app-sidebar__brand-hover:hover .app-sidebar__brand-mark,
.app-sidebar__brand-hover:focus-within .app-sidebar__brand-mark {
  opacity: 0;
  pointer-events: none;
}

.app-sidebar__brand-hover:hover .app-sidebar__pin-btn--overlay,
.app-sidebar__brand-hover:focus-within .app-sidebar__pin-btn--overlay {
  opacity: 1;
  pointer-events: auto;
}

.app-sidebar__pin-btn--overlay:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.app-sidebar__brand-hover:hover {
  background: var(--color-surface-hover);
}

.app-sidebar__brand-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar__pin-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.app-sidebar__pin-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

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

.app-sidebar__pin-btn.app-sidebar__pin-btn--overlay {
  width: 100%;
  height: 100%;
  min-height: 42px;
}

.app-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
}

.app-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background-color 0.12s, color 0.12s;
}

.app-sidebar__link:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
  text-decoration: none;
}

.app-sidebar__link--active {
  color: var(--color-text-primary);
  background: var(--color-surface-secondary);
}

.app-sidebar__link--icon-only {
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}

button.app-sidebar__link {
  appearance: none;
  border: none;
  margin: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  width: 100%;
}

/* Hover tooltips (collapsed sidebar) — appears to the right */
.app-sidebar__tooltip-host {
  position: relative;
  width: 100%;
}

.app-sidebar__tooltip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 400;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--text-on-accent);
  background: var(--color-primary);
  border: 1px solid color-mix(in srgb, var(--color-primary) 88%, var(--color-border));
  box-shadow: var(--shadow-float);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.app-sidebar__tooltip-host:hover .app-sidebar__tooltip,
.app-sidebar__tooltip-host:focus-within .app-sidebar__tooltip {
  opacity: 1;
  visibility: visible;
}

.app-sidebar__tooltip--portal {
  position: fixed;
  transform: translateY(-50%);
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

/* Sidebar project list */
.sidebar-projects {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.sidebar-projects--collapsed {
  gap: 2px;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.sidebar-projects__scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-projects__search {
  flex-shrink: 0;
  padding: 2px 10px 8px;
}

.sidebar-projects__search-field {
  position: relative;
  width: 100%;
}

.sidebar-projects__search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.sidebar-projects__search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px 6px 30px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.35;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-surface-secondary);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.sidebar-projects__search-input:hover {
  background: var(--color-surface);
}

.sidebar-projects__search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 3px color-mix(in srgb, var(--color-primary) 28%, transparent);
}

.sidebar-projects__search-input::placeholder {
  color: var(--color-text-muted);
}

.sidebar-projects__filter-empty {
  margin: 0;
  padding: 10px 12px 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--color-text-muted);
}

.sidebar-projects__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 4px;
}

.sidebar-projects__title-link {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary, var(--color-text-muted));
  text-decoration: none;
  border-radius: 4px;
}

.sidebar-projects__title-link:hover {
  color: var(--color-text-primary);
}

.sidebar-projects__title-link--active {
  color: var(--color-text-primary);
}

.sidebar-projects__add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  color: var(--text-tertiary, var(--color-text-muted));
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.sidebar-projects__add:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

.sidebar-projects__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background-color 0.12s, color 0.12s;
  min-width: 0;
}

.sidebar-projects__item:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
  text-decoration: none;
}

.sidebar-projects__item--active {
  color: var(--color-text-primary);
  background: var(--color-surface-secondary);
}

.sidebar-projects__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-projects__badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-success) 15%, transparent);
  color: var(--color-status-active-text);
}

/* Skeleton loading placeholders */
@keyframes sidebar-skeleton-pulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.3; }
}

.sidebar-projects__skeleton {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-projects__skeleton-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  min-height: 33px;
}

.sidebar-projects__skeleton-item--icon {
  justify-content: center;
  padding: 9px 10px;
  min-height: 36px;
}

.sidebar-projects__skeleton-bar {
  flex: 1;
  height: 12px;
  border-radius: 4px;
  background: var(--color-text-secondary);
  animation: sidebar-skeleton-pulse 1.4s ease-in-out infinite;
}

.sidebar-projects__skeleton-badge {
  flex-shrink: 0;
  width: 38px;
  height: 12px;
  border-radius: 4px;
  background: var(--color-text-secondary);
  animation: sidebar-skeleton-pulse 1.4s ease-in-out infinite;
  animation-delay: 0.15s;
}

.sidebar-projects__skeleton-icon {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--color-text-secondary);
  animation: sidebar-skeleton-pulse 1.4s ease-in-out infinite;
}

.sidebar-projects__skeleton-item:nth-child(2) .sidebar-projects__skeleton-bar { max-width: 60%; }
.sidebar-projects__skeleton-item:nth-child(2) .sidebar-projects__skeleton-icon { animation-delay: 0.1s; }
.sidebar-projects__skeleton-item:nth-child(3) .sidebar-projects__skeleton-bar { max-width: 85%; }
.sidebar-projects__skeleton-item:nth-child(3) .sidebar-projects__skeleton-icon { animation-delay: 0.2s; }
.sidebar-projects__skeleton-item:nth-child(4) .sidebar-projects__skeleton-bar { max-width: 50%; }
.sidebar-projects__skeleton-item:nth-child(4) .sidebar-projects__skeleton-icon { animation-delay: 0.3s; }

.app-sidebar__footer {
  flex-shrink: 0;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
}

.app-sidebar__footer .user-menu {
  width: 100%;
}

.app-sidebar__footer .user-menu__container {
  width: 100%;
}

.app-sidebar__footer .user-menu__trigger {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 10px;
}

.app-sidebar__footer .user-menu__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.app-sidebar__footer .user-menu__dropdown {
  top: auto;
  bottom: calc(100% + 6px);
  right: 0;
  left: 0;
  margin-top: 0;
}

.app-sidebar--collapsed .app-sidebar__footer .user-menu__dropdown {
  top: auto;
  bottom: 0;
  left: calc(100% + 10px);
  right: auto;
  margin: 0;
  transform: none;
  min-width: 200px;
}

.app-sidebar__footer .user-menu__sign-in {
  width: 100%;
  justify-content: center;
}

.app-sidebar--collapsed .app-sidebar__footer .user-menu__sign-in {
  width: auto;
  padding: 8px 10px;
}

.app-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--color-surface-secondary);
  padding: 28px 36px 48px;
  position: relative;
  z-index: 1;
}

.app-main:has(> .project-detail[data-testid='project-detail-page']),
.app-main:has(> .project-detail[data-testid='project-loading']),
.app-main:has(> .projects-page[data-testid='projects-page']),
.app-main:has(> .bug-detail[data-testid='bug-detail-page']),
.app-main:has(> .bug-detail[data-testid='bug-loading']) {
  overflow: hidden;
}

.app-main > * {
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  max-width: min(1280px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.app-main > .project-detail[data-testid='project-detail-page'],
.app-main > .project-detail[data-testid='project-loading'],
.app-main > .projects-page[data-testid='projects-page'],
.app-main > .bug-detail[data-testid='bug-detail-page'],
.app-main > .bug-detail[data-testid='bug-loading'] {
  flex: 1 1 auto;
}

@media (max-width: 768px) {
  .app-sidebar__pin-btn {
    display: none;
  }

  .app-layout__body {
    flex-direction: column;
    overflow: auto;
  }

  .app-layout__body:has(> .app-main > .project-detail[data-testid='project-detail-page']),
  .app-layout__body:has(> .app-main > .project-detail[data-testid='project-loading']),
  .app-layout__body:has(> .app-main > .projects-page[data-testid='projects-page']),
  .app-layout__body:has(> .app-main > .bug-detail[data-testid='bug-detail-page']),
  .app-layout__body:has(> .app-main > .bug-detail[data-testid='bug-loading']) {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .app-sidebar {
    width: 100% !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 12px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    gap: 8px;
  }

  .app-sidebar__brand-row {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
  }

  .app-sidebar__brand-row--collapsed {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .app-sidebar__brand-hover {
    flex: 1;
    min-width: 0;
    min-height: 38px;
  }

  .app-sidebar__brand {
    padding: 6px 8px;
  }

  .app-sidebar__brand-mark {
    padding: 6px 8px;
  }

  .app-sidebar__pin-btn.app-sidebar__pin-btn--overlay {
    width: 100%;
    min-height: 38px;
  }

  .app-sidebar__brand-text {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-sidebar__pin-btn:not(.app-sidebar__pin-btn--overlay) {
    width: 34px;
  }

  .app-sidebar__tooltip {
    display: none;
  }

  .app-sidebar__nav {
    flex-direction: row;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 4px;
    min-height: unset;
  }

  .app-sidebar__link {
    padding: 8px 10px;
    font-size: 13px;
  }

  .sidebar-projects {
    display: none;
  }

  .app-sidebar__footer {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
    width: auto;
  }

  .app-sidebar__footer .user-menu__dropdown {
    left: auto;
    right: 0;
    bottom: auto;
    top: calc(100% + 6px);
    transform: none;
    margin-left: 0;
  }

  .app-main {
    flex: none;
    min-height: min-content;
    overflow: visible;
    padding: 20px 16px 40px;
  }

  .app-main:has(> .project-detail[data-testid='project-detail-page']),
  .app-main:has(> .project-detail[data-testid='project-loading']),
  .app-main:has(> .projects-page[data-testid='projects-page']),
  .app-main:has(> .bug-detail[data-testid='bug-detail-page']),
  .app-main:has(> .bug-detail[data-testid='bug-loading']) {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
}
.dashboard {
  padding: 0;
}

/* Start QA — single card, matches AppStyle form treatment */
.newproject {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.newproject__header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.newproject__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--color-text-primary);
}

.newproject__lead {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.newproject__error {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 28px 0;
  padding: 12px 14px;
  background: var(--status-error-bg, var(--color-danger-bg));
  color: var(--status-error, var(--color-danger));
  border-radius: var(--radius);
  font-size: 13px;
}

.newproject__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;
}

.newproject__error-dismiss:hover {
  opacity: 1;
}

.newproject__fields {
  padding: 22px 28px 8px;
}

.newproject__field {
  margin-bottom: 20px;
}

.newproject__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.newproject__label-optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.newproject__field input,
.newproject__field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-surface-secondary);
  transition: border-color 150ms ease, background 150ms ease;
  resize: vertical;
}

.newproject__field input:hover,
.newproject__field textarea:hover {
  background: var(--color-surface);
}

.newproject__field input:focus,
.newproject__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.newproject__field input:disabled,
.newproject__field textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: var(--color-surface-hover);
}

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

/* Logins section */
.newproject__logins-section {
  margin-bottom: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface-secondary);
}

.newproject__logins-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background 150ms ease;
}

.newproject__logins-toggle:hover {
  background: var(--color-surface-hover);
}

.newproject__logins-toggle-text {
  text-align: left;
}

.newproject__logins-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 600;
}

.newproject__logins-toggle-chevron {
  display: flex;
  align-items: center;
  margin-left: auto;
  color: var(--color-text-muted);
}

.newproject__logins-body {
  padding: 4px 14px 14px;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-surface);
}

.newproject__auto-create {
  padding: 12px 0 14px;
}

.newproject__toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
  user-select: none;
}

.newproject__toggle-label input[type='checkbox'] {
  position: relative;
  width: 36px;
  height: 20px;
  appearance: none;
  background: var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 150ms ease;
  flex-shrink: 0;
}

.newproject__toggle-label input[type='checkbox']::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform 150ms ease;
}

.newproject__toggle-label input[type='checkbox']:checked {
  background: var(--color-primary);
}

.newproject__toggle-label input[type='checkbox']:checked::after {
  transform: translateX(16px);
}

.newproject__hint {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.45;
  margin: 6px 0 0;
  padding-left: calc(36px + 10px);
}

.newproject__login-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.newproject__login-fields {
  flex: 1;
  display: flex;
  gap: 10px;
}

.newproject__login-field {
  flex: 1;
  min-width: 0;
}

.newproject__login-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--color-text-primary);
  background: var(--color-surface-secondary);
  transition: border-color 150ms ease, background 150ms ease;
}

.newproject__login-field input:hover {
  background: var(--color-surface);
}

.newproject__login-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.newproject__login-field input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.newproject__login-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 1px;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
  flex-shrink: 0;
}

.newproject__login-remove:hover {
  color: var(--color-danger);
  border-color: color-mix(in srgb, var(--color-danger) 45%, var(--color-border));
  background: var(--color-surface);
}

.newproject__add-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-top: 4px;
  background: transparent;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.newproject__add-login:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text-primary);
  background: var(--color-surface-secondary);
}

/* Design document */
.newproject__design-doc-hint {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.45;
  margin: 8px 0 10px;
}

.newproject__design-doc-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-surface-secondary);
  resize: vertical;
  transition: border-color 150ms ease, background 150ms ease;
}

.newproject__design-doc-textarea:hover {
  background: var(--color-surface);
}

.newproject__design-doc-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.newproject__design-doc-textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Submit */
.newproject__actions {
  padding: 16px 28px 28px;
}

.newproject__submit-btn {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  background: var(--color-primary);
  color: var(--text-on-accent, #fff);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease;
}

.newproject__submit-btn:hover:not(:disabled) {
  background: var(--color-primary-hover);
}

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

.newproject__submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.newproject__spinner {
  animation: newproject-spin 1s linear infinite;
}

@keyframes newproject-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: var(--radius-lg);
  padding: 20px;
}

.about__stage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--color-surface-secondary);
  color: var(--color-text-secondary);
}

.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;
  }

  .newproject__header,
  .newproject__fields,
  .newproject__actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .newproject__error {
    margin-left: 20px;
    margin-right: 20px;
  }

  .newproject__login-fields {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .about__stages {
    grid-template-columns: 1fr;
  }
}
.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: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.15s;
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--color-text-primary) 22%, var(--color-border));
}

.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__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;
  }
}
.projects-page {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.projects-page__header {
  flex-shrink: 0;
  margin-bottom: 28px;
}

.projects-page__back {
  margin-bottom: 20px !important;
}

.projects-page__fill {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.projects-page__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  line-height: 1.25;
}

.projects-page__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 42rem;
}

.projects-page__toolbar {
  flex-shrink: 0;
  padding-bottom: 16px;
  margin-bottom: 0;
  max-width: min(400px, 100%);
  border-bottom: 1px solid var(--color-border-light);
}

.projects-page__list-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}

.projects-page__search-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.projects-page__search {
  position: relative;
  display: flex;
  align-items: center;
}

.projects-page__search-icon {
  position: absolute;
  left: 12px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.projects-page__search-input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-surface-secondary);
  transition: border-color 150ms ease, background 150ms ease;
}

.projects-page__search-input:hover {
  background: var(--color-surface);
}

.projects-page__search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-surface-secondary), 0 0 0 4px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.projects-page__search-input::placeholder {
  color: var(--color-text-muted);
}

.projects-page__no-results {
  margin: 0;
  padding: 32px 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.projects-page__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.projects-page__spinner {
  animation: projects-page-spin 1s linear infinite;
}

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

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

.projects-page__error p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.projects-page__retry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--text-on-accent, #fafafa);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.projects-page__retry:hover {
  background: var(--color-primary-hover);
}

.projects-page__retry:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.back-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 8px 18px;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.back-nav-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
  border-color: color-mix(in srgb, var(--color-text-primary) 10%, var(--color-border));
}

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

.back-nav-btn__icon {
  flex-shrink: 0;
}

.back-nav-btn__label {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .back-nav-btn--compact-sm {
    position: relative;
    padding: 8px 12px;
  }

  .back-nav-btn--compact-sm .back-nav-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.project-header__info {
  min-width: 0;
  flex: 1;
}

.project-header__name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin: 0 0 6px;
}

.project-header__name--editable {
  cursor: pointer;
  border-radius: var(--radius);
  padding: 2px 6px;
  margin-left: -6px;
}

.project-header__name--editable:hover {
  background: var(--color-surface-hover);
}

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

.project-header__name-input {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin: 0 0 6px;
  padding: 2px 6px;
  margin-left: -6px;
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  width: 100%;
  outline: none;
  font-family: inherit;
}

.project-header__url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text-secondary);
  max-width: 100%;
}

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

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

.project-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.project-header__delete-btn:hover {
  background: var(--color-danger-hover);
  border-color: var(--color-danger-hover);
  color: var(--text-on-accent);
}

.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);
  color: white;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.project-header__confirm-delete-btn:hover {
  background: var(--color-danger-hover);
}

.project-header__cancel-delete-btn {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius);
  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__name-input {
    font-size: 20px;
  }

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

}
.tab-navigation {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.tab-navigation__tab {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: -1px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-navigation__tab:hover {
  color: var(--color-text-primary);
  background: color-mix(in srgb, var(--color-surface-secondary) 85%, transparent);
}

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

.tab-navigation__tab--active {
  color: var(--color-text-primary);
  font-weight: 600;
  border-bottom-color: var(--color-text-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;
  }
}
.overview-tab {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.overview-tab__skeleton {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.overview-tab__skeleton-status {
  height: 48px;
  background: var(--color-border);
  border-radius: var(--radius);
  animation: overview-skeleton-pulse 1.5s ease-in-out infinite;
}

.overview-tab__skeleton-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overview-tab__skeleton-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.overview-tab__skeleton-card-stats {
  display: flex;
  gap: 12px;
}

.overview-tab__skeleton-text {
  background: var(--color-border);
  border-radius: var(--radius-sm);
  animation: overview-skeleton-pulse 1.5s ease-in-out infinite;
}

.overview-tab__skeleton-text--icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

.overview-tab__skeleton-text--label {
  width: 100px;
  height: 16px;
  flex: 1;
  max-width: 100px;
  animation-delay: 0.1s;
}

.overview-tab__skeleton-text--count {
  width: 32px;
  height: 22px;
  margin-left: auto;
  animation-delay: 0.2s;
}

.overview-tab__skeleton-text--bar {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  animation-delay: 0.3s;
}

.overview-tab__skeleton-text--stat {
  width: 80px;
  height: 14px;
  animation-delay: 0.4s;
}

.overview-tab__skeleton-summary {
  height: 44px;
  background: var(--color-border);
  border-radius: var(--radius);
  animation: overview-skeleton-pulse 1.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Status sentence */
.overview-tab__status-sentence {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.overview-tab__status-sentence--active {
  background: var(--color-status-in-progress-bg);
  color: var(--color-text-primary);
}

.overview-tab__status-sentence--idle {
  background: var(--color-surface-secondary);
  color: var(--color-text-secondary);
}

.overview-tab__status-icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.overview-tab__status-sentence--active .overview-tab__status-icon {
  color: var(--color-status-in-progress);
}

.overview-tab__status-sentence--idle .overview-tab__status-icon {
  color: var(--color-status-active);
}

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

.overview-tab__status-icon--spin {
  animation: overview-spin 1.5s linear infinite;
}

/* Cards grid */
.overview-tab__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.overview-tab__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overview-tab__card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.overview-tab__card-icon {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.overview-tab__card-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  flex: 1;
}

.overview-tab__card-count {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Progress bar */
.overview-tab__bar-track {
  height: 6px;
  background: var(--color-surface-secondary);
  border-radius: var(--radius-pill);
  overflow: hidden;
  display: flex;
}

.overview-tab__bar-empty {
  flex: 1;
}

.overview-tab__bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 300ms ease;
}

.overview-tab__bar-fill--completed {
  background: var(--color-status-active);
}

.overview-tab__bar-fill--in-progress {
  background: var(--color-status-in-progress);
}

.overview-tab__bar-fill--queued {
  background: var(--color-text-muted);
  opacity: 0.4;
}

/* Stats row */
.overview-tab__card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.overview-tab__stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
}

.overview-tab__stat-icon--spin {
  animation: overview-spin 1.5s linear infinite;
}

.overview-tab__stat--in-progress {
  color: var(--color-status-in-progress);
}

.overview-tab__stat--queued {
  color: var(--color-text-muted);
}

.overview-tab__stat--completed {
  color: var(--color-status-active);
}

.overview-tab__stat--failed {
  color: var(--color-danger);
}

.overview-tab__stat--bugs {
  color: var(--color-danger);
}

.overview-tab__stat--empty {
  color: var(--color-text-muted);
}

/* Summary */
.overview-tab__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--color-surface-secondary);
  border-radius: var(--radius);
}

.overview-tab__summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.overview-tab__summary-item svg {
  color: var(--color-text-muted);
}

.overview-tab__summary-count {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 16px;
}

.overview-tab__summary-label {
  color: var(--color-text-secondary);
}

.overview-tab__bug-breakdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.overview-tab__bug-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.overview-tab__bug-tag--open {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.overview-tab__bug-tag--reopened {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.overview-tab__bug-tag--resolved {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.overview-tab__bug-tag--rejected {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
}

.overview-tab__status-sentence--waiting {
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-text-primary);
}

.overview-tab__status-sentence--waiting .overview-tab__status-icon {
  color: #f87171;
}

/* Charts */
.overview-tab__charts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.overview-tab__chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}

.overview-tab__chart-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* Top open bugs list */
.overview-tab__bug-list {
  display: flex;
  flex-direction: column;
}

.overview-tab__bug-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--color-surface-secondary);
  text-decoration: none;
  transition: background 0.12s;
}

.overview-tab__bug-row:last-child {
  border-bottom: none;
}

.overview-tab__bug-row:hover {
  background: var(--color-surface-hover);
}

.overview-tab__bug-severity {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.overview-tab__bug-severity--critical {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-severity-critical);
}

.overview-tab__bug-severity--high {
  background: rgba(249, 115, 22, 0.15);
  color: var(--color-severity-high);
}

.overview-tab__bug-severity--medium {
  background: rgba(234, 179, 8, 0.15);
  color: var(--color-severity-medium);
}

.overview-tab__bug-severity--low {
  background: rgba(107, 114, 128, 0.15);
  color: var(--color-severity-low);
}

.overview-tab__bug-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-tab__bug-kind {
  font-size: 11px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.overview-tab__bug-arrow {
  color: var(--color-text-muted);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.12s;
}

.overview-tab__bug-row:hover .overview-tab__bug-arrow {
  opacity: 1;
}

@media (max-width: 900px) {
  .overview-tab__bug-kind {
    display: none;
  }
}

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

  .overview-tab__card-stats {
    gap: 8px;
  }
}
.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: var(--color-primary);
  color: var(--text-on-accent);
  font-size: 12px;
  font-weight: 400;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: var(--shadow-float);
  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: var(--color-primary);
}
.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);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-light);
  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);
}

.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);
}
.journeys-tab {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journeys-tab__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 4px;
}

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

.journeys-tab__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

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

.journeys-tab__skeleton {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journeys-tab__skeleton-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.journeys-tab__skeleton-filters {
  display: flex;
  gap: 6px;
}

.journeys-tab__skeleton-text {
  background: var(--color-border);
  border-radius: var(--radius-sm);
  animation: journeys-skeleton-pulse 1.5s ease-in-out infinite;
}

.journeys-tab__skeleton-text--count {
  width: 80px;
  height: 14px;
}

.journeys-tab__skeleton-text--filter {
  width: 60px;
  height: 28px;
  border-radius: 6px;
  animation-delay: 0.1s;
}

.journeys-tab__skeleton-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.journeys-tab__skeleton-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  gap: 12px;
}

.journeys-tab__skeleton-text--name {
  width: 200px;
  height: 16px;
  animation-delay: 0.2s;
}

.journeys-tab__skeleton-text--stats {
  width: 140px;
  height: 14px;
  animation-delay: 0.3s;
}

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

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

.journeys-tab__global-variables {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-secondary);
}

.journeys-tab__global-variables-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin: 0 0 0.5rem 0;
}

.journeys-tab__variable-tag--global {
  background: var(--color-surface);
}

.journeys-tab__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journeys-tab__journey {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.journeys-tab__journey-header {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .journeys-tab__journey-header {
    flex-direction: column;
  }
}

.journeys-tab__journey-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: none;
  background: var(--color-surface);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  color: var(--color-text-primary);
}

.journeys-tab__journey-toggle:hover {
  background: var(--color-surface-hover);
}

.journeys-tab__journey-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 10px 12px;
  border-left: 1px solid var(--color-border);
  background: var(--color-surface-secondary);
}

.journeys-tab__journey-tools-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 10px;
  flex: 1;
  min-width: 0;
}

.journeys-tab__journey-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
  row-gap: 4px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--color-text-muted);
}

.journeys-tab__journey-stat {
  white-space: nowrap;
}

.journeys-tab__journey-stat--inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.journeys-tab__journey-stat-icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.journeys-tab__journey-stats-sep {
  color: var(--color-text-disabled);
  user-select: none;
  line-height: 1;
}

.journeys-tab__journey-icon {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

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

.journeys-tab__status-icon--completed {
  color: var(--color-status-active);
}

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

.journeys-tab__status-icon--in-progress {
  color: var(--color-status-paused);
  animation: spin 1.5s linear infinite;
}

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

@media (max-width: 640px) {
  .journeys-tab__journey-tools {
    border-left: none;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .journeys-tab__journey-tools-group {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .journeys-tab__run-btn {
    margin-left: auto;
  }
}

.journeys-tab__run-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--text-on-accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.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 0 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  border: none;
  background: transparent;
}

.journeys-tab__instructions {
  padding: 8px 0 12px;
}

.journeys-tab__instructions-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.journeys-tab__instructions-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.journeys-tab__instructions-edit-btn {
  margin-left: auto;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.journeys-tab__instructions-edit-btn:hover {
  background: var(--color-surface-hover);
}

.journeys-tab__instructions-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  white-space: pre-wrap;
}

.journeys-tab__instructions-empty {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
}

.journeys-tab__instructions-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
  line-height: 1.5;
  background: var(--color-surface);
  color: var(--color-text-primary);
  resize: vertical;
}

.journeys-tab__instructions-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.journeys-tab__instructions-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.journeys-tab__instructions-save {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  background: var(--color-primary);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.journeys-tab__instructions-save:hover {
  background: var(--color-primary-hover);
}

.journeys-tab__instructions-cancel {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.journeys-tab__instructions-cancel:hover {
  background: var(--color-surface-hover);
}

.journeys-tab__actions {
  padding: 12px 14px;
  border-top: 1px solid var(--color-border);
}

.journeys-tab__section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}

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

.journeys-tab__action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-primary);
}

.journeys-tab__action-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

.journeys-tab__action-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.journeys-tab__action-aside {
  flex-shrink: 0;
  max-width: min(280px, 46%);
}

.journeys-tab__action-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.journeys-tab__action--failed {
  border-left: 2px solid var(--color-danger);
  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(--color-danger);
  margin-top: 0.25rem;
}

.journeys-tab__action-desc {
  flex: 0 1 auto;
  color: var(--color-text-primary);
  font-weight: 500;
}

.journeys-tab__checks {
  width: 100%;
  list-style: none;
  padding: 2px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.journeys-tab__check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

@media (max-width: 520px) {
  .journeys-tab__action-top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .journeys-tab__action-aside {
    max-width: none;
  }

  .journeys-tab__action-details {
    justify-content: flex-start;
  }
}

.journeys-tab__variables {
  padding: 12px 14px;
  border-top: 1px solid var(--color-border);
}

.journeys-tab__variable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.journeys-tab__variable-tag {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  color: var(--color-text-primary);
  background: var(--color-surface);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.journeys-tab__action-details {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  justify-content: flex-end;
}

.journeys-tab__action-selector {
  font-size: 11px;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

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

.journeys-tab__action-var {
  font-size: 0.6875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  color: var(--color-text-secondary);
}

/* Bug banner shown when expanding a journey with an associated bug */
.journeys-tab__bug-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-brand) 8%, var(--color-surface));
  color: var(--color-brand);
  font-size: 13px;
}

.journeys-tab__bug-banner--resolved {
  background: color-mix(in srgb, var(--color-status-active) 8%, var(--color-surface));
  color: var(--color-status-active);
}

.journeys-tab__bug-banner-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.journeys-tab__bug-banner-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.journeys-tab__bug-banner-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.journeys-tab__bug-banner-title {
  font-weight: 500;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journeys-tab__bug-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.journeys-tab__bug-banner-link:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}

/* Run error banner shown above steps when error doesn't map to a specific step */
.journeys-tab__run-error-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-danger) 10%, var(--color-surface));
  border: 1px solid color-mix(in srgb, var(--color-danger) 30%, transparent);
  color: var(--color-danger);
  font-size: 12px;
  line-height: 1.4;
}

.journeys-tab__run-error-banner svg {
  flex-shrink: 0;
  margin-top: 1px;
}

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

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

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

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

.journeys-tab__version--current {
  background: var(--color-surface);
}

.journeys-tab__version-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  color: var(--color-text-primary);
}

@media (max-width: 560px) {
  .journeys-tab__version-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .journeys-tab__version-meta {
    justify-self: start;
  }
}

.journeys-tab__version-header-lead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.journeys-tab__version-header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.journeys-tab__version-header:hover {
  background: var(--color-surface-hover);
}

.journeys-tab__version-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.journeys-tab__version-current-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-accent);
  background: var(--color-primary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

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

.journeys-tab__version-run-info--completed {
  color: var(--color-status-active);
}

.journeys-tab__version-run-info--failed {
  color: var(--color-brand);
}

.journeys-tab__version-run-info--in-progress {
  color: var(--color-status-paused);
}

.journeys-tab__version-run-info--none {
  color: var(--color-text-muted);
}

.journeys-tab__version-run-info--resolved {
  color: var(--color-status-active);
}

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

.journeys-tab__version-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.journeys-tab__version-content {
  padding: 0 14px 14px;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-surface-secondary);
}

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

.journeys-tab__version-delete-btn:hover {
  background: var(--color-danger-hover);
  border-color: var(--color-danger-hover);
  color: var(--text-on-accent);
}

.journeys-tab__runs {
  padding: 8px 0 0;
}

.journeys-tab__runs > .journeys-tab__section-title {
  margin-bottom: 6px;
}

.journeys-tab__no-runs {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 6px 0 0;
}

.journeys-tab__runs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.journeys-tab__runs-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-secondary);
  vertical-align: middle;
}

.journeys-tab__runs-table td {
  padding: 10px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.journeys-tab__runs-table th:last-child,
.journeys-tab__runs-table td:last-child {
  text-align: right;
}

.journeys-tab__runs-table tbody tr:last-child td {
  border-bottom: none;
}

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

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

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

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

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

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

/* Bug link — Replay rose for open bugs */
.journeys-tab__bug-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-brand) 14%, var(--color-surface));
  color: var(--color-brand);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.15s;
}

.journeys-tab__bug-link:hover {
  background: color-mix(in srgb, var(--color-brand) 24%, var(--color-surface));
}

.journeys-tab__bug-link:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 1px;
  border-radius: 4px;
}

.journeys-tab__bug-link--resolved {
  background: var(--color-status-active-bg);
  color: var(--color-status-active);
}

.journeys-tab__bug-link--resolved:hover {
  background: color-mix(in srgb, var(--color-status-active) 22%, transparent);
}

.journeys-tab__bug-link--resolved:focus-visible {
  outline-color: var(--color-status-active);
}

.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: 12px 14px;
  border-top: 1px solid var(--color-border);
}

.journeys-tab__context-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.journeys-tab__context-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.journeys-tab__action-context {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.journeys-tab__recording-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: flex-end;
  width: 100%;
}

/* Viewport filter */
.journeys-tab__viewport-filter {
  display: flex;
  gap: 2px;
  background: var(--color-surface-secondary);
  border-radius: var(--radius);
  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(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.journeys-tab__filter-btn:hover {
  background: var(--color-surface-hover);
}

.journeys-tab__filter-btn--active {
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-weight: 600;
  box-shadow: none;
  border: 1px solid var(--color-border);
}

/* Mobile badge */
.journeys-tab__mobile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* Mobile toggle in expanded journey */
.journeys-tab__journey-settings {
  padding: 12px 14px 14px 48px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-secondary);
}

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

.journeys-tab__mobile-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Polish badge */
.journeys-tab__polish-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
  flex-shrink: 0;
}

/* Polish toggle in expanded journey */
.journeys-tab__polish-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  margin-top: 0;
  margin-left: 16px;
}

.journeys-tab__polish-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.journeys-tab__danger-zone {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.journeys-tab__delete-journey-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--color-danger);
  background: var(--color-danger-bg);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-danger);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.journeys-tab__delete-journey-btn:hover {
  background: var(--color-danger-hover);
  border-color: var(--color-danger-hover);
  color: var(--text-on-accent);
}

.journeys-tab__confirm-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.journeys-tab__confirm-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.journeys-tab__confirm-btn--yes {
  border: none;
  background: var(--color-danger);
  color: white;
}

.journeys-tab__confirm-btn--yes:hover {
  background: var(--color-danger-hover);
}

.journeys-tab__confirm-btn--no {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
}

.journeys-tab__confirm-btn--no:hover {
  background: var(--color-surface-hover);
}
.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-closed {
  background: var(--color-bug-closed-bg);
  color: var(--color-bug-closed);
}

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

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

.status-badge--bug-judge-rejected {
  background: var(--color-severity-high-bg);
  color: var(--color-severity-high);
}
.guidance-update {
  display: inline-flex;
}

.guidance-update__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.guidance-update__trigger:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-light);
}

.guidance-update__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.guidance-update__dialog {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 480px;
  max-width: 90vw;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.guidance-update__dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.guidance-update__dialog-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.guidance-update__close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.guidance-update__close:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
}

.guidance-update__description {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.guidance-update__textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  resize: vertical;
  box-sizing: border-box;
}

.guidance-update__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.guidance-update__error {
  font-size: 12px;
  color: var(--color-danger);
  margin-top: 8px;
}

.guidance-update__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.guidance-update__cancel {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.guidance-update__cancel:hover {
  background: var(--color-surface-hover);
}

.guidance-update__submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  background: var(--color-primary);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.guidance-update__submit:hover:not(:disabled) {
  background: var(--color-primary-hover);
}

.guidance-update__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.guidance-update__spinner {
  animation: guidance-update-spin 1s linear infinite;
}

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

.guidance-update__success {
  font-size: 13px;
  color: var(--color-text-primary);
  padding: 16px 0;
  text-align: center;
  line-height: 1.5;
}

.guidance-update__progress-link {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: none;
}

.guidance-update__progress-link:hover {
  text-decoration: underline;
}
.bug-report {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: min-content;
}

.bug-report__sticky-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  margin: 0 0 16px;
  padding: 14px 16px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px -10px color-mix(in srgb, var(--color-text-primary) 22%, transparent);
}

.bug-report__sticky-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
}

.bug-report__sticky-toolbar .back-nav-btn {
  justify-self: start;
}

.bug-report__delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  justify-self: end;
  margin: 0;
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bug-report__delete-btn:hover {
  background: var(--color-danger-hover);
  border-color: var(--color-danger-hover);
  color: var(--text-on-accent);
}

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

@media (max-width: 640px) {
  .bug-report__delete-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
}

.bug-report__scroll-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.bug-report__badge-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

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

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

.bug-report__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  z-index: 50;
  padding: 6px;
  min-width: 128px;
}

.bug-report__dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
}

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

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

.bug-report__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  cursor: pointer;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  margin: 0;
  line-height: 1.25;
}

.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: var(--radius-sm);
}

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

.bug-report__title-input {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.bug-report__title-input:focus {
  border-color: var(--color-primary);
}

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

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

.bug-report__section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  overflow: hidden;
}

.bug-report__section h2 {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.bug-report__section p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-primary);
  margin: 0;
}

.bug-report__editable-text {
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.12s ease;
}

.bug-report__editable-text:hover,
.bug-report__editable-text:focus-visible {
  background: var(--color-surface-secondary);
  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: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--color-text-primary);
  margin: 0;
}

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

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

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

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

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

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

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

.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: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.55;
  outline: none;
  font-family: inherit;
  resize: vertical;
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.bug-report__edit-input:focus,
.bug-report__edit-textarea:focus {
  border-color: var(--color-primary);
}

.bug-report__edit-input:focus-visible,
.bug-report__edit-textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

/* Version banner */
.bug-report__version-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
}

.bug-report__version-dismiss {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
}

.bug-report__version-dismiss:hover {
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
}

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

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

@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: 36px;
  margin-bottom: 14px;
}

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

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

.bug-report__chain-step p {
  font-size: 13px;
  line-height: 1.55;
  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: 36px;
  margin-bottom: 18px;
  border-left: 1px solid var(--color-border-light);
  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: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: var(--text-on-accent);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.bug-report__chronology-screenshot {
  margin: 8px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  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-secondary);
}

/* Video walkthrough */
.bug-report__video-container {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
}

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

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

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

.evidence-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--color-surface);
}

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

.evidence-item__header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: var(--color-surface-secondary);
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-primary);
  text-align: left;
  transition: background 0.12s ease;
}

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

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

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

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

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

.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.06em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.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: 8px;
}

.bug-report__judge-verdict {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
}

.bug-report__judge-verdict--approved {
  background: var(--color-status-completed-bg);
  border-color: color-mix(in srgb, var(--color-status-completed) 28%, var(--color-border));
}

.bug-report__judge-verdict--rejected {
  background: var(--color-danger-bg);
  border-color: color-mix(in srgb, var(--color-danger) 30%, var(--color-border));
}

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

.bug-report__judge-verdict--approved .bug-report__judge-verdict-icon {
  color: var(--color-status-completed);
}

.bug-report__judge-verdict--rejected .bug-report__judge-verdict-icon {
  color: var(--color-danger);
}

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

.bug-report__judge-verdict-text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

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

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

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

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

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

.bug-report__judge-attempt {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  background: var(--color-surface);
}

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

.bug-report__judge-attempt--approved {
  border-left: 3px solid var(--color-status-completed);
}

.bug-report__judge-attempt--rejected {
  border-left: 3px solid var(--color-danger);
}

.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: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid transparent;
}

.bug-report__judge-attempt-badge--approved {
  background: var(--color-status-completed-bg);
  color: var(--color-status-completed);
  border-color: color-mix(in srgb, var(--color-status-completed) 25%, var(--color-border));
}

.bug-report__judge-attempt-badge--rejected {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: color-mix(in srgb, var(--color-danger) 28%, var(--color-border));
}

.bug-report__judge-attempt-time {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: auto;
}

/* Judge phase results (evidence / requirements) */
.bug-report__judge-phase {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--color-surface-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.bug-report__judge-phase-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bug-report__judge-phase-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.bug-report__judge-phase-badge--passed {
  background: var(--color-status-completed-bg);
  color: var(--color-status-completed);
  border-color: color-mix(in srgb, var(--color-status-completed) 25%, var(--color-border));
}

.bug-report__judge-phase-badge--failed {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: color-mix(in srgb, var(--color-danger) 28%, var(--color-border));
}

/* Submitted analysis in judge history */
.bug-report__submitted-analysis {
  margin-top: 8px;
}

.bug-report__submitted-analysis-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary, #6c8cff);
  cursor: pointer;
  padding: 0;
}

.bug-report__submitted-analysis-toggle:hover {
  text-decoration: underline;
}

.bug-report__submitted-analysis-content {
  margin-top: 8px;
  padding: 10px;
  background: var(--color-surface-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.bug-report__submitted-analysis-field {
  margin-bottom: 10px;
}

.bug-report__submitted-analysis-field:last-child {
  margin-bottom: 0;
}

.bug-report__submitted-analysis-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.bug-report__submitted-analysis-field p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.bug-report__submitted-analysis-chronology {
  margin: 4px 0 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--color-text-primary);
}

.bug-report__submitted-analysis-chronology li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.bug-report__submitted-analysis-screenshot {
  display: block;
  max-width: 400px;
  max-height: 200px;
  margin-top: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.bug-report__footer-actions {
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
}
.bug-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
}

.bug-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-secondary);
  vertical-align: middle;
}

.bug-table td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.bug-table__row {
  cursor: pointer;
  transition: background 0.12s ease;
}

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

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

.bug-table__date {
  color: var(--color-text-secondary);
  font-size: 12px;
  white-space: nowrap;
}

.bug-table__kind {
  color: var(--color-text-secondary);
  font-size: 12px;
  white-space: nowrap;
  text-transform: capitalize;
}


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

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

.bug-table__status-cell {
  position: relative;
  z-index: 1;
}

.bug-table__status-trigger {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s;
}

.bug-table__status-trigger:hover {
  border-color: var(--color-border);
}

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

.bug-table__status-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  z-index: 50;
  padding: 4px;
  min-width: 140px;
}

.bug-table__status-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px 8px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
}

.bug-table__status-option:hover {
  background: var(--color-surface-secondary);
}

.bug-table__status-option--active {
  background: var(--color-surface-secondary);
}

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

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

.bug-table__send-webhook-btn:hover:not(:disabled) {
  color: var(--color-primary);
}

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

.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: 40px 24px;
  color: var(--color-text-muted);
  font-size: 14px;
}

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

@media (max-width: 768px) {
  .bug-table__col-run,
  .bug-table__col-kind {
    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;
  }
}
.status-filter {
  position: relative;
}

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

.status-filter__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  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-left-radius: var(--radius-pill);
  border-bottom-left-radius: var(--radius-pill);
  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 12px;
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary);
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: var(--radius-pill);
  border-bottom-right-radius: var(--radius-pill);
  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: var(--radius);
  box-shadow: var(--shadow-float);
  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;
}
.severity-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.severity-sort:hover {
  background: var(--color-surface-hover);
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
}

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

.severity-sort--asc {
  background: var(--color-primary-light);
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
  color: var(--color-primary);
}
.bug-list-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bug-list-tab__controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.bug-list-tab__table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.bug-list-tab__resolved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bug-list-tab__resolved-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-text-primary);
}

.bug-list-tab__resolved-toggle--active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.bug-list-tab__copy-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bug-list-tab__copy-all-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-text-primary);
}

.bug-list-tab__copy-all-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bug-list-tab__copy-all-btn: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 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--color-danger);
  background: var(--color-danger-bg);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-danger);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bug-list-tab__delete-all-btn:hover {
  background: var(--color-danger-hover);
  border-color: var(--color-danger-hover);
  color: var(--text-on-accent);
}

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

.bug-list-tab__confirm-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.bug-list-tab__confirm-btn {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.bug-list-tab__confirm-btn--yes {
  border: none;
  background: var(--color-danger);
  color: white;
}

.bug-list-tab__confirm-btn--yes:hover {
  background: var(--color-danger-hover);
}

.bug-list-tab__confirm-btn--yes:focus-visible {
  outline: 2px solid var(--color-danger);
  outline-offset: 2px;
}

.bug-list-tab__confirm-btn--no {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
}

.bug-list-tab__confirm-btn--no:hover {
  background: var(--color-surface-hover);
}

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

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

.bug-list-tab__error p {
  margin: 0;
  font-size: 14px;
}

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

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

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

  .bug-list-tab__delete-all-btn {
    width: 100%;
    justify-content: center;
  }

  .bug-list-tab__confirm-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .bug-list-tab__confirm-btn {
    width: 100%;
    justify-content: center;
  }
}
.processing {
  padding: 0;
}

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

.processing__header--settings {
  margin-bottom: 16px;
  align-items: flex-start;
}

.processing__subsection {
  margin-bottom: 20px;
}

.processing__subsection:last-child {
  margin-bottom: 0;
}

.processing__title-block {
  min-width: 0;
}

.processing__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.processing__subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.45;
  max-width: 36rem;
}

.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: 30px;
  height: 30px;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  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;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.processing__refresh-btn--compact {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  gap: 0;
}

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

.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: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 12px;
}

.processing__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  margin-left: 4px;
}

.processing__empty {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 24px;
  text-align: center;
  background: var(--color-surface-secondary);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

.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: var(--radius-lg);
  padding: 14px 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: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.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: hidden;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.processing__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.processing__table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-secondary);
  vertical-align: middle;
}

.processing__table td {
  padding: 10px 12px;
  color: var(--color-text-primary);
  vertical-align: middle;
}

.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: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.processing__spawn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 18px;
  background: var(--color-primary);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

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

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

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

.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;
  }
}
.members-loading {
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 12px 0;
}

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

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

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

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

.members-list__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-secondary);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.members-list__badge--owner {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
}

.members-list__badge--pending {
  background: var(--color-status-paused-bg);
  color: var(--color-status-paused);
  border-color: color-mix(in srgb, var(--color-status-paused) 22%, var(--color-border));
}

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

.members-list__remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--color-danger);
  background: var(--color-danger-bg);
  border-radius: var(--radius);
  color: var(--color-danger);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

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

.members-list__remove-btn:focus-visible {
  outline: 2px solid var(--color-danger);
  outline-offset: 2px;
}

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

.members-list__confirm button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--color-text-secondary);
}

.members-list__confirm button:hover {
  background: var(--color-surface-hover);
}

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

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

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

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

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

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

.settings-section__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.processing__header--settings .settings-section__title {
  margin-bottom: 0;
}

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

.settings-section__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0 0 16px;
}

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

.settings-section__field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

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

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

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

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

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

.settings-section__test-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

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

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

.settings-section__test-result {
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.45;
}

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

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

.settings-section__save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--color-primary);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

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

.settings-section__save-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

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

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

.settings-section__freq-btn {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}

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

.settings-section__freq-btn--active {
  background: var(--color-primary);
  color: var(--text-on-accent);
  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: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.settings-section__delete-btn:hover {
  background: var(--color-danger-hover);
  border-color: var(--color-danger-hover);
  color: var(--text-on-accent);
}

.settings-section__delete-btn:focus-visible {
  outline: 2px solid var(--color-danger);
  outline-offset: 2px;
}

.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;
  flex-wrap: wrap;
}

.settings-section__delete-actions button {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.settings-section__delete-actions button:hover {
  background: var(--color-surface-hover);
}

.settings-section__confirm-delete-btn {
  background: var(--color-danger) !important;
  color: white !important;
  border-color: var(--color-danger) !important;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.settings-section__confirm-delete-btn:hover {
  background: var(--color-danger-hover) !important;
  border-color: var(--color-danger-hover) !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;
  accent-color: var(--color-primary);
}

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

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

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

.settings-section__setup-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

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

.settings-section__service-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.settings-section__guide-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0 0 8px;
}

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

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

.settings-section__steps code {
  background: var(--color-surface-secondary);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  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;
  line-height: 1.55;
}

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

.settings-section__payload-example code {
  font-family: var(--font-mono, ui-monospace, monospace);
}

.settings-section__docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.settings-section__docs-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: bottom;
}

.settings-section__docs-table td {
  padding: 10px 12px 10px 0;
  color: var(--color-text-secondary);
  vertical-align: top;
  border-bottom: 1px solid var(--color-border-light);
  line-height: 1.45;
}

.settings-section__docs-table tbody tr:last-child td {
  border-bottom: none;
}

.settings-section__docs-table code {
  font-size: 12px;
}

@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 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.explorations-tab__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.explorations-tab__new-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--color-primary);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-pill);
  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: var(--text-on-accent);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
}

.explorations-tab__empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-secondary);
}

/* Table */
.explorations-tab__table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

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

.explorations-tab__th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-secondary);
  vertical-align: middle;
}

.explorations-tab__th--toggle {
  width: 36px;
  padding-left: 10px;
  padding-right: 4px;
}

.explorations-tab__th--num {
  text-align: right;
  width: 88px;
}

.explorations-tab__th--status {
  width: 128px;
}

.explorations-tab__th--date {
  width: 1%;
  white-space: nowrap;
}

.explorations-tab__td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 13px;
  color: var(--color-text-primary);
  vertical-align: middle;
}

.explorations-tab__td--toggle {
  width: 36px;
  text-align: center;
  color: var(--color-text-muted);
}

.explorations-tab__td--num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.explorations-tab__td--date {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.explorations-tab__prompt {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.explorations-tab__row {
  cursor: pointer;
  transition: background 0.12s ease;
}

.explorations-tab__row:hover {
  background: var(--color-surface-secondary);
}

.explorations-tab__row--expanded {
  background: var(--color-surface-secondary);
}

.explorations-tab__row-expand .explorations-tab__td--expand {
  padding: 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.explorations-tab__status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

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

.explorations-tab__status--in-progress {
  background: var(--color-status-in-progress-bg);
  color: var(--color-status-in-progress);
  border-color: color-mix(in srgb, var(--color-status-in-progress) 22%, var(--color-border));
}

.explorations-tab__status--completed {
  background: var(--color-status-completed-bg);
  color: var(--color-status-completed);
  border-color: color-mix(in srgb, var(--color-status-completed) 25%, var(--color-border));
}

.explorations-tab__status--failed {
  background: var(--color-status-failed-bg);
  color: var(--color-status-failed);
  border-color: color-mix(in srgb, var(--color-status-failed) 25%, var(--color-border));
}

/* Logs */
.explorations-tab__logs {
  background: var(--color-surface-secondary);
  padding: 12px 14px 14px;
  border-top: 1px solid var(--color-border);
}

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

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

.explorations-tab__log-entry {
  display: grid;
  grid-template-columns: 84px 108px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 13px;
  line-height: 1.45;
}

.explorations-tab__log-entry:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.explorations-tab__log-time {
  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: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.explorations-tab__log-message {
  color: var(--color-text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  min-width: 0;
}

@media (max-width: 720px) {
  .explorations-tab__table-wrap {
    overflow-x: auto;
  }

  .explorations-tab__table {
    min-width: 640px;
  }

  .explorations-tab__log-entry {
    grid-template-columns: 72px 96px minmax(0, 1fr);
    gap: 8px;
  }
}

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

.explorations-tab__modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 480px;
  max-width: 90vw;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-float);
}

.explorations-tab__modal h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 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: var(--radius);
  background: var(--color-surface-secondary);
  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) 18%, transparent);
}

.explorations-tab__modal-field input[type='number'] {
  width: 88px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-secondary);
  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) 18%, transparent);
}

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

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

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

.explorations-tab__modal-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--color-primary);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-pill);
  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: var(--color-danger-bg);
  border: 1px solid color-mix(in srgb, var(--color-danger) 35%, var(--color-border));
  border-radius: var(--radius);
  color: var(--color-danger);
  font-size: 13px;
}
.polish-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.polish-tab__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

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

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

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

.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: var(--text-on-accent);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
}

.polish-tab__empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-secondary);
}

/* Table */
.polish-tab__table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

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

.polish-tab__th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-secondary);
  vertical-align: middle;
}

.polish-tab__th--toggle {
  width: 36px;
  padding-left: 10px;
  padding-right: 4px;
}

.polish-tab__th--num {
  text-align: right;
  width: 88px;
}

.polish-tab__th--status {
  width: 128px;
}

.polish-tab__th--date {
  width: 1%;
  white-space: nowrap;
}

.polish-tab__td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 13px;
  color: var(--color-text-primary);
  vertical-align: middle;
}

.polish-tab__td--toggle {
  width: 36px;
  text-align: center;
  color: var(--color-text-muted);
}

.polish-tab__td--num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.polish-tab__td--date {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.polish-tab__journey {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.polish-tab__status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

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

.polish-tab__status--in-progress {
  background: var(--color-status-in-progress-bg);
  color: var(--color-status-in-progress);
  border-color: color-mix(in srgb, var(--color-status-in-progress) 22%, var(--color-border));
}

.polish-tab__status--completed {
  background: var(--color-status-completed-bg);
  color: var(--color-status-completed);
  border-color: color-mix(in srgb, var(--color-status-completed) 25%, var(--color-border));
}

.polish-tab__status--failed {
  background: var(--color-status-failed-bg);
  color: var(--color-status-failed);
  border-color: color-mix(in srgb, var(--color-status-failed) 25%, var(--color-border));
}

/* Row styles */
.polish-tab__row {
  cursor: pointer;
  transition: background 0.12s ease;
}

.polish-tab__row:hover {
  background: var(--color-surface-secondary);
}

/* Group rows (test run level) */
.polish-tab__row--group {
  font-weight: 500;
}

.polish-tab__row--group.polish-tab__row--expanded {
  background: var(--color-surface-secondary);
}

.polish-tab__row--group.polish-tab__row--expanded > .polish-tab__td {
  border-bottom-color: var(--color-border);
}

/* Nested task rows */
.polish-tab__row--task {
  background: var(--color-surface-secondary);
}

.polish-tab__row--task:hover {
  background: var(--color-surface-hover);
}

.polish-tab__td--task-icon {
  padding-left: 14px;
}

.polish-tab__td--task-name {
  padding-left: 20px;
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text-primary);
}

/* Loading row inside expanded group */
.polish-tab__row--loading .polish-tab__td {
  background: var(--color-surface-secondary);
}

.polish-tab__loading-inline {
  font-size: 13px;
  color: var(--color-text-muted);
  padding-left: 20px;
}

/* Status icons in table rows */
.polish-tab__status-icon--completed { color: var(--color-status-completed); }
.polish-tab__status-icon--failed { color: var(--color-status-failed); }
.polish-tab__status-icon--in-progress {
  color: var(--color-status-in-progress);
  animation: polish-spin 1s linear infinite;
}
.polish-tab__status-icon--pending { color: var(--color-text-muted); }

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

/* Row arrow */
.polish-tab__row-arrow {
  color: var(--color-text-muted);
  vertical-align: middle;
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.polish-tab__row:hover .polish-tab__row-arrow {
  opacity: 1;
}

.polish-tab__row-arrow--visible {
  opacity: 0.4;
}

.polish-tab__row:hover .polish-tab__row-arrow--visible {
  opacity: 1;
}

.polish-tab__date-text {
  vertical-align: middle;
}

@media (max-width: 720px) {
  .polish-tab__table-wrap {
    overflow-x: auto;
  }

  .polish-tab__table {
    min-width: 640px;
  }
}
.project-detail {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

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

.project-detail__masthead {
  flex-shrink: 0;
  margin-bottom: 20px;
  background: var(--color-surface-secondary);
}

.project-detail__sheet {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-detail__sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.project-detail__sheet-scroll .tab-navigation {
  position: sticky;
  top: 0;
  z-index: 3;
  margin-bottom: 0;
  padding: 0 4px 0 12px;
  gap: 2px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 6px 14px -10px color-mix(in srgb, var(--color-text-primary) 28%, transparent);
}

.project-detail__sheet-scroll .tab-navigation__tab {
  padding-left: 14px;
  padding-right: 14px;
}

.project-detail__readonly-banner {
  padding: 8px 16px;
  background: var(--color-warning-bg, #fef3cd);
  color: var(--color-warning-text, #856404);
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.project-detail__panel {
  padding: 20px 20px 24px;
}

.project-detail__sheet--inactive .project-detail__skeleton-tabs {
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--color-border);
}

.project-detail__skeleton-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-detail__back {
  margin-bottom: 16px;
}

.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: var(--text-on-accent);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-detail__error-back-btn {
  background: var(--color-surface) !important;
  color: var(--color-text-primary) !important;
  border: 1px solid var(--color-border) !important;
}

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

.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-border);
  border-radius: var(--radius-sm);
  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-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

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

.project-detail__skeleton-tabs {
  width: 100%;
  height: 44px;
  background: var(--color-border);
  margin: 0;
  border-radius: 0;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  animation-delay: 0.2s;
}

.project-detail__skeleton-block {
  width: 100%;
  height: 120px;
  background: var(--color-border);
  border-radius: var(--radius);
  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;
}

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

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

  .project-detail__panel {
    padding: 16px 14px 20px;
  }

  .project-detail__back {
    margin-bottom: 12px;
  }
}
.source-link-card {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.source-link-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 13px;
}

.source-link-card__link:hover {
  text-decoration: underline;
}

.source-link-card__text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.source-link-card__popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  min-width: 240px;
  max-width: 340px;
  padding: 10px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.source-link-card__popover-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.source-link-card__popover-icon {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.source-link-card__popover-label {
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 10px;
  min-width: 56px;
  flex-shrink: 0;
}

.source-link-card__popover-value {
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-link-card__popover-link {
  color: var(--color-primary);
  text-decoration: none;
}

.source-link-card__popover-link:hover {
  text-decoration: underline;
}
.replay-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 100%;
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

.replay-link__lead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.replay-link__id {
  font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace);
  font-size: 13px;
  line-height: 1.35;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.replay-link:hover {
  color: var(--color-brand);
}

.replay-link:hover .replay-link__lead {
  text-decoration: underline;
}

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

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

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

.bug-metadata h2 {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.bug-metadata__status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.bug-metadata__badge-wrapper {
  flex-shrink: 0;
}

.bug-metadata__dropdown-wrapper {
  position: relative;
  flex: 1;
}

.bug-metadata__dropdown-btn {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  background: var(--color-surface);
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
}

.bug-metadata__dropdown-btn:hover {
  border-color: var(--color-primary);
}

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

.bug-metadata__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  z-index: 50;
  padding: 6px;
}

.bug-metadata__dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  color: var(--color-text-primary);
  cursor: pointer;
}

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

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

.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;
  min-width: 0;
}

.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);
  flex: 1;
  min-width: 0;
}

.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;
  align-items: flex-start;
}

.bug-metadata__recordings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.bug-metadata__recording-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-secondary);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.bug-metadata__recording-context {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Replay.io links: neutral chrome in sidebar; ID wraps on its own row (see ReplayLink) */
.bug-metadata .replay-link {
  font-size: 13px;
  color: var(--color-primary);
}

.bug-metadata .replay-link:hover {
  color: var(--color-primary-hover);
}

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

.bug-metadata__send-webhook-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bug-metadata__send-webhook-btn:hover:not(:disabled) {
  color: var(--color-primary);
}

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

.bug-metadata__copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
  justify-content: center;
}

.bug-metadata__copy-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

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

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

  .bug-metadata__item {
    flex-wrap: wrap;
  }

  .bug-metadata__label {
    min-width: 0;
  }
}
.guidance-deps {
  margin-top: 20px;
}

.guidance-deps__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.guidance-deps__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guidance-deps__item {
  display: inline-flex;
}

.guidance-deps__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  background: var(--color-info-muted-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  text-decoration: none;
}

.guidance-deps__link:hover {
  background: var(--color-info-muted-bg-hover);
  text-decoration: none;
}

.guidance-deps__key {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-weight: 500;
}

.guidance-deps__version {
  color: var(--color-text-muted);
  font-size: 11px;
}
.bug-detail {
  padding: 0;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

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

.bug-detail__actions-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.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);
  margin: 0;
}

.bug-detail__error-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.bug-detail__retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-pill);
  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__mutation-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid color-mix(in srgb, var(--color-danger) 28%, var(--color-border));
  border-radius: var(--radius-lg);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 16px;
  flex-shrink: 0;
}

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

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

.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: var(--radius-lg);
}

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

  50% {
    opacity: 0.4;
  }
}

.bug-detail__layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: stretch;
  overflow: hidden;
}

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

.bug-detail__main {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bug-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.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: var(--radius-lg);
  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: var(--radius);
  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: var(--radius-lg);
  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: var(--radius);
  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: var(--radius-lg);
  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: var(--radius);
  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);
}

/* Judge details section */
.bugs-found-list__judge {
  margin: 4px 0 4px 12px;
  padding: 8px 12px;
  background: var(--color-surface-secondary);
  border-left: 3px solid var(--color-warning, #e5a00d);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
}

.bugs-found-list__judge-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0;
}

.bugs-found-list__judge-toggle:hover {
  color: var(--color-text-primary);
}

.bugs-found-list__judge-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.bugs-found-list__judge-problem-chip {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: var(--color-surface-hover, #2a2a2f);
  border-radius: 10px;
  color: var(--color-text-secondary);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bugs-found-list__judge-details {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bugs-found-list__judge-attempt {
  padding: 8px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.bugs-found-list__judge-attempt-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-danger, #e55);
}

.bugs-found-list__judge-attempt-header time {
  font-weight: 400;
  color: var(--color-text-tertiary);
  margin-left: auto;
}

.bugs-found-list__judge-problems {
  list-style: disc;
  margin: 6px 0 0 20px;
  padding: 0;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.bugs-found-list__judge-problems li {
  margin-bottom: 2px;
}

.bugs-found-list__judge-assessment {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--color-text-secondary);
  font-style: italic;
}

.bugs-found-list__judge-analysis {
  margin-top: 8px;
}

.bugs-found-list__judge-analysis-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary, #6c8cff);
  cursor: pointer;
  padding: 0;
}

.bugs-found-list__judge-analysis-toggle:hover {
  text-decoration: underline;
}

.bugs-found-list__judge-analysis-content {
  margin-top: 8px;
  padding: 8px;
  background: var(--color-surface-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.bugs-found-list__judge-field {
  margin-bottom: 8px;
}

.bugs-found-list__judge-field:last-child {
  margin-bottom: 0;
}

.bugs-found-list__judge-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
  margin-bottom: 2px;
}

.bugs-found-list__judge-field p {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.bugs-found-list__judge-chronology {
  margin: 4px 0 0;
  padding-left: 20px;
  font-size: 12px;
  color: var(--color-text-primary);
}

.bugs-found-list__judge-chronology li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.bugs-found-list__judge-screenshot {
  display: block;
  max-width: 400px;
  max-height: 200px;
  margin-top: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* Judge phase results (evidence / requirements) */
.bugs-found-list__judge-phase {
  margin-top: 6px;
  padding: 6px 8px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.bugs-found-list__judge-phase-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bugs-found-list__judge-phase-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 10px;
}

.bugs-found-list__judge-phase-badge--passed {
  background: var(--color-success-bg, rgba(34, 197, 94, 0.15));
  color: var(--color-success, #22c55e);
}

.bugs-found-list__judge-phase-badge--failed {
  background: var(--color-danger-bg, rgba(239, 68, 68, 0.15));
  color: var(--color-danger, #e55);
}

@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;
  }

  .bugs-found-list__judge-screenshot {
    max-width: 100%;
  }
}

@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: var(--radius-lg);
  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__heading--toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 0;
}

.screenshot-timeline__heading--toggle[aria-expanded="true"] {
  margin-bottom: 16px;
}

.screenshot-timeline__heading--toggle:hover {
  color: var(--color-text-primary);
}

.screenshot-timeline__chevron {
  transition: transform 0.15s ease;
}

.screenshot-timeline__chevron--open {
  transform: rotate(90deg);
}

.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: var(--color-status-paused);
}

.screenshot-timeline__dot--discovery {
  background: var(--color-status-active);
}

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

.screenshot-timeline__dot--agent {
  background: var(--color-severity-low);
}

.screenshot-timeline__dot--info {
  background: var(--color-text-muted);
}

.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: var(--radius);
  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: var(--color-surface-hover);
  color: var(--color-text-muted);
}

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

.screenshot-timeline__log-badge--discovery {
  background: var(--color-status-active-bg);
  color: var(--color-status-active);
}

.screenshot-timeline__log-badge--error {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.screenshot-timeline__log-badge--agent {
  background: var(--color-severity-low-bg);
  color: var(--color-severity-low);
}

.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;
  }
}
.retrigger-links {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.retrigger-links__row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.retrigger-links__label {
  font-weight: 500;
  color: var(--color-text-secondary);
}

.retrigger-links__link {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 12px;
  background: var(--color-info-muted-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  text-decoration: none;
}

.retrigger-links__link:hover {
  background: var(--color-info-muted-bg-hover);
}

.retrigger-links__sep {
  margin-right: 4px;
}
.test-run-detail {
  padding: 0;
  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: var(--radius-lg);
  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: var(--radius-lg);
  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 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-primary);
}

.test-run-detail__journey-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
}

.test-run-detail__unstepped-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-warning, #b45309);
  background: color-mix(in srgb, var(--color-warning, #b45309) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-warning, #b45309) 30%, transparent);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
}

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

.test-run-detail__journey-updates-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.test-run-detail__journey-updates-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.test-run-detail__journey-update-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.test-run-detail__journey-update-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  white-space: nowrap;
}

.test-run-detail__journey-update-name {
  color: var(--color-text-primary);
  font-weight: 500;
}

.test-run-detail__section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  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: var(--radius);
  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: var(--radius-lg);
}

.test-run-detail__skeleton-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  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: var(--radius-lg);
  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: var(--radius);
  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 var(--color-status-active);
}

.test-run-detail__judge-submission--rejected {
  border-left: 3px solid var(--color-danger);
}

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

.test-run-detail__judge-submission--approved .test-run-detail__judge-submission-icon {
  color: var(--color-status-active);
}

.test-run-detail__judge-submission--rejected .test-run-detail__judge-submission-icon {
  color: var(--color-danger);
}

.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: var(--color-status-active-bg);
  color: var(--color-status-active);
}

.test-run-detail__judge-submission-badge--rejected {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.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);
  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: var(--color-severity-high-bg);
  color: var(--color-severity-high);
  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;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  min-width: 0;
  max-width: 100%;
}

.test-run-detail__recording-context {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.test-run-detail__recordings-list .replay-link {
  max-width: 100%;
}

/* 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: var(--radius);
  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: var(--radius);
  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;
}

/* Polish pass links */
.test-run-detail__polish-passes-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: 12px;
}

.test-run-detail__polish-passes-loading {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 8px 0;
}

.test-run-detail__polish-passes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.test-run-detail__polish-pass-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
  transition: background 0.12s;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

.test-run-detail__polish-pass-item:hover {
  background: var(--color-surface-hover);
}

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

.test-run-detail__polish-pass-icon {
  flex-shrink: 0;
  display: flex;
}

.test-run-detail__polish-pass-icon--completed { color: var(--color-status-completed, var(--color-success)); }
.test-run-detail__polish-pass-icon--failed { color: var(--color-status-failed, var(--color-danger)); }
.test-run-detail__polish-pass-icon--in-progress {
  color: var(--color-status-in-progress, var(--color-primary));
  animation: test-run-polish-spin 1s linear infinite;
}
.test-run-detail__polish-pass-icon--pending { color: var(--color-text-muted); }

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

.test-run-detail__polish-pass-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  flex: 1;
}

.test-run-detail__polish-pass-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm, 4px);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.test-run-detail__polish-pass-status--pending,
.test-run-detail__polish-pass-status--queued {
  background: var(--color-surface-secondary);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.test-run-detail__polish-pass-status--in-progress {
  background: var(--color-status-in-progress-bg);
  color: var(--color-status-in-progress);
  border-color: color-mix(in srgb, var(--color-status-in-progress) 22%, var(--color-border));
}

.test-run-detail__polish-pass-status--completed {
  background: var(--color-status-completed-bg);
  color: var(--color-status-completed);
  border-color: color-mix(in srgb, var(--color-status-completed) 25%, var(--color-border));
}

.test-run-detail__polish-pass-status--failed {
  background: var(--color-status-failed-bg);
  color: var(--color-status-failed);
  border-color: color-mix(in srgb, var(--color-status-failed) 25%, var(--color-border));
}

.test-run-detail__polish-pass-bugs {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.test-run-detail__polish-pass-arrow {
  flex-shrink: 0;
  color: var(--color-text-muted);
  opacity: 0.4;
  transition: opacity 0.12s;
}

.test-run-detail__polish-pass-item:hover .test-run-detail__polish-pass-arrow {
  opacity: 1;
}

.test-run-detail__footer-actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.polish-run-detail {
  padding: 0 0 48px;
  max-width: 900px;
}

/* Breadcrumb */
.polish-breadcrumb {
  margin-bottom: 20px;
}

.polish-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.polish-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 2px;
}

.polish-breadcrumb__sep {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.polish-breadcrumb__link {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.polish-breadcrumb__link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.polish-breadcrumb__text {
  color: var(--color-text-secondary);
}

.polish-breadcrumb__passes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.polish-breadcrumb__pass-link {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.polish-breadcrumb__pass-link:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.polish-breadcrumb__pass-link--active {
  background: var(--color-info-muted-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.polish-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;
}

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

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

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

/* Timing */
.polish-run-detail__timing {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 13px;
}

.polish-run-detail__timing-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.polish-run-detail__timing-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.polish-run-detail__timing-value {
  color: var(--color-text-secondary);
}

.polish-run-detail__title-icon {
  color: var(--color-text-muted);
}

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

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

.polish-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;
}

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

/* Recording links */
.polish-run-detail__recordings {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.polish-run-detail__recording-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-info-muted-bg);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
}

.polish-run-detail__recording-link:hover {
  background: var(--color-primary);
  color: var(--text-on-accent);
}

.polish-run-detail__recording-link--setup {
  color: var(--color-text-secondary);
  background: var(--color-surface-secondary);
  border-color: var(--color-border);
}

.polish-run-detail__recording-link--setup:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

/* Section */
.polish-run-detail__section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.polish-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;
}

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

.polish-run-detail > .bugs-found-list {
  margin-bottom: 16px;
}

/* Pass cards */
.polish-run-detail__passes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.polish-run-detail__pass-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--color-bg);
}

.polish-run-detail__pass-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.polish-run-detail__pass-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.polish-run-detail__pass-status {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: capitalize;
}

.polish-run-detail__pass-bug-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-danger);
}

.polish-run-detail__pass-icon--completed { color: var(--color-status-active); }
.polish-run-detail__pass-icon--failed { color: var(--color-danger); }
.polish-run-detail__pass-icon--in-progress {
  color: var(--color-status-in-progress);
  animation: polish-spin 1.5s linear infinite;
}
.polish-run-detail__pass-icon--pending { color: var(--color-text-muted); }

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

/* Metrics */
.polish-run-detail__metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.polish-run-detail__metric {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
}

.polish-run-detail__metric--good {
  background: var(--color-status-completed-bg);
  color: var(--color-status-completed);
}

.polish-run-detail__metric--needs-improvement {
  background: var(--color-status-in-progress-bg);
  color: var(--color-status-in-progress);
}

.polish-run-detail__metric--poor {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.polish-run-detail__metric--unknown {
  background: var(--color-surface-secondary);
  color: var(--color-text-muted);
}

.polish-run-detail__metric-name {
  font-weight: 600;
}

/* Findings */
.polish-run-detail__findings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.polish-run-detail__finding {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.polish-run-detail__finding-title {
  color: var(--color-text-primary);
}

.polish-run-detail__severity {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: capitalize;
  flex-shrink: 0;
}

.polish-run-detail__severity--critical {
  background: var(--color-severity-critical-bg);
  color: var(--color-severity-critical);
}

.polish-run-detail__severity--high {
  background: var(--color-severity-high-bg);
  color: var(--color-severity-high);
}

.polish-run-detail__severity--medium {
  background: var(--color-severity-medium-bg);
  color: var(--color-severity-medium);
}

.polish-run-detail__severity--low {
  background: var(--color-severity-low-bg);
  color: var(--color-severity-low);
}

/* Duplicates */
.polish-run-detail__duplicates {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.polish-run-detail__duplicates-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;
}

.polish-run-detail__duplicates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.polish-run-detail__duplicate-new {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.polish-run-detail__duplicate-title {
  color: var(--color-text-primary);
  text-decoration: line-through;
  text-decoration-color: var(--color-text-muted);
}

.polish-run-detail__duplicate-existing {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.polish-run-detail__duplicate-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.polish-run-detail__duplicate-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--color-text-primary);
  cursor: pointer;
}

.polish-run-detail__duplicate-link:hover {
  color: var(--color-primary);
}

/* Pass bugs */
.polish-run-detail__pass-bugs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

.polish-run-detail__pass-bug {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-primary);
}

.polish-run-detail__pass-empty,
.polish-run-detail__pass-pending {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

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

.polish-run-detail .skeleton--text { height: 14px; }
.polish-run-detail .skeleton--back { width: 120px; height: 14px; margin-bottom: 20px; }
.polish-run-detail .skeleton--heading { width: 160px; height: 22px; }
.polish-run-detail .skeleton--badge { width: 64px; height: 22px; border-radius: var(--radius-lg); }

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

.polish-run-detail .skeleton--section-title { width: 30%; }
.polish-run-detail .skeleton--section-body { width: 80%; }
.polish-run-detail .skeleton--section-body-short { width: 55%; }

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

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

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

.polish-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: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

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

.polish-run-detail__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* Setup errors */
.polish-run-detail__setup-errors {
  background: var(--color-danger-muted-bg, rgba(239, 68, 68, 0.08));
  border: 1px solid var(--color-danger, #ef4444);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.polish-run-detail__setup-errors-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-danger, #ef4444);
  margin: 0 0 10px 0;
}

.polish-run-detail__setup-error-item {
  font-size: 13px;
  color: var(--color-text-primary);
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border-light, rgba(239, 68, 68, 0.15));
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.polish-run-detail__setup-error-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.polish-run-detail__setup-error-ctx {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-danger, #ef4444);
  background: var(--color-danger-muted-bg, rgba(239, 68, 68, 0.08));
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.polish-run-detail__setup-error-msg {
  word-break: break-word;
}

/* Setup output */
.polish-run-detail__collapsible-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  padding: 0;
  cursor: pointer;
}

.polish-run-detail__collapsible-header:hover {
  color: var(--color-primary);
}

.polish-run-detail__setup-output-wrapper {
  position: relative;
}

.polish-run-detail__copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 1;
}

.polish-run-detail__copy-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

.polish-run-detail__setup-output {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
  color: var(--color-text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.polish-run-detail__footer-actions {
  margin-top: 24px;
  padding: 16px 0 32px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.polish-run-detail__retrigger-btn:hover:not(:disabled) {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.polish-run-detail__retrigger-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.polish-run-detail__retrigger-error {
  font-size: 13px;
  color: var(--color-danger);
  margin: 0;
}

@media (max-width: 640px) {
  .polish-run-detail { padding: 12px; }
  .polish-run-detail__title { font-size: 18px; }
  .polish-run-detail__section { padding: 14px; }
  .polish-run-detail__section h2 { font-size: 12px; }
}
.exploration-detail {
  padding: 0;
  max-width: 900px;
}

.exploration-detail__loading {
  padding: 48px 0;
  text-align: center;
  color: var(--color-text-secondary);
}

.exploration-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;
}

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

.exploration-detail__error {
  text-align: center;
  padding: 48px 0;
  color: var(--color-text-secondary);
}

.exploration-detail__error button {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px 14px;
  color: var(--color-text);
  cursor: pointer;
}

.exploration-detail__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.exploration-detail__icon {
  color: var(--color-primary);
}

.exploration-detail__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.exploration-detail__prompt-section {
  margin-bottom: 20px;
}

.exploration-detail__prompt {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
}

.exploration-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.exploration-detail__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exploration-detail__meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.exploration-detail__meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.exploration-detail__section {
  margin-bottom: 24px;
}

.exploration-detail__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  margin: 0 0 12px;
}

.exploration-detail__empty {
  color: var(--color-text-secondary);
  font-size: 13px;
  padding: 16px;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

/* Journeys table */
.exploration-detail__table-wrap {
  overflow-x: auto;
}

.exploration-detail__journeys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.exploration-detail__journeys-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.exploration-detail__journeys-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.exploration-detail__journeys-table tbody tr:last-child td {
  border-bottom: none;
}

.exploration-detail__journey-row {
  cursor: pointer;
}

.exploration-detail__journey-row:hover {
  background: var(--color-bg);
}

.exploration-detail__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.exploration-detail__badge--created {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.exploration-detail__badge--updated {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.exploration-detail__journey-name {
  font-weight: 500;
  color: var(--color-text);
}

.exploration-detail__journey-desc {
  color: var(--color-text-secondary);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exploration-detail__journey-steps {
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* Logs */
.exploration-detail__logs {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px;
}

.exploration-detail__log-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono, monospace);
}

.exploration-detail__log-entry:hover {
  background: var(--color-bg);
}

.exploration-detail__log-time {
  color: var(--color-text-secondary);
  flex-shrink: 0;
  min-width: 70px;
}

.exploration-detail__log-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.exploration-detail__log-message {
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .exploration-detail__meta {
    gap: 12px;
  }

  .exploration-detail__journey-desc {
    display: none;
  }
}

.exploration-detail__footer-actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.settings-page {
  max-width: 780px;
}

.settings-page__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--color-text-primary);
}

.settings-page__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.settings-page__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sections */

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

.settings-section__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.settings-section__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.settings-section__subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 20px 0 8px;
}

.settings-section__description {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0 0 12px;
}

.settings-section__description code {
  font-size: 12px;
  padding: 1px 5px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
}

/* API Token */

.settings-token__reveal {
  margin: 16px 0;
  padding: 16px;
  background: var(--color-bg);
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
}

.settings-token__reveal-label {
  font-size: 13px;
  font-weight: 600;
  color: #f59e0b;
  margin: 0 0 10px;
}

.settings-token__reveal-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-token__value {
  flex: 1;
  font-size: 13px;
  font-family: var(--font-mono, monospace);
  padding: 8px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  word-break: break-all;
  user-select: all;
}

.settings-token__copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}

.settings-token__copy-btn:hover {
  background: var(--color-bg);
}

.settings-token__dismiss-btn {
  margin-top: 12px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.settings-token__dismiss-btn:hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-secondary);
}

.settings-token__status {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 12px 0;
}

.settings-token__info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-size: 13px;
}

.settings-token__exists {
  color: var(--color-text-secondary);
}

.settings-token__mask {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--color-text-tertiary, var(--color-text-secondary));
  padding: 2px 8px;
  background: var(--color-bg);
  border-radius: 4px;
}

.settings-token__none {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 12px 0;
}

.settings-token__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.settings-token__generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--color-primary, #2563eb);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.settings-token__generate-btn:hover {
  opacity: 0.9;
}

.settings-token__generate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings-token__delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.settings-token__delete-btn:hover {
  color: #ef4444;
  border-color: #ef4444;
}

.settings-token__delete-btn--confirm {
  color: #fff;
  background: #ef4444;
  border-color: #ef4444;
}

.settings-token__delete-btn--confirm:hover {
  color: #fff;
  background: #dc2626;
}

/* MCP Instructions */

.settings-mcp__tools {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}

.settings-mcp__tools li {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-secondary);
  padding: 4px 0;
}

.settings-mcp__tools li strong {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.settings-mcp__config-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 16px 0 6px;
}

.settings-mcp__code {
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  line-height: 1.6;
  padding: 14px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0 0 16px;
  white-space: pre;
}

/* Admin Section */

.settings-admin__nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--color-surface-raised, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

.settings-admin__nav-link:hover {
  background: var(--color-surface-hover, rgba(255, 255, 255, 0.08));
  border-color: var(--color-border-hover, rgba(255, 255, 255, 0.16));
}

.settings-admin__header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.settings-admin__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}

.settings-admin__action-btn:hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-secondary);
}

.settings-admin__action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings-admin__action-btn--primary {
  color: #fff;
  background: var(--color-primary, #2563eb);
  border-color: var(--color-primary, #2563eb);
}

.settings-admin__action-btn--primary:hover {
  opacity: 0.9;
  color: #fff;
}

.settings-admin__action-result {
  font-size: 13px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-secondary);
}

.settings-admin__error {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #ef4444;
  margin: 8px 0;
}

.settings-admin__lock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 8px 0 4px;
}

.settings-admin__lock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.settings-admin__lock-dot--free {
  background: #22c55e;
}

.settings-admin__lock-dot--held {
  background: #f59e0b;
}

.settings-admin__lock-holder {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--color-text-tertiary, var(--color-text-secondary));
}

.settings-admin__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.settings-admin__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 6px 10px;
  background: var(--color-bg);
  border-radius: var(--radius);
}

.settings-admin__item-name {
  font-weight: 500;
  color: var(--color-text-primary);
  min-width: 100px;
}

.settings-admin__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.settings-admin__badge--idle {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.settings-admin__badge--starting {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

.settings-admin__badge--unreachable {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.settings-admin__badge--busy {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.settings-admin__item-id {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--color-text-tertiary, var(--color-text-secondary));
}

.settings-admin__item-time {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-left: auto;
}

.settings-admin__mono {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}

.settings-admin__projects {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-admin__project-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 6px;
}

.settings-admin__project-link {
  color: var(--color-primary, #2563eb);
  text-decoration: none;
}

.settings-admin__project-link:hover {
  text-decoration: underline;
}

.settings-admin__expandable {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.settings-admin__expandable + .settings-admin__expandable {
  margin-top: 4px;
}

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

.settings-admin__expandable-header:hover {
  background: var(--color-surface);
}

.settings-admin__expandable-sub {
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-left: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-admin__expandable-body {
  padding: 8px 10px;
  border-top: 1px solid var(--color-border);
}

.settings-admin__container-detail {
  font-size: 13px;
  color: var(--color-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-admin__logs {
  margin-top: 6px;
}

.settings-admin__logs-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.settings-admin__logs-empty {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-style: italic;
}

.settings-admin__log {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 0;
}

.settings-admin__log-time {
  flex-shrink: 0;
  width: 56px;
  color: var(--color-text-tertiary, var(--color-text-secondary));
}

.settings-admin__log-type {
  flex-shrink: 0;
  width: 64px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.settings-admin__log--error .settings-admin__log-type { color: #ef4444; }
.settings-admin__log--warning .settings-admin__log-type { color: #f59e0b; }
.settings-admin__log--info .settings-admin__log-type { color: #3b82f6; }
.settings-admin__log--step .settings-admin__log-type { color: #22c55e; }

.settings-admin__log-msg {
  color: var(--color-text-secondary);
  word-break: break-word;
}

/* All Projects by User */

.settings-admin__user-projects {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-admin__user-project-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-admin__user-project-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: var(--radius);
}

.settings-admin__user-project-item:hover {
  background: var(--color-bg);
}

.settings-admin__user-project-name {
  font-weight: 500;
  color: var(--color-primary, #2563eb);
  text-decoration: none;
  min-width: 120px;
}

.settings-admin__user-project-name:hover {
  text-decoration: underline;
}

.settings-admin__user-project-stats {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-left: auto;
  margin-right: 8px;
}

/* Admin Users */

.settings-admin__add-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.settings-admin__add-input {
  flex: 1;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--color-text-primary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
}

.settings-admin__add-input:focus {
  border-color: var(--color-primary, #2563eb);
}

.settings-admin__remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}

.settings-admin__remove-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.settings-admin__token-reveal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.settings-admin__token-value {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: var(--color-text-primary);
  word-break: break-all;
  flex: 1;
}

.settings-admin__token-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-admin__action-btn--danger {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.settings-admin__action-btn--danger:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

@media (max-width: 600px) {
  .settings-token__reveal-row {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-token__actions {
    flex-direction: column;
  }

  .settings-token__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
.guidance-diff {
  background: var(--color-code-bg);
  border-radius: var(--radius-sm);
  overflow: auto;
  max-height: 300px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.5;
}

.guidance-diff__line {
  display: flex;
  padding: 0 12px;
  min-height: 20px;
}

.guidance-diff__line--add {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.guidance-diff__line--remove {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.guidance-diff__line--same {
  color: var(--color-code-text);
  opacity: 0.7;
}

.guidance-diff__prefix {
  flex-shrink: 0;
  width: 18px;
  user-select: none;
  text-align: center;
}

.guidance-diff__text {
  white-space: pre-wrap;
  word-break: break-word;
}

.guidance-diff__separator {
  display: block;
  width: 100%;
  padding: 4px 12px;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 11px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.guidance-diff__separator--expandable {
  cursor: pointer;
}

.guidance-diff__separator--expandable:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-secondary);
}
.guidance-page {
  max-width: 900px;
}

.guidance-page__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--color-text-primary);
}

.guidance-page__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.guidance-page__loading {
  padding: 48px 0;
  text-align: center;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.guidance-page__error {
  padding: 24px;
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius);
  color: var(--color-danger);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.guidance-page__empty {
  padding: 48px 0;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.guidance-page__entries {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Entry card */

.guidance-entry {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.guidance-entry--expanded {
  border-color: var(--color-primary);
}

.guidance-entry__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  color: var(--color-text-primary);
}

.guidance-entry__header:hover {
  background: var(--color-surface-hover);
}

.guidance-entry__toggle {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.guidance-entry__key {
  font-size: 14px;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  flex: 1;
  min-width: 0;
}

.guidance-entry__description {
  font-size: 13px;
  color: var(--color-text-secondary);
  flex: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guidance-entry__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.guidance-entry__format-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.guidance-entry__format-badge--prompt {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}

.guidance-entry__format-badge--typescript {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.guidance-entry__version-badge {
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-surface-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.guidance-entry__updated {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Expanded content */

.guidance-entry__body {
  border-top: 1px solid var(--color-border);
  padding: 20px;
}

.guidance-entry__context {
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--color-surface-secondary);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.guidance-entry__context-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  white-space: pre-wrap;
}

.guidance-entry__content-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.guidance-entry__content-block {
  background: var(--color-code-bg);
  color: var(--color-code-text);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  padding: 16px;
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.guidance-entry__content-block--code {
  font-size: 12px;
  line-height: 1.5;
  max-height: 600px;
  tab-size: 2;
}

/* Edit section */

.guidance-entry__edit-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.guidance-entry__edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  cursor: pointer;
}

.guidance-entry__edit-btn:hover {
  background: var(--color-surface-hover);
}

.guidance-entry__editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guidance-entry__editor-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.guidance-entry__editor-textarea {
  width: 100%;
  min-height: 200px;
  padding: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  resize: vertical;
}

.guidance-entry__editor-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.guidance-entry__summary-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
}

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

.guidance-entry__editor-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.guidance-entry__save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  background: var(--color-primary);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

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

.guidance-entry__save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.guidance-entry__cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.guidance-entry__cancel-btn:hover {
  background: var(--color-surface-hover);
}

.guidance-entry__save-error {
  font-size: 13px;
  color: var(--color-danger);
}

/* Version history */

.guidance-entry__versions {
  margin-top: 16px;
}

.guidance-entry__versions-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  background: none;
  border: none;
}

.guidance-entry__versions-toggle:hover {
  color: var(--color-text-primary);
}

.guidance-entry__versions-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guidance-entry__version-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
}

.guidance-entry__version-item:hover {
  background: var(--color-surface-hover);
}

.guidance-entry__version-item--active {
  border-color: var(--color-primary);
  background: var(--color-info-muted-bg);
}

.guidance-entry__version-number {
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.guidance-entry__version-delete {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}

.guidance-entry__version-item:hover .guidance-entry__version-delete {
  opacity: 1;
}

.guidance-entry__version-delete:hover {
  color: var(--color-danger, #ef4444);
  background: rgba(239, 68, 68, 0.1);
}

.guidance-entry__version-details {
  flex: 1;
  min-width: 0;
}

.guidance-entry__version-summary {
  color: var(--color-text-primary);
}

.guidance-entry__version-meta {
  display: flex;
  gap: 12px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.guidance-entry__version-expanded {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guidance-entry__version-diff {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guidance-entry__version-diff-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.guidance-entry__version-diff-content {
  background: var(--color-code-bg);
  color: var(--color-code-text);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.5;
  padding: 12px;
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
}

/* Update History */

.guidance-page__updates {
  margin-top: 40px;
}

.guidance-page__updates-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.guidance-page__updates-empty {
  font-size: 13px;
  color: var(--color-text-muted);
}

.guidance-page__updates-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 48px;
}

.guidance-update-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.guidance-update-item--clickable {
  cursor: pointer;
  transition: border-color 0.15s;
}

.guidance-update-item--clickable:hover {
  border-color: var(--color-primary);
}

.guidance-update-item__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.guidance-update-item__user {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.guidance-update-item__status {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: capitalize;
}

.guidance-update-item__status--pending {
  background: var(--color-surface-secondary);
  color: var(--color-text-secondary);
}

.guidance-update-item__status--processing {
  background: var(--color-info-muted-bg);
  color: var(--color-primary);
}

.guidance-update-item__status--completed {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.guidance-update-item__status--failed {
  background: rgba(239, 68, 68, 0.12);
  color: var(--color-danger);
}

.guidance-update-item__source {
  font-size: 12px;
  color: var(--color-text-muted);
}

.guidance-update-item__time {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: auto;
}

.guidance-update-item__message {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.guidance-update-item__changes-count {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.guidance-update-change {
  padding: 10px 12px;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
}

.guidance-update-change__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.guidance-update-change__key {
  font-size: 13px;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--color-text-primary);
}

.guidance-update-change__summary {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.guidance-update-change__diff-toggle {
  font-size: 11px;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0 0;
  text-decoration: underline;
}

.guidance-update-change__diff {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guidance-update-change__old,
.guidance-update-change__new {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guidance-update-change__diff-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.guidance-update-change__diff-content {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.5;
  background: var(--color-code-bg);
  color: var(--color-code-text);
  padding: 10px;
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

.guidance-update-item__source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-primary);
  text-decoration: none;
}

.guidance-update-item__source-link:hover {
  text-decoration: underline;
}

.guidance-update-item__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}


.guidance-update-item__retrigger-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-success, #22c55e);
  text-decoration: none;
}

.guidance-update-item__retrigger-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .guidance-entry__description {
    display: none;
  }

  .guidance-entry__updated {
    display: none;
  }
}
.gu-detail {
  padding: 0;
  max-width: 900px;
}

.gu-detail__loading {
  padding: 48px 0;
  text-align: center;
  color: var(--color-text-secondary);
}

.gu-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;
}

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

.gu-detail__error {
  text-align: center;
  padding: 48px 0;
  color: var(--color-text-secondary);
}

.gu-detail__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gu-detail__icon {
  color: var(--color-primary);
}

.gu-detail__title {
  font-size: 20px;
  font-weight: 600;
}

.gu-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 16px;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.gu-detail__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gu-detail__meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.gu-detail__meta-value {
  font-size: 14px;
  color: var(--color-text-primary);
}

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

.gu-detail__link:hover {
  text-decoration: underline;
}

.gu-detail__section {
  margin-bottom: 24px;
}

.gu-detail__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.gu-detail__message {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  padding: 12px 16px;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

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

.gu-detail__retrigger-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
  padding: 8px 14px;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.gu-detail__retrigger-link:hover {
  text-decoration: underline;
}

.gu-detail__changes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gu-detail__change {
  padding: 12px 14px;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
}

.gu-detail__change-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.gu-detail__change-key {
  font-size: 13px;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--color-primary);
  text-decoration: none;
}

.gu-detail__change-key:hover {
  text-decoration: underline;
}

.gu-detail__change-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-badge-bg, rgba(255,255,255,0.06));
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.gu-detail__change-summary {
  font-size: 12px;
  color: var(--color-text-secondary);
}


.gu-detail__section-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.gu-detail__section-toggle:hover {
  color: var(--color-primary);
}

.gu-detail__logs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
}

.gu-detail__log-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 14px;
  font-size: 13px;
}

.gu-detail__log-entry:hover {
  background: var(--color-surface-hover, rgba(255,255,255,0.03));
}

.gu-detail__log-time {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 70px;
}

.gu-detail__log-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  background: var(--color-badge-bg, rgba(255,255,255,0.06));
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.gu-detail__log-message {
  color: var(--color-text-secondary);
  line-height: 1.4;
  word-break: break-word;
}
.insights {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Header */
.insights__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insights__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
}

.insights__subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  max-width: 640px;
}

/* Loading / error */
.insights__loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 48px 0;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-secondary);
}

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

.insights__spinner {
  animation: insights-spin 1.5s linear infinite;
  color: var(--color-text-muted);
}

.insights__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--color-danger);
  font-size: 14px;
}

.insights__error p {
  color: var(--color-text-secondary);
}

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

.insights__retry:hover {
  border-color: var(--color-text-muted);
}

/* Summary cards */
.insights__summary-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.insights__summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}

.insights__summary-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.insights__summary-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.insights__summary-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
}

.insights__summary-badge--open {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* Chart card */
.insights__chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}

.insights__chart-card--full {
  /* no additional width constraints */
}

.insights__chart-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.insights__chart-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

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

/* Donut layout */
.insights__donut-layout {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.insights__donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.insights__donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.insights__donut-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.insights__donut-legend-label {
  text-transform: capitalize;
  color: var(--color-text-secondary);
  flex: 1;
  min-width: 0;
}

.insights__donut-legend-value {
  font-weight: 600;
  color: var(--color-text-primary);
}

.insights__donut-legend-pct {
  color: var(--color-text-muted);
  width: 32px;
  text-align: right;
}

/* Chart legend row */
.insights__chart-legend-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

.insights__chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: capitalize;
}

.insights__chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Scorecard table */
.insights__scorecard-table {
  margin-top: 8px;
}

.insights__scorecard-header,
.insights__scorecard-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
}

.insights__scorecard-header {
  border-bottom: 1px solid var(--color-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.insights__scorecard-row {
  border-bottom: 1px solid var(--color-surface-secondary);
  font-size: 13px;
  color: var(--color-text-secondary);
}

.insights__scorecard-row:last-child {
  border-bottom: none;
}

.insights__scorecard-col--name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.insights__scorecard-col--num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.insights__scorecard-col--open {
  color: #f87171;
}

.insights__scorecard-col--resolved {
  color: #4ade80;
}

.insights__scorecard-link {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insights__scorecard-link:hover {
  text-decoration: underline;
}

.insights__scorecard-url {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.insights__scorecard-url:hover {
  color: var(--color-primary);
}

.insights__scorecard-rate {
  font-weight: 600;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
}

.insights__scorecard-rate--good {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.insights__scorecard-rate--mid {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
}

.insights__scorecard-rate--low {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* Responsive */
@media (max-width: 900px) {
  .insights__summary-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .insights__charts-pair {
    grid-template-columns: 1fr;
  }

  .insights__scorecard-header,
  .insights__scorecard-row {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .insights__scorecard-col:nth-child(5),
  .insights__scorecard-col:nth-child(6) {
    display: none;
  }
}

@media (max-width: 640px) {
  .insights {
    padding: 24px 16px 48px;
  }

  .insights__summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .insights__donut-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .insights__scorecard-header,
  .insights__scorecard-row {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .insights__scorecard-col:nth-child(4),
  .insights__scorecard-col:nth-child(5),
  .insights__scorecard-col:nth-child(6) {
    display: none;
  }
}
/*! 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-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --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-md: .375rem;
    --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-brand: #f02d5e;
    --color-primary: #171717;
    --color-primary-hover: #0a0a0a;
    --color-primary-light: #f5f5f5;
    --color-primary-dark: #171717;
    --color-primary-pressed: #262626;
    --color-surface: #fff;
    --color-surface-secondary: #fafafa;
    --color-surface-hover: #f5f5f5;
    --color-border: #e5e5e5;
    --color-border-light: #f5f5f5;
    --color-text-primary: #0a0a0a;
    --color-text-secondary: #737373;
    --color-text-muted: #a3a3a3;
    --color-text-disabled: #d4d4d4;
    --color-status-active: #10b981;
    --color-status-active-text: #047857;
    --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-danger: #c93545;
    --color-danger-hover: #a02836;
    --color-danger-bg: #fdf4f3;
  }
}

@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;
  }

  .invisible {
    visibility: hidden;
  }

  .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;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .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;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .rounded {
    border-radius: .25rem;
  }

  .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);
  }
}

:root {
  --color-bug-open: #ef4444;
  --color-bug-open-bg: #fef2f2;
  --color-bug-confirmed: #d97706;
  --color-bug-confirmed-bg: #fffbeb;
  --color-bug-fixed: #10b981;
  --color-bug-fixed-bg: #ecfdf5;
  --color-bug-closed: #6b7280;
  --color-bug-closed-bg: #f3f4f6;
  --color-bug-invalid: #f59e0b;
  --color-bug-invalid-bg: #fffbeb;
  --color-bug-dismissed: #6b7280;
  --color-bug-dismissed-bg: #f3f4f6;
  --color-bug-reopened: #dc2626;
  --color-bug-reopened-bg: #fef2f2;
  --shadow-card: 0 1px 2px #0000000a;
  --shadow-card-hover: 0 4px 12px #0000000f;
  --shadow-float: 0 4px 12px #00000014;
  --shadow-modal: 0 24px 48px #00000024;
  --overlay-scrim: #0a0a0a73;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --gradient-cta: linear-gradient(180deg, #262626 0%, #171717 100%);
  --color-code-bg: #1f2937;
  --color-code-text: #f1f5f9;
  --color-info-muted-bg: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
  --color-info-muted-bg-hover: color-mix(in srgb, var(--color-primary) 18%, var(--color-surface));
  --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);
  --accent-pressed: var(--color-primary-pressed);
  --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: #fafafa;
  --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;
  text-rendering: optimizelegibility;
  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;
}

html, body, #root {
  height: 100%;
}

a {
  color: var(--color-text-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-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@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
}
