:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3f8;
  --sidebar-bg: #071a3d;
  --sidebar-bg-2: #0b2453;
  --sidebar-text: #eef5ff;
  --sidebar-muted: #9db0d0;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-muted: #f1f4f9;
  --bg-elevated: var(--surface);
  --bg-elevated-2: var(--surface);
  --text: #172033;
  --text-muted: #667085;
  --text-subtle: #8a94a6;
  --muted: var(--text-muted);
  --accent: #1737a3;
  --accent-hover: #122c84;
  --accent-soft: #e7edff;
  --accent-border: #c9d7ff;
  --ok: #2f6f5e;
  --warn: #7a5a22;
  --error: #963c34;
  --border: #dde3ee;
  --border-strong: #c8d3e3;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.05);
  --shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 64px rgba(15, 23, 42, 0.14);
}
* { box-sizing: border-box; }
html,
body,
#root {
  min-width: 0;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
  overflow-x: hidden;
}
img,
svg,
canvas,
video {
  max-width: 100%;
}
.app {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100%;
}
.app-projects-view {
  grid-template-columns: 336px minmax(0, 1fr);
}
.app-single-content {
  grid-template-columns: 184px minmax(0, 1fr);
}
.app.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}
.sidebar, .main {
  min-width: 0;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
}
.main {
  padding: 24px 28px 32px;
  overflow-x: hidden;
}
h1, h2, h3 {
  margin: 0 0 12px 0;
  font-weight: 600;
}
h1 { font-size: 1.75rem; letter-spacing: -0.03em; }
h2 { font-size: 1.18rem; margin-top: 12px; letter-spacing: -0.02em; }
h3 { font-size: 1rem; margin-top: 0; letter-spacing: -0.01em; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  overflow-wrap: break-word;
}
.sidebar .card,
.main-body > .card,
.analytics-page > .card,
.analytics-page .analytics-chart-card,
.analytics-page .analytics-table-card {
  margin-bottom: 0;
}
.muted { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
label { display: block; margin: 10px 0 6px; font-size: 0.84rem; font-weight: 600; color: var(--text-muted); }
.checkbox-row,
.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}
.checkbox-row input,
.radio-row input {
  width: auto;
  margin-top: 3px;
  flex: 0 0 auto;
}
.radio-stack {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-muted);
}
input, textarea, select, button {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 0.92rem;
  line-height: 1.4;
}
input, textarea, select {
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
input:focus, textarea:focus, select:focus, button:focus {
  outline: none;
  border-color: #7e9fff;
  box-shadow: 0 0 0 4px rgba(23, 55, 163, 0.12);
}
textarea { min-height: 80px; resize: vertical; }
button {
  background: var(--accent);
  color: white;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
button:hover:enabled {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover:enabled {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
}
.btn-inline {
  width: auto;
  margin-right: 10px;
  padding: 9px 14px;
}
.btn-danger {
  background: var(--error);
  color: #fff;
  border-color: #8f1d16;
}
.btn-danger:hover:enabled {
  background: #8f1d16;
}
.btn-danger-strong {
  background: var(--error);
  color: #fff;
  border-color: #8f1d16;
}
.btn-danger-strong:hover:enabled {
  background: #8f1d16;
}
.btn-rerun {
  background: #fff4e5;
  color: #c2410c;
  border-color: #ffd8b2;
}
.btn-rerun:hover:enabled {
  background: #ffe7c7;
}
.status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.status-filter-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 7px 13px;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 600;
}
.status-filter-btn.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}
.filter-icon-with-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.section-head-row .btn-secondary {
  width: auto;
  padding: 8px 12px;
}
.modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.modal-tab-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 7px 13px;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 600;
}
.modal-tab-btn.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}
.item-row {
  cursor: pointer;
}
.item-row:hover td {
  background: #f7faff;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}
.modal {
  width: min(1600px, calc(100vw - 32px));
  max-width: 100%;
  max-height: 88vh;
  overflow: auto;
  overflow-anchor: none;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.modal-header > div {
  min-width: 0;
}
.modal-header > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.form-grid.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.info-box {
  border: 1px solid var(--border);
  background: #f8fbff;
  border-radius: 8px;
  color: var(--text-muted);
  padding: 10px 12px;
  line-height: 1.45;
}
.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}
.search-row input {
  flex: 1 1 auto;
  background: var(--surface-subtle);
}
.pagination-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
}
.pagination-row button {
  width: auto;
  padding: 6px 10px;
}
.global-nav-rail {
  position: sticky;
  top: 0;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sidebar-brand h1 {
  margin-bottom: 0;
  color: var(--sidebar-text);
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.sidebar-brand-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.sidebar-brand .muted {
  color: var(--sidebar-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.sidebar-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(135deg, #2455ff 0%, #1737a3 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0;
  box-shadow: 0 16px 32px rgba(0, 20, 72, 0.28);
}
.sidebar-kicker::before {
  content: "C";
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.sidebar-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
}
.sidebar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 13px;
  background: transparent;
  color: var(--sidebar-muted);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
.sidebar-nav-btn:hover:enabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text);
  transform: none;
}
.sidebar-nav-btn.active {
  background: #1737a3;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 25, 91, 0.28);
}
.sidebar-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.sidebar-nav-label {
  min-width: 0;
}
.sidebar-nav-disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: currentColor;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.72;
  transition: transform 0.16s ease, opacity 0.16s ease;
}
.sidebar-nav-btn:hover .sidebar-nav-disclosure,
.sidebar-nav-btn.active .sidebar-nav-disclosure {
  opacity: 1;
}
.sidebar-nav-disclosure.is-open {
  transform: rotate(90deg);
}
.sidebar-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sidebar-projects-section {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding-top: 0;
  overflow: hidden;
}
.sidebar-projects-section .status-filters {
  margin-top: 0;
}
.sidebar-projects-section .status-filter-btn {
  padding: 5px 10px;
  font-size: 0.72rem;
}
.sidebar-projects-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  min-width: 0;
}
.sidebar-projects-section .pagination-row,
.sidebar-project-pagination {
  gap: 6px;
  margin-top: 0;
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-end;
}
.sidebar-projects-section .pagination-row .muted,
.sidebar-project-pagination .muted {
  font-size: 0.72rem;
  white-space: nowrap;
}
.sidebar-projects-section .pagination-row button,
.sidebar-project-pagination button {
  padding: 5px 8px;
  font-size: 0.72rem;
}
.sidebar-new-project-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 7px 10px;
  font-size: 0.72rem;
  white-space: nowrap;
}
.sidebar-section-copy {
  display: grid;
  gap: 4px;
}
.sidebar-section-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}
.sidebar-section-copy .muted {
  font-size: 0.85rem;
}
.sidebar-section-action {
  flex: 0 0 auto;
}
.sidebar-footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.sidebar-collapse-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text);
  border-radius: 999px;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
}
.sidebar-collapse-btn:hover:enabled {
  background: rgba(255, 255, 255, 0.14);
  transform: none;
}
.main-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
}
.sidebar-collapsed .sidebar {
  align-items: center;
  gap: 18px;
  padding: 22px 12px;
}
.sidebar-collapsed .sidebar-brand {
  justify-items: center;
}
.sidebar-collapsed .sidebar-brand-copy,
.sidebar-collapsed .sidebar-nav-label,
.sidebar-collapsed .sidebar-nav-disclosure,
.sidebar-collapsed .sidebar-projects-section {
  display: none;
}
.sidebar-collapsed .sidebar-nav,
.sidebar-collapsed .sidebar-footer {
  width: 100%;
}
.sidebar-collapsed .sidebar-nav-btn,
.sidebar-collapsed .sidebar-collapse-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  margin-inline: auto;
}
.sidebar-collapsed .sidebar-kicker {
  width: 46px;
  height: 46px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}
