:root {
  color-scheme: dark;
  --bg: #030504;
  --panel: rgba(18, 22, 21, 0.86);
  --panel-strong: rgba(25, 31, 29, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f6f7f3;
  --muted: #a6b0ad;
  --soft: #d6ded9;
  --green: #47d982;
  --green-strong: #20b866;
  --cyan: #6bd6ff;
  --violet: #b58cff;
  --amber: #ffc65c;
  --red: #ff716b;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --control-height: 36px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(71, 217, 130, 0.14), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(107, 214, 255, 0.1), transparent 28%),
    var(--bg);
  color: var(--text);
}

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

button,
input,
textarea,
select {
  font: inherit;
  min-width: 0;
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  min-height: 64px;
  padding: 10px 12px;
  position: static;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 15, 14, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand,
.topnav,
.top-actions,
.button,
.user-pill,
.repo-actions,
.button-row,
.toolbar,
.breadcrumb,
.repo-tabs a,
.run-meta,
.notice {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  padding-left: 8px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4fff8;
  color: #07120b;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.topnav {
  gap: 8px;
  justify-content: flex-start;
}

.topnav a,
.user-pill {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--soft);
}

.user-pill {
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.user-pill .avatar.tiny {
  flex: 0 0 24px;
  overflow: hidden;
}

.topnav a:hover,
.user-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.top-actions {
  gap: 8px;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 64px;
}

.app-shell:has(.source-file-layout),
.app-shell:has(.source-editor) {
  width: min(1480px, calc(100vw - 24px));
}

.button,
.icon-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: var(--radius);
  min-height: var(--control-height);
  padding: 0 12px;
  gap: 8px;
  cursor: pointer;
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: saturate(0.72);
}

.button:hover,
.icon-button:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.button.primary {
  background: linear-gradient(180deg, var(--green), var(--green-strong));
  color: #06110a;
  border-color: rgba(71, 217, 130, 0.9);
  font-weight: 800;
}

.button.danger {
  color: #ffd8d6;
  border-color: rgba(255, 113, 107, 0.44);
}

.button.ghost {
  background: transparent;
}

.button.mini {
  min-height: 32px;
  padding-inline: 10px;
}

.button.starred {
  border-color: rgba(247, 213, 107, 0.62);
  background: rgba(247, 213, 107, 0.12);
  color: #ffe58a;
}

.button.starred .icon {
  fill: currentColor;
  color: #ffe58a;
}

.button.wide {
  justify-content: center;
  width: 100%;
}

.icon-button {
  width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
}

.notice {
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(71, 217, 130, 0.42);
  border-radius: var(--radius);
  color: #dfffe8;
  background: rgba(71, 217, 130, 0.1);
}

.split-layout,
.dashboard-page,
.dashboard-grid,
.repo-layout {
  display: grid;
  gap: 18px;
}

.split-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.dashboard-grid,
.repo-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: start;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  height: clamp(360px, calc(100vh - 250px), 640px);
  min-height: 0;
}

.dashboard-grid > .panel {
  height: 100%;
}

.dashboard-grid > .main-panel,
.dashboard-grid > .side-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.dashboard-scroll {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(255, 255, 255, 0.88) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.dashboard-scroll::-webkit-scrollbar {
  width: 8px;
}

.dashboard-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.dashboard-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.dashboard-scroll > h2:first-child,
.dashboard-scroll > .empty:first-child {
  margin-top: 0;
}

.dashboard-welcome-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-welcome-panel span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-welcome-panel h1 {
  margin: 0;
}

.intro-panel {
  min-height: 0;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 22, 21, 0.88), rgba(2, 4, 3, 0.72));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-panel h1 {
  font-size: 4rem;
  line-height: 0.9;
  margin: 0 0 18px;
}

.intro-panel p {
  color: var(--soft);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 52ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 800;
}

.panel,
.repo-hero,
.repo-tabs,
.file-table,
.readme,
.comment,
.comment-form,
.form-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel,
.form-panel,
.empty-state {
  padding: 20px;
}

.panel-head,
.thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  min-width: 0;
}

.panel-head > *,
.thread-head > * {
  min-width: 0;
}

.panel-head h1,
.panel-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.home-panel-head {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.home-panel-head a {
  flex: 0 0 auto;
  white-space: nowrap;
}

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

h1 {
  font-size: 1.55rem;
  line-height: 1.25;
}

h2 {
  font-size: 1.05rem;
  line-height: 1.35;
}

h3 {
  font-size: 0.98rem;
}

.repo-list,
.issue-list,
.stack {
  display: grid;
  gap: 10px;
}

.repo-row,
.issue-row,
.file-row,
.mini-row {
  display: grid;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.repo-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 12px;
}

.repo-row:hover,
.issue-row:hover,
.file-row:hover,
.mini-row:hover {
  border-color: rgba(71, 217, 130, 0.5);
  background: rgba(71, 217, 130, 0.06);
}

.repo-row strong,
.mini-row strong,
.issue-row strong {
  display: block;
  overflow-wrap: anywhere;
}

.repo-row small,
.mini-row small,
.issue-row small,
.muted {
  color: var(--muted);
}

.repo-glyph {
  color: var(--cyan);
}

.repo-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--soft);
  font-size: 0.78rem;
  text-transform: capitalize;
}

.badge.public,
.badge.open,
.badge.success {
  color: #dffff0;
  border-color: rgba(71, 217, 130, 0.45);
}

.badge.private {
  color: #ffe5ae;
  border-color: rgba(255, 198, 92, 0.45);
}

.badge.merged {
  color: #efe3ff;
  border-color: rgba(181, 140, 255, 0.5);
}

.badge.conflict,
.badge.failure {
  color: #ffd8d6;
  border-color: rgba(255, 113, 107, 0.5);
}

.repo-hero {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.repo-hero.no-actions {
  justify-content: flex-start;
}

.repo-hero > :first-child {
  display: flex;
  align-items: center;
  min-width: 0;
}

.breadcrumb {
  gap: 8px;
  flex-wrap: wrap;
  font-size: 1.18rem;
  line-height: 1.35;
  min-width: 0;
}

.breadcrumb a {
  color: var(--cyan);
}

.breadcrumb a,
.breadcrumb strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.repo-desc {
  margin: 10px 0 0;
  color: var(--muted);
}

.repo-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.repo-actions:empty {
  display: none;
}

.repo-tabs {
  margin: 10px 0 14px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 6px;
  box-shadow: none;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  overflow-y: hidden;
}

.repo-tabs::-webkit-scrollbar,
.toolbar-group::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.repo-tabs a {
  gap: 8px;
  min-height: 36px;
  padding: 0 11px;
  border-radius: var(--radius);
  color: var(--soft);
  white-space: nowrap;
}

.repo-tabs a.active {
  background: rgba(71, 217, 130, 0.12);
  color: #f2fff6;
}

.repo-tabs-more {
  display: none;
  position: relative;
  flex: 0 0 auto;
}

.repo-tabs-more summary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border-radius: var(--radius);
  color: var(--soft);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.repo-tabs-more summary::-webkit-details-marker {
  display: none;
}

.repo-tabs-more.active summary,
.repo-tabs-more[open] summary,
.repo-tabs-more summary:hover {
  background: rgba(71, 217, 130, 0.12);
  color: #f2fff6;
}

.repo-tabs-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: max-content;
  min-width: 190px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 12, 11, 0.98);
  box-shadow: var(--shadow);
}

