:root {
  --ink: #151a18;
  --muted: #5c6660;
  --soft: #f6f7f8;
  --panel: #ffffff;
  --line: #dfe4e2;
  --line-strong: #c7ceca;
  --teal: #0d9488;
  --teal-soft: #d7f4ef;
  --blue: #2563eb;
  --blue-soft: #dceafe;
  --orange: #e4572e;
  --orange-soft: #fde5db;
  --gold: #bd7a00;
  --gold-soft: #fff0c2;
  --violet: #6457a6;
  --violet-soft: #e9e5ff;
  --green: #1f8a4c;
  --green-soft: #dcf7e7;
  --shadow: 0 12px 30px rgba(21, 26, 24, 0.08);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: #eef1f3;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 100%;
  min-height: 100vh;
  overflow-x: clip;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  min-width: 0;
  padding: 24px;
  background: #111714;
  color: #f7fbf9;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #1d2824;
  color: #8ff2df;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand em {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1.02rem;
}

.brand em {
  color: #aeb9b4;
  font-style: normal;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  color: #ccd7d2;
  font-size: 0.94rem;
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.nav-link:hover,
.nav-link.active {
  border-color: rgba(255, 255, 255, 0.14);
  background: #1b2723;
  color: #ffffff;
}

.sidebar-panel {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #18211e;
}

.panel-label,
.eyebrow {
  display: block;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-panel .panel-label {
  color: #8ff2df;
}

.sidebar-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.sidebar-panel p {
  margin: 8px 0 0;
  color: #b8c4bf;
  font-size: 0.88rem;
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  max-width: 100%;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 4px;
  background: transparent;
}

.topbar h1 {
  max-width: 780px;
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3.2vw, 3.35rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.ghost-button,
.solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
}

.solid-button {
  border-color: #111714;
  background: #111714;
  color: #ffffff;
}

.ghost-button svg,
.solid-button svg {
  width: 18px;
  height: 18px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.metric-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2.05rem;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.dashboard-section,
.split-section {
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.section-heading,
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.challenge-panel h2 {
  margin: 4px 0 0;
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.catalog-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--teal);
  background: var(--teal-soft);
  color: #00665d;
  font-size: 0.8rem;
  font-weight: 800;
}

.catalog-status.paused {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: #7b4e00;
}

.control-surface {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 160px 180px auto;
  gap: 10px;
  align-items: end;
  margin-top: 18px;
}

.control-surface label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.control-surface label span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box {
  position: relative;
}

.search-box svg {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fbfcfc;
  color: var(--ink);
}

input,
select {
  height: 42px;
}

input {
  padding: 0 12px 0 38px;
}

select {
  padding: 0 10px;
}

textarea {
  min-height: 120px;
  padding: 10px 12px;
  resize: vertical;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-toggle {
  min-height: 42px;
  min-width: 58px;
  border: 1px solid var(--line-strong);
  background: #fbfcfc;
  color: var(--muted);
  font-weight: 800;
}

.filter-toggle.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: #1746a2;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.project-card {
  display: grid;
  grid-template-rows: 132px auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
  text-align: left;
}

.project-card:hover,
.lane-card:hover,
.lane-deep-card:hover,
.project-card.selected {
  border-color: #111714;
}

.project-media {
  position: relative;
  min-width: 0;
  background: #dfe6e4;
}

.project-media img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.media-fallback {
  display: grid;
  height: 132px;
  place-items: center;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.22), transparent 46%),
    #e8ecec;
  color: #2d3934;
  font-weight: 850;
  text-align: center;
}

.status-pill,
.kind-pill {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  background: rgba(17, 23, 20, 0.86);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-pill {
  left: 10px;
}

.kind-pill {
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.project-body {
  padding: 14px;
}

.project-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.project-body p {
  min-height: 58px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.tag-row,
.artifact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag,
.artifact {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: #f8faf9;
  color: #33413b;
  font-size: 0.74rem;
  font-weight: 800;
}

.artifact.on {
  border-color: #aadfcd;
  background: var(--green-soft);
  color: #0d5c35;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.score-mini span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.bar {
  height: 6px;
  margin-top: 4px;
  overflow: hidden;
  background: #e4e9e7;
}

.bar > i {
  display: block;
  height: 100%;
  background: var(--teal);
}

.score-mini:nth-child(2) .bar > i {
  background: var(--orange);
}

.score-mini:nth-child(3) .bar > i {
  background: var(--violet);
}

.detail-panel {
  position: sticky;
  top: 24px;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fbfcfc;
}

.detail-hero img,
.detail-hero .media-fallback {
  width: 100%;
  height: 164px;
  object-fit: cover;
}

.detail-body {
  padding: 16px;
}

.detail-body h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.detail-body p {
  color: var(--muted);
  line-height: 1.5;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #111714;
  background: #111714;
  color: #ffffff;
  font-weight: 800;
}

.detail-link svg {
  width: 17px;
  height: 17px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.detail-meta div {
  padding: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.detail-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
}

.evidence-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.evidence-list a {
  display: block;
  padding: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #1746a2;
  font-size: 0.88rem;
  font-weight: 750;
}

.lane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.lane-card {
  display: block;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfcfc;
}

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

.lane-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.lane-card strong {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  background: #111714;
  color: #ffffff;
}

.lane-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.inline-link {
  display: inline-flex;
  margin-top: 14px;
  color: #1746a2;
  font-size: 0.82rem;
  font-weight: 850;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}

.challenge-panel,
.benchmark-board {
  padding: 20px;
  border: 1px solid var(--line);
  background: #fbfcfc;
}

.challenge-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.challenge-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.challenge-list span {
  display: grid;
  min-height: 46px;
  place-items: center;
  background: var(--orange-soft);
  color: #a63818;
  font-weight: 900;
}

.challenge-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.board-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.board-header span {
  padding: 6px 9px;
  border: 1px solid var(--gold);
  background: var(--gold-soft);
  color: #7b4e00;
  font-size: 0.75rem;
  font-weight: 850;
}

.protocol-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.protocol-list li {
  padding: 10px 10px 10px 4px;
  border-bottom: 1px solid var(--line);
  color: #33413b;
  line-height: 1.45;
}

.agent-grid,
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.agent-grid article,
.path-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfcfc;
}

.agent-grid svg {
  width: 26px;
  height: 26px;
  color: var(--teal);
}

.agent-grid strong,
.path-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 1rem;
}

.agent-grid span,
.path-grid span {
  display: inline-flex;
  margin-top: 8px;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.path-grid span {
  border-color: var(--violet);
  background: var(--violet-soft);
  color: #41367c;
}

.agent-grid p,
.path-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fbfcfc;
  color: var(--muted);
  text-align: center;
}

.empty-state.compact {
  padding: 16px;
  text-align: left;
}

.page-header {
  max-width: 980px;
  padding: 10px 0 6px;
}

.page-header h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.page-header p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 16px;
  color: #1746a2;
  font-weight: 850;
}

.back-link svg {
  width: 17px;
  height: 17px;
}

.page-metrics {
  margin-top: 20px;
}

.lane-deep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.lane-deep-card {
  display: block;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.lane-deep-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lane-deep-card h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.lane-deep-card strong {
  display: grid;
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--teal);
  background: var(--teal-soft);
  color: #00665d;
}

.lane-deep-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.mini-project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-project-list span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: #f8faf9;
  color: #33413b;
  font-size: 0.78rem;
  font-weight: 800;
}

.verification-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.verification-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfcfc;
}