.topbar-context {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(820px, 100%);
}
.topbar-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.topbar-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-width: 680px;
}
.topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.topbar-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: -webkit-box;
  max-width: 680px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}
.topbar-user {
  position: relative;
  display: block;
  min-width: 180px;
  max-width: 340px;
}
.topbar-user-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: none;
}
.topbar-user-button:hover:enabled {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
  transform: none;
}
.topbar-user-email {
  display: block;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-user-caret {
  flex: 0 0 auto;
  font-size: 0.76rem;
  opacity: 0.75;
}
.topbar-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.topbar-account-menu-email {
  padding: 8px 10px 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-account-menu-item {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.86rem;
}
.topbar-account-menu-item:hover:enabled {
  background: var(--accent-soft);
  color: var(--accent);
  transform: none;
}
.main-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}
.login-shell {
  max-width: 560px;
  margin: 40px auto;
}
.login-provider-row + .login-provider-row {
  margin-top: 2px;
}
.login-provider-hint {
  margin: 6px 2px 0;
  font-size: 0.82rem;
}
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.ml-8 { margin-left: 8px; }
.inline-link-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  background: none;
  color: var(--accent);
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  text-decoration: none;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
}
.inline-link-btn:hover:enabled {
  background: none;
  transform: none;
  color: var(--accent-hover);
}
.inline-link-btn.link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  line-height: 1.2;
  min-height: 24px;
}
.inline-link-btn.link-chip:hover,
.inline-link-btn.link-chip:hover:enabled {
  background: #dbe5ff;
  border-color: #abc0ff;
  color: var(--accent-hover);
}
.inline-link-btn.link-chip:focus-visible {
  outline: 2px solid rgba(23, 55, 163, 0.35);
  outline-offset: 1px;
}
.inline-link-btn.link-chip.is-disabled {
  color: var(--text-muted);
  border-color: var(--border);
  background: var(--surface-muted);
  cursor: not-allowed;
  pointer-events: auto;
}
.requirement-linkage-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 113, 227, 0.22);
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  vertical-align: middle;
}
.table-filter-head {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.table-filter-trigger {
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.2;
  box-shadow: none;
}
.table-filter-trigger:hover {
  transform: none;
  border-color: var(--accent-border);
  background: rgba(23, 55, 163, 0.05);
  color: var(--accent);
}
.table-filter-trigger.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}
.table-filter-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  z-index: 24;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.table-filter-option {
  width: 100%;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 0.78rem;
}
.table-filter-option:hover {
  transform: none;
  background: rgba(23, 55, 163, 0.08);
  color: var(--accent);
}
.table-filter-option.is-selected {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.project-list button {
  text-align: left;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  margin-bottom: 0;
  padding: 10px 11px;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  min-width: 0;
}
.project-list button:hover:enabled {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
  transform: none;
}
.project-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
  grid-auto-rows: max-content;
}
.project-list > button {
  align-self: start;
}
.project-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.project-card-title-row strong {
  font-size: 0.82rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
  min-width: 0;
  overflow-wrap: anywhere;
}
.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  align-items: baseline;
  margin-top: 7px;
}
.project-card-meta-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.project-card-meta-value {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.project-star-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(245, 181, 0, 0.4);
  border-radius: 999px;
  background: #fff6cc;
  color: #d39a00;
  width: 22px;
  height: 22px;
  padding: 0;
  line-height: 1;
}
.project-card-activity {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #edf1f6;
}
.project-card-activity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.project-list-limited {
  flex: 0 0 auto;
  height: clamp(320px, 46vh, 560px);
  min-height: 0;
  align-content: start;
  grid-auto-rows: max-content;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}
