.project-console {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  padding: 32px clamp(18px, 3vw, 48px) 48px;
  max-width: 1800px;
  margin: 0 auto;
  color: #dceaf1;
  overflow-wrap: anywhere;
}
.constellation-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.constellation-heading h1 {
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -1px;
  margin: 10px 0;
}
.constellation-heading p {
  color: #9baabb;
  margin: 8px 0;
}
.heading-orbit {
  display: inline-block;
  width: 30px;
  height: 14px;
  border: 1px solid #59dee3;
  border-radius: 50%;
  transform: rotate(-25deg);
  margin-left: 16px;
  position: relative;
}
.heading-orbit:after {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  right: 1px;
  top: 0;
  background: #b6a0ff;
  border-radius: 50%;
}
.project-console button,
.github-connection button,
.github-detail button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid #334351;
  border-radius: 8px;
  background: #111b25;
  color: #d6edf0;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
}
.project-console button:hover,
.github-connection button:hover,
.github-detail button:hover {
  border-color: #61d7dc;
  background: #152932;
}
.project-console button:disabled,
.github-connection button:disabled,
.github-detail button:disabled {
  opacity: 0.45;
  cursor: default;
}
.project-console :focus-visible,
.github-connection :focus-visible,
.github-detail :focus-visible {
  outline: 2px solid #98eced;
  outline-offset: 4px;
}
.project-console select,
.github-connection select {
  color: #dceaf1;
  background: #101923;
  border: 1px solid #3b4a59;
  border-radius: 7px;
  padding: 10px;
  min-height: 42px;
  max-width: 100%;
}
.project-console label {
  white-space: nowrap;
  font-size: 12px;
  color: #a9bbca;
  display: flex;
  gap: 8px;
  align-items: center;
}
.project-console a,
.github-connection a,
.github-detail a {
  color: #89e6e8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.project-console a:hover,
.github-connection a:hover,
.github-detail a:hover {
  text-decoration: underline;
}
.constellation-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid #2c3b4d;
  border-radius: 10px;
  background: #101824;
}
.github-account-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.github-account-status > .ui-icon {
  color: #7de7cf;
}
.github-account-status small {
  color: #9daebe;
  font-size: 12px;
}
.github-account-status strong {
  color: #e1ecf5;
}
.repo-search {
  flex: 1;
  min-width: 180px;
  padding: 0 12px;
  border: 1px solid #3b4a59;
  border-radius: 8px;
  background: #101923;
}
.repo-search input {
  background: transparent;
  border: 0;
  outline: none;
  color: #e2f0f5;
  width: 100%;
  padding: 13px 0;
  font: inherit;
}
.repo-search:focus-within {
  outline: 2px solid #98eced;
  outline-offset: 2px;
}
.project-console .repo-search input:focus-visible {
  outline: none;
}
.constellation-layout {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.constellation-map {
  position: sticky;
  top: 20px;
  padding: 22px 18px;
  background:
    radial-gradient(ellipse at 10% 10%, #17484d30, transparent 55%),
    radial-gradient(ellipse at 80% 70%, #6745a52c, transparent 65%), #0a111b;
  border: 1px solid #263b4d;
  border-radius: 18px;
  isolation: isolate;
  overflow: hidden;
}
.constellation-map:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#527f9630 1px, transparent 1px);
  background-size: 29px 29px;
  z-index: -1;
}
.map-coordinate {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9bb6ca;
  font-size: 10px;
  letter-spacing: 1px;
  align-items: center;
  margin-bottom: 6px;
}
.map-coordinate h2 {
  font-size: 18px;
  letter-spacing: 0;
  color: #edf3f9;
  margin: 0;
}
.repository-help {
  margin: 0 0 16px;
  font-size: 12px;
  color: #a9bdca;
  line-height: 1.6;
}
.repository-filter {
  justify-content: space-between;
  margin: 10px 0 14px;
}
.repository-filter select {
  padding: 7px 10px;
  min-height: 36px;
}
.map-coordinate span:last-child {
  letter-spacing: 0;
}
.repository-nodes {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 0;
  max-height: clamp(180px, calc(100dvh - 590px), 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 4px 8px;
}
.project-console .repository-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  text-align: left;
  border-radius: 4px 12px 4px 12px;
  background: linear-gradient(145deg, #152b35, #101421);
  border: 1px solid #314451;
  box-shadow: 0 10px 25px #0004;
  min-width: 0;
  position: relative;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.repository-node.depth-1 {
  transform: none;
}
.repository-node.depth-2 {
  background: linear-gradient(140deg, #26203b, #101c27);
}
.project-console .repository-node.selected {
  border-color: #7eeeea;
  box-shadow:
    0 0 0 3px #4fe0d81a,
    0 8px 24px #0005;
  background: linear-gradient(140deg, #1b3b45, #1d2038);
}
.repository-node.selected:after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 20px;
  width: 35px;
  height: 2px;
  background: #83e6e6;
  box-shadow: 0 0 8px #83e6e6;
}
.node-beacon {
  color: #b7d9df;
  flex-shrink: 0;
  margin-top: 4px;
}
.selected .node-beacon {
  color: #7de7e8;
}
.node-identity {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.node-identity b {
  font-size: 16px;
  color: #eff9fb;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.node-identity {
  flex: 1;
  min-width: 0;
}
.node-current {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #9cebe4;
  font-size: 10px;
  flex-shrink: 0;
}
.node-identity > span {
  font-size: 12px;
  line-height: 1.6;
  color: #a9bdca;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.node-identity small {
  color: #b3bdcf;
  font-size: 11px;
  line-height: 1.6;
}
.node-identity small:last-child {
  color: #8dc9cf;
}
.map-empty,
.cabin-message {
  padding: 28px 12px;
  color: #b5c6d1;
  line-height: 1.8;
}
.command-cabin {
  border: 1px solid #334351;
  border-radius: 18px;
  background: linear-gradient(135deg, #13243288, transparent 35%), #0e1520;
  overflow: hidden;
}
.cabin-heading {
  padding: 26px 26px 22px;
  border-bottom: 1px solid #2d3b4e;
  position: relative;
}
.cabin-heading:after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -1px;
  height: 2px;
  width: 74px;
  background: #85ede7;
}
.cabin-heading h2 {
  font-size: 25px;
  margin: 12px 0;
  line-height: 1.4;
}
.project-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #aabfcf;
  font-size: 12px;
}
.project-console .switch-repository {
  display: none;
}
.project-console .ask-project-assistant {
  background: #203c43;
  border-color: #60c7c9;
  color: #b9faf0;
}
.cabin-heading .assistant-draft-help {
  font-size: 12px;
  color: #a9bacb;
}
.github-source-info {
  font-size: 11px;
  color: #91a8bb;
  margin-top: 12px;
}
.github-source-info summary {
  cursor: pointer;
}
.channel-intro {
  padding: 18px 26px 0;
}
.channel-intro h3 {
  margin: 0;
  color: #e5edf7;
  font-size: 17px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.channel-intro h3 small {
  font-size: 11px;
  color: #9baebe;
  font-weight: 400;
}
.channel-intro p {
  margin: 8px 0 0;
  color: #a9bdca;
  font-size: 12px;
  line-height: 1.7;
}
.cabin-heading p {
  font-size: 13px;
  color: #adc4d0;
  line-height: 1.7;
  margin: 8px 0;
}
.github-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin: 14px 0;
  font-size: 12px;
}
.cabin-branch {
  padding: 18px 26px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cabin-tabs {
  display: flex;
  flex-wrap: wrap;
  padding: 12px 20px;
  gap: 8px;
  border-bottom: 1px solid #293548;
}
.project-console .cabin-tabs button {
  font-size: 12px;
  border-color: transparent;
  background: transparent;
  padding: 8px;
}
.project-console .cabin-tabs button.active {
  color: #9aeeeb;
  border-color: #416768;
  background: #1b373c;
}
.signal-filter {
  padding: 14px 26px 0;
}
.signal-stream {
  padding: 18px 26px;
}
.project-console .signal-item {
  display: flex;
  align-items: center;
  text-align: left;
  background: #131f2b;
  border: 1px solid #2c3c4d;
  border-radius: 10px;
  padding: 14px;
  margin: 0 0 12px;
  width: 100%;
  gap: 14px;
  justify-content: flex-start;
  position: relative;
  min-width: 0;
}
.signal-item > div {
  min-width: 0;
  flex: 1;
}
.signal-item h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  margin: 6px 0;
  color: #e6f2f5;
  overflow-wrap: anywhere;
}
.signal-item p {
  font-size: 11px;
  color: #a3b9c8;
  margin: 5px 0;
}
.signal-item small {
  color: #b4a9d4;
  font-size: 10px;
}
.signal-light {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border: 1px solid #8799ad;
  background: #485363;
  border-radius: 50%;
}
.signal-item[data-state="success"] .signal-light,
.signal-item[data-state="open"] .signal-light {
  background: #77deca;
  border-color: #77deca;
  box-shadow: 0 0 0 4px #77deca13;
}
.signal-item[data-state="failure"] .signal-light,
.signal-item[data-state="timed_out"] .signal-light {
  background: #fc93a6;
  border-color: #fc93a6;
}
.signal-item[data-state="in_progress"] .signal-light {
  background: #9de9ed;
  animation: github-running 2s ease-in-out infinite;
}
.signal-item[data-state="queued"] .signal-light,
.signal-item[data-state="pending"] .signal-light {
  background: #efcf86;
}
.commit-trajectory {
  position: relative;
  padding-left: 48px;
}
.commit-trajectory:before {
  content: "";
  position: absolute;
  left: 32px;
  top: 30px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(#8cdae0, #8f75b7);
}
.commit-trajectory .signal-item:before {
  content: "";
  position: absolute;
  left: -21px;
  top: 27px;
  width: 8px;
  height: 8px;
  border: 1px solid #92dbe1;
  border-radius: 50%;
  background: #0e1520;
}
.build-pulses .signal-item:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  width: 60px;
  height: 2px;
  background: #67758b;
}
.build-pulses .signal-item[data-state="success"]:after {
  background: #77deca;
}
.build-pulses .signal-item[data-state="failure"]:after {
  background: #fc93a6;
}
.github-provenance {
  font-size: 10px;
  color: #9dafbe;
  line-height: 1.8;
  padding: 0 20px;
  margin: 10px 0;
}
.github-pager {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  font-size: 11px;
  color: #bac5d4;
  padding: 12px 20px 20px;
}
.constellation-empty {
  min-height: 390px;
  border: 1px solid #314252;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at center, #36274955, transparent 70%), #0e1520;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 40px;
  text-align: center;
}
.constellation-empty p {
  max-width: 480px;
  color: #acbbc9;
  line-height: 1.8;
}
.empty-orbits {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border: 1px solid #598184;
  border-radius: 50%;
  box-shadow:
    0 0 0 18px #528d8c0d,
    0 0 0 36px #8a66b009;
  color: #9be3e5;
  margin: 28px;
}
.constellation-empty h2 {
  margin: 18px 0 0;
}
.github-connection {
  border-top: 1px solid #344052;
  margin-top: 25px;
  padding-top: 25px;
  color: #c6d7df;
  font-size: 13px;
  line-height: 1.8;
}
.github-connection h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.github-connection code {
  overflow-wrap: anywhere;
  color: #bdaef1;
}
.github-connection ol {
  padding-left: 20px;
}
.github-connection li {
  margin: 10px 0;
}
.installation-scope {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #344253;
  border-radius: 8px;
  padding: 14px;
  margin: 14px 0;
}
.installation-scope small {
  color: #9dafbe;
}
.connection-confirm {
  border: 1px solid #786343;
  border-radius: 8px;
  padding: 12px;
}
.connection-confirm button {
  margin-right: 10px;
}
#settings {
  max-height: 90dvh;
  overflow: auto;
}
.github-detail {
  width: min(860px, calc(100vw - 40px));
  max-height: 90dvh;
  overflow: auto;
  background: #101925;
  color: #dce9ee;
  border: 1px solid #59687e;
  border-radius: 16px;
  padding: 28px;
  overflow-wrap: anywhere;
}
.github-detail::backdrop {
  background: #020812c9;
  backdrop-filter: blur(5px);
}
.github-detail header {
  position: relative;
  padding-right: 30px;
}
.github-detail header > .icon-button {
  position: absolute;
  right: -5px;
  top: 0;
}
.github-detail h2 {
  font-size: 23px;
  line-height: 1.5;
}
.github-detail p {
  line-height: 1.8;
  font-size: 13px;
  color: #b6c9d6;
}
.github-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.8 monospace;
  color: #d3e7ed;
  background: #0b121d;
  border-left: 2px solid #74d5d5;
  padding: 20px;
}
.github-body {
  padding: 18px 0;
  color: #d0dce4;
  font-size: 14px;
  line-height: 1.9;
}
.github-body pre {
  overflow: auto;
  max-width: 100%;
  background: #080f19;
  padding: 16px;
  border-radius: 8px;
}
.github-body img {
  max-width: 100%;
  height: auto;
}
.github-body table {
  display: block;
  overflow: auto;
}
.github-body a {
  display: inline;
}
.github-body blockquote {
  border-left: 2px solid #7474a4;
  margin-left: 0;
  padding: 4px 20px;
}
.github-detail details {
  border: 1px solid #354353;
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
}
.github-detail summary {
  cursor: pointer;
  font-size: 13px;
  line-height: 1.8;
}
.commit-sha {
  font-family: monospace;
  word-break: break-all;
}
.github-detail .github-provenance {
  padding: 0;
}
.build-detail h3 {
  font-size: 16px;
  margin: 22px 0;
}
.project-console .resource-error {
  margin: 16px;
  padding: 16px;
  border: 1px solid #844f65;
  background: #3a192633;
  color: #f1bac8;
  line-height: 1.8;
}
@keyframes github-running {
  0%,
  100% {
    box-shadow: 0 0 0 3px #9de9ed15;
  }
  50% {
    box-shadow: 0 0 0 7px #9de9ed35;
  }
}
@media (max-width: 1200px) {
  .constellation-layout {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 16px;
  }
  .repository-nodes {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .repository-node.depth-1 {
    transform: none;
  }
  .constellation-map {
    position: static;
  }
  .node-identity > span {
    -webkit-line-clamp: 1;
  }
}
@media (max-width: 760px) {
  .project-console {
    padding: 22px 14px 36px;
  }
  .constellation-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .constellation-heading h1 {
    font-size: 27px;
  }
  .constellation-heading p {
    font-size: 12px;
  }
  .constellation-heading > button {
    font-size: 11px;
    padding: 8px;
    white-space: nowrap;
  }
  .constellation-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .heading-orbit {
    width: 20px;
    margin-left: 10px;
  }
  .constellation-controls {
    gap: 10px;
    padding: 12px;
  }
  .github-account-status {
    font-size: 12px;
    flex: 1;
  }
  .github-account-status small {
    flex-basis: 100%;
    font-size: 11px;
  }
  .constellation-controls > button {
    font-size: 11px;
    padding: 8px;
  }
  .constellation-controls > label:first-child {
    width: 100%;
    justify-content: space-between;
  }
  .constellation-controls label {
    font-size: 11px;
  }
  .constellation-controls label select {
    max-width: 75%;
  }
  .repo-search {
    min-width: 0;
  }
  .constellation-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .constellation-map,
  .command-cabin {
    width: 100%;
    box-sizing: border-box;
  }
  .constellation-map {
    padding: 16px 12px;
    border-radius: 12px;
  }
  .map-coordinate {
    font-size: 9px;
  }
  .repository-nodes {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 0;
    max-height: 230px;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .project-console .repository-node {
    padding: 12px;
    border-radius: 6px 16px 6px 16px;
    box-shadow: none;
    align-items: center;
  }
  .node-beacon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid #385666;
    border-radius: 50%;
    margin: 0;
  }
  .node-identity {
    gap: 5px;
  }
  .node-identity b {
    font-size: 16px;
  }
  .node-identity > span {
    -webkit-line-clamp: 2;
  }
  .cabin-heading {
    padding: 18px;
  }
  .project-console .switch-repository {
    display: inline-flex;
    font-size: 11px;
    min-height: 34px;
    padding: 6px;
  }
  .channel-intro {
    padding: 16px 18px 0;
  }
  .cabin-heading h2 {
    font-size: 23px;
  }
  .cabin-branch {
    padding: 16px 18px 8px;
  }
  .cabin-tabs {
    padding: 12px;
    gap: 4px;
  }
  .project-console .cabin-tabs button {
    font-size: 11px;
    padding: 8px 7px;
  }
  .signal-stream {
    padding: 16px 16px;
  }
  .commit-trajectory {
    padding-left: 35px;
  }
  .commit-trajectory:before {
    left: 20px;
  }
  .commit-trajectory .signal-item:before {
    left: -20px;
  }
  .signal-item h3 {
    font-size: 13px;
  }
  .signal-filter {
    padding-left: 18px;
  }
  .github-detail {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    max-width: 100vw;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 24px 18px;
    box-sizing: border-box;
  }
  .github-detail h2 {
    font-size: 21px;
  }
  .github-detail header {
    padding-right: 32px;
  }
  .constellation-empty {
    min-height: 380px;
    padding: 30px 20px;
  }
  .constellation-empty h2 {
    font-size: 22px;
  }
  .github-connection .github-actions {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .repository-node {
    transition: none !important;
  }
  .signal-item[data-state="in_progress"] .signal-light {
    animation: none !important;
  }
}