.repo-tabs-menu a {
  justify-content: flex-start;
  width: 100%;
}

.toolbar {
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.toolbar-group,
.inline-actions,
.commit-meta-line,
.commit-facts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar > .toolbar-group {
  flex: 1 1 auto;
  min-width: 0;
}

.repo-code-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.repo-code-toolbar > .toolbar-group {
  min-width: 0;
}

.repo-code-search {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

.code-search {
  flex: 1 1 220px;
  min-width: min(260px, 100%);
  min-height: 38px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 5, 4, 0.82);
}

.code-search input {
  min-height: 0;
  height: 100%;
  align-self: center;
  line-height: 1;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.code-search:focus-within,
.profile-filter:focus-within,
.tracker-search:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.045);
}

.code-search input:focus,
.profile-filter input:focus,
.tracker-search input:focus,
.diff-filter:focus {
  border-color: transparent;
  box-shadow: none;
}

.diff-filter:focus {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.045);
}

.code-search kbd {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-family: inherit;
}

.branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.branch-menu {
  position: relative;
}

.branch-menu summary {
  list-style: none;
  cursor: pointer;
}

.branch-menu summary::-webkit-details-marker {
  display: none;
}

.branch-menu[open] summary {
  border-color: rgba(71, 217, 130, 0.55);
  background: rgba(71, 217, 130, 0.1);
}

.branch-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(12, 15, 14, 0.98);
  box-shadow: var(--shadow);
}

.branch-popover-head,
.branch-create,
.branch-browse {
  padding: 12px;
}

.branch-popover-head {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
}

.branch-popover-head small,
.branch-options small,
.branch-create span,
.branch-browse small {
  color: var(--muted);
}

.branch-options {
  max-height: 250px;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.88) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.branch-options::-webkit-scrollbar {
  width: 8px;
}

.branch-options::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.branch-options::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.branch-options a,
.branch-browse {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
}

.branch-options a {
  padding: 0 12px;
}

.branch-options a.active,
.branch-options a:hover,
.branch-browse:hover {
  background: rgba(71, 217, 130, 0.08);
}

.branch-options span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.branch-create {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.branch-create label {
  margin: 0;
}

.branch-create input {
  margin-top: 6px;
}

.branch-browse {
  border-bottom: 0;
}

.file-browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.commit-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.commit-author,
.commit-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.commit-message {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--soft);
}

.commit-message:hover,
.commit-count:hover,
.commit-row:hover strong {
  color: var(--green);
}

.avatar {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(107, 214, 255, 0.14);
  color: #e8f9ff;
  font-weight: 800;
  overflow: hidden;
}

.avatar.tiny {
  width: 24px;
  height: 24px;
  font-size: 0.78rem;
}

.avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.avatar img[hidden],
.profile-avatar img[hidden] {
  display: none;
}

.file-table {
  overflow: hidden;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.file-table-head,
.file-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(170px, 1fr) 120px;
  padding: 12px 14px;
}

.file-table-head {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.file-row {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.file-row:last-child {
  border-bottom: 0;
}

.file-row span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-search-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--muted);
}

.file-search-empty[hidden] {
  display: none;
}

.readme {
  margin-top: 16px;
  padding: 18px;
  box-shadow: none;
}

.readme h2,
.panel h1,
.panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.file-tree-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: calc(100vh - 110px);
  overflow: hidden;
}

.source-file-layout {
  gap: 0;
  width: 100%;
  margin-inline: 0;
}

.source-file-tree {
  top: 92px;
  min-height: calc(100vh - 120px);
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: rgba(12, 16, 19, 0.72);
  box-shadow: none;
}

.file-tree-head,
.file-pathbar,
.file-card-head,
.file-meta-line,
.file-actions,
.file-tabs,
.file-branch-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-tree-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.tree-branch {
  justify-content: space-between;
  min-width: 0;
}

.file-tree-head,
.file-pathbar,
.file-card-head {
  justify-content: space-between;
}

.file-tree-head a,
.file-pathcrumb a,
.file-tabs a {
  color: var(--cyan);
}

.profile-filter.compact {
  margin-bottom: 0;
}

.file-tree-list {
  display: grid;
  gap: 2px;
  overflow: auto;
  padding-right: 2px;
}

.file-tree-list a {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 8px 0 calc(8px + var(--indent, 0px));
  border-radius: var(--radius);
  color: var(--soft);
}

.file-tree-list a:hover,
.file-tree-list a.active {
  background: rgba(71, 217, 130, 0.1);
  color: var(--text);
}

.file-tree-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-ext-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--language-color);
}

.file-view-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.source-file-main {
  padding-left: 16px;
}

.source-file-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 8px;
}

.file-pathbar {
  padding: 12px 14px;
}

.file-pathcrumb {
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-branch-badge {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.file-commit-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.source-commit-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 11px 12px;
}

.file-card {
  padding: 0;
  overflow: hidden;
}

.source-file-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 16, 19, 0.86);
  box-shadow: none;
}

.file-card-head {
  align-items: flex-start;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.file-card-head h1 {
  margin: 0 0 8px;
}

.file-meta-line {
  flex-wrap: wrap;
  color: var(--muted);
}

.language-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--language-color);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.file-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.file-tabs {
  padding: 10px 14px 0;
  border-bottom: 1px solid var(--line);
}

.source-file-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.source-file-toolbar .file-tabs {
  padding: 0;
  border-bottom: 0;
}

.file-tabs a {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
}

.file-tabs a.active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.file-markdown {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.source-wrap {
  overflow: auto;
  background: rgba(8, 12, 17, 0.9);
}

.source-secondary {
  border-top: 1px solid var(--line);
}

.code-table {
  display: grid;
  min-width: 0;
  width: 100%;
  padding: 8px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}

.code-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  color: var(--soft);
}

.code-line:target,
.code-line:hover {
  background: rgba(71, 217, 130, 0.08);
}

.code-line-number {
  user-select: none;
  padding: 0 14px;
  text-align: right;
  color: var(--muted);
}