.verification-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.verification-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
}

.verification-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.project-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}

.project-main-panel,
.project-side-panel,
.chat-panel,
.memory-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.project-main-panel {
  padding: 18px;
}

.project-main-panel h2,
.memory-panel h2 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
}

.project-main-panel p,
.memory-panel p,
.large-copy {
  color: var(--muted);
  line-height: 1.55;
}

.project-page-media img,
.project-page-media .media-fallback {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.project-side-panel {
  position: sticky;
  top: 24px;
  padding: 16px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.ghost-button.compact {
  min-height: 38px;
}

.detail-meta.stacked,
.score-row.stacked {
  grid-template-columns: 1fr;
}

.artifact-row.large .artifact {
  min-height: 30px;
  font-size: 0.8rem;
}

.tag-row.spaced {
  margin-top: 16px;
}

.agent-table {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.agent-table article {
  display: grid;
  grid-template-columns: 150px 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.agent-table span {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-table strong {
  font-size: 1rem;
}

.agent-table p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.source-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.source-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: #1746a2;
  font-weight: 850;
}

.topbar-actions.left {
  justify-content: flex-start;
  margin-top: 16px;
}

.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}

.chat-panel,
.memory-panel {
  padding: 16px;
}

.prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-row button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: #fbfcfc;
  color: #33413b;
  font-size: 0.82rem;
  font-weight: 850;
}

.chat-log {
  display: grid;
  gap: 12px;
  height: min(56vh, 560px);
  min-height: 360px;
  margin-top: 14px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  background: #f8faf9;
}

.chat-message {
  max-width: 88%;
  padding: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.chat-message.user {
  justify-self: end;
  background: #111714;
  color: #ffffff;
}

.chat-message > span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-message.user > span {
  color: #8ff2df;
}

.chat-message div {
  line-height: 1.5;
}

.chat-message p {
  margin: 10px 0 0;
}

.ai-result-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ai-result-list a {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fbfcfc;
}

.ai-result-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.nosy {
  padding: 10px;
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.memory-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.memory-form label {
  display: grid;
  gap: 6px;
}

.memory-form label span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.memory-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.memory-note {
  padding: 12px;
  border: 1px solid var(--line);
  background: #fbfcfc;
}

.memory-note span,
.memory-note small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.memory-note strong {
  display: block;
  margin-top: 4px;
}

.memory-note p {
  margin: 8px 0;
  color: #33413b;
}

@media (max-width: 1180px) {
  .control-surface,
  .catalog-layout,
  .split-section,
  .project-page-layout,
  .ai-layout {
    grid-template-columns: 1fr;
  }

  .detail-panel,
  .project-side-panel {
    position: static;
  }

  .agent-grid,
  .path-grid,
  .metrics-grid,
  .verification-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-table article {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .agent-table p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    gap: 14px;
    width: 100%;
    max-width: 100vw;
    padding: 14px;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .sidebar-panel {
    display: none;
  }

  .workspace {
    width: 100%;
    max-width: 100vw;
    padding: 14px;
  }

  .topbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    width: 100%;
    max-width: 100%;
    padding: 20px 0;
  }

  .topbar h1 {
    max-width: 100%;
  }

  .topbar-actions {
    flex-direction: column;
    min-width: 0;
    width: 100%;
  }

  .ghost-button,
  .solid-button {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  .metrics-grid,
  .agent-grid,
  .path-grid,
  .verification-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .lane-deep-grid {
    grid-template-columns: 1fr;
  }

  .project-page-media img,
  .project-page-media .media-fallback {
    height: 210px;
  }

  .agent-table article,
  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-message {
    max-width: 100%;
  }

  .dashboard-section,
  .split-section {
    padding: 0;
  }
}

@media (max-width: 520px) {
  .nav-list {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .challenge-list div {
    grid-template-columns: 1fr;
  }

  .detail-meta,
  .score-row {
    grid-template-columns: 1fr;
  }
}
