@font-face {
  font-family: "Geist";
  src: url("/assets/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #06040a;
  --surface: #0d0a14;
  --line: #292136;
  --ink: #ece7f7;
  --muted: #a398b4;
  --purple: #aa85f7;
  --green: #99d9b5;
  --amber: #ebbc83;
  --red: #f292a0;
  font:
    14px Geist,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #151020;
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 14px;
}
button:hover:not(:disabled) {
  background: #241735;
  border-color: #715296;
}
button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}
a {
  color: var(--purple);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.button {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
}
.primary {
  background: #a078ed;
  color: #160a2c;
  border-color: #a078ed;
  font-weight: 650;
}
.primary:hover:not(:disabled) {
  background: #ba99f7;
  color: #160a2c;
}
.muted,
small,
.note {
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -1.2px;
  line-height: 1.12;
  margin-bottom: 16px;
}
h2 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  font-weight: 550;
}
p {
  line-height: 1.6;
}
input,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #3b2c4d;
  background: #09060e;
  color: var(--ink);
  border-radius: 8px;
  padding: 11px 13px;
}
input:focus,
textarea:focus {
  border-color: var(--purple);
}
textarea {
  resize: vertical;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: #09060f;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
.brand:hover {
  text-decoration: none;
}
.brand strong {
  font-weight: 600;
}
.mark {
  width: 38px;
  height: 38px;
}
.repo-label {
  font-family:
    Geist Mono,
    monospace;
  font-size: 10px;
  margin: 25px 0 30px;
  word-break: break-all;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding: 12px;
}
.nav-item > span:first-child {
  width: 18px;
  font-size: 18px;
  color: #b69acc;
}
.nav-item.active {
  background: #231731;
  border-color: #352243;
  color: var(--ink);
}
.count {
  margin-left: auto;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-bottom p {
  font-size: 13px;
  color: #82768e;
  margin: 24px 0 12px;
}
.workspace {
  margin-left: 230px;
}
.topbar {
  min-height: 75px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 15px 38px;
}
.top-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.access-hint {
  font-size: 11px;
  color: var(--muted);
}
main {
  padding: 42px 38px 25px;
  max-width: 1560px;
  margin: auto;
}
.eyebrow {
  font:
    10px Geist Mono,
    monospace;
  letter-spacing: 1.9px;
  color: var(--purple);
  margin-bottom: 15px;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-title h1 {
  font-size: 49px;
  letter-spacing: -1.9px;
}
.page-title h1 em {
  font-family:
    Instrument Serif,
    Georgia,
    serif;
  font-size: 1.13em;
  font-weight: 400;
  color: #c6adf2;
}
.page-title p:not(.eyebrow) {
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 32px;
  overflow: hidden;
}
.metrics > div,
.metrics > button {
  background: var(--surface);
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  text-align: left;
  padding: 23px;
}
.metrics strong {
  font-size: 31px;
  display: block;
  font-weight: 500;
  letter-spacing: -1px;
}
.metrics span {
  font-size: 12px;
  display: block;
  color: var(--muted);
  margin-top: 7px;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px;
}
.dashboard-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 13px;
  overflow: hidden;
  align-self: start;
}
.dashboard-panel:first-child {
  grid-row: span 2;
}
.panel-heading {
  padding: 23px 20px 5px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.panel-heading h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.panel-heading p {
  font-size: 12px;
  color: var(--muted);
}
.drag-handle {
  align-self: start;
  padding: 3px 8px;
  background: none;
  font-size: 20px;
  cursor: grab;
}
.pr-card {
  display: flex;
  align-items: start;
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 17px;
  gap: 10px;
}
.pr-card:last-child {
  border-bottom: 0;
}
.card-open {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  padding: 0;
  text-align: left;
}
.card-open h3 {
  line-height: 1.5;
  margin-bottom: 7px;
  color: var(--ink);
}
.row-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.source-label {
  font-size: 9px;
  color: #b7a0d1;
}
.star {
  padding: 1px 3px;
  font-size: 22px;
  background: none;
  border: 0;
  line-height: 1.2;
  color: #746382;
}
.star.on,
.starred {
  color: var(--amber);
}
.next-line {
  font-size: 12px;
  color: #a89bb7;
  margin-bottom: 11px;
}
.row-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 8px;
  border: 1px solid #3c2c4c;
  border-radius: 6px;
  font-size: 10px;
  color: #bda2e3;
  background: #1c122b;
  line-height: 1.35;
}
.badge.green {
  color: var(--green);
  border-color: #294c3a;
  background: #10261c;
}
.badge.red {
  color: var(--red);
  border-color: #603040;
  background: #2e1520;
}
.badge.amber {
  color: var(--amber);
  border-color: #5a402d;
  background: #2b1d11;
}
.intake {
  margin-top: 30px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.intake > div {
  margin-right: auto;
}
.intake h2 {
  margin-bottom: 6px;
}
.intake p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}
footer {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 36px;
  font-size: 10px;
  color: #82748f;
  word-break: break-word;
}
footer button {
  margin-left: auto;
  font-size: 11px;
}
.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 15px;
}
.toolbar input {
  max-width: 430px;
}
.toolbar > .muted {
  margin-left: auto;
  font-size: 12px;
}
.segmented {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.segmented button {
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 7px 11px;
}
.segmented .active {
  background: #342044;
  color: #cfb9ef;
}
.stage-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.stage-filters button {
  font-size: 11px;
  background: none;
  padding: 7px 10px;
}
.stage-filters button.active {
  border-color: var(--purple);
  color: #d2bbf8;
  background: #271837;
}
.list {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.list .pr-card {
  padding: 20px;
}
.list .row-footer > span:nth-child(2) {
  margin-left: auto;
}
.board {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 18px;
  align-items: start;
}
.board-column {
  width: 278px;
  flex-shrink: 0;
  background: #0c0811;
  border: 1px solid var(--line);
  border-radius: 11px;
  min-height: 260px;
  padding: 14px 10px;
}
.board-column h2 {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  text-transform: capitalize;
}
.board-column h2 > span {
  color: var(--muted);
}
.column-help {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.board-card {
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  margin: 10px 0;
  padding: 13px 9px;
  cursor: grab;
}
.board-card h3 {
  font-size: 13px;
}
.board-card .next-line {
  font-size: 10px;
}
.board-card .row-footer > span:nth-child(2) {
  display: none;
}
.drag-over {
  border-color: var(--purple);
  background: #20122e;
}
.empty-column {
  padding: 20px;
  font-size: 12px;
  color: #756a80;
}
.empty {
  padding: 23px 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.back {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  margin-bottom: 28px;
}
.detail-title {
  display: flex;
  align-items: start;
  gap: 20px;
  justify-content: space-between;
}
.detail-title > div {
  min-width: 0;
  max-width: 1000px;
}
.detail-title > button {
  flex-shrink: 0;
}
.detail-title h1 {
  font-size: 32px;
  line-height: 1.25;
}
.detail-title p {
  font-size: 12px;
  color: var(--muted);
}
.journey {
  display: flex;
  padding: 0;
  list-style: none;
  margin: 25px 0 30px;
  gap: 12px;
}
.journey li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #9d8bad;
  border-bottom: 2px solid #32223f;
  padding-bottom: 14px;
}
.journey li > span {
  border: 1px solid #564063;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}
.journey li.done {
  color: var(--green);
  border-color: #3c7955;
}
.journey li.done > span {
  border-color: #3c7955;
}
.next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px;
  border: 1px solid #634180;
  background: linear-gradient(110deg, #20112f, #110b1a);
  border-radius: 13px;
  margin-bottom: 18px;
}
.next-action h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.next-action p {
  margin-bottom: 0;
  color: #baacca;
  font-size: 12px;
}
.next-action .eyebrow {
  color: var(--purple);
  font-size: 10px;
  margin-bottom: 10px;
}
.next-action .permission-note {
  margin-top: 12px;
  color: var(--amber);
}
.next-action > div:last-child {
  flex-shrink: 0;
}
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}
.action-bar button {
  font-size: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}
.detail-grid > * {
  min-width: 0;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 20px;
  padding: 23px;
}
.panel h2 {
  font-size: 17px;
}
.panel h3 {
  margin: 20px 0 12px;
}
.panel p {
  font-size: 12px;
}
.facts {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.mono,
code {
  font-family:
    Geist Mono,
    monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 15px;
  color: #b4a5c0;
  max-height: 500px;
  overflow: auto;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--purple);
}
.evidence {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.evidence > div {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
}
.evidence p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 10px 0;
}
.evidence small {
  display: block;
  font-size: 10px;
  margin-top: 10px;
}
.checks > div {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 11px;
}
.checks > div > a {
  margin-left: auto;
}
.checks small {
  flex-basis: 100%;
}
.note {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 14px;
  margin-bottom: 0;
}
.blockers {
  padding-left: 16px;
  color: #c4adc7;
  font-size: 12px;
  line-height: 1.8;
}
.blockers li {
  margin-bottom: 10px;
}
.task {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.task strong {
  font-size: 12px;
}
.task p {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 10px;
}
.task button {
  font-size: 11px;
  padding: 7px 10px;
  margin-right: 6px;
}
.activity {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.activity strong {
  display: block;
  font-size: 11px;
  margin-bottom: 5px;
}
.activity span {
  font-size: 9px;
  color: var(--muted);
}
.activity p {
  margin-top: 8px;
}
.upstream {
  border-color: #45325b;
}
.preview-banner {
  padding: 13px 38px;
  background: #2a2012;
  color: #e7c391;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.preview-banner button {
  margin-left: auto;
  font-size: 11px;
  padding: 5px 9px;
}
.action-dialog {
  max-width: 570px;
  width: calc(100% - 30px);
  max-height: 90dvh;
  overflow: auto;
  background: #100a19;
  color: var(--ink);
  border: 1px solid #65447d;
  border-radius: 15px;
  padding: 26px;
  box-shadow: 0 30px 100px #000a;
}
.action-dialog::backdrop {
  background: #020105bd;
  backdrop-filter: blur(5px);
}
.dialog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dialog-title h2 {
  font-size: 23px;
  margin: 0;
}
.dialog-title button {
  border: 0;
  background: none;
  font-size: 25px;
  padding: 0 7px;
}
.action-dialog form > p {
  font-size: 12px;
  margin: 15px 0 20px;
}
.action-dialog label {
  display: block;
  font-size: 12px;
  margin-bottom: 17px;
}
.action-dialog label > input,
.action-dialog label > textarea {
  margin-top: 9px;
}
.action-dialog small {
  display: block;
  font-size: 10px;
  margin-top: 9px;
  line-height: 1.6;
}
.action-dialog fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}
.action-dialog legend {
  font-size: 12px;
  margin-bottom: 10px;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #403047;
  padding: 9px;
  border-radius: 7px;
  cursor: pointer;
}
.choices input {
  display: inline;
  width: auto;
  margin: 0;
  accent-color: #b387ed;
}
.choices label:has(input:checked) {
  background: #2e1941;
  border-color: #b387ed;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
}
.form-error {
  color: var(--red);
  font-size: 12px;
}
.callout {
  background: #291e12;
  border: 1px solid #60462d;
  padding: 14px;
  border-radius: 8px;
  color: var(--amber);
}
.revision-note {
  font-size: 11px;
}
.green-text {
  color: var(--green);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  z-index: 50;
  max-width: calc(100vw - 30px);
  border: 1px solid #60467e;
  background: #21162d;
  color: var(--ink);
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 45px #000a;
  transition:
    transform 0.2s,
    opacity 0.2s;
  font-size: 12px;
}
#toast.show {
  transform: translateX(-50%);
  opacity: 1;
}
.loading,
.setup {
  max-width: 650px;
  padding: 70px 30px;
  margin: auto;
}
.setup h1 {
  font-family:
    Instrument Serif,
    serif;
  font-size: 50px;
}
@media (min-width: 1600px) {
  main {
    padding-top: 55px;
  }
  .page-title {
    margin-bottom: 42px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 195px;
    padding: 25px 14px;
  }
  .workspace {
    margin-left: 195px;
  }
  main {
    padding: 30px 24px;
  }
  .topbar {
    padding: 15px 24px;
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
  .dashboard-panel:first-child {
    grid-row: auto;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 265px;
  }
  .page-title h1 {
    font-size: 42px;
  }
  .access-hint {
    display: none;
  }
}
@media (max-width: 820px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 12px;
    gap: 9px;
  }
  .mark {
    width: 29px;
    height: 29px;
  }
  .brand br {
    display: none;
  }
  .brand strong {
    margin-left: 3px;
  }
  .repo-label {
    position: absolute;
    top: 20px;
    right: 18px;
    margin: 0;
    max-width: 190px;
    font-size: 9px;
  }
  .sidebar nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 17px;
    gap: 3px;
  }
  .nav-item {
    font-size: 11px;
    white-space: nowrap;
    padding: 9px;
  }
  .nav-item > span:first-child {
    display: none;
  }
  .sidebar-bottom {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    min-height: 65px;
    padding: 14px 18px;
  }
  .top-actions button,
  .top-actions a {
    font-size: 10px;
    padding: 8px;
  }
  .identity .badge {
    font-size: 9px;
  }
  main {
    padding: 27px 18px;
  }
  .page-title {
    align-items: start;
    flex-direction: column;
  }
  .page-title h1 {
    font-size: 38px;
  }
  .page-title p {
    font-size: 12px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics > * {
    border-bottom: 1px solid var(--line);
  }
  .metrics > button,
  .metrics > div {
    padding: 17px;
  }
  .metrics strong {
    font-size: 26px;
  }
  .intake {
    flex-wrap: wrap;
    padding: 18px;
  }
  .intake > div {
    width: 100%;
  }
  .intake h2 {
    font-size: 17px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-title {
    flex-direction: column;
    gap: 8px;
  }
  .detail-title h1 {
    font-size: 25px;
  }
  .detail-title p {
    font-size: 11px;
  }
  .journey {
    gap: 5px;
    margin: 22px 0;
  }
  .journey li {
    flex-direction: column;
    font-size: 9px;
    gap: 8px;
    text-align: center;
  }
  .next-action {
    padding: 19px;
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .next-action h2 {
    font-size: 20px;
  }
  .panel {
    padding: 19px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    width: 100%;
    max-width: none;
  }
  .toolbar > .muted {
    font-size: 10px;
  }
  .stage-filters {
    gap: 6px;
  }
  .stage-filters button {
    font-size: 10px;
  }
  .preview-banner {
    padding: 12px 18px;
    font-size: 10px;
  }
  .action-dialog {
    padding: 21px;
  }
  .dialog-title h2 {
    font-size: 20px;
  }
  .list .pr-card {
    padding: 16px 11px;
  }
  .row-footer > span:nth-child(2) {
    margin-left: 0 !important;
  }
  .board-column {
    width: 260px;
  }
}