.code-line code {
  padding: 0 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tok-comment {
  color: #8b949e;
}

.tok-keyword {
  color: #ff7b72;
}

.tok-string {
  color: #d2a8ff;
}

.tok-number,
.tok-constant {
  color: #79c0ff;
}

.icon-only {
  width: var(--control-height);
  padding: 0;
}

.mini-icon {
  width: 32px;
  min-height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.visually-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: pre;
}

.repo-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.repo-side section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.repo-side section:last-child {
  border-bottom: 0;
}

.mini-row {
  display: block;
  padding: 11px 12px;
  margin-bottom: 8px;
}

.dashboard-welcome {
  margin: -4px 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-welcome strong {
  color: var(--text);
}

.mini-row form,
form.mini-row {
  display: grid;
  gap: 8px;
}

.clone-box {
  display: grid;
  gap: 8px;
}

.commit-list {
  display: grid;
  gap: 8px;
}

.commit-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.commit-row small {
  display: block;
  color: var(--muted);
}

.commit-detail {
  margin-bottom: 14px;
}

.commit-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.commit-detail-head h1 {
  font-size: 1.55rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.commit-facts {
  margin-top: 14px;
  color: var(--muted);
}

.changed-file-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.changed-file-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.diff-block {
  max-height: 70vh;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.repo-settings-grid,
.insights-layout,
.security-layout {
  display: grid;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

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

.repo-settings-grid > .panel,
.insights-layout > .panel,
.insights-side-stack,
.insights-side-stack > .panel,
.security-layout > .panel {
  min-width: 0;
}

.repo-danger-zone {
  margin-bottom: 14px;
}

.insights-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.detailed-insights {
  grid-template-columns: 224px minmax(0, 1fr);
}

.insights-nav {
  position: sticky;
  top: 18px;
  align-content: start;
}

.insights-nav h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.insights-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--soft);
}

.insights-nav a.active,
.insights-nav a:hover {
  background: rgba(71, 217, 130, 0.1);
  color: var(--text);
}

.insights-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.insights-main > .panel {
  min-width: 0;
}

.insights-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}

.insights-metrics div {
  min-height: 76px;
  padding: 12px;
}

.insights-metrics strong {
  font-size: 1.65rem;
}

.insight-list {
  display: grid;
  gap: 8px;
}

.insight-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.insight-row > span:nth-child(2),
.insight-row strong,
.insight-row small {
  min-width: 0;
}

.insight-row strong,
.insight-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-row small {
  margin-top: 2px;
  color: var(--muted);
}

.insight-row .avatar.small {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

.insight-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

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

.insight-columns > section {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.insight-columns h3,
.insight-main h3 {
  margin: 0;
  font-size: 1rem;
}

.traffic-bars {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(14, minmax(18px, 1fr));
  align-items: end;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  overflow-x: auto;
}

.traffic-bars span {
  min-width: 18px;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
}

.traffic-bars i {
  width: 100%;
  min-height: 4px;
  align-self: end;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), #1f9cf0);
}

.traffic-bars small {
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
  white-space: nowrap;
}

.commit-bars i {
  background: linear-gradient(180deg, #9f8cff, var(--accent));
}

.insight-table {
  display: grid;
  gap: 8px;
}

.insight-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.insight-table.compact > div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.insight-table strong,
.insight-table span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-table span {
  color: var(--muted);
  font-size: 0.85rem;
}

.code-frequency-row {
  display: grid;
  grid-template-columns: minmax(88px, 140px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.code-frequency-row > span {
  min-width: 0;
}

.code-frequency-row strong,
.code-frequency-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-frequency-row small {
  color: var(--muted);
}

.frequency-track {
  display: grid;
  gap: 4px;
}

.frequency-track i {
  display: block;
  height: 7px;
  border-radius: 999px;
}

.frequency-track .additions {
  background: #36d576;
}

.frequency-track .deletions {
  background: #ff6b6b;
}

.network-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.network-line span {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  overflow-wrap: anywhere;
}

.insights-side-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.insights-side-stack .repo-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.security-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.security-overview-panel,
.security-policy-panel {
  display: grid;
  align-content: start;
}

.security-policy-panel {
  gap: 12px;
}

.security-policy-form {
  display: grid;
  gap: 12px;
}

.security-policy-form textarea {
  min-height: 200px;
  max-height: 320px;
  resize: vertical;
}

.utility-grid {
  align-items: start;
}

.collaborator-row {
  grid-template-columns: auto minmax(0, 1fr) 128px auto;
  align-items: center;
}

.settings-grid .panel,
.dashboard-grid .panel,
.repo-layout .panel {
  min-width: 0;
}

.settings-grid form,
.settings-grid section > form,
.repo-settings-grid form,
.repo-settings-grid section > form,
.security-policy-form {
  display: grid;
  gap: 12px;
}

.settings-grid label,
.repo-settings-grid label,
.security-policy-form label {
  margin-bottom: 0;
}

.settings-grid input,
.settings-grid select,
.settings-grid textarea,
.repo-settings-grid input,
.repo-settings-grid select,
.repo-settings-grid textarea,
.security-policy-form textarea,
.collaborator-row select,
.inline-actions .button {
  min-height: var(--control-height);
}

.inline-actions {
  gap: 6px;
  justify-content: flex-end;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metrics-grid div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.metrics-grid strong {
  font-size: 2rem;
}

.metrics-grid span {
  color: var(--muted);
}

.repo-detail-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.repo-detail-list a,
.side-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.repo-detail-list a {
  justify-content: flex-start;
  color: var(--soft);
}

.repo-detail-list strong {
  min-width: 2ch;
  text-align: right;
}

.side-head {
  justify-content: space-between;
  min-width: 0;
}

.side-head a {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 0.9rem;
}

.compact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin: 12px 0;
}

.compact-form label {
  margin: 0;
}

.compact-form .button {
  width: 100%;
}

.release-list {
  display: grid;
  gap: 14px;
}

.release-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.release-marker {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(71, 217, 130, 0.45);
  color: var(--green);
  background: rgba(71, 217, 130, 0.1);
}

.check-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.check-row input {
  width: auto;
}

.commit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.diff-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-block: 16px;
}

.diff-toolbar h2,
.diff-toolbar p {
  margin-bottom: 4px;
}

.diff-added {
  color: #6ee79d;
  font-weight: 800;
}

.diff-deleted {
  color: #ff8d87;
  font-weight: 800;
}

.diff-filter {
  min-width: 240px;
  width: min(360px, 100%);
}

.diff-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.diff-file-tree {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 8px;
}

.diff-file-tree a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--soft);
  overflow-wrap: anywhere;
}

.diff-file-tree a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.diff-files {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.diff-file {
  padding: 0;
  overflow: hidden;
}

.diff-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.diff-file-head h2 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.diff-table {
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.diff-line,
.diff-hunk {
  display: grid;
  grid-template-columns: 58px 58px minmax(520px, 1fr);
}

.diff-line code,
.diff-hunk code {
  display: block;
  min-height: 26px;
  padding: 2px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: pre;
}

.line-no {
  display: grid;
  place-items: center;
  min-height: 26px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  user-select: none;
}

.diff-line.addition {
  background: rgba(46, 160, 67, 0.16);
}

.diff-line.addition .line-no {
  background: rgba(46, 160, 67, 0.12);
}

.diff-line.deletion {
  background: rgba(248, 81, 73, 0.16);
}

.diff-line.deletion .line-no {
  background: rgba(248, 81, 73, 0.12);
}

.diff-hunk {
  color: #9fc6ff;
  background: rgba(56, 139, 253, 0.16);
}

.diff-marker {
  display: inline-block;
  width: 18px;
  color: var(--muted);
}

button.copied::after {
  content: " copied";
}

.markdown {
  color: var(--soft);
  line-height: 1.65;
}

.markdown h1,
.markdown h2,
.markdown h3 {
  color: var(--text);
  margin-top: 18px;
}

.markdown code,
code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.code-block {
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #060807;
  color: #d9efe1;
  line-height: 1.55;
}

.action-log {
  max-height: 64vh;
}

.bad-log {
  border-color: rgba(255, 113, 107, 0.42);
}

.auth-wrap,
.gate-screen {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.form-panel,
.gate-panel {
  width: min(480px, 100%);
}

.wide-form {
  width: min(640px, 100%);
}

.gate-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  text-align: center;
}

.gate-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(71, 217, 130, 0.12);
  color: var(--green);
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  margin-bottom: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(3, 5, 4, 0.82);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

select {
  appearance: none;
  padding-right: 42px;
  background-color: rgba(3, 5, 4, 0.82);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--soft) 50%),
    linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px;
}

input[type="color"] {
  min-height: var(--control-height);
  padding: 4px;
}

input[type="checkbox"] {
  appearance: none;
  display: grid;
  place-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input[type="checkbox"]::after {
  content: "";
  width: 8px;
  height: 5px;
  margin-top: -1px;
  border-left: 2px solid #06110a;
  border-bottom: 2px solid #06110a;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
}

input[type="checkbox"]:checked {
  border-color: rgba(71, 217, 130, 0.95);
  background: linear-gradient(180deg, var(--green), var(--green-strong));
}

input[type="checkbox"]:checked::after {
  transform: rotate(-45deg) scale(1);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(71, 217, 130, 0.72);
  box-shadow: 0 0 0 3px rgba(71, 217, 130, 0.1);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 8px 0 18px;
}

.segmented label {
  position: relative;
  margin: 0;
}

.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.segmented input:checked + span {
  border-color: rgba(71, 217, 130, 0.72);
  background: rgba(71, 217, 130, 0.12);
}

.form-error {
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 113, 107, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 113, 107, 0.1);
  color: #ffe0df;
}

.form-note,
.empty {
  color: var(--muted);
}

.button-row {
  gap: 10px;
  flex-wrap: wrap;
}

.editor-panel {
  display: grid;
}

.new-repo-shell {
  width: min(860px, 100%);
  margin-inline: auto;
}

.new-repo-form {
  display: grid;
  gap: 18px;
}

.new-repo-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.repo-create-section {
  display: grid;
  gap: 12px;
}

.repo-create-section h2 {
  margin: 0;
}

.owner-name-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.repo-slash {
  min-height: var(--control-height);
}

.owner-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 700;
}

.repo-slash {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.3rem;
}

.select-like {
  width: 100%;
  justify-content: space-between;
}

.native-select-fallback {
  display: none;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-button {
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(3, 5, 4, 0.82);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.custom-select.compact {
  min-width: 112px;
}

.custom-select.compact .custom-select-button {
  min-height: 34px;
  gap: 8px;
  padding: 0 10px;
}

.custom-select.compact .custom-select-menu {
  min-width: 140px;
}

.custom-select-button:hover,
.custom-select.open .custom-select-button {
  border-color: rgba(71, 217, 130, 0.72);
  background: rgba(8, 14, 11, 0.94);
}

.custom-select-button .icon {
  width: 16px;
  height: 16px;
  color: var(--soft);
  transition: transform 140ms ease;
}

.custom-select.open .custom-select-button .icon {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 3px;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(71, 217, 130, 0.42);
  border-radius: var(--radius);
  background: rgba(18, 24, 22, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  scrollbar-color: rgba(255, 255, 255, 0.88) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.custom-select-menu::-webkit-scrollbar {
  width: 8px;
}

.custom-select-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.custom-select-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.custom-select-menu button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--soft);
  text-align: left;
  cursor: pointer;
}

.custom-select-menu button:hover,
.custom-select-menu button.active {
  background: rgba(71, 217, 130, 0.13);
  color: var(--text);
}

.custom-select-menu button .select-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-select-menu button .icon,
.custom-select-menu button .select-check .icon {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.avatar.small {
  width: 24px;
  height: 24px;
  font-size: 0.78rem;
}

.choice-card {
  display: grid;
  grid-template-columns: 16px 22px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  row-gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.choice-card input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  min-width: 14px;
  margin: 4px 0 0;
  padding: 0;
  justify-self: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.choice-card input[type="radio"]:checked {
  border-color: var(--cyan);
  background:
    radial-gradient(circle, var(--cyan) 0 4px, transparent 4.5px),
    rgba(107, 214, 255, 0.12);
}

.choice-card > span:first-of-type {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.choice-card > span:first-of-type .icon {
  width: 18px;
  height: 18px;
}

.choice-card > span:last-child {
  min-width: 0;
}

.choice-card small,
.init-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.label-list {
  display: grid;
  gap: 8px;
}

.label-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.label-swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--label-color);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.label-row strong {
  display: block;
  overflow-wrap: anywhere;
}

.label-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.milestone-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.project-shell {
  display: grid;
  gap: 14px;
}

.project-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.project-column {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

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

.project-column-head h2 {
  margin: 0;
}

.project-card-list {
  display: grid;
  gap: 8px;
}

.project-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 5, 4, 0.5);
}

.project-card:hover {
  border-color: rgba(71, 217, 130, 0.48);
  background: rgba(71, 217, 130, 0.06);
}

.project-card strong,
.project-card small {
  display: block;
  overflow-wrap: anywhere;
}

.project-card small {
  margin-top: 2px;
  color: var(--muted);
}

.wiki-panel,
.security-policy {
  min-width: 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.security-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.security-grid strong,
.security-grid small {
  display: block;
  overflow-wrap: anywhere;
}

.security-grid small {
  margin-top: 4px;
  color: var(--muted);
}

.init-option {
  align-items: start;
  padding: 12px 0;
}

.create-repo-actions {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.create-repo-actions .button {
  min-width: 0;
  flex: 1 1 0;
  min-height: 44px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.create-repo-actions .button .icon {
  flex: 0 0 auto;
}

.quick-setup {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}

.quick-setup > *,
.quick-command-grid,
.quick-command-grid > section,
.quick-clone {
  min-width: 0;
}

.quick-setup h1 {
  margin-bottom: 4px;
}

.quick-setup h2,
.quick-setup p {
  overflow-wrap: anywhere;
}

.quick-clone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.quick-clone input {
  min-width: 0;
}

.quick-clone span {
  min-height: var(--control-height);
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.quick-actions,
.editor-top-actions,
.editor-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-command-grid .code-block {
  max-width: 100%;
  min-width: 0;
}

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

.source-editor {
  display: grid;
  gap: 12px;
}

.source-editor-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}

.editor-path-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--muted);
}

.editor-path-title a {
  color: var(--cyan);
}

.editor-path-title input {
  width: min(280px, 45vw);
  min-height: 34px;
  padding-block: 7px;
  color: var(--text);
  font-weight: 700;
}

.source-editor-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(8, 12, 17, 0.9);
}

.source-editor-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.source-editor-toolbar .editor-tabs {
  padding: 0;
  border-bottom: 0;
}

.template-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
  width: min(320px, 100%);
  justify-self: start;
}

.template-picker > span,
.editor-controls label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.template-picker .custom-select {
  min-width: 220px;
}

.editor-controls .custom-select {
  width: 112px;
}

.editor-controls label:last-child .custom-select {
  width: 128px;
}

.editor-controls {
  justify-content: flex-end;
}

.editor-controls label {
  margin: 0;
}

.source-commit-strip {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.source-commit-strip .check-row {
  padding: 8px 0 0;
}

.edit-file-main,
.commit-box {
  display: grid;
  gap: 12px;
}

.edit-file-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.edit-file-head h1 {
  margin-bottom: 4px;
  font-size: 1.45rem;
}

.edit-pathbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.edit-pathbar input {
  min-height: 36px;
  padding-block: 7px;
}

.code-editor-shell {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--language-color, var(--green)) 42%, var(--line-strong));
  border-radius: var(--radius);
  background: linear-gradient(90deg, color-mix(in srgb, var(--language-color, var(--green)) 10%, transparent), transparent 24%), rgba(3, 5, 4, 0.86);
}

.editor-gutter {
  display: grid;
  align-content: start;
  padding: 12px 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: color-mix(in srgb, var(--language-color, var(--green)) 8%, rgba(255, 255, 255, 0.025));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: right;
  user-select: none;
}

.editor-gutter span {
  padding: 0 12px;
}

.code-editor-shell textarea {
  min-height: 54vh;
  resize: vertical;
  border: 0;
  border-radius: 0;
  padding: 12px 14px;
  background: transparent;
  box-shadow: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre;
}

.editor-statusbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.88rem;
}

.editor-statusbar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.editor-preview {
  min-height: 360px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.commit-box {
  position: sticky;
  top: 90px;
}

.commit-box h2 {
  margin-bottom: 0;
}

.commit-target {
  display: grid;
  gap: 8px;
}

.commit-target .check-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.issue-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px;
  margin-bottom: 10px;
}

.status-open,
.ok {
  color: var(--green);
}

.status-closed,
.status-merged {
  color: var(--violet);
}

.status-conflict,
.bad {
  color: var(--red);
}

.thread {
  display: grid;
  gap: 14px;
}

.thread-head {
  align-items: flex-start;
}

.thread-head h1 span {
  color: var(--muted);
  font-weight: 500;
}

.comment,
.comment-form {
  padding: 16px;
  box-shadow: none;
}

.comment-meta {
  color: var(--muted);
  margin-bottom: 12px;
}

.run-meta {
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  margin: 0 0 16px;
}

.run-meta span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.action-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  width: min(560px, 100%);
  margin: 10vh auto 0;
}

.tracker-shell,
.timeline,
.run-list,
.workflow-side,
.action-detail-panel,
.action-runs-panel {
  display: grid;
  gap: 10px;
}

.tracker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.tracker-title {
  display: grid;
  gap: 2px;
}

.tracker-title h1 {
  margin: 0;
  font-size: 1.45rem;
}

.tracker-title p {
  overflow-wrap: anywhere;
}

.tracker-toolbar.compact {
  grid-template-columns: minmax(0, 1fr);
}

.bulk-action-form {
  display: grid;
  gap: 10px;
}

.action-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.bulk-check,
.bulk-run-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--soft);
  cursor: pointer;
}

