:root {
  color-scheme: light;
  --navy: #0b1220;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --soft: #f1f5f9;
  --soft-orange: #fff7f2;
  --brand: #f0522c;
  --brand2: #f97316;
  --green: #059669;
  --red: #dc2626;
  --amber: #d97706;
  --blue: #3554d1;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, .06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(240, 82, 44, .10), transparent 34%),
    linear-gradient(180deg, #fff 0%, var(--paper) 45%, #edf2f7 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.launch-shell {
  min-height: 100vh;
}

.live-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  color: #fff;
  background: rgba(11, 18, 32, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  font-weight: 950;
}

.brand small {
  display: block;
  color: #cbd5e1;
  margin-top: 2px;
}

.nav-list {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: 999px;
  color: #dbe4ef;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.nav-link.active,
.nav-link:hover {
  color: var(--ink);
  background: #fff;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 900;
}

.workspace {
  min-width: 0;
  max-width: 1420px;
  margin: 0 auto;
  padding: 24px;
}

.topbar,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.eyebrow {
  color: var(--brand);
}

.warm {
  color: #fed7aa;
}

.top-actions,
.head-actions,
.hero-actions,
.contribution-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.top-actions {
  min-width: 210px;
  justify-content: flex-end;
}

.tiny-button,
.primary-button,
.secondary-button,
.link-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 850;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tiny-button {
  min-height: 36px;
  background: #e7edf5;
  color: var(--ink);
}

.tiny-button.filled,
.primary-button,
.primary-link {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

.secondary-button,
.link-button {
  color: var(--ink);
  background: #e7edf5;
}

.full {
  width: 100%;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.panel,
.promise-strip article,
.job-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.hero-field {
  position: relative;
  min-height: 430px;
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 48px);
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 18, 32, .98), rgba(15, 23, 42, .88)),
    var(--navy);
  color: #fff;
}

.hero-copy {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  margin: 8px 0 14px;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 86px);
}

.hero-copy p {
  max-width: 640px;
  color: #dbe4ef;
  line-height: 1.65;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  font-weight: 900;
}

.live-pill i,
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .18);
}

.live-board {
  position: absolute;
  right: clamp(18px, 4vw, 46px);
  bottom: clamp(18px, 4vw, 46px);
  width: min(460px, 42vw);
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(16px);
}

.live-board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.live-board-head span {
  color: #fed7aa;
  font-size: 13px;
}

.live-activity {
  display: grid;
  gap: 8px;
}

.live-activity article {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .10);
}

.live-activity strong,
.live-activity small {
  display: block;
}

.live-activity small {
  margin-top: 2px;
  color: #cbd5e1;
}

.category-river {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  padding: 4px 0 10px;
  overflow-x: auto;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.category-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
}

.category-chip.active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.promise-strip,
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.feed-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: -2px 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #334155;
  background: #fff7f2;
  border: 1px solid #fed7aa;
}

.feed-note span {
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.feed-note p {
  margin: 0;
  line-height: 1.45;
}

.promise-strip article,
.stat-strip article {
  padding: 16px;
}

.promise-strip strong,
.promise-strip span {
  display: block;
}

.promise-strip span,
.stat-strip span,
.job-meta,
.source-card small {
  color: var(--muted);
}

.stat-strip strong {
  display: block;
  font-size: 30px;
}

.job-controls {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) repeat(3, minmax(150px, 210px));
  gap: 12px;
  margin-bottom: 16px;
  box-shadow: none;
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
  align-items: start;
}

.job-list {
  display: grid;
  gap: 12px;
}

.job-card {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.job-card:nth-child(odd) {
  transform: translateX(-6px);
}

.job-card:nth-child(even) {
  transform: translateX(8px);
}

.job-card:hover,
.job-card.selected {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .10);
}

.job-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.badge.green { background: var(--green); }
.badge.amber { background: var(--amber); }
.badge.dark { background: var(--navy); }

.job-meta,
.skill-row,
.detail-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.skill-row span,
.detail-facts span {
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--soft);
}

.match-score {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #ecfdf5;
  border: 6px solid #bbf7d0;
  font-weight: 950;
}

.job-detail {
  position: sticky;
  top: 24px;
  padding: 18px;
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.profile-form {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-form label:nth-last-child(-n+4) {
  grid-column: 1 / -1;
}

.lab-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
}

.tool-panel,
.draft-panel,
.collector-panel,
.contribution-panel {
  padding: 18px;
}

.tool-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.tool-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
}

.tool-tab.active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.journey-grid,
.source-grid,
.ecosystem-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.source-grid,
.ecosystem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-card,
.source-card,
.support-card {
  padding: 18px;
}

.journey-card span,
.support-card span,
.source-type {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 32px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 950;
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
  margin: 12px 0 8px;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--green));
}

.tracker-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tracker-column {
  min-height: 330px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tracker-item {
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #dbe4ef;
  background: var(--soft);
}

.tracker-item button {
  margin-top: 10px;
}

.collector-panel ol {
  margin-bottom: 0;
  padding-left: 22px;
  line-height: 1.65;
}

.ecosystem-card {
  min-height: 170px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.ecosystem-card.pdf {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

.ecosystem-card span {
  color: #fed7aa;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.ecosystem-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.support-card h3 {
  margin-bottom: 10px;
}

.contribution-panel {
  color: #fff;
  background: var(--navy);
}

.contribution-panel p {
  color: #dbe4ef;
  max-width: 840px;
  line-height: 1.65;
}

.empty-card {
  padding: 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(120px);
  opacity: 0;
  transition: .2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  .live-header {
    position: static;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .live-board {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 22px;
  }

  .job-layout,
  .lab-grid {
    grid-template-columns: 1fr;
  }

  .job-detail {
    position: static;
  }
}

@media (max-width: 860px) {
  .workspace {
    padding: 14px;
  }

  .topbar,
  .section-head {
    display: grid;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .promise-strip,
  .stat-strip,
  .job-controls,
  .profile-form,
  .journey-grid,
  .source-grid,
  .ecosystem-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .feed-note {
    display: grid;
  }

  .job-card {
    grid-template-columns: 1fr;
    transform: none !important;
  }

  .tool-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-header {
    padding: 12px 14px;
  }
}

@media (max-width: 560px) {
  .hero-field {
    padding: 18px;
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 13vw, 58px);
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }
}