.project-list-loading-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(157, 176, 208, 0.22);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  color: var(--sidebar-text);
}
.project-list-loading-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}
.project-list-loading-head strong,
.project-list-loading-head div > span {
  display: block;
}
.project-list-loading-head strong {
  font-size: 0.82rem;
  line-height: 1.2;
}
.project-list-loading-head div > span {
  color: var(--sidebar-muted);
  font-size: 0.72rem;
  line-height: 1.3;
  margin-top: 2px;
}
.project-list-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(238, 245, 255, 0.2);
  border-top-color: #eef5ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.project-list-loading-cards {
  display: grid;
  gap: 8px;
}
.project-list-loading-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(157, 176, 208, 0.16);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
}
.project-list-loading-line {
  display: block;
  width: 86%;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(157, 176, 208, 0.2) 20%, rgba(238, 245, 255, 0.4) 50%, rgba(157, 176, 208, 0.2) 80%);
  background-size: 200% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
}
.project-list-loading-line.is-title {
  width: 66%;
  height: 12px;
}
.project-list-loading-line.is-short {
  width: 48%;
}
.project-list .status {
  min-height: 20px;
  padding: 3px 8px;
  font-size: 0.66rem;
}
.sidebar-actions {
  margin-top: 14px;
}
.modal-wide {
  width: min(1720px, calc(100vw - 32px));
}
.modal-body {
  padding: 0;
  max-height: 65vh;
  overflow: auto;
  min-width: 0;
  max-width: 100%;
}
.modal-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  min-width: 0;
  max-width: 100%;
  overflow-x: visible;
}
.create-project-modal {
  width: min(1180px, calc(100vw - 32px));
  padding-bottom: 0;
}
.create-project-form {
  display: grid;
  gap: 16px;
}
.create-project-stepbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.create-project-step {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 10px;
  background: var(--surface-muted);
}
.create-project-step.active {
  color: #1737a3;
  border-color: #b9c8ff;
  background: #eef3ff;
}
.create-project-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  min-width: 0;
}
.create-project-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.create-project-section-head h4 {
  margin: 0;
}
.create-project-section-head p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.create-project-grid {
  display: grid;
  gap: 12px 16px;
}
.create-project-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.create-project-hint,
.create-project-review-note,
.create-project-rationale {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 10px 12px;
}
.create-project-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.create-project-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 9px;
}
.create-project-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.create-project-summary-grid > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
}
.create-project-summary-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.create-project-summary-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.create-project-warning-list {
  border: 1px solid #e5c765;
  border-radius: 8px;
  background: #fff8df;
  color: #5c4714;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 12px;
  padding: 10px 12px;
}
.create-project-warning-list strong {
  display: block;
  margin-bottom: 4px;
}
.create-project-warning-list ul {
  margin: 0;
  padding-left: 18px;
}
.create-project-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 0 18px;
}
.create-project-footer button {
  width: auto;
}
.admin-settings-table th,
.admin-settings-table td {
  padding: 8px 10px;
}
.admin-settings-table input,
.admin-settings-table select {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.85rem;
}
.admin-settings-table input[type="checkbox"] {
  width: auto;
  transform: scale(1.2);
}
.admin-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
}
.settings-page-card {
  padding: 24px;
}
.settings-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.settings-page-header h2 {
  margin: 0 0 4px;
}
.admin-settings-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.admin-settings-tabs {
  margin-top: 0;
}
.admin-settings-section {
  min-width: 0;
}
.card-subtle {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}
.admin-settings-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.admin-settings-section-head h3 {
  margin-bottom: 4px;
}
.project-list button.active {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  box-shadow: inset 0 0 0 1px rgba(23, 55, 163, 0.06), 0 8px 18px rgba(23, 55, 163, 0.08);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.metric .value { font-size: 1.2rem; font-weight: 700; }
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.78rem;
  line-height: 1.2;
  min-height: 22px;
  vertical-align: middle;
}
.status {
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.status.COMPLETED, .status.DEPLOYED { background: #eef6f2; color: var(--ok); border-color: #cfe1d9; }
.status.PARTIAL { background: #edf2ff; color: #314f9e; border-color: #d7e1ff; }
.status.FAILED { background: #f8eeee; color: var(--error); border-color: #e9d0cc; }
.status.STOPPED { background: #f7f2e8; color: var(--warn); border-color: #e8dcc6; }
.status.PENDING { background: #f4f6f9; color: var(--text-muted); border-color: #e1e6ef; }
.status.SKIPPED { background: #f6f7f9; color: var(--text-muted); border-color: #e4e8ef; }
.status.STARTED, .status.TESTING, .status.PLANNED, .status.IN_PROGRESS { background: #f7f2e8; color: var(--warn); border-color: #e8dcc6; }
table {
  display: table;
  width: 100%;
  min-width: max-content;
  max-width: none;
  border-collapse: collapse;
  font-size: 0.88rem;
  white-space: nowrap;
}
th, td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
thead th {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.data-table-scroll,
.table-scroll,
.item-tests-table-scroll,
.analytics-table-scroll,
.requirements-table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}
.data-table-scroll > table,
.table-scroll > table,
.item-tests-table-scroll > table,
.analytics-table-scroll > table,
.requirements-table-scroll > table {
  margin: 0;
}
.card > table,
.modal-section > table,
.run-detail-panel > table,
.run-progress-detail > table,
.project-details-body > table,
.analytics-table-card > table,
.admin-settings-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.preview-table {
  table-layout: fixed;
  min-width: 1080px;
}
.preview-table-scroll {
  max-width: 100%;
}
.preview-table th:nth-child(2),
.preview-table td:nth-child(2) {
  width: 84px;
  white-space: nowrap;
}
.preview-table td:nth-child(2) .status {
  padding: 2px 7px;
  font-size: 0.74rem;
}
.preview-table th:last-child,
.preview-table td:last-child {
  width: 148px;
  white-space: nowrap;
}
.preview-container-cell {
  width: 23%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-work-item-cell {
  width: 30%;
}
.preview-work-item-link {
  max-width: 100%;
  display: inline-block;
  text-align: left;
  text-decoration: underline;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.25;
}
.preview-url-cell {
  width: 37%;
}
.preview-url-link {
  color: var(--accent);
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.preview-url-link.is-disabled {
  color: var(--text-muted);
  text-decoration: none;
  cursor: not-allowed;
}
.preview-actions-cell {
  width: 148px;
}
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.preview-actions .btn-inline {
  margin-right: 0;
}
.preview-section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.preview-section-actions .btn-inline {
  margin-right: 0;
}
.preview-attempt-panel {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  min-width: 0;
}
.preview-attempt-reason {
  font-size: 0.9em;
  color: var(--error);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.preview-attempt-meta {
  font-size: 0.8em;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.preview-attempt-error-box {
  font-size: 0.78em;
  color: var(--error);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  inline-size: min(100%, 120ch);
  max-inline-size: 100%;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
}
.selected-item-modal-content {
  min-width: 0;
  max-width: 100%;
}
.item-tests-section {
  overflow-x: visible;
}
.requirement-description-block {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px 16px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.requirement-description-sections {
  display: grid;
  gap: 12px;
}
.requirement-description-section {
  display: grid;
  gap: 4px;
}
.requirement-description-section-label {
  font-weight: 700;
  line-height: 1.35;
}
.requirement-description-section-body,
.requirement-description-fallback {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
}
.requirement-preview-card {
  overflow-x: auto;
}
.requirements-subview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.dependency-blockers-panel {
  display: grid;
  gap: 12px;
  margin: 12px 0 14px;
}
.generation-feedback-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.generation-feedback-header-copy {
  display: grid;
  gap: 6px;
}
.generation-feedback-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.generation-feedback-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.generation-feedback-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.2;
  padding: 6px 10px;
}
.generation-feedback-pill-btn {
  appearance: none;
  font: inherit;
  cursor: pointer;
}
.generation-feedback-pill-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.generation-feedback-pill-help {
  cursor: help;
}
.rfp-import-source-title {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}
.rfp-import-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 180px;
}
.rfp-import-detail-modal .modal-body {
  max-height: 70vh;
}
.rfp-import-detail-modal > .rfp-diagnostic-card {
  margin-top: 14px;
}
.rfp-tab-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 10px;
}
.rfp-import-detail-empty {
  color: var(--text-muted);
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--surface-subtle);
}
.rfp-audit-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.rfp-audit-header,
.rfp-audit-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) minmax(150px, 0.75fr) minmax(170px, 0.85fr) minmax(280px, 1.6fr) minmax(90px, 0.45fr);
  gap: 18px;
  align-items: start;
}
.rfp-audit-header {
  padding: 12px 18px;
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.rfp-audit-row {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
}
.rfp-audit-cell {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.35;
}
.rfp-audit-primary {
  font-weight: 700;
  color: var(--text);
}
.rfp-audit-source {
  color: var(--text-muted);
}
.rfp-audit-field-label {
  display: none;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.rfp-audit-excerpt {
  display: grid;
  gap: 8px;
}
.rfp-audit-text-stack {
  display: grid;
  gap: 6px;
}
.rfp-audit-text-line {
  min-width: 0;
  overflow-wrap: anywhere;
}
.rfp-audit-text-line strong {
  color: var(--text);
}
.rfp-audit-details summary,
.rfp-raw-diagnostics summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}
.rfp-audit-full-text {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 8px;
  max-height: 240px;
  overflow: auto;
  overflow-wrap: anywhere;
  padding: 10px;
  white-space: pre-wrap;
}
.rfp-import-diagnostics {
  display: grid;
  gap: 18px;
}
.rfp-diagnostic-section {
  display: grid;
  gap: 10px;
}
.rfp-diagnostic-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rfp-diagnostic-chip {
  align-items: center;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  font-size: 0.84rem;
  gap: 4px;
  line-height: 1.2;
  min-height: 30px;
  padding: 5px 10px;
}
.rfp-diagnostic-chip strong {
  color: var(--text);
}
.rfp-diagnostic-card,
.rfp-assumption-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  overflow-wrap: anywhere;
  padding: 12px;
}
.rfp-assumption-grid {
  display: grid;
  gap: 10px;
}
.rfp-assumption-source {
  color: var(--text-muted);
  font-size: 0.82rem;
}
.rfp-raw-diagnostics {
  display: grid;
  gap: 10px;
}
.rfp-import-json {
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface-subtle);
}
@media (max-width: 1100px) {
  .rfp-audit-header {
    display: none;
  }
  .rfp-audit-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rfp-audit-field-label {
    display: block;
  }
}
.generation-feedback-section {
  display: grid;
  gap: 8px;
}
.generation-feedback-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.generation-feedback-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.generation-feedback-info {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: help;
}
.generation-feedback-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.generation-feedback-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 6px 10px;
  cursor: pointer;
}
.generation-feedback-chip.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}
.generation-feedback-drawer {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-subtle);
}
.generation-feedback-metric-help {
  cursor: help;
}
.generation-feedback-drawer-title {
  font-weight: 700;
  line-height: 1.3;
}
.generation-feedback-examples {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.generation-feedback-example {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: var(--surface-subtle);
}
.generation-feedback-example-title {
  font-weight: 700;
  line-height: 1.3;
}
.dependency-blocker-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.dependency-blocker-card-conflict {
  border-color: #f1b6b2;
  background: #fff9f8;
}
.dependency-blocker-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.dependency-blocker-title {
  font-weight: 700;
  line-height: 1.3;
}
.dependency-blocker-section {
  margin-top: 10px;
}
.dependency-blocker-requirement-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.dependency-blocker-requirement-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dependency-blocker-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.dependency-blocker-guidance {
  margin-top: 10px;
  color: var(--text-muted);
}
.dependency-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  gap: 10px;
  margin: 12px 0;
}
.dependency-summary-grid > div {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface);
}
.dependency-summary-grid strong {
  display: block;
  font-size: 1.2rem;
}
.dependency-summary-grid span {
  color: var(--muted);
  font-size: 0.85rem;
}
.generation-feedback-metric-subtext {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
}
.dependency-next-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
  background: var(--surface-subtle);
}
.requirement-dependency-graph-panel {
  margin-top: 12px;
}
.dependency-flow-shell {
  height: min(680px, 70vh);
  min-height: 460px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.dependency-flow-node {
  width: 280px;
  min-height: 84px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 10px 12px;
  font-size: 0.88rem;
  transition: opacity 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.dependency-flow-node .status {
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  flex: 0 0 auto;
}
.dependency-flow-requirement.dependency-flow-status-completed,
.dependency-flow-requirement.dependency-flow-status-started,
.dependency-flow-capability-satisfied_by_requirement,
.dependency-flow-capability-satisfied_by_workspace {
  border-color: #a7d7b6;
  background: #f4fbf6;
}
.dependency-flow-requirement.dependency-flow-status-failed,
.dependency-flow-capability-missing,
.dependency-flow-capability-conflict {
  border-color: #f1a7a7;
  background: #fff7f7;
}
.dependency-flow-capability-pending {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.dependency-flow-node.dependency-flow-node-selected {
  border-color: #1d4ed8;
  background: #eff6ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16), var(--shadow-sm);
}
.dependency-flow-node.dependency-flow-node-upstream {
  border-color: #7c3aed;
  background: #f5f3ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12), var(--shadow-sm);
}
.dependency-flow-node.dependency-flow-node-downstream {
  border-color: #0f766e;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12), var(--shadow-sm);
}
.dependency-flow-node.dependency-flow-node-dimmed {
  opacity: 0.18;
}
.dependency-flow-requirement {
  cursor: pointer;
}
.dependency-flow-node-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.dependency-flow-title {
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dependency-flow-next {
  display: inline-block;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(24, 128, 92, 0.12);
  color: var(--ok);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}
.dependency-flow-node-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}
.dependency-flow-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.dependency-flow-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dependency-edge-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.dependency-edge-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.dependency-edge-legend-item span {
  width: 22px;
  height: 3px;
  border-radius: 999px;
}
.dependency-edge-count-warning {
  color: var(--warn);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}
.dependency-focus-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface-subtle);
}
.dependency-focus-panel strong {
  display: block;
  color: var(--text);
  line-height: 1.25;
}
.dependency-focus-eyebrow {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dependency-focus-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.dependency-edge-detail-panel {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface-subtle);
}
.dependency-edge-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  margin-top: 10px;
}
.dependency-edge-detail-grid > div {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface);
}
.dependency-edge-detail-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dependency-edge-detail-grid span {
  overflow-wrap: anywhere;
}
.dependency-flow-shell .react-flow {
  --xy-edge-stroke-width-default: 2;
}
.dependency-flow-shell .react-flow__background {
  z-index: 0;
}
.dependency-flow-shell .react-flow__renderer {
  z-index: 2;
}
.dependency-flow-shell .react-flow__edges {
  z-index: 2;
  overflow: visible;
}
.dependency-flow-shell .react-flow__edges svg {
  max-width: none;
  max-height: none;
  overflow: visible;
}
.dependency-flow-shell .react-flow__nodes {
  z-index: 3;
}
.dependency-flow-shell .react-flow__controls,
.dependency-flow-shell .react-flow__minimap {
  z-index: 4;
}
.dependency-flow-shell .dependency-flow-edge {
  opacity: 1;
  transition: opacity 0.16s ease;
}
.dependency-flow-shell .dependency-flow-edge.react-flow__edge-path,
.dependency-flow-shell .dependency-flow-edge .react-flow__edge-path {
  fill: none;
  stroke-opacity: 1;
  vector-effect: non-scaling-stroke;
}
.dependency-flow-shell .dependency-flow-edge-focused {
  opacity: 1;
}
.dependency-flow-shell .dependency-flow-edge-focused .react-flow__edge-path {
  filter: drop-shadow(0 0 4px rgba(15, 23, 42, 0.22));
}
.dependency-flow-shell .dependency-flow-edge-upstream .react-flow__edge-path {
  stroke-opacity: 1;
}
.dependency-flow-shell .dependency-flow-edge-downstream .react-flow__edge-path {
  stroke-opacity: 1;
}
.dependency-flow-shell .dependency-flow-edge-dimmed {
  opacity: 0.16;
}
.dependency-flow-shell .dependency-flow-edge .react-flow__edge-interaction {
  stroke-width: 28;
}
.dependency-flow-edge-requires.react-flow__edge-path,
.dependency-flow-edge-requires .react-flow__edge-path {
  stroke-dasharray: 4 4;
}
.dependency-flow-edge-blocks.react-flow__edge-path,
.dependency-flow-edge-blocks .react-flow__edge-path {
  stroke-dasharray: 6 4;
}
.run-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.run-detail-actions .btn-inline {
  margin-right: 0;
}
.run-history-table {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  table-layout: auto;
}
.run-history-table td[colspan] {
  white-space: normal;
}
.run-history-table .run-detail-panels,
.run-history-table .run-detail-panel,
.run-history-table .run-progress-panel,
.run-history-table .run-progress-detail {
  white-space: normal;
}
.run-detail-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}
.run-detail-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
  min-height: 160px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