.bulk-check input,
.bulk-run-check input {
  appearance: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(3, 5, 4, 0.72);
  cursor: pointer;
}

.bulk-check span,
.bulk-run-check span {
  display: none;
}

.bulk-check input::after,
.bulk-run-check input::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #07120b;
  border-bottom: 2px solid #07120b;
  opacity: 0;
  transform: rotate(-45deg) translateY(-1px);
}

.bulk-check input:checked,
.bulk-run-check input:checked {
  border-color: rgba(71, 217, 130, 0.92);
  background: var(--green);
}

.bulk-check input:checked::after,
.bulk-run-check input:checked::after {
  opacity: 1;
}

.tracker-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: var(--control-height);
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(3, 5, 4, 0.82);
}

.tracker-search input {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.tracker-buttons,
.tracker-filters,
.state-tabs,
.subtabs,
.compare-selectors {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tracker-list {
  padding: 0;
  overflow: hidden;
  width: 100%;
}

.tracker-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.state-tabs a,
.subtabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.state-tabs a.active,
.subtabs a.active {
  color: var(--text);
  font-weight: 800;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 2px;
}

.tracker-row,
.run-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.run-row.selectable {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.run-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: inherit;
}

.run-row-main:hover strong {
  color: var(--green);
}

.tracker-row:last-child,
.run-row:last-child {
  border-bottom: 0;
}

.tracker-row:hover,
.run-row:hover {
  background: rgba(71, 217, 130, 0.055);
}

.tracker-row strong,
.run-row strong {
  display: block;
  overflow-wrap: anywhere;
}

.tracker-row small,
.run-row small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tracker-row-meta {
  display: flex;
  justify-content: flex-end;
}

.tracker-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 160px;
  padding: 18px;
  text-align: center;
}

.tracker-empty > * {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tracker-empty .icon {
  width: 34px;
  height: 34px;
  color: var(--muted);
}

.tracker-empty h2,
.tracker-empty .empty {
  margin: 0;
}

.tracker-empty h2 + .empty {
  margin-top: 4px;
}

.danger-zone {
  display: grid;
  gap: 14px;
  border-color: rgba(255, 113, 107, 0.42);
  background: linear-gradient(180deg, rgba(255, 113, 107, 0.07), rgba(255, 255, 255, 0.025));
}

.danger-zone h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffd8d6;
}

.danger-zone form {
  display: grid;
  gap: 12px;
}

.danger-zone .button {
  justify-content: center;
}

.topbar,
.repo-hero,
.repo-tabs,
.panel,
.file-card,
.toolbar,
.tracker-list,
.source-file-tree,
.source-file-card,
.button,
.icon-button,
.repo-row,
.file-row,
.tracker-row,
.run-row,
.custom-select-button,
.custom-select-menu button,
.choice-card,
.pin-card,
.pinned-repo,
.segmented span,
input,
textarea,
select {
  transition:
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease,
    color 170ms ease,
    opacity 170ms ease,
    filter 170ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .topbar,
  .repo-hero,
  .repo-tabs,
  .panel,
  .file-card,
  .toolbar,
  .tracker-list,
  .source-file-tree,
  .source-file-card,
  .button,
  .icon-button,
  .repo-row,
  .file-row,
  .tracker-row,
  .run-row,
  .custom-select-button,
  .custom-select-menu,
  .custom-select-menu button,
  .choice-card,
  .segmented span,
  input,
  textarea,
  select {
    transition:
      border-color 170ms ease,
      background-color 170ms ease,
      box-shadow 170ms ease,
      color 170ms ease,
      opacity 170ms ease,
      transform 170ms ease,
      filter 170ms ease;
  }

  .repo-hero,
  .repo-tabs,
  .panel,
  .file-card,
  .tracker-shell,
  .actions-layout,
  .new-repo-form,
  .settings-grid,
  .dashboard-grid {
    animation: calm-rise 240ms ease both;
  }

  .button:hover:not(:disabled),
  .icon-button:hover:not(:disabled),
  .repo-tabs a:hover,
  .custom-select-button:hover {
    transform: translateY(-1px);
  }

  .button:active:not(:disabled),
  .icon-button:active:not(:disabled),
  .repo-tabs a:active,
  .custom-select-button:active {
    transform: translateY(0) scale(0.985);
  }

  .panel:hover,
  .file-card:hover,
  .choice-card:hover {
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  }

  .custom-select-menu {
    animation: menu-bloom 150ms ease both;
    transform-origin: top center;
  }

  .notice {
    animation: calm-rise 180ms ease both;
  }

  @keyframes calm-rise {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes menu-bloom {
    from {
      opacity: 0;
      transform: translateY(-4px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

.detail-title {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-title h1 {
  margin-bottom: 0;
}

.detail-title h1 span {
  color: var(--muted);
  font-weight: 500;
}

.detail-title p {
  color: var(--muted);
}

.detail-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: capitalize;
}

.detail-state.open {
  color: #06110a;
  background: var(--green);
}

.detail-state.closed,
.detail-state.merged {
  color: #12091f;
  background: var(--violet);
}

.detail-state.conflict {
  color: #1a0606;
  background: var(--red);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline-avatar {
  margin-top: 6px;
}

.meta-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
}

.meta-sidebar section {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.meta-sidebar section:last-child {
  border-bottom: 0;
}

.meta-sidebar h2,
.meta-sidebar h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

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

.compose-main {
  display: grid;
  gap: 12px;
}

.markdown-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}

.markdown-editor textarea {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.markdown-preview {
  min-height: 150px;
  padding: 12px;
  background: rgba(3, 5, 4, 0.28);
}

.editor-tabs,
.formatting-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.editor-tabs button,
.formatting-toolbar button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}

.editor-tabs button.active,
.formatting-toolbar button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button-row.end {
  justify-content: flex-end;
}

.subtabs {
  min-height: 44px;
  margin: 8px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.merge-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(71, 217, 130, 0.4);
  border-radius: var(--radius);
  background: rgba(71, 217, 130, 0.08);
}

.merge-box.conflict {
  border-color: rgba(255, 113, 107, 0.45);
  background: rgba(255, 113, 107, 0.08);
}

.merge-box.merged {
  border-color: rgba(181, 140, 255, 0.45);
  background: rgba(181, 140, 255, 0.08);
}

.merge-box h2 {
  margin-bottom: 6px;
}

.compact-panel {
  padding: 14px;
}

.compare-box {
  display: grid;
  gap: 14px;
}

.compare-selectors {
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.compare-selectors label {
  margin: 0;
  min-width: 180px;
}

.compare-arrow {
  display: grid;
  place-items: center;
  min-height: 40px;
  color: var(--muted);
}

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

.action-runs-panel h1 {
  font-size: 1.45rem;
}

.workflow-side {
  align-content: start;
}

.workflow-side a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--soft);
}

.workflow-side a.active,
.workflow-side a:hover {
  background: rgba(71, 217, 130, 0.1);
  color: var(--text);
}

.job-card {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.job-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  border-top: 1px solid var(--line);
}

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

.profile-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: start;
}

.profile-settings-form,
.profile-preview-panel {
  min-width: 0;
}

.profile-settings-form {
  display: grid;
  gap: 12px;
}

.profile-social-settings,
.profile-save-row {
  display: grid;
  gap: 10px;
}

.profile-social-settings {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-save-row {
  justify-items: center;
  padding-top: 4px;
}

.profile-save-row .button {
  width: auto;
  min-width: 156px;
}

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

.profile-settings-form label {
  margin: 0;
}

.profile-settings-form input,
.profile-settings-form textarea {
  min-height: var(--control-height);
}

.field-label {
  display: block;
  color: var(--text);
  font-weight: 800;
}

.profile-picture-editor {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-picture-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.profile-picture-preview {
  width: 82px;
  height: 82px;
  font-size: 2rem;
}

.profile-picture-controls {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.profile-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-preview-panel {
  display: grid;
  gap: 8px;
  align-content: start;
}

.preview-avatar {
  width: 148px;
  margin-inline: auto;
}

.pin-picker {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.pin-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pin-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.pin-card:hover {
  border-color: rgba(71, 217, 130, 0.5);
  background: rgba(71, 217, 130, 0.06);
}

.pin-card input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(3, 5, 4, 0.72);
  cursor: pointer;
}

.pin-card input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #07120b;
  border-bottom: 2px solid #07120b;
  opacity: 0;
  transform: rotate(-45deg) translateY(-1px);
}

.pin-card input[type="checkbox"]:checked {
  border-color: rgba(71, 217, 130, 0.92);
  background: var(--green);
}

.pin-card input[type="checkbox"]:checked::after {
  opacity: 1;
}

.pin-card input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(107, 214, 255, 0.72);
  outline-offset: 2px;
}

.pin-card strong,
.pin-card small {
  display: block;
  overflow-wrap: anywhere;
}

.pin-card small {
  margin-top: 2px;
  color: var(--muted);
}

.profile-sidebar,
.profile-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-sidebar {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.profile-avatar {
  width: min(100%, 220px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(71, 217, 130, 0.26), rgba(107, 214, 255, 0.18));
  color: #fafffb;
  font-size: 5rem;
  font-weight: 900;
  overflow: hidden;
}

.profile-avatar.profile-picture-preview {
  width: 82px;
  height: 82px;
  font-size: 2rem;
  justify-self: start;
}

.profile-avatar.preview-avatar {
  width: 148px;
  height: auto;
}

.profile-sidebar h1 {
  margin: 8px 0 0;
}

.profile-username {
  color: var(--muted);
  font-size: 1.15rem;
}

.profile-bio {
  color: var(--soft);
  line-height: 1.55;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(71, 217, 130, 0.38);
  border-radius: 999px;
  color: #dfffe8;
  background: rgba(71, 217, 130, 0.1);
  overflow-wrap: anywhere;
}

.profile-status .icon {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.profile-stats,
.profile-meta,
.activity-list,
.profile-main {
  display: grid;
  gap: 10px;
}

.profile-stats,
.profile-meta {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-stats span,
.profile-meta span,
.profile-tabs a,
.activity-item,
.pinned-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-meta span span,
.profile-meta a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-meta,
.profile-stats span {
  color: var(--muted);
}

.profile-tabs {
  display: flex;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.profile-tabs a {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--soft);
  white-space: nowrap;
}

.profile-tabs a.active,
.profile-tabs a:hover {
  background: rgba(71, 217, 130, 0.12);
  color: var(--text);
}

.profile-tabs span {
  color: var(--muted);
}

.profile-section {
  padding: 16px;
}

.pinned-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pinned-repo {
  display: grid;
  gap: 10px;
  min-height: 124px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.pinned-repo:hover,
.activity-item:hover {
  background: rgba(71, 217, 130, 0.055);
}

.pinned-title {
  min-width: 0;
  justify-content: space-between;
}

.pinned-title strong,
.activity-item strong {
  overflow-wrap: anywhere;
}

.pinned-repo p {
  color: var(--muted);
  line-height: 1.45;
}

.profile-filter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(3, 5, 4, 0.82);
}

.profile-filter input {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.activity-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.activity-item small {
  color: var(--muted);
}

.compact-empty {
  grid-column: 1 / -1;
  min-height: 96px;
}

.dialog-backdrop[hidden] {
  display: none;
}

.dialog-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.dialog-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(15, 20, 18, 0.98);
  box-shadow: var(--shadow);
}

.dialog-panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.dialog-panel p {
  margin: 0;
  color: var(--soft);
  line-height: 1.5;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  body {
    background-size: auto;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 18px;
    position: static;
    width: min(100% - 20px, 1120px);
    margin-top: 10px;
    gap: 10px;
    min-height: 0;
    padding: 10px;
  }

  .topnav {
    grid-column: auto;
    justify-content: flex-start;
    order: initial;
    overflow-x: auto;
    padding-top: 0;
  }

  .top-actions {
    min-width: 0;
  }

  .user-pill span {
    max-width: 104px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-shell {
    width: min(100% - 20px, 1120px);
    margin-top: 14px;
  }

  .split-layout,
  .dashboard-grid,
  .repo-layout,
  .file-view-layout,
  .edit-file-layout,
  .settings-grid,
  .repo-settings-grid,
  .insights-layout,
  .security-layout,
  .conversation-layout,
  .compose-layout,
  .actions-layout,
  .profile-layout,
  .profile-settings-layout,
  .project-board {
    grid-template-columns: 1fr;
  }

  .detailed-insights {
    grid-template-columns: 1fr;
  }

  .insights-nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px;
  }

  .insights-nav h2 {
    display: none;
  }

  .insights-nav a {
    flex: 0 0 auto;
  }

  .insights-metrics,
  .insight-columns,
  .insight-columns.three {
    grid-template-columns: 1fr;
  }

  .traffic-bars {
    grid-template-columns: repeat(14, minmax(24px, 1fr));
  }

  .code-frequency-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .insight-table > div,
  .insight-table.compact > div {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dashboard-grid {
    height: auto;
  }

  .dashboard-grid > .main-panel,
  .dashboard-grid > .side-panel {
    height: min(560px, 72vh);
  }

  .file-tree-sidebar {
    position: static;
    max-height: 320px;
  }

  .source-file-layout {
    width: 100%;
    margin-inline: 0;
    gap: 12px;
  }

  .source-file-tree {
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .source-file-main {
    padding-left: 0;
  }

  .source-file-toolbar,
  .source-editor-toolbar,
  .source-commit-strip,
  .quick-command-grid,
  .owner-name-grid {
    grid-template-columns: 1fr;
  }

  .source-file-title,
  .source-editor-title,
  .editor-path-title {
    flex-wrap: wrap;
  }

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

  .editor-path-title input {
    width: 100%;
    flex: 1 1 220px;
  }

  .repo-slash {
    display: none;
  }

  .file-card-head,
  .file-pathbar,
  .edit-file-head {
    flex-direction: column;
    align-items: stretch;
  }

  .commit-box {
    position: static;
  }

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

  .profile-avatar {
    width: 132px;
    font-size: 3rem;
  }

  .profile-avatar.profile-picture-preview {
    width: 82px;
    height: 82px;
    font-size: 2rem;
  }

  .profile-avatar.preview-avatar {
    width: 132px;
    height: auto;
  }

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

  .profile-form-grid,
  .profile-picture-main,
  .pin-picker-grid {
    grid-template-columns: 1fr;
  }

  .commit-summary,
  .commit-row,
  .collaborator-row {
    grid-template-columns: 1fr;
  }

  .commit-summary {
    align-items: start;
  }

  .commit-message,
  .commit-count {
    white-space: normal;
    overflow-wrap: anywhere;
  }

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

  .intro-panel {
    min-height: auto;
    padding: 28px;
  }

  .intro-panel h1 {
    font-size: 3rem;
  }

  .repo-hero,
  .panel-head,
  .thread-head,
  .commit-detail-head,
  .dashboard-welcome-panel,
  .diff-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .home-panel-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .home-panel-head h2 {
    min-width: 0;
  }

  .repo-actions {
    justify-content: flex-start;
    display: flex;
    flex-wrap: wrap;
  }

  .repo-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .repo-tabs a {
    flex: 0 0 auto;
  }

  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
  }

  .toolbar-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .toolbar-group > * {
    flex: 0 0 auto;
  }

  .repo-code-toolbar,
  .repo-code-toolbar > .toolbar-group {
    overflow: visible;
  }

  .repo-code-toolbar > .toolbar-group {
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .file-table-head,
  .file-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .file-table-head span:nth-child(2),
  .file-row small:nth-child(2) {
    display: none;
  }

  .file-row small {
    justify-self: end;
  }

  .repo-row,
  .issue-row,
  .tracker-row,
  .run-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .run-row.selectable {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .repo-row .badge,
  .repo-meta,
  .issue-row .badge,
  .tracker-row-meta,
  .run-row .badge {
    grid-column: 2;
    justify-self: start;
  }

  .run-row.selectable .run-row-main,
  .run-row.selectable .badge {
    grid-column: 3;
  }

  .action-bulk-bar {
    flex-wrap: wrap;
  }

  .tracker-toolbar,
  .tracker-list-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .tracker-buttons,
  .tracker-filters,
  .state-tabs,
  .subtabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .tracker-buttons > *,
  .tracker-filters > *,
  .state-tabs > *,
  .subtabs > * {
    flex: 0 0 auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-avatar {
    display: none;
  }

  .merge-box,
  .compare-selectors {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compare-selectors label {
    min-width: 0;
  }

  .workflow-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
  }

  .workflow-side h2 {
    grid-column: 1 / -1;
  }

  .diff-layout {
    grid-template-columns: 1fr;
  }

  .diff-file-tree {
    position: static;
  }

  .diff-filter {
    width: 100%;
    min-width: 0;
  }

  .diff-line,
  .diff-hunk {
    grid-template-columns: 44px 44px minmax(360px, 1fr);
  }

  .code-line {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .code-table {
    min-width: 0;
    width: 100%;
  }

  .code-line code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .code-editor-shell {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .compact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    align-items: center;
  }

  .brand {
    grid-column: 1 / -1;
    justify-content: center;
    padding-left: 0;
    text-align: center;
  }

  .topnav {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    min-width: 0;
    overflow: hidden;
  }

  .top-actions {
    gap: 6px;
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .topnav a {
    white-space: nowrap;
    padding-inline: 8px;
  }

  .top-actions .button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .breadcrumb {
    font-size: 1.05rem;
  }

  .app-shell {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }

  .repo-hero,
  .repo-tabs,
  .panel,
  .readme {
    max-width: 100%;
    padding: 12px;
  }

  .repo-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 6px;
    overflow-x: visible;
    overflow-y: visible;
    scrollbar-width: none;
  }

  .repo-tabs a {
    justify-content: center;
    width: 100%;
    min-width: 0;
    flex: initial;
    white-space: nowrap;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1;
    gap: 4px;
    padding-inline: 4px;
    overflow: hidden;
  }

  .repo-tabs .repo-tab-secondary {
    display: none;
  }

  .repo-tabs-more {
    display: block;
    position: relative;
    width: 100%;
    justify-self: stretch;
    z-index: 35;
  }

  .repo-tabs-more summary {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    justify-content: center;
    padding: 0;
    font-size: 0.84rem;
    line-height: 1;
  }

  .repo-tabs-more summary span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .repo-tabs-menu {
    right: 0;
    min-width: min(190px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .repo-tabs .repo-tabs-menu a {
    justify-content: flex-start;
    width: 100%;
    min-height: 36px;
    padding-inline: 10px;
    overflow: visible;
    text-align: left;
  }

  .repo-tabs .icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
  }

  .button,
  .button.mini {
    justify-content: center;
    min-height: 36px;
    padding-inline: 10px;
  }

  .app-shell > *,
  .repo-hero,
  .repo-tabs,
  .tracker-shell,
  .tracker-list,
  .edit-file-layout,
  .edit-file-main,
  .commit-box {
    min-width: 0;
  }

  .tracker-buttons,
  .tracker-filters,
  .state-tabs,
  .subtabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .tracker-buttons > *,
  .tracker-filters > *,
  .state-tabs > *,
  .subtabs > * {
    flex: 0 1 auto;
  }

  .tracker-search,
  .edit-pathbar,
  .edit-pathbar input,
  .code-editor-shell textarea {
    width: 100%;
    min-width: 0;
    overflow: auto;
  }

  .tracker-empty {
    padding: 22px 12px;
  }

  .tracker-empty .empty {
    max-width: 28ch;
    margin-inline: auto;
  }

  .repo-hero {
    gap: 10px;
  }

  .repo-hero.no-actions {
    padding-block: 10px;
  }

  .repo-hero > :first-child {
    justify-content: flex-start;
    min-height: 0;
    text-align: left;
    width: 100%;
  }

  .breadcrumb {
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
  }

  .repo-actions {
    width: 100%;
  }

  .repo-actions form,
  .repo-actions .button {
    flex: 1 1 0;
    min-width: 0;
  }

  .quick-setup {
    gap: 12px;
    overflow: hidden;
  }

  .quick-setup h1 {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .quick-setup h2 {
    font-size: 1rem;
    line-height: 1.35;
  }

  .quick-setup-head p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .quick-clone {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .quick-clone span,
  .quick-clone input,
  .quick-clone .button {
    width: 100%;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-command-grid {
    gap: 12px;
  }

  .quick-command-grid .code-block {
    max-width: 100%;
    overflow-x: auto;
    padding: 12px;
    font-size: 0.84rem;
  }

  .edit-file-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .edit-file-head .button {
    justify-self: start;
  }

  .tracker-row,
  .run-row {
    padding: 12px;
  }

  .detail-title {
    gap: 6px;
  }

  .comment,
  .comment-form {
    padding: 12px;
  }

  .workflow-side {
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .workflow-side a {
    justify-content: center;
    min-width: 0;
    text-align: center;
  }

  .file-table-head,
  .file-row {
    padding: 11px 10px;
  }

  .file-row {
    gap: 6px;
  }

  .diff-line,
  .diff-hunk {
    grid-template-columns: 38px 38px minmax(300px, 1fr);
  }

  .code-line {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .code-editor-shell {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .editor-gutter span {
    padding: 0 8px;
  }

  .line-no,
  .diff-line code,
  .diff-hunk code {
    min-height: 24px;
  }

  h1 {
    font-size: 1.55rem;
  }
}

@media (max-width: 360px) {
  .repo-tabs > a .repo-tab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .repo-tabs a {
    gap: 0;
  }
}

@media (max-width: 400px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .top-actions {
    grid-column: 2;
    grid-row: 2;
    order: initial;
  }

  .topnav {
    grid-column: 1;
    grid-row: 2;
    order: initial;
  }
}
