/*
 * Ember dashboard surfaces, generation 3.
 *
 * A compact visual pass for the user-facing dashboard views that sit outside
 * the management UI. This is deliberately isolated from the historical style
 * layers in styles.css so the app can migrate screen by screen.
 */

.welcome-view,
.workspaces-view,
.repos-view,
.activity-view,
.cicd-view,
.usage-view {
  --dv3-canvas: #f4f6f9;
  --dv3-surface: #ffffff;
  --dv3-subtle: #f8fafc;
  --dv3-ink: #18202f;
  --dv3-text: #394457;
  --dv3-muted: #687386;
  --dv3-faint: #8a94a6;
  --dv3-line: #dfe4eb;
  --dv3-line-strong: #cbd3df;
  --dv3-accent: #2563eb;
  --dv3-accent-strong: #1d4ed8;
  --dv3-accent-soft: #eef3fe;
  --dv3-success: #16865c;
  --dv3-danger: #bd2d24;
  min-width: 0;
  color: var(--dv3-text);
  color-scheme: light;
}

.projects-scroll:has(.welcome-view),
.projects-scroll:has(.workspaces-view),
.projects-scroll:has(.repos-view),
.projects-scroll:has(.activity-view),
.projects-scroll:has(.cicd-view),
.projects-scroll:has(.usage-view) {
  background: var(--dv3-canvas, #f4f6f9);
}

.projects-wrap.welcome-view,
.projects-wrap.workspaces-view,
.projects-wrap:has(> .repos-view),
.projects-wrap:has(> .activity-view),
.projects-wrap:has(> .cicd-view),
.projects-wrap:has(> .usage-view) {
  width: min(1360px, 100%);
  gap: 18px;
  padding: 32px clamp(16px, 2.4vw, 32px) 64px;
}

:is(.welcome-view, .workspaces-view, .repos-view, .activity-view, .cicd-view, .usage-view) .projects-head {
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 2px;
}

:is(.welcome-view, .workspaces-view, .repos-view, .activity-view, .cicd-view, .usage-view) .projects-head h1 {
  margin: 3px 0 0;
  color: var(--dv3-ink);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -.035em;
}

:is(.welcome-view, .workspaces-view, .repos-view, .activity-view, .cicd-view, .usage-view) .projects-head p {
  max-width: 66ch;
  margin-top: 8px;
  color: var(--dv3-muted);
  font-size: 14px;
  line-height: 1.5;
}

:is(.welcome-view, .workspaces-view, .repos-view, .activity-view, .cicd-view, .usage-view) :is(.btn, .btn-primary) {
  min-height: 38px;
  border-color: var(--dv3-line-strong);
  border-radius: 9px;
  padding: 8px 13px;
  box-shadow: none;
  font-size: 13px;
}

:is(.welcome-view, .workspaces-view, .repos-view, .activity-view, .cicd-view, .usage-view) :is(.btn-primary, .btn.btn-primary) {
  border-color: var(--dv3-accent);
  background: var(--dv3-accent);
}

:is(.welcome-view, .workspaces-view, .repos-view, .activity-view, .cicd-view, .usage-view) :is(.btn-primary, .btn.btn-primary):hover {
  border-color: var(--dv3-accent-strong);
  background: var(--dv3-accent-strong);
}

:is(.workspaces-view, .repos-view, .cicd-view) .proj-toolbar {
  min-height: 54px;
  border-color: var(--dv3-line);
  border-radius: 12px;
  padding: 8px 10px 8px 15px;
  background: var(--dv3-surface);
  box-shadow: none;
}

:is(.workspaces-view, .repos-view, .cicd-view) .proj-toolbar h3 {
  color: var(--dv3-ink);
  font-size: 14px;
  font-weight: 700;
}

:is(.workspaces-view, .repos-view) .search-inline {
  border-color: var(--dv3-line);
  border-radius: 8px;
  background: var(--dv3-subtle);
}

/* Workspaces: replace the oversized dark billboard with a compact resume strip. */
.workspaces-view .featured {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  border: 1px solid #b9c8e7;
  border-left: 4px solid var(--dv3-accent);
  border-radius: 14px;
  padding: 20px 22px;
  color: var(--dv3-text);
  background: var(--dv3-surface);
  box-shadow: none;
}

.workspaces-view .featured .f-eyebrow {
  color: var(--dv3-accent-strong);
  font-size: 10.5px;
  letter-spacing: .09em;
}

.workspaces-view .featured h2 {
  margin: 6px 0 5px;
  color: var(--dv3-ink);
  font-size: 22px;
  letter-spacing: -.02em;
}

.workspaces-view .featured .f-meta,
.workspaces-view .featured .f-commit,
.workspaces-view .featured .f-commit .f-cwhen {
  color: var(--dv3-muted);
}

.workspaces-view .featured .label { color: var(--dv3-faint); }
.workspaces-view .featured .ok,
.workspaces-view .featured .f-sync .ok-i { color: var(--dv3-success); }

.workspaces-view .featured code,
.workspaces-view .featured .f-commit code {
  border-color: var(--dv3-line);
  color: var(--dv3-text);
  background: var(--dv3-subtle);
}

.workspaces-view .featured .f-remote-link {
  color: var(--dv3-text);
}

.workspaces-view .featured .f-remote-link:hover { background: var(--dv3-accent-soft); }

.workspaces-view .featured .btn-ghost-dark {
  min-height: 38px;
  border-color: var(--dv3-line-strong);
  border-radius: 9px;
  color: var(--dv3-ink);
  background: var(--dv3-surface);
}

.workspaces-view .featured .btn-ghost-dark:hover { background: var(--dv3-subtle); }
.workspaces-view .featured .btn-resume { min-height: 38px; border-radius: 9px; box-shadow: none; }

.workspaces-view .statline {
  min-height: 46px;
  gap: 14px;
  border-block: 1px solid var(--dv3-line);
  padding: 10px 2px;
}

.workspaces-view .proj-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.workspaces-view :is(.proj-card, .pl-row, .proj-new-card) {
  border-color: var(--dv3-line);
  border-radius: 12px;
  box-shadow: none;
}

.workspaces-view .proj-card {
  grid-template-columns: auto minmax(180px, 1.1fr) auto minmax(150px, .55fr) minmax(250px, .9fr);
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 13px 15px;
}

.workspaces-view .proj-card .pc-top { justify-content: flex-start; gap: 9px; }
.workspaces-view .proj-card .pc-icon { width: 38px; height: 38px; border-radius: 9px; }
.workspaces-view .proj-card .pc-langs { justify-content: flex-start; gap: 5px; }
.workspaces-view .proj-card .pc-git { min-width: 0; margin: 0; padding: 0; border: 0; }
.workspaces-view .proj-card .pc-foot { min-width: 0; justify-content: flex-start; gap: 9px; margin: 0; padding: 0; border: 0; }
.workspaces-view .proj-card .pc-commit { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspaces-view .proj-card .pc-commit-msg { overflow: hidden; text-overflow: ellipsis; }
.workspaces-view .proj-card .pc-when { margin-left: auto; }

.workspaces-view :is(.proj-card, .pl-row) { transition: border-color 120ms ease, background 120ms ease; }
.workspaces-view :is(.proj-card, .pl-row):hover { border-color: #b9c8e7; background: #fbfcff; }
.workspaces-view :is(.proj-card.selected, .pl-row.selected) { border-color: #9fb5e4; box-shadow: inset 3px 0 0 var(--dv3-accent); }
.workspaces-view .proj-new-card {
  min-height: 0;
  grid-template-columns: minmax(230px, .8fr) minmax(260px, 1.2fr) auto;
  align-items: end;
  align-content: normal;
  justify-items: stretch;
  gap: 16px;
  border-style: solid;
  border-color: #b9c8e7;
  padding: 15px;
  background: var(--dv3-surface);
  box-shadow: inset 3px 0 0 var(--dv3-accent);
}

.workspaces-view .proj-new-card .np-copy { display: flex; align-items: center; gap: 11px; align-self: center; }
.workspaces-view .proj-new-card .np-copy > span:last-child { display: grid; gap: 3px; }
.workspaces-view .proj-new-card .np-copy strong { color: var(--dv3-ink); font-size: 14px; }
.workspaces-view .proj-new-card .np-copy small { color: var(--dv3-muted); font-size: 12px; font-weight: 400; }
.workspaces-view .proj-new-card .np-ico { flex: 0 0 auto; }
.workspaces-view .proj-new-card .np-field { gap: 5px; }
.workspaces-view .proj-new-card .np-field > span { color: var(--dv3-muted); font-size: 11px; font-weight: 700; }
.workspaces-view .proj-new-card .np-field input { min-height: 38px; border-color: var(--dv3-line-strong); border-radius: 8px; }
.workspaces-view .proj-new-card .np-actions { display: flex; align-items: center; gap: 8px; }

.workspaces-view .runtime-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--dv3-line);
  border-radius: 12px;
  background: var(--dv3-surface);
}

.workspaces-view .runtime-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.workspaces-view .runtime-card + .runtime-card { border-left: 1px solid var(--dv3-line); }

/* Welcome: the operational home screen. Dense enough to be useful, quiet
   enough to scan before opening a workspace. */
.welcome-view { display: grid; gap: 16px; }

.welcome-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 1fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  min-height: 204px;
  border: 1px solid #cfdaed;
  border-radius: 18px;
  padding: 27px 30px;
  background:
    radial-gradient(circle at 92% 6%, rgba(37, 99, 235, .12), transparent 31%),
    linear-gradient(135deg, #fff 0%, #f8faff 58%, #f1f5ff 100%);
}

.welcome-hero::after {
  content: "";
  position: absolute;
  top: -74px;
  right: 22%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(37, 99, 235, .11);
  border-radius: 50%;
  pointer-events: none;
}

.welcome-hero-copy { position: relative; z-index: 1; min-width: 0; }
.welcome-eyebrow,
.welcome-card-kicker {
  display: block;
  color: var(--dv3-accent-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.welcome-hero h1 {
  margin: 9px 0 0;
  color: var(--dv3-ink);
  font-size: clamp(31px, 4vw, 46px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.welcome-hero h1 span { color: var(--dv3-accent-strong); }
.welcome-hero p { max-width: 620px; margin: 10px 0 0; color: var(--dv3-muted); font-size: 13px; line-height: 1.5; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.welcome-actions .btn { display: inline-flex; align-items: center; gap: 8px; }

.welcome-pulse {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(203, 211, 223, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 12px 32px rgba(44, 65, 104, .08);
  backdrop-filter: blur(8px);
}
.welcome-pulse > div { min-width: 0; padding: 15px 13px; border-left: 1px solid var(--dv3-line); }
.welcome-pulse > div:first-child { border-left: 0; }
.welcome-pulse span { display: block; color: var(--dv3-faint); font-size: 9.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.welcome-pulse strong { display: block; overflow: hidden; margin-top: 7px; color: var(--dv3-ink); font-family: var(--mra-font-num); font-size: 20px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.welcome-pulse small { display: block; overflow: hidden; margin-top: 4px; color: var(--dv3-muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }

.welcome-statusbar {
  min-width: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--dv3-line);
  border-radius: 13px;
  background: var(--dv3-surface);
}
.welcome-status-title {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  border-right: 1px solid var(--dv3-line);
  padding: 8px 10px;
}
.welcome-status-title .welcome-summary { padding: 5px 8px; font-size: 10px; }
.welcome-status-title > button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--dv3-faint);
  background: transparent;
  cursor: pointer;
}
.welcome-status-title > button:hover { color: var(--dv3-accent-strong); background: var(--dv3-accent-soft); }
.welcome-status-icons {
  min-width: 0;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.welcome-status-icons::-webkit-scrollbar { display: none; }
.welcome-status-item {
  min-width: 94px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-right: 1px solid var(--dv3-line);
  padding: 7px 10px;
  color: var(--dv3-muted);
}
.welcome-status-item > span { position: relative; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--dv3-subtle); }
.welcome-status-item > span > i { position: absolute; right: -1px; bottom: -1px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--dv3-faint); }
.welcome-status-item.ok > span { color: var(--dv3-accent-strong); background: var(--dv3-accent-soft); }
.welcome-status-item.ok > span > i { background: var(--dv3-success); }
.welcome-status-item.down > span { color: var(--dv3-danger); background: #fff0ef; }
.welcome-status-item.down > span > i { background: var(--dv3-danger); }
.welcome-status-item small { max-width: 94px; overflow: hidden; color: var(--dv3-muted); font-size: 8.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.welcome-status-inline {
  min-width: 0;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 2px;
}
.welcome-status-copy { display: inline-flex; align-items: center; gap: 6px; margin-right: 2px; color: var(--dv3-muted); font-size: 10px; font-weight: 700; }
.welcome-status-copy > i { width: 6px; height: 6px; border-radius: 50%; background: var(--dv3-faint); }
.welcome-status-copy.ok { color: #14724f; }
.welcome-status-copy.ok > i { background: var(--dv3-success); }
.welcome-status-copy.warn { color: #98600b; }
.welcome-status-copy.warn > i { background: #c17b0b; }
.welcome-status-inline .welcome-status-icons { min-width: 0; display: flex; align-items: center; gap: 3px; overflow: visible; }
.welcome-status-icon {
  position: relative;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--dv3-muted);
  background: transparent;
}
.welcome-status-icon:hover { color: var(--dv3-accent-strong); background: var(--dv3-accent-soft); }
.welcome-status-icon::after {
  content: attr(data-label);
  position: absolute;
  right: 50%;
  bottom: calc(100% + 7px);
  z-index: 10;
  width: max-content;
  max-width: 150px;
  transform: translate(50%, 3px);
  border-radius: 6px;
  padding: 4px 7px;
  opacity: 0;
  color: #fff;
  background: #202838;
  box-shadow: 0 5px 14px rgba(24, 32, 47, .16);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 100ms ease, transform 100ms ease;
}
.welcome-status-icon:hover::after,
.welcome-status-icon:focus-visible::after { opacity: 1; transform: translate(50%, 0); }
.welcome-status-icon > i { position: absolute; right: 3px; bottom: 3px; width: 5px; height: 5px; border: 1.5px solid var(--dv3-canvas); border-radius: 50%; background: var(--dv3-faint); }
.welcome-status-icon.ok > i { background: var(--dv3-success); }
.welcome-status-icon.down { color: var(--dv3-danger); }
.welcome-status-icon.down > i { background: var(--dv3-danger); }
.welcome-status-inline > button { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; color: var(--dv3-faint); background: transparent; cursor: pointer; }
.welcome-status-inline > button:hover { color: var(--dv3-accent-strong); background: var(--dv3-accent-soft); }

.welcome-quickbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--dv3-line);
  border-radius: 14px;
  background: var(--dv3-surface);
}
.welcome-quickbar > button {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-left: 1px solid var(--dv3-line);
  padding: 11px 13px;
  color: var(--dv3-muted);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.welcome-quickbar > button:first-child { border-left: 0; }
.welcome-quickbar > button:hover { color: var(--dv3-accent-strong); background: #f8faff; }
.welcome-quickbar > button > span { min-width: 0; display: grid; gap: 2px; }
.welcome-quickbar strong,
.welcome-quickbar small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome-quickbar strong { color: var(--dv3-ink); font-size: 11.5px; }
.welcome-quickbar small { color: var(--dv3-faint); font-size: 9.5px; }
.welcome-quickbar > button > svg:last-child { color: var(--dv3-faint); }

.welcome-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.welcome-card { min-width: 0; overflow: hidden; border: 1px solid var(--dv3-line); border-radius: 15px; background: var(--dv3-surface); }
.welcome-models { grid-column: span 7; }
.welcome-services { grid-column: span 5; }
.welcome-patches { grid-column: span 8; }
.welcome-work { grid-column: span 4; }
.welcome-card-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--dv3-line); }
.welcome-card-head h2 { margin: 4px 0 0; color: var(--dv3-ink); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.welcome-summary { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 9px; color: var(--dv3-muted); background: var(--dv3-subtle); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.welcome-summary i { width: 7px; height: 7px; border-radius: 50%; background: var(--dv3-faint); }
.welcome-summary.ok { color: #14724f; background: #ecf8f3; }
.welcome-summary.ok i { background: var(--dv3-success); box-shadow: 0 0 0 3px rgba(22, 134, 92, .12); }
.welcome-summary.warn { color: #98600b; background: #fff7e8; }
.welcome-summary.warn i { background: #c17b0b; }
.welcome-link { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 6px; color: var(--dv3-accent-strong); background: transparent; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.welcome-link:hover { text-decoration: underline; }

.welcome-model-list,
.welcome-service-list,
.welcome-work-list { display: grid; }
.welcome-model-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--dv3-line);
}
.welcome-model-row:last-child { border-bottom: 0; }
.welcome-model-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--dv3-muted); background: var(--dv3-subtle); }
.welcome-model-mark.ok { color: var(--dv3-accent-strong); background: var(--dv3-accent-soft); }
.welcome-model-mark.down { color: var(--dv3-danger); background: #fff0ef; }
.welcome-model-copy { min-width: 0; display: grid; gap: 3px; }
.welcome-model-copy strong { overflow: hidden; color: var(--dv3-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.welcome-model-copy small { overflow: hidden; color: var(--dv3-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.welcome-maint { border: 1px solid var(--dv3-line); border-radius: 999px; padding: 5px 8px; color: var(--dv3-muted); background: var(--dv3-subtle); font-size: 10px; font-weight: 700; white-space: nowrap; }
.welcome-maint.clear { border-color: #cbe9dc; color: #14724f; background: #f2faf6; }
.welcome-maint.active { border-color: #efd5a7; color: #98600b; background: #fff8ec; }

.welcome-service-row { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 16px; border-bottom: 1px solid var(--dv3-line); }
.welcome-service-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--dv3-muted); background: var(--dv3-subtle); }
.welcome-service-row > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.welcome-service-row strong { color: var(--dv3-ink); font-size: 12.5px; }
.welcome-service-row small { overflow: hidden; color: var(--dv3-muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.welcome-service-row b { color: var(--dv3-muted); font-size: 10.5px; font-weight: 700; }
.welcome-service-row b.ok { color: var(--dv3-success); }
.welcome-service-row b.down { color: var(--dv3-danger); }
.welcome-service-note { margin: 0; padding: 9px 16px; color: var(--dv3-faint); background: var(--dv3-subtle); font-size: 10px; line-height: 1.35; }

.welcome-release { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; padding: 6px 9px; color: var(--dv3-accent-strong); background: var(--dv3-accent-soft); font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.welcome-release:hover { background: #dfe9fd; }
.welcome-patch-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.welcome-patch-list article { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; padding: 13px 15px; border-bottom: 1px solid var(--dv3-line); }
.welcome-patch-list article { border-right: 1px solid var(--dv3-line); border-bottom: 0; }
.welcome-patch-list article:last-child { border-right: 0; }
.welcome-patch-list article > span { color: var(--dv3-faint); font-family: var(--mra-font-num); font-size: 10px; font-weight: 700; }
.welcome-patch-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.welcome-patch-title b { border-radius: 5px; padding: 3px 5px; color: var(--dv3-accent-strong); background: var(--dv3-accent-soft); font-size: 8.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.welcome-patch-list strong { color: var(--dv3-ink); font-size: 11.5px; }
.welcome-patch-list p { margin: 5px 0 0; color: var(--dv3-muted); font-size: 10.5px; line-height: 1.4; }
.welcome-patch-list ul { display: grid; gap: 3px; margin: 8px 0 0; padding: 0; list-style: none; }
.welcome-patch-list li { position: relative; padding-left: 11px; color: var(--dv3-text); font-size: 10px; line-height: 1.35; }
.welcome-patch-list li::before { content: ""; position: absolute; top: .48em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #83a3e8; }
.welcome-release-footer { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-top: 1px solid var(--dv3-line); padding: 9px 15px; color: var(--dv3-accent-strong); background: #f8faff; font: inherit; font-size: 10.5px; font-weight: 750; cursor: pointer; }
.welcome-release-footer:hover { background: #f0f5ff; }
.welcome-release-footer > span { display: inline-flex; align-items: center; gap: 6px; }

/* Full release readout: history on the left, one complete release on the right. */
.release-drawer { width: min(980px, calc(100vw - 48px)); }
.release-drawer-head { min-height: 78px; }
.release-drawer-body { min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; background: #f4f6f9; }
.release-history { min-height: 0; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; border-right: 1px solid var(--dv3-line); padding: 14px 10px; background: #fff; }
.release-history-label { padding: 2px 9px 8px; color: var(--dv3-faint); font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mg2-drawer .release-search { width: 100%; min-width: 0; min-height: 30px; display: flex; align-items: center; gap: 6px; margin: 0 0 7px; border: 1px solid #e4e8ef; border-radius: 7px; padding: 0 7px; color: var(--dv3-faint); background: #f7f8fa; transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease; }
.mg2-drawer .release-search:hover { border-color: #d6dce6; background: #f3f5f8; }
.mg2-drawer .release-search:focus-within { border-color: #9fb5e4; background: #fff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .08); }
.mg2-drawer .release-search > svg { flex: 0 0 auto; color: #7c8799; }
.mg2-drawer .release-search input[type="search"] { width: 100%; min-width: 0; min-height: 0; height: 28px; border: 0; border-radius: 0; padding: 0; outline: 0; color: var(--dv3-ink); background: transparent; box-shadow: none; font: inherit; font-size: 10.5px; line-height: 1; }
.mg2-drawer .release-search input[type="search"]:focus { border: 0; box-shadow: none; }
.mg2-drawer .release-search input::placeholder { color: #8b95a5; }
.mg2-drawer .release-search kbd { min-width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #dfe3e9; border-radius: 4px; color: #8a94a5; background: #fff; font: inherit; font-size: 8.5px; line-height: 1; }
.mg2-drawer .release-search .release-search-clear { width: 19px; min-width: 19px; height: 19px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 4px; padding: 0; color: var(--dv3-faint); background: transparent; }
.mg2-drawer .release-search .release-search-clear:hover { color: var(--dv3-ink); background: #e9edf4; }
.release-no-results { display: grid; gap: 7px; justify-items: center; padding: 24px 8px; color: var(--dv3-faint); font-size: 10.5px; line-height: 1.4; text-align: center; }
.release-history button { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid transparent; border-radius: 9px; padding: 9px; color: var(--dv3-text); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.release-history button:hover { background: var(--dv3-subtle); }
.release-history button.active { border-color: #cbd9f4; color: var(--dv3-accent-strong); background: var(--dv3-accent-soft); }
.release-history button > span { min-width: 0; display: grid; gap: 3px; }
.release-history button strong { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.release-history button small { color: var(--dv3-faint); font-size: 9.5px; }
.release-history button b { border-radius: 999px; padding: 3px 5px; color: var(--dv3-muted); background: #eef1f5; font-size: 8px; font-weight: 750; }
.release-history button.active b { color: var(--dv3-accent-strong); background: #fff; }
.release-readout { min-height: 0; overflow-y: auto; padding: 22px; }
.release-readout-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border: 1px solid var(--dv3-line); border-radius: 13px 13px 0 0; padding: 21px; background: #fff; }
.release-version { color: var(--dv3-accent-strong); font-family: var(--mra-font-num); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.release-readout-head h3 { margin: 7px 0 0; color: var(--dv3-ink); font-size: 24px; letter-spacing: -.03em; }
.release-readout-head p { max-width: 62ch; margin: 9px 0 0; color: var(--dv3-muted); font-size: 12px; line-height: 1.5; }
.release-status { flex: 0 0 auto; border-radius: 999px; padding: 5px 8px; font-size: 9.5px; font-weight: 800; }
.release-status.preview { color: #98600b; background: #fff5df; }
.release-status.released { color: #14724f; background: #eaf8f2; }
.release-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; border: 1px solid var(--dv3-line); border-top: 0; padding: 10px 21px; color: var(--dv3-faint); background: #fbfcfe; font-size: 9.5px; }
.release-meta span { display: inline-flex; align-items: center; gap: 5px; }
.release-groups { display: grid; gap: 10px; margin-top: 12px; }
.release-groups section { border: 1px solid var(--dv3-line); border-radius: 11px; padding: 15px 17px; background: #fff; }
.release-group-head { display: flex; align-items: center; gap: 8px; }
.release-group-head > span { border-radius: 5px; padding: 3px 6px; color: var(--dv3-accent-strong); background: var(--dv3-accent-soft); font-size: 8.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.release-group-head h4 { margin: 0; color: var(--dv3-ink); font-size: 13px; }
.release-groups section > p { margin: 7px 0 0; color: var(--dv3-muted); font-size: 11px; line-height: 1.45; }
.release-groups ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; margin: 12px 0 0; padding: 0; list-style: none; }
.release-groups li { display: flex; align-items: flex-start; gap: 7px; color: var(--dv3-text); font-size: 10.5px; line-height: 1.35; }
.release-groups li svg { flex: 0 0 auto; margin-top: 1px; color: var(--dv3-success); }
.release-readout-empty { min-height: 100%; display: grid; align-content: center; justify-items: center; gap: 9px; color: var(--dv3-faint); text-align: center; }
.release-readout-empty strong { color: var(--dv3-ink); font-size: 13px; }
.release-readout-empty button { border: 1px solid var(--dv3-line); border-radius: 8px; padding: 7px 10px; color: var(--dv3-accent-strong); background: #fff; font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer; }

.welcome-work-list > button { width: 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 0; border-bottom: 1px solid var(--dv3-line); padding: 12px 18px; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.welcome-work-list > button:hover { background: #fbfcff; }
.welcome-work-list > button > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.welcome-work-list strong { overflow: hidden; color: var(--dv3-ink); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.welcome-work-list small { color: var(--dv3-muted); font-size: 10.5px; text-transform: capitalize; }
.welcome-work-list svg { color: var(--dv3-faint); }
.welcome-work-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(145deg, #366fe4, #1946a8); font-size: 10px; font-weight: 800; }
.welcome-empty { padding: 32px 18px; color: var(--dv3-muted); font-size: 12px; text-align: center; }
.welcome-account-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--dv3-line); }
.welcome-account-facts > div { min-width: 0; padding: 11px 15px; border-left: 1px solid var(--dv3-line); }
.welcome-account-facts > div:first-child { border-left: 0; }
.welcome-account-facts span { display: block; color: var(--dv3-faint); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.welcome-account-facts strong { display: block; margin-top: 4px; color: var(--dv3-ink); font-family: var(--mra-font-num); font-size: 18px; }
.welcome-account-facts small { display: block; overflow: hidden; margin-top: 2px; color: var(--dv3-muted); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.welcome-recent { padding: 12px 18px; background: var(--dv3-subtle); }
.welcome-recent > span { color: var(--dv3-faint); font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.welcome-recent p { margin: 7px 0 0; overflow: hidden; color: var(--dv3-muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.welcome-recent p strong { color: var(--dv3-text); }
.welcome-recent p small { margin-left: 4px; color: var(--dv3-faint); }

@media (max-width: 1060px) {
  .welcome-hero { grid-template-columns: 1fr; gap: 26px; }
  .welcome-quickbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-quickbar > button { border-top: 1px solid var(--dv3-line); }
  .welcome-quickbar > button:nth-child(-n + 2) { border-top: 0; }
  .welcome-quickbar > button:nth-child(odd) { border-left: 0; }
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-models,
  .welcome-services,
  .welcome-patches,
  .welcome-work { grid-column: auto; }
}

@media (max-width: 640px) {
  .welcome-hero { min-height: 0; border-radius: 14px; padding: 24px 19px; }
  .welcome-hero h1 { font-size: 32px; }
  .welcome-actions { display: grid; }
  .welcome-actions .btn { width: 100%; justify-content: center; }
  .welcome-pulse { grid-template-columns: 1fr; }
  .welcome-pulse > div { padding: 13px 15px; border-top: 1px solid var(--dv3-line); border-left: 0; }
  .welcome-pulse > div:first-child { border-top: 0; }
  .welcome-card-head { align-items: flex-start; min-height: 0; padding: 14px; }
  .welcome-summary { max-width: 48%; white-space: normal; text-align: right; }
  .welcome-model-row { grid-template-columns: auto minmax(0, 1fr); padding: 13px 14px; }
  .welcome-maint { grid-column: 2; justify-self: start; }
  .welcome-service-row { padding-inline: 14px; }
  .welcome-service-row b { grid-column: 2 / -1; }
  .welcome-patch-list article,
  .welcome-work-list > button { padding-inline: 14px; }
  .welcome-patch-list { grid-template-columns: 1fr; }
  .welcome-patch-list article,
  .welcome-patch-list article:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--dv3-line); }
  .welcome-patch-list article:last-child { border-bottom: 0; }
  .welcome-statusbar { align-items: stretch; }
  .welcome-status-title { border-right: 1px solid var(--dv3-line); padding-inline: 7px; }
  .welcome-status-title .welcome-summary { width: 9px; height: 9px; overflow: hidden; padding: 0; border-radius: 50%; color: transparent; }
  .welcome-status-title .welcome-summary i { width: 9px; height: 9px; flex: 0 0 auto; }
  .welcome-status-item { min-width: 78px; padding-inline: 7px; }
  .welcome-status-inline { justify-content: flex-start; overflow-x: auto; }
  .welcome-status-copy { margin-right: auto; white-space: nowrap; }
  .welcome-quickbar { grid-template-columns: 1fr; }
  .welcome-quickbar > button,
  .welcome-quickbar > button:nth-child(-n + 2) { border-top: 1px solid var(--dv3-line); border-left: 0; }
  .welcome-quickbar > button:first-child { border-top: 0; }
  .release-drawer { width: 100vw; }
  .release-drawer-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .release-history { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--dv3-line); padding: 8px; }
  .release-history-label { display: none; }
  .mg2-drawer .release-search { min-width: 160px; width: 160px; margin: 0; }
  .release-history button { min-width: 145px; }
  .release-readout { padding: 12px; }
  .release-readout-head { padding: 16px; }
  .release-readout-head h3 { font-size: 21px; }
  .release-readout-head p { font-size: 11px; }
  .release-meta { padding-inline: 16px; }
  .release-groups ul { grid-template-columns: 1fr; }
}

/* Workspaces generation 3: one library, no duplicated featured/project card. */
.workspaces-view .ws3-library {
  overflow: hidden;
  border: 1px solid var(--dv3-line);
  border-radius: 14px;
  background: var(--dv3-surface);
}

.workspaces-view .ws3-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 19px 20px;
  border-bottom: 1px solid var(--dv3-line);
}

.workspaces-view .ws3-kicker {
  margin-bottom: 5px;
  color: var(--dv3-accent-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.workspaces-view .ws3-titleline { display: flex; align-items: center; gap: 9px; }
.workspaces-view .ws3-titleline h2 { margin: 0; color: var(--dv3-ink); font-size: 18px; letter-spacing: -.02em; }
.workspaces-view .ws3-titleline > span { min-width: 22px; border-radius: 999px; padding: 2px 7px; color: var(--dv3-muted); background: #eef1f5; font-size: 11px; font-weight: 700; text-align: center; }
.workspaces-view .ws3-library-head p { margin: 5px 0 0; color: var(--dv3-muted); font-size: 12.5px; }
.workspaces-view .ws3-library-actions { display: flex; align-items: center; gap: 9px; }

.workspaces-view .ws3-search {
  width: min(270px, 32vw);
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--dv3-line);
  border-radius: 9px;
  padding: 0 11px;
  color: var(--dv3-faint);
  background: var(--dv3-subtle);
}

.workspaces-view .ws3-search input { width: 100%; min-width: 0; min-height: 36px; border: 0; padding: 0; background: transparent; box-shadow: none; }
.workspaces-view .ws3-list { display: grid; }

.workspaces-view .ws3-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) 132px 120px minmax(220px, .95fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--dv3-line);
  transition: background 120ms ease;
}

.workspaces-view .ws3-row:last-child { border-bottom: 0; }
.workspaces-view .ws3-row:hover { background: #fbfcff; }
.workspaces-view .ws3-row.selected::before { content: ""; position: absolute; inset: 12px auto 12px 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--dv3-accent); }

.workspaces-view .ws3-identity,
.workspaces-view .ws3-repo {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.workspaces-view .ws3-avatar { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 12px; font-weight: 800; }
.workspaces-view :is(.ws3-identity, .ws3-state, .ws3-repo, .ws3-commit) > span:last-child { min-width: 0; display: grid; gap: 3px; }
.workspaces-view :is(.ws3-identity, .ws3-state, .ws3-repo, .ws3-commit) strong { overflow: hidden; color: var(--dv3-ink); font-size: 13px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.workspaces-view :is(.ws3-identity, .ws3-state, .ws3-repo, .ws3-commit) small { overflow: hidden; color: var(--dv3-muted); font-size: 11.5px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.workspaces-view .ws3-identity > span:last-child > strong { font-size: 14px; }

.workspaces-view .ws3-state { min-width: 0; display: flex; align-items: center; gap: 8px; }
.workspaces-view .ws3-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 999px; background: var(--dv3-faint); }
.workspaces-view .ws3-dot.green,
.workspaces-view .ws3-dot.running { background: var(--dv3-success); }
.workspaces-view .ws3-dot.yellow { background: #c17b0b; }
.workspaces-view .ws3-repo { gap: 8px; }
.workspaces-view .ws3-repo > svg { flex: 0 0 auto; color: var(--dv3-muted); }
.workspaces-view .ws3-repo:hover strong { color: var(--dv3-accent-strong); }

.workspaces-view .ws3-commit { min-width: 0; display: flex; align-items: center; gap: 9px; }
.workspaces-view .ws3-commit code { flex: 0 0 auto; border-radius: 5px; padding: 2px 6px; color: var(--dv3-text); background: #f0f2f6; font-family: var(--mra-font-mono); font-size: 10.5px; }

.workspaces-view .ws3-open {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--dv3-line-strong);
  border-radius: 9px;
  padding: 7px 12px;
  color: var(--dv3-ink);
  background: var(--dv3-surface);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.workspaces-view .ws3-open:hover { border-color: #9fb5e4; color: var(--dv3-accent-strong); background: var(--dv3-accent-soft); }

.workspaces-view .ws3-create {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(260px, 1.2fr) auto;
  align-items: end;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #c9d6ef;
  background: #f6f8fd;
  box-shadow: inset 3px 0 0 var(--dv3-accent);
}

.workspaces-view .ws3-create .np-copy { display: flex; align-items: center; gap: 10px; align-self: center; }
.workspaces-view .ws3-create .np-copy > span:last-child { min-width: 0; display: grid; gap: 2px; }
.workspaces-view .ws3-create .np-ico { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--dv3-accent); background: var(--dv3-accent-soft); }
.workspaces-view .ws3-create .np-copy strong { color: var(--dv3-ink); font-size: 13px; }
.workspaces-view .ws3-create .np-copy small { color: var(--dv3-muted); font-size: 11.5px; }
.workspaces-view .ws3-create .np-field { width: 100%; display: grid; gap: 5px; color: var(--dv3-muted); font-size: 11px; font-weight: 700; }
.workspaces-view .ws3-create .np-field input { width: 100%; min-height: 38px; border: 1px solid var(--dv3-line-strong); border-radius: 8px; padding: 7px 10px; background: #fff; }
.workspaces-view .ws3-create .np-actions { display: flex; align-items: center; gap: 8px; }

.workspaces-view .ws3-empty { display: grid; gap: 5px; justify-items: center; padding: 40px 18px; color: var(--dv3-muted); font-size: 13px; text-align: center; }
.workspaces-view .ws3-empty strong { color: var(--dv3-ink); }

@media (max-width: 1100px) {
  .workspaces-view .ws3-row { grid-template-columns: minmax(220px, 1fr) 126px 112px auto; }
  .workspaces-view .ws3-commit { display: none; }
}

/* Repositories: flatter, scan-friendly rows with a quiet primary marker. */
.repos-view { gap: 18px; }
.repos-view .repo-list { gap: 12px; }
.repos-view .repo-card {
  gap: 10px;
  border-color: var(--dv3-line);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: none;
  transition: border-color 120ms ease, background 120ms ease;
}

.repos-view .repo-card:hover {
  border-color: #b9c8e7;
  background: #fbfcff;
  box-shadow: none;
  transform: none;
}

.repos-view .repo-card.is-primary {
  border-color: #b9c8e7;
  box-shadow: inset 3px 0 0 var(--dv3-accent);
}

.repos-view .repo-card:hover .rc-chev { transform: none; }
.repos-view .rc-commit { border-color: var(--dv3-line); background: var(--dv3-subtle); }
.repos-view .rc-foot { border-color: var(--dv3-line); }

/* CI/CD: one selectable status rail instead of four floating metric cards. */
.cicd-view { gap: 18px; }
.cicd-view .cicd-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--dv3-line);
  border-radius: 12px;
  background: var(--dv3-surface);
}

.cicd-view .cicd-stat {
  min-height: 76px;
  border: 0;
  border-radius: 0;
  padding: 13px 16px;
  box-shadow: none;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.cicd-view .cicd-stat + .cicd-stat { border-left: 1px solid var(--dv3-line); }
.cicd-view .cicd-stat:hover { background: var(--dv3-subtle); transform: none; }
.cicd-view .cicd-stat.active { background: var(--dv3-accent-soft); box-shadow: inset 0 -3px 0 var(--dv3-accent); }
.cicd-view .cicd-stat .cs-v { font-size: 22px; font-weight: 700; }
.cicd-view .pipe-list { gap: 8px; }
.cicd-view .pipe-card { border-color: var(--dv3-line); border-radius: 12px; box-shadow: none; }
.cicd-view .pipe-card.open { box-shadow: inset 3px 0 0 var(--dv3-accent); }
.cicd-view .pipe-empty { border-color: var(--dv3-line-strong); border-radius: 12px; background: var(--dv3-surface); }

/* Activity: a true timeline surface rather than a stack of miniature cards. */
.activity-view:not(.obs-view) { gap: 18px; }
.activity-view:not(.obs-view) .activity-feed {
  position: relative;
  gap: 0;
  border-color: var(--dv3-line);
  border-radius: 12px;
  box-shadow: none;
}

.activity-view:not(.obs-view) .act-row { position: relative; padding: 13px 18px; border-color: var(--dv3-line); }
.activity-view:not(.obs-view) .act-row:hover { background: var(--dv3-subtle); }
.activity-view:not(.obs-view) .act-ico { border: 1px solid var(--dv3-line); border-radius: 999px; background: var(--dv3-surface); }
.activity-view:not(.obs-view) .act-line { color: var(--dv3-text); }
.activity-view:not(.obs-view) .act-line strong { color: var(--dv3-ink); }

/* Usage: preserve the hierarchy while removing the floating-card feel. */
.usage-view .usage-grid { gap: 12px; margin-top: 2px; }
.usage-view .usage-card {
  border-color: var(--dv3-line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: none;
}

.usage-view .usage-overview { border-top: 3px solid var(--dv3-accent); }
.usage-view .usage-test { background: var(--dv3-subtle); }
.usage-view .usage-card .uc-h { color: var(--dv3-muted); font-weight: 750; }

/* Observability: KPI rail + understated tabs + flat data panels. */
.obs-view { gap: 18px; }
.obs-view .obs-toolbar { margin: 0 0 2px; }
.obs-view .obs-hero {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--dv3-line);
  border-radius: 12px;
  background: var(--dv3-surface);
}

.obs-view .obs-hero-tile {
  border: 0;
  border-radius: 0;
  padding: 15px 18px;
}

.obs-view .obs-hero-tile + .obs-hero-tile { border-left: 1px solid var(--dv3-line); }
.obs-view .obs-hero-v { font-size: 26px; }
.obs-view .obs-hero-strip {
  border-color: var(--dv3-line);
  border-radius: 10px;
  background: var(--dv3-subtle);
}

.obs-view .obs-subtabs {
  width: 100%;
  gap: 22px;
  overflow-x: auto;
  border: 0;
  border-bottom: 1px solid var(--dv3-line);
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.obs-view .obs-subtabs button {
  min-height: 40px;
  border-radius: 0;
  padding: 8px 1px 9px;
  white-space: nowrap;
}

.obs-view .obs-subtabs button.active {
  color: var(--dv3-accent-strong);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--dv3-accent);
}

.obs-view .obs-panel,
.obs-view .obs-card,
.obs-view .obs-cx {
  border-color: var(--dv3-line);
  border-radius: 12px;
  box-shadow: none;
}

.obs-view .obs-cards { gap: 0; overflow: hidden; border: 1px solid var(--dv3-line); border-radius: 12px; background: var(--dv3-surface); }
.obs-view .obs-cards .obs-card { border: 0; border-radius: 0; }
.obs-view .obs-cards .obs-card + .obs-card { border-left: 1px solid var(--dv3-line); }

/* Observability generation 3: conversations first, aggregate metrics second. */
.obs-view .obs-commandbar {
  overflow: hidden;
  border: 1px solid var(--dv3-line);
  border-radius: 12px;
  background: var(--dv3-surface);
}

.obs-view .obs-commandbar .obs-subtabs {
  width: 100%;
  gap: 24px;
  overflow-x: auto;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--dv3-line);
  padding: 0 18px;
  background: var(--dv3-surface);
}

.obs-view .obs-commandbar .obs-subtabs button { min-height: 43px; padding: 9px 1px 10px; }

.obs-view .obs-commandbar .obs-toolbar {
  margin: 0;
  padding: 10px 12px;
  background: var(--dv3-subtle);
}

.obs-view .obs-conversation-space { display: grid; gap: 12px; }
.obs-view .obs-conversation-space > .obs-subnav {
  width: 100%;
  gap: 20px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--dv3-line);
  padding: 0 2px;
}

.obs-view .obs-conversation-space > .obs-subnav button { min-height: 36px; border-radius: 0; padding: 6px 1px 8px; }
.obs-view .obs-conv-shell { overflow: hidden; border: 1px solid var(--dv3-line); border-radius: 12px; background: var(--dv3-surface); }
.obs-view .obs-conv-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border-bottom: 1px solid var(--dv3-line); }
.obs-view .obs-conv-kicker { margin-bottom: 5px; color: var(--dv3-accent-strong); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.obs-view .obs-conv-head h2 { margin: 0; color: var(--dv3-ink); font-size: 18px; letter-spacing: -.02em; }
.obs-view .obs-conv-head p { margin: 5px 0 0; color: var(--dv3-muted); font-size: 12.5px; }
.obs-view .obs-conv-total { min-width: 76px; display: grid; gap: 1px; justify-items: end; }
.obs-view .obs-conv-total strong { color: var(--dv3-ink); font-size: 21px; font-weight: 720; letter-spacing: -.03em; }
.obs-view .obs-conv-total small { color: var(--dv3-faint); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

.obs-view .obs-convbar {
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  border-bottom: 1px solid var(--dv3-line);
  background: var(--dv3-subtle);
}

.obs-view .obs-convsearch input[type="search"] { min-height: 38px; border-color: var(--dv3-line-strong); border-radius: 8px; }
.obs-view .obs-convbar .obs-segfilter { border-color: var(--dv3-line); background: var(--dv3-surface); }
.obs-view .obs-conv-list { padding: 12px; }
.obs-view .obs-conv-list > .obs-cx:last-child { margin-bottom: 0; }
.obs-view .obs-conv-empty { min-height: 230px; display: grid; align-content: center; justify-items: center; gap: 7px; padding: 36px 20px; color: var(--dv3-muted); text-align: center; }
.obs-view .obs-conv-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: var(--dv3-accent); background: var(--dv3-accent-soft); }
.obs-view .obs-conv-empty strong { color: var(--dv3-ink); font-size: 14px; }
.obs-view .obs-conv-empty p { max-width: 48ch; margin: 0; font-size: 12.5px; line-height: 1.5; }

/* Event log containment: header and data rows collapse together. */
.obs-view .obs-events { min-width: 0; overflow: hidden; }
.obs-view .obs-events > h3 { min-width: 0; flex-wrap: wrap; }
.obs-view .obs-events .obs-table,
.obs-view .obs-events .obs-row { width: 100%; min-width: 0; }
.obs-view .obs-events .obs-row > span { min-width: 0; }

@media (max-width: 1100px) {
  .obs-view .obs-events .obs-row { grid-template-columns: 16px 64px minmax(70px, 90px) minmax(72px, max-content) minmax(0, 1fr); gap: 8px; }
  .obs-view .obs-events .obs-head :is(.obs-head-src, .obs-head-model, .obs-head-user, .obs-head-project) { display: none; }
}

@media (max-width: 650px) {
  .obs-view .obs-panel.obs-events { padding: 12px; }
  .obs-view .obs-events > h3 { gap: 6px 8px; }
  .obs-view .obs-events .obs-head { display: none; }
  .obs-view .obs-events .obs-row:not(.obs-head) {
    grid-template-columns: 14px minmax(0, 1fr) auto;
    grid-template-areas:
      "caret kind status"
      "caret detail detail"
      "caret when when";
    gap: 4px 8px;
    padding: 9px 6px;
    border-bottom: 1px solid var(--dv3-line);
    border-radius: 0;
  }
  .obs-view .obs-events .obs-row:not(.obs-head):last-child { border-bottom: 0; }
  .obs-view .obs-events .obs-caret { grid-area: caret; align-self: center; }
  .obs-view .obs-events .obs-kind { grid-area: kind; }
  .obs-view .obs-events .obs-badge { grid-area: status; }
  .obs-view .obs-events .obs-snip { grid-area: detail; font-size: 11px; }
  .obs-view .obs-events .obs-when { grid-area: when; font-size: 10.5px; }
  .obs-view .obs-events .obs-detail { margin-inline: 0; }
}

.obs-view .obs-metrics-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.obs-view .obs-metrics-intro span { color: var(--dv3-faint); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.obs-view .obs-metrics-intro h2 { margin: 4px 0 0; color: var(--dv3-ink); font-size: 20px; letter-spacing: -.02em; }
.obs-view .obs-metrics-intro p { margin: 5px 0 0; color: var(--dv3-muted); font-size: 12.5px; }

@media (max-width: 1120px) {
  .workspaces-view .proj-card {
    grid-template-columns: auto minmax(180px, 1fr) minmax(140px, .55fr) minmax(220px, .9fr);
  }

  .workspaces-view .proj-card .pc-langs { display: none; }
}

@media (max-width: 820px) {
  .workspaces-view .ws3-library-head { display: grid; gap: 15px; }
  .workspaces-view .ws3-library-actions { width: 100%; }
  .workspaces-view .ws3-search { width: auto; flex: 1; }
  .workspaces-view .ws3-row { grid-template-columns: minmax(0, 1fr) auto; gap: 11px 14px; }
  .workspaces-view .ws3-identity { grid-column: 1; }
  .workspaces-view .ws3-open { grid-column: 2; grid-row: 1; }
  .workspaces-view .ws3-state { grid-column: 1; padding-left: 51px; }
  .workspaces-view .ws3-repo { grid-column: 2; justify-self: end; }
  .workspaces-view .ws3-create { grid-template-columns: 1fr; align-items: stretch; }
  .workspaces-view .ws3-create .np-actions { justify-content: flex-end; }
  .workspaces-view .proj-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px 13px;
  }

  .workspaces-view .proj-card .pc-git { justify-self: end; }
  .workspaces-view .proj-card .pc-foot { grid-column: 2 / -1; }
  .workspaces-view .proj-new-card { grid-template-columns: 1fr; align-items: stretch; }
  .workspaces-view .proj-new-card .np-actions { justify-content: flex-end; }
}

@media (max-width: 760px) {
  .projects-wrap.workspaces-view,
  .projects-wrap:has(> .repos-view),
  .projects-wrap:has(> .activity-view),
  .projects-wrap:has(> .cicd-view),
  .projects-wrap:has(> .usage-view) {
    padding-top: 22px;
  }

  :is(.workspaces-view, .repos-view, .activity-view, .cicd-view, .usage-view) .projects-head {
    display: grid;
    gap: 14px;
  }

  :is(.workspaces-view, .repos-view, .activity-view, .cicd-view, .usage-view) .head-actions {
    justify-content: flex-start;
  }

  .workspaces-view .featured { grid-template-columns: 1fr; padding: 18px; }
  .workspaces-view .f-actions { justify-content: flex-start; }
  .workspaces-view .runtime-strip { grid-template-columns: 1fr; }
  .workspaces-view .runtime-card + .runtime-card { border-left: 0; border-top: 1px solid var(--dv3-line); }
  .workspaces-view .proj-toolbar,
  .repos-view .proj-toolbar { flex-wrap: wrap; }
  .workspaces-view .search-inline,
  .repos-view .search-inline { order: 5; width: 100%; max-width: none !important; }
  .cicd-view .cicd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cicd-view .cicd-stat:nth-child(3) { border-left: 0; }
  .cicd-view .cicd-stat:nth-child(n + 3) { border-top: 1px solid var(--dv3-line); }
  .obs-view .obs-toolbar { align-items: flex-start; flex-direction: column; }
  .obs-view .obs-toolbar-r { justify-content: flex-start; }
  .obs-view .obs-commandbar .obs-subtabs { flex-wrap: nowrap; gap: 12px; padding: 0 14px; }
  .obs-view .obs-conv-head { align-items: flex-start; padding: 16px; }
  .obs-view .obs-conv-total { justify-items: start; }
  .obs-view .obs-convbar { align-items: stretch; }
  .obs-view .obs-convsearch { flex-basis: 100%; }
  .obs-view .obs-conv-list { padding: 8px; }
  .obs-view .obs-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .obs-view .obs-hero-tile:nth-child(3) { border-left: 0; }
  .obs-view .obs-hero-tile:nth-child(n + 3) { border-top: 1px solid var(--dv3-line); }
  .obs-view .obs-cols { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .workspaces-view .f-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .workspaces-view .f-actions .btn-resume { grid-column: 1 / -1; }
  .workspaces-view .ws3-library-head { padding: 16px; }
  .workspaces-view .ws3-library-actions { display: grid; grid-template-columns: 1fr; }
  .workspaces-view .ws3-search { width: 100%; }
  .workspaces-view .ws3-row { padding: 14px; }
  .workspaces-view .ws3-state { padding-left: 0; }
  .workspaces-view .ws3-repo { justify-self: end; }
  .workspaces-view .ws3-create .np-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .workspaces-view .proj-card { grid-template-columns: auto minmax(0, 1fr); }
  .workspaces-view .proj-card .pc-git,
  .workspaces-view .proj-card .pc-foot { grid-column: 1 / -1; justify-self: stretch; }
  .workspaces-view .proj-card .pc-when { margin-left: 0; }
  .workspaces-view .proj-new-card .np-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .repos-view .repo-list { grid-template-columns: 1fr; }
  .cicd-view .cicd-stats { grid-template-columns: 1fr 1fr; }
  .usage-view .usage-grid { grid-template-columns: 1fr; }
  .usage-view .usage-card.span2 { grid-column: auto; }
  .obs-view .obs-conv-head { display: grid; gap: 10px; }
  .obs-view .obs-convbar .obs-segfilter { width: 100%; }
  .obs-view .obs-convbar .obs-segfilter button { flex: 1; }
  .obs-view .obs-commandbar .obs-subtabs { gap: 8px; padding-inline: 10px; }
  .obs-view .obs-commandbar .obs-subtabs button { flex: 1 0 auto; min-width: max-content; font-size: 11px; }
  .obs-view .obs-hero { grid-template-columns: 1fr 1fr; }
}