.run-progress-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 240px;
  min-width: 0;
  max-width: 100%;
}
.run-progress-breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  max-width: 100%;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.run-progress-step-btn {
  flex: 0 0 clamp(180px, 18vw, 260px);
  width: auto;
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  scroll-snap-align: start;
}
.run-progress-step-btn:hover:enabled {
  background: var(--surface-subtle);
  transform: translateY(-1px);
}
.run-progress-step-btn.is-selected {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(23, 55, 163, 0.08);
  background: #f7f9ff;
}
.run-progress-step-label {
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6em;
  overflow-wrap: anywhere;
}
.run-progress-step-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.run-progress-step-meta-left {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.run-progress-step-duration {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}
.run-progress-detail {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
  min-height: 180px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
.run-progress-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}
.run-progress-detail-head-main {
  min-width: 0;
}
.run-progress-detail-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.run-progress-timing-card {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-subtle);
  margin-top: 10px;
}
.run-progress-timing-card.is-attempt {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.run-progress-timing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}
.run-progress-timing-row + .run-progress-timing-row {
  margin-top: 6px;
}
.run-progress-timing-row-primary {
  justify-content: space-between;
}
.run-progress-timing-row-duration {
  justify-content: flex-end;
}
.run-progress-timing-entry {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.run-progress-timing-entry-left {
  justify-content: flex-start;
  text-align: left;
}
.run-progress-timing-entry-right {
  justify-content: flex-end;
  margin-left: auto;
  text-align: right;
}
.run-progress-timing-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.run-progress-timing-value {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text);
}
.run-progress-attempt-list {
  display: grid;
  gap: 10px;
}
.run-progress-attempt-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface-subtle);
}
.run-progress-attempt-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.run-progress-attempt-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.run-progress-attempt-reason {
  margin-top: 8px;
  color: var(--text-muted);
}
.run-progress-compact-details {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.validation-component-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.validation-component-chip-row .status.COMPLETED {
  background: #f7faf8;
  color: #4f6f64;
  border-color: #dbe7e1;
}
.validation-attempt-failure-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.validation-attempt-message-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.validation-attempt-message-list .validation-attempt-failure-list,
.validation-attempt-message-list .validation-attempt-warning-list {
  margin-top: 0;
}
.validation-attempt-failure {
  display: grid;
  grid-template-columns: minmax(140px, 28ch) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 11px;
  border: 1px solid #ead8d5;
  border-left: 3px solid #b86a61;
  border-radius: 10px;
  background: #fbf7f6;
  color: var(--text);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.validation-attempt-failure-code {
  color: var(--error);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.validation-attempt-failure-message {
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
}
.validation-attempt-warning-list {
  display: grid;
  gap: 8px;
}
.validation-attempt-warning-heading {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.validation-attempt-warning {
  display: grid;
  grid-template-columns: minmax(140px, 28ch) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 11px;
  border: 1px solid #eadfbd;
  border-left: 3px solid #c69b2f;
  border-radius: 10px;
  background: #fffaf0;
  color: var(--text);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.validation-attempt-warning-code {
  color: #8a6400;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.validation-attempt-warning-message {
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
}
.progress-code-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.progress-code-block {
  margin: 0;
  padding: 8px 10px;
  max-width: 100%;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.validation-component-detail {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 10px;
}
.run-log-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.run-log-selector {
  width: auto;
  min-width: 160px;
  padding: 6px 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.78rem;
  line-height: 1.2;
  min-height: 22px;
  margin-right: 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.error {
  border: 1px solid #f3c4c0;
  color: var(--error);
  background: #fff5f4;
  border-radius: 14px; padding: 12px 14px; margin: 8px 0;
}
.error-text {
  color: var(--error);
}
.manual-intake-list {
  display: grid;
  gap: 10px;
}
.manual-intake-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.manual-intake-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.manual-intake-item.has-conflict {
  border-color: #f1b6b2;
  background: #fff9f8;
}
.manual-intake-item-title {
  font-weight: 600;
}
.project-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.project-title-block {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 12px;
}
.project-title-editable-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.project-title-editable-row h2 {
  margin-top: 0;
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.9rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.project-title-edit-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.project-title-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  margin-right: 0;
  flex: 0 0 auto;
}
.project-title-icon-btn svg {
  flex: 0 0 auto;
}
.project-title-icon-btn.is-active {
  color: #d59a00;
  border-color: rgba(245, 181, 0, 0.38);
  background: #fff6cc;
}
.project-title-icon-btn.is-active:hover:enabled {
  background: #ffeeb0;
}
.project-settings-btn {
  min-width: 40px;
}
.project-title-input {
  flex: 1 1 320px;
  min-width: 220px;
}
.project-title-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-title-edit-actions .btn-inline {
  margin-right: 0;
}
.project-title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 0;
}
.project-title-actions .btn-inline {
  margin-right: 0;
}
.project-access-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.project-details-panel {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.project-details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-subtle);
  color: var(--text);
}
.project-details-toggle:hover:enabled {
  background: #edf2fb;
  transform: none;
}
.project-details-toggle-hint {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
}
.project-details-body {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
.project-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.project-details-mono-break {
  word-break: break-all;
}
.rfp-details-stack {
  display: grid;
  gap: 10px;
}
.rfp-details-stack .generation-feedback-pill-list {
  margin-top: 6px;
}
.project-delete-btn {
  flex: 0 0 auto;
  margin-right: 0;
  min-width: 132px;
}
.action-button-groups {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.82fr) minmax(420px, 1.28fr);
  gap: 14px;
  align-items: stretch;
}
.action-group-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
  min-width: 0;
  height: 100%;
}
.action-group-card-auto {
  border-color: rgba(24, 128, 92, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf8 100%);
}
.action-group-card-auto .action-group-buttons {
  align-items: stretch;
  flex-direction: column;
}
.action-group-card-auto .action-group-buttons .btn-inline {
  justify-content: center;
  width: 100%;
}
.action-group-title {
  margin: 0 0 8px 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}
.action-group-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.action-group-buttons .btn-inline {
  margin-right: 0;
}
.action-button-with-icon {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}
.action-button-with-icon .action-button-icon-svg {
  display: block;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}
.action-button-with-icon > span {
  min-width: 0;
}
.project-snapshot-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.project-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.project-snapshot-grid > div {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px;
  background: var(--surface);
  min-width: 0;
}
.project-snapshot-metric {
  align-items: center;
  display: flex;
  gap: 10px;
}
.project-snapshot-copy {
  display: block;
  min-width: 0;
}
.project-snapshot-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 0.95rem;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}
.project-snapshot-icon svg {
  display: block;
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}
.project-snapshot-icon-requirements {
  background: #edf2ff;
  color: #2344b8;
}
.project-snapshot-icon-built {
  background: #e7f6ef;
  color: #1d7f5d;
}
.project-snapshot-icon-tests {
  background: #f1eaff;
  color: #6d35c9;
}
.project-snapshot-icon-reviews {
  background: #fff4df;
  color: #b66a00;
  font-size: 0.74rem;
}
.project-snapshot-copy .muted {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-subtle);
  white-space: nowrap;
}
.project-snapshot-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1.28rem;
}
.auto-build-status-strip {
  margin-top: 12px;
  border: 1px solid rgba(14, 116, 144, 0.22);
  border-radius: 12px;
  padding: 12px;
  background: #f0fdfa;
  color: var(--text);
}
.active-operation-banner {
  border-width: 1px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.auto-build-status-strip-modal {
  margin-top: 10px;
  margin-bottom: 10px;
}
.manual-run-status-strip {
  background: #eff6ff;
  border-color: rgba(29, 78, 216, 0.22);
}
.manual-run-status-strip .auto-build-status-dot {
  background: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}
.rfp-import-status-strip {
  background: #f8fafc;
  border-color: rgba(23, 55, 163, 0.24);
}
.rfp-import-status-strip .auto-build-status-dot {
  background: #1737a3;
  box-shadow: 0 0 0 4px rgba(23, 55, 163, 0.12);
}
.auto-build-status-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}
.auto-build-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
  flex: 0 0 auto;
}
.auto-build-status-message {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.auto-build-status-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.project-settings-modal .modal-body {
  max-height: min(74vh, 760px);
}
.project-settings-modal-tabs {
  margin-top: 0;
  padding: 0 0 10px 0;
  border-bottom: 1px solid var(--border);
}
.project-settings-tab-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.project-settings-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.project-settings-section h4 {
  margin: 0 0 4px 0;
}
.settings-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.settings-field-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-subtle);
  min-width: 0;
}
.settings-field-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}
.settings-field-hint {
  font-size: 0.79rem;
  line-height: 1.3;
}
.settings-field-input {
  margin-top: 4px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.84rem;
  color: var(--text);
  background: var(--surface);
}
.settings-field-input:focus {
  outline: none;
  border-color: #7e9fff;
  box-shadow: 0 0 0 4px rgba(23, 55, 163, 0.12);
}
.settings-field-input:disabled {
  background: var(--surface-muted);
  color: var(--text-subtle);
}
.project-role-choice-panel {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
.project-role-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 10px;
}
.project-role-choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.project-role-choice-card:hover {
  border-color: rgba(23, 55, 163, 0.28);
  box-shadow: 0 8px 20px rgba(32, 43, 70, 0.08);
}
.project-role-choice-card.is-selected {
  border-color: rgba(23, 55, 163, 0.44);
  background: #f4f7ff;
  box-shadow: 0 0 0 3px rgba(23, 55, 163, 0.1);
}
.project-role-choice-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.project-role-choice-input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}
.project-role-choice-input:focus-visible {
  outline: 2px solid rgba(23, 55, 163, 0.36);
  outline-offset: 2px;
}
.project-role-choice-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.project-role-choice-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.project-role-choice-description {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}
.project-role-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-role-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
}
.project-role-reference-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-subtle);
}
.project-role-reference-heading h4 {
  margin: 0 0 4px 0;
}
.project-role-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 10px;
}
.project-role-reference-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(205, 214, 229, 0.9);
  border-radius: 8px;
  padding: 11px;
  background: var(--surface);
}
.project-role-reference-title {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}
.project-role-reference-description,
.project-role-reference-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.project-role-reference-note {
  color: #52627a;
}
.settings-field-static-value {
  margin-top: 4px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-muted);
}
.settings-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}
.settings-chip-warning {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fffbeb;
  color: #92400e;
}
.settings-chip-error {
  border-color: rgba(185, 28, 28, 0.26);
  background: #fef2f2;
  color: #991b1b;
}
.settings-chip-checks.is-on {
  border-color: rgba(29, 138, 102, 0.28);
  background: rgba(46, 183, 130, 0.12);
  color: #0e7f5b;
}
.settings-chip-checks.is-off {
  border-color: rgba(120, 125, 140, 0.3);
  background: rgba(123, 129, 147, 0.12);
  color: #5f6678;
}
.model-pickers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px;
}
.model-picker-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-subtle);
  min-width: 0;
}
.model-picker-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.model-picker-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #18365f;
}
.model-picker-default {
  font-size: 0.72rem;
  color: #60718d;
}
.model-picker-input,
.model-picker-select {
  font-size: 0.83rem;
  padding: 7px 9px;
}
.model-picker-select {
  margin-top: 7px;
}
.settings-saving {
  display: inline-flex;
  margin-top: 10px;
  font-size: 0.8rem;
}
.toggle-stack {
  display: grid;
  gap: 8px;
}
.toggle-option-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-subtle);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.toggle-option-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #148a63;
}
.toggle-option-card.is-on {
  border-color: rgba(24, 128, 92, 0.28);
  background: linear-gradient(180deg, #f8fcfa 0%, #eef8f3 100%);
  box-shadow: 0 10px 18px rgba(24, 128, 92, 0.08);
}
.toggle-option-card.is-off {
  border-color: rgba(112, 134, 173, 0.28);
}
.toggle-option-card.is-disabled {
  opacity: 0.68;
}
.toggle-option-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toggle-option-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.toggle-option-note {
  font-size: 0.8rem;
  line-height: 1.3;
}
.settings-status-line {
  margin-top: 8px;
  padding-left: 2px;
  font-size: 0.8rem;
}
.settings-auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 10px;
  align-items: stretch;
}
.settings-auto-grid > .toggle-option-card,
.settings-auto-grid > .settings-field-card {
  height: 100%;
}
.settings-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}
.settings-panel-actions > button {
  white-space: nowrap;
}
.settings-draft-note {
  margin-top: 8px;
  padding-left: 2px;
  font-size: 0.78rem;
}
.operation-inline-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(23, 55, 163, 0.18);
  border-radius: 12px;
  background: #f8fafc;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  margin-bottom: 12px;
}
.operation-inline-note strong {
  color: var(--text);
  flex: 0 0 auto;
}
.rfp-import-inline-note {
  border-color: rgba(23, 55, 163, 0.22);
  background: #f4f7ff;
}
.last-updated-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(23, 55, 163, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.project-detail-loading-card {
  min-height: 220px;
}
.project-loading-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.project-loading-head .spinner {
  width: 18px;
  height: 18px;
  margin-top: 6px;
}
.project-loading-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.project-loading-skeleton-grid .skeleton-line {
  height: 36px;
  margin-bottom: 0;
  width: 100%;
}
.project-detail-loading-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 10px;
  border: 1px solid rgba(23, 55, 163, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  background: #eff6ff;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}
.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, #e7ebf2 20%, #f4f6fa 50%, #e7ebf2 80%);
  background-size: 200% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
}
.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  width: 100%;
}
.card .skeleton-line:nth-child(1) { width: 38%; }
.card .skeleton-line:nth-child(2) { width: 62%; }
.card .skeleton-line:nth-child(3) { width: 55%; }
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  line-height: 1.2;
  min-height: 24px;
  color: var(--text-muted);
  max-width: 100%;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
@media (max-width: 1280px) {
  .app-projects-view {
    grid-template-columns: 312px minmax(0, 1fr);
  }
  .action-button-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-snapshot-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .app,
  .app-projects-view,
  .app-single-content {
    grid-template-columns: 1fr;
  }
  .global-nav-rail {
    position: static;
    min-height: 0;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 18px;
  }
  .sidebar-brand {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .sidebar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-nav-btn {
    width: auto;
  }
  .sidebar-projects-section {
    overflow: visible;
  }
  .main {
    padding: 20px 18px 26px;
  }
  .grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .admin-two-col { grid-template-columns: 1fr; }
  .settings-auto-grid { grid-template-columns: 1fr; }
  .topbar,
  .topbar-actions,
  .topbar-context {
    flex-direction: column;
    align-items: stretch;
  }
  .topbar-user {
    text-align: left;
  }
  .run-progress-breadcrumb {
    display: flex;
    grid-template-columns: none;
  }
  .run-progress-step-btn {
    flex-basis: min(260px, 84vw);
  }
  .run-progress-step-label { min-height: 0; }
  .run-progress-detail-head,
  .run-progress-attempt-head {
    flex-direction: column;
    align-items: stretch;
  }
  .run-progress-detail-head-side {
    align-items: stretch;
  }
  .run-progress-timing-card {
    min-width: 0;
  }
  .run-progress-timing-row-primary,
  .run-progress-timing-entry {
    flex-direction: column;
    align-items: flex-start;
  }
  .run-progress-timing-entry-right {
    margin-left: 0;
    text-align: left;
  }
  .run-progress-timing-row-duration {
    justify-content: flex-start;
  }
  .validation-attempt-failure {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .run-log-controls {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .run-log-selector {
    width: 100%;
  }
  .project-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .project-title-editable-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .project-delete-btn {
    width: 100%;
  }
  .action-button-groups { grid-template-columns: 1fr; }
  .model-pickers-grid { grid-template-columns: 1fr; }
  .admin-settings-section-head { flex-direction: column; }
}

.app-nav-card {
  padding: 16px;
}

.analytics-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.analytics-hero-card {
  padding: 22px;
}

.analytics-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.analytics-filter-grid {
  display: grid;
  grid-template-columns:
    minmax(260px, 0.8fr)
    minmax(460px, 1.9fr)
    minmax(220px, 0.75fr)
    minmax(220px, 0.75fr);
  gap: 16px;
  margin-top: 18px;
}

.analytics-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.analytics-filter-group input,
.analytics-filter-group select {
  max-width: 100%;
  min-width: 0;
}

.analytics-filter-pills {
  margin-top: 0;
}

.analytics-date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.analytics-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
}

.analytics-checkbox input {
  width: auto;
}

.analytics-filter-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.analytics-selection-summary {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.analytics-project-picker {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  min-height: 156px;
  overflow-y: auto;
  padding: 8px;
}

.analytics-project-picker-row {
  align-items: flex-start;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  line-height: 1.25;
  margin: 0;
  padding: 8px;
}

.analytics-project-picker-row:hover {
  background: var(--surface);
  border-color: var(--border);
}

.analytics-project-picker-row.is-selected {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.analytics-project-picker-row input {
  margin-top: 2px;
  width: auto;
}

.analytics-project-picker-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.analytics-project-star {
  color: var(--star-fill);
  margin-right: 4px;
}

.analytics-project-picker-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.analytics-project-picker-empty {
  color: var(--muted);
  padding: 8px;
}

.analytics-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.analytics-metric-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analytics-metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  min-height: 118px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.analytics-metric-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.analytics-metric-label {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ui-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.ui-tooltip-bubble {
  position: fixed;
  left: 0;
  top: 0;
  transform: translateY(4px);
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 80ms ease, transform 80ms ease, visibility 80ms linear;
  z-index: 30;
  white-space: normal;
}

.ui-tooltip.is-visible .ui-tooltip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ui-tooltip-bubble::after {
  content: "";
  position: absolute;
  left: var(--tooltip-arrow-left, 50%);
  top: 100%;
  width: 10px;
  height: 10px;
  background: rgba(15, 23, 42, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.ui-tooltip.is-below .ui-tooltip-bubble {
  transform: translateY(-4px);
}

.ui-tooltip.is-visible.is-below .ui-tooltip-bubble {
  transform: translateY(0);
}

.ui-tooltip.is-below .ui-tooltip-bubble::after {
  top: auto;
  bottom: 100%;
  transform: translateX(-50%) rotate(45deg);
}

.analytics-metric-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  padding: 0;
}

.analytics-metric-value {
  margin-top: 8px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.analytics-metric-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.analytics-metric-delta.is-positive {
  color: var(--ok);
}

.analytics-metric-delta.is-negative {
  color: var(--error);
}

.analytics-chart-grid {
  display: grid;
  gap: 18px;
}

.analytics-chart-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-chart-card,
.analytics-table-card {
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
}

.analytics-chart-shell {
  margin-top: 14px;
  min-height: 260px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.analytics-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.analytics-table-scroll {
  margin-top: 10px;
}

.analytics-table-card-wide {
  grid-column: 1 / -1;
}

@media (max-width: 1680px) {
  .analytics-filter-grid {
    grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.55fr);
  }
}

@media (max-width: 1280px) {
  .analytics-metric-grid,
  .analytics-chart-grid-two,
  .analytics-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .create-project-grid.two,
  .create-project-summary-grid {
    grid-template-columns: 1fr;
  }
  .create-project-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .create-project-footer button {
    width: 100%;
  }

  .analytics-hero-row {
    flex-direction: column;
  }

  .rfp-import-card-actions {
    align-items: flex-start;
    width: 100%;
  }

  .analytics-filter-grid,
  .analytics-metric-grid,
  .analytics-chart-grid-two,
  .analytics-table-grid,
  .analytics-date-range {
    grid-template-columns: 1fr;
  }
}
