:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #667085;
  --line: #d8dee5;
  --paper: #fff;
  --background: #f4f6f7;
  --soft: #eef1f3;
  --accent: #0f766e;
  --accent-hover: #0b5f59;
  --accent-soft: #e6f4f2;
  --dark: #18212b;
  --dark-soft: #202b36;
  --dark-line: #2d3a47;
  --dark-muted: #a2afbc;
  --small: 12px;
  --body: 13px;
  --section: 15px;
  --title: 20px;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: var(--body);
  color: var(--ink);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.5;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 13px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
}
button:hover,
.button:hover {
  background: var(--soft);
  text-decoration: none;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.danger {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.danger:hover {
  background: #991b1b;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  background: var(--paper);
  color: var(--ink);
  line-height: 20px;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #a7b3bd;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
textarea {
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 500;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #14a399;
  outline-offset: 3px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 0;
  font-size: var(--title);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
h2 {
  font-size: var(--section);
  font-weight: 600;
}
pre,
code,
.mono {
  font-family: var(--mono);
}
pre {
  font-size: var(--small);
  line-height: 1.8;
}
.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  padding: 10px;
  background: white;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  min-height: 100dvh;
}
.sidebar {
  width: 232px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: #e8edf2;
}
.sidebar-brand {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 25px;
  height: 25px;
}
.sidebar-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  margin: 0 12px 12px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--dark-soft);
  color: var(--dark-muted);
}
.sidebar-search input {
  background: transparent;
  border: 0;
  padding: 6px 0;
  min-height: 32px;
  color: #e8edf2;
  font-size: var(--small);
}
.sidebar-search input::placeholder {
  color: var(--dark-muted);
  opacity: 1;
}
.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 24px;
}
.nav-label {
  padding: 16px 20px 6px;
  font-size: var(--small);
  color: var(--dark-muted);
  font-weight: 500;
}
.nav-item {
  min-height: 34px;
  margin: 2px 8px;
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c8d1da;
}
.nav-item > span:first-of-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-item:hover {
  background: var(--dark-soft);
  color: #fff;
  text-decoration: none;
}
.nav-item.selected {
  background: #24333f;
  box-shadow: inset 2px 0 0 #15958b;
  color: #fff;
}
.nav-item .icon {
  color: #9aa7b4;
}
.nav-item.selected .icon {
  color: #fff;
}
.current-repository {
  color: #fff;
}
.current-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #19a79a;
  flex-shrink: 0;
}
.nav-empty {
  padding: 0 20px;
  color: var(--dark-muted);
  font-size: var(--small);
}
.sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--dark-line);
}
.account-name {
  display: grid;
  min-width: 0;
  gap: 1px;
  font-size: var(--small);
}
.account-name strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.account-name span {
  color: var(--dark-muted);
}
.sidebar-account form {
  margin-left: auto;
}
.sidebar-account .icon-button,
.sidebar-brand .icon-button {
  color: var(--dark-muted);
}
.sidebar-account .icon-button:hover,
.sidebar-brand .icon-button:hover {
  background: var(--dark-soft);
  color: #fff;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--small);
  font-weight: 600;
  flex-shrink: 0;
}
.small-avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.app-main {
  margin-left: 232px;
  min-width: 0;
}
.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumb a:nth-of-type(2) {
  max-width: 30vw;
}
.breadcrumb > span {
  color: #b6c0ca;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  flex-shrink: 0;
}
.language-switch {
  color: var(--muted);
  font-size: var(--body);
}
.content {
  padding: 24px 28px 48px;
}
.page {
  max-width: 1240px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.detail-heading {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.detail-heading > div {
  min-width: 0;
}
.page-context {
  color: var(--muted);
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.heading-count {
  font-size: 18px;
  line-height: 24px;
  color: var(--muted);
  padding: 0 8px;
  background: #e9edf0;
  border-radius: 7px;
}
.repository-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.repository-title {
  min-width: 0;
}
.repository-description {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 5px;
  color: var(--muted);
}
.repository-description > span {
  overflow-wrap: anywhere;
}
.privacy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.privacy .icon {
  width: 13px;
  height: 13px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin: 16px 0 20px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tabs a {
  display: flex;
  align-items: center;
  min-height: 35px;
  padding: 9px 0;
  border-block: 2px solid transparent;
  color: var(--muted);
  white-space: nowrap;
}
.tabs a:hover {
  color: var(--ink);
  text-decoration: none;
}
.tabs a[aria-current] {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  min-width: 0;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.card-body {
  padding: 16px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stack > button {
  align-self: flex-start;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: var(--small);
  line-height: 18px;
  white-space: nowrap;
  font-weight: 500;
}
.badge .icon {
  width: 12px;
  height: 12px;
}
.passed {
  background: #e9f5ee;
  color: #16733a;
}
.failed,
.error-state {
  background: #fbe9ea;
  color: #b91c1c;
}
.running,
.queued {
  background: #fdf1e3;
  color: #995300;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.repository-list {
  overflow: hidden;
}
.repository-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.repository-row:last-of-type {
  border-bottom: 0;
}
.repository-row:hover {
  text-decoration: none;
  background: #fbfcfc;
}
.repository-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  flex-shrink: 0;
}
.repository-icon .icon {
  width: 20px;
  height: 20px;
}
.repository-summary {
  min-width: 0;
  flex: 1;
}
.repository-summary strong {
  font-size: var(--section);
  overflow-wrap: anywhere;
}
.repository-summary .badge {
  font-size: var(--body);
}
.repository-summary p {
  color: var(--muted);
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 56px 24px;
  color: var(--muted);
  text-align: center;
}
.empty > .icon {
  width: 24px;
  height: 24px;
  color: #8b9aa8;
}
.clone-menu {
  position: relative;
  flex-shrink: 0;
}
.clone-menu summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.clone-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 390px;
  padding: 16px;
  z-index: 20;
  box-shadow: 0 10px 30px #17212b16;
}
.clone-popover button {
  margin-top: 10px;
}
.clone-popover input {
  font-size: var(--small);
}
.code-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.file-tree {
  overflow: hidden;
}
.branch-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 13px;
  border-bottom: 1px solid var(--line);
}
.branch-picker input {
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  min-height: 30px;
  font-weight: 500;
}
.branch-picker .icon-button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  flex-shrink: 0;
}
.tree-entries {
  padding: 7px 0;
}
.tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 13px;
  color: var(--ink);
}
.tree-row .icon {
  color: var(--muted);
}
.tree-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-row:hover {
  background: var(--soft);
  text-decoration: none;
}
.tree-row.selected {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.tree-row.selected .icon {
  color: var(--accent);
}
.code-panel {
  overflow: hidden;
}
.commit-bar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.latest-commit {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latest-commit strong {
  color: var(--ink);
  font-weight: 500;
}
.commit-bar time {
  white-space: nowrap;
}
.commit-id {
  font-size: var(--body);
}
.file-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  overflow-wrap: anywhere;
}
.parent-link {
  display: flex;
  align-items: center;
  color: var(--muted);
}
.file-list {
  padding: 0 15px;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 0;
  border-bottom: 1px solid #e6eaf0;
  color: var(--ink);
}
.file-row:last-child {
  border-bottom: 0;
}
.file-row:hover {
  background: #fafbfc;
  text-decoration: none;
}
.file-row .icon {
  color: var(--muted);
}
.file-name {
  overflow-wrap: anywhere;
  min-width: 0;
}
.file-row > .mono {
  margin-left: auto;
  font-size: var(--small);
}
.readme {
  padding: 16px;
  border-top: 1px solid var(--line);
}
.readme h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--body);
  margin: 0 0 12px;
}
.readme h2 a {
  color: var(--ink);
}
.readme pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.source-code {
  overflow: auto;
}
.source-code ol {
  margin: 0;
  padding: 16px 16px 16px 54px;
  color: #94a0ad;
  line-height: 1.9;
  font-size: var(--small);
}
.source-code li {
  padding-left: 15px;
  white-space: normal;
}
.source-code code {
  color: var(--ink);
  white-space: pre;
  display: block;
}
.commands {
  margin: 0;
  padding: 20px;
  border-top: 1px solid var(--line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.inline-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.inline-label input {
  width: 240px;
}
.commit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.commit-row:last-child {
  border-bottom: 0;
}
.commit-title {
  flex: 1;
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.commit-author,
.commit-row time {
  color: var(--muted);
  white-space: nowrap;
}
.commit-sha {
  font-size: var(--body);
}
.ref-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.ref-row:last-child {
  border-bottom: 0;
}
.ref-row > a {
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.ref-row > .icon {
  color: var(--muted);
}
.ref-sha {
  margin-left: auto;
  font-size: var(--small);
}
.compare-form {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.compare-form > label {
  flex: 0 1 220px;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
  font-weight: 400;
  color: var(--muted);
}
.compare-form > label:last-of-type {
  flex-basis: 360px;
}
.branch-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding-left: 10px;
  flex: 1;
  min-width: 0;
}
.branch-input .icon {
  color: var(--muted);
}
.branch-input input {
  border: 0;
}
.compare-arrow {
  align-self: center;
  color: var(--muted);
}
.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
.comparison-panel {
  overflow: hidden;
}
.comparison-ids {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: var(--small);
}
.comparison-commit {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
}
.comparison-subject {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.comparison-subject strong {
  font-weight: 500;
}
.comparison-commit > a {
  font-size: var(--small);
}
.diff-file-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 11px 15px;
  background: var(--soft);
  border-block: 1px solid var(--line);
  font-size: var(--small);
}
.diff-file-heading > .mono {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.diff-counts {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-family: var(--mono);
  flex-shrink: 0;
}
.added-count {
  color: #16733a;
}
.removed-count {
  color: #b91c1c;
}
.diff {
  overflow: auto;
  font-size: var(--small);
  padding-bottom: 12px;
}
.diff-line {
  min-width: max-content;
  padding: 0 15px;
  white-space: normal;
  line-height: 1.65;
}
.diff-line code {
  display: block;
  white-space: pre;
}
.addition {
  background: #e9f5ee;
  color: #166534;
}
.deletion {
  background: #fbe9ea;
  color: #9f2323;
}
.hunk {
  background: #f0f4f7;
  color: #62758a;
  padding-top: 4px;
  padding-bottom: 4px;
}
.comparison-rail {
  display: grid;
  gap: 14px;
}
.landing-facts {
  margin: 0;
}
.landing-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}
.landing-facts dt {
  color: var(--muted);
}
.landing-facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}
.land-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}
.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.rail-error {
  margin: 0;
  padding: 16px;
  color: #b91c1c;
}
.rail-message {
  margin: 0;
  padding: 16px;
  color: var(--muted);
}
.check-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.check-fact > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.check-fact:last-child {
  border-bottom: 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.settings-nav {
  display: grid;
  gap: 3px;
  position: sticky;
  top: 20px;
}
.settings-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--muted);
}
.settings-nav a:hover {
  background: var(--soft);
  text-decoration: none;
}
.settings-nav a.selected {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.settings-nav .danger-link {
  color: #b91c1c;
  margin-top: 8px;
}
.settings-main {
  display: grid;
  gap: 16px;
  max-width: 900px;
}
.settings-main > section {
  scroll-margin-top: 24px;
}
.settings-main input,
.settings-main textarea {
  max-width: 100%;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.member-name {
  display: grid;
  flex: 1;
  min-width: 0;
}
.member-name strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.member-name span {
  font-size: var(--small);
}
.member-row select {
  width: 110px;
}
.member-add,
.protection-add {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.member-add label:first-of-type,
.protection-add label {
  flex: 1;
  min-width: 0;
}
.member-add label:nth-of-type(2) {
  width: 130px;
}
.protection-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.protection-row > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.protection-row > .icon {
  color: var(--muted);
}
fieldset {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background: #fafbfc;
}
.danger-zone {
  border-color: #e8c9cc;
}
.danger-zone .card-heading {
  color: #b91c1c;
  border-color: #e8c9cc;
}
.danger-zone p {
  margin: 0 0 16px;
  color: var(--muted);
}
.activity-list {
  overflow: hidden;
}
.check,
.event {
  border-bottom: 1px solid var(--line);
}
.check:last-child,
.event:last-child {
  border-bottom: 0;
}
.check summary,
.event summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}
.check summary:hover,
.event summary:hover {
  background: #fafbfc;
}
.check strong,
.event strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.check time,
.event time {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}
.details-arrow {
  transform: rotate(-90deg);
  color: var(--muted);
}
details[open] > summary .details-arrow {
  transform: rotate(0);
}
.check pre,
.event pre {
  padding: 18px;
  margin: 0;
  border-top: 1px solid var(--line);
  background: #f7f9fa;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.token-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.token-row:last-child {
  border-bottom: 0;
}
.token-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.token-name strong {
  overflow-wrap: anywhere;
}
.token-row time {
  color: var(--muted);
  margin-left: auto;
  font-size: var(--small);
}
.token-result {
  border-color: #a3c6b9;
  background: #f0f8f4;
  padding: 20px;
  margin-bottom: 20px;
}
.error {
  border: 1px solid #e8bfc3;
  background: #fff4f4;
  color: #a92b32;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.error-page {
  padding: 30px;
}
.error-page h1 {
  margin-bottom: 20px;
}
.auth-page {
  display: flex;
  min-height: 100dvh;
  background: var(--paper);
}
.auth-brand-panel {
  width: 46%;
  background: radial-gradient(
    circle at 18% 12%,
    #283a47 0,
    #1b2732 42%,
    var(--dark) 100%
  );
  color: white;
  padding: 42px 48px;
  display: flex;
  flex-direction: column;
}
.auth-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
  padding: 80px 0;
  font:
    64px/1.1 ui-serif,
    Georgia,
    serif;
  letter-spacing: -0.03em;
}
.auth-mark {
  width: 96px;
  height: 96px;
}
.auth-origin {
  color: #b2bec9;
  font-size: var(--small);
}
.auth-main {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 36px;
}
.auth-main > .language-switch {
  position: absolute;
  top: 28px;
  right: 32px;
}
.auth-card {
  width: 360px;
  max-width: 100%;
}
.auth-card h1 {
  font-size: 24px;
  margin-bottom: 28px;
}
.auth-card input {
  min-height: 40px;
}
.auth-card button {
  width: 100%;
  margin-top: 6px;
  min-height: 40px;
}
.mobile-only {
  display: none;
}
.nav-backdrop {
  display: none;
}
@media (max-width: 1200px) {
  .code-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .compare-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .commit-bar time {
    display: none;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 208px;
  }
  .app-main {
    margin-left: 208px;
  }
  .content {
    padding: 22px 20px 40px;
  }
  .code-grid {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-form > label,
  .compare-form > label:last-of-type {
    flex: 1;
  }
  .comparison-rail {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
  }
  .member-add {
    flex-wrap: wrap;
  }
  .member-add label:first-of-type {
    flex-basis: 100%;
  }
  .member-add label:nth-of-type(2) {
    flex: 1;
    width: auto;
  }
  .member-row {
    flex-wrap: wrap;
  }
  .member-name {
    flex-basis: calc(100% - 38px);
  }
  .member-row select {
    flex: 1;
  }
  .commit-author,
  .commit-row time {
    display: none;
  }
  .auth-brand-panel {
    padding: 32px;
    width: 40%;
  }
}
@media (max-width: 767px) {
  .sidebar {
    width: 232px;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.16s ease;
  }
  .navigation-open .sidebar {
    visibility: visible;
    transform: translateX(0);
  }
  .navigation-open {
    overflow: hidden;
  }
  .navigation-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    border-radius: 0;
    background: #111c2b66;
  }
  .app-main {
    margin-left: 0;
  }
  .mobile-only {
    display: inline-flex;
  }
  .topbar {
    padding: 0 16px;
    gap: 12px;
  }
  .topbar-actions {
    gap: 12px;
  }
  .breadcrumb {
    gap: 7px;
  }
  .breadcrumb a:first-child,
  .breadcrumb a:first-child + span {
    display: none;
  }
  .breadcrumb a:only-child {
    display: inline;
  }
  .breadcrumb a:nth-of-type(2) {
    max-width: 33vw;
  }
  .content {
    padding: 22px 16px 40px;
  }
  .auth-brand-panel {
    width: 35%;
    padding: 28px;
  }
  .auth-identity {
    font-size: 40px;
  }
  .auth-origin {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 639px) {
  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 40px;
  }
  button,
  .button {
    min-height: 40px;
  }
  .icon-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }
  .sidebar-search input {
    font-size: 16px;
  }
  .sidebar-search {
    margin-bottom: 6px;
  }
  .nav-item {
    min-height: 40px;
  }
  .topbar-actions .avatar {
    display: none;
  }
  .topbar-actions {
    gap: 8px;
  }
  .breadcrumb strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .repository-heading {
    gap: 12px;
  }
  .repository-description {
    gap: 8px;
  }
  .repository-description > span:first-child {
    flex-basis: 100%;
  }
  .repository-heading h1 {
    font-size: 20px;
  }
  .clone-menu summary {
    padding: 6px 10px;
  }
  .clone-menu summary > .icon:first-child {
    display: none;
  }
  .clone-popover {
    width: min(360px, calc(100vw - 32px));
  }
  .clone-popover input {
    font-size: 16px;
  }
  .tabs {
    gap: 22px;
    margin-top: 18px;
  }
  .tabs a {
    min-height: 40px;
  }
  .code-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tree-entries {
    display: flex;
    overflow-x: auto;
    padding: 6px;
    scrollbar-width: thin;
  }
  .tree-row {
    flex-shrink: 0;
    padding: 8px;
    border-radius: 5px;
    min-height: 36px;
    max-width: 220px;
  }
  .branch-picker input {
    font-size: 16px;
    min-height: 36px;
  }
  .commit-bar {
    gap: 8px;
    padding: 12px;
    flex-wrap: wrap;
  }
  .commit-bar .latest-commit {
    flex: 1;
  }
  .commit-id {
    display: none;
  }
  .file-list {
    padding: 0 12px;
  }
  .file-row {
    min-height: 44px;
  }
  .readme {
    padding: 16px 12px;
  }
  .file-heading {
    padding: 12px;
  }
  .file-heading .mono {
    font-size: var(--small);
  }
  .compare-form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }
  .compare-arrow {
    display: none;
  }
  .compare-form > label {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .comparison-rail {
    grid-template-columns: 1fr;
  }
  .comparison-ids {
    padding: 12px;
    gap: 8px;
  }
  .comparison-ids > .icon:first-child {
    display: none;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .settings-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 5px;
  }
  .settings-nav a {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 40px;
  }
  .settings-nav .danger-link {
    margin: 0;
  }
  .member-row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .member-name {
    flex: 1;
    min-width: 80px;
  }
  .member-row select {
    width: 100px;
  }
  .member-row button {
    margin-left: auto;
  }
  .member-add,
  .protection-add {
    flex-wrap: wrap;
  }
  .member-add label:first-of-type {
    flex-basis: 100%;
  }
  .member-add label:nth-of-type(2) {
    width: auto;
    flex: 1;
  }
  .protection-add label {
    flex-basis: 100%;
  }
  .protection-row {
    flex-wrap: wrap;
  }
  .protection-row > span {
    font-size: var(--small);
  }
  .check summary,
  .event summary {
    flex-wrap: wrap;
    gap: 9px;
    padding: 14px;
  }
  .check time,
  .event time {
    flex-basis: 100%;
    margin-left: 25px;
    font-size: var(--small);
  }
  .check summary > .mono {
    margin-left: auto;
  }
  .check pre,
  .event pre {
    padding: 14px;
  }
  .ref-row {
    gap: 8px;
    padding: 14px 12px;
    flex-wrap: wrap;
  }
  .ref-row > a {
    flex: 1;
  }
  .ref-sha {
    display: none;
  }
  .toolbar {
    align-items: center;
  }
  .inline-label {
    flex: 1;
    min-width: 0;
  }
  .inline-label input {
    width: 100%;
  }
  .commit-row {
    gap: 9px;
    padding: 14px 12px;
  }
  .token-row time {
    margin-left: 0;
  }
  .token-row form {
    margin-left: auto;
  }
  .auth-page {
    display: block;
  }
  .auth-brand-panel {
    width: 100%;
    padding: 22px 24px;
  }
  .auth-identity {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    font-size: 24px;
  }
  .auth-mark {
    width: 25px;
    height: 25px;
  }
  .auth-origin {
    display: none;
  }
  .auth-main {
    padding: 78px 24px 48px;
  }
  .auth-main > .language-switch {
    top: 24px;
    right: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar {
    transition: none;
  }
}

/* Workspace administration composes the existing settings shell and form controls. */
.repositories-only { grid-template-columns: minmax(0, 1fr); }
.workspace-notice { margin-bottom: 16px; padding: 12px 16px; background: var(--accent-soft); color: var(--accent); border: 1px solid #b7ded6; border-radius: 6px; }
.workspace-create-heading { display: flex; align-items: center; gap: 8px; padding: 16px; cursor: pointer; color: var(--accent); font-weight: 600; }
.workspace-create-heading::-webkit-details-marker, .person-summary::-webkit-details-marker { display: none; }
.workspace-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.workspace-fields select { width: 100%; }
.workspace-people .card-heading { display: flex; align-items: center; gap: 8px; }
.workspace-person + .workspace-person { border-top: 1px solid var(--line); }
.person-summary { display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; list-style: none; }
.person-summary:hover { background: var(--soft); }
.person-identity { display: flex; flex: 1; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; overflow-wrap: anywhere; }
.person-identity strong { font-weight: 500; }
.person-chevron { flex-shrink: 0; }
.workspace-person[open] > summary .person-chevron { transform: rotate(180deg); }
.admin-badge { background: var(--accent-soft); color: var(--accent); }
.person-edit { border-top: 1px solid var(--line); background: #fbfcfc; }
.password-reset { border-top: 1px solid var(--line); padding-top: 16px; }
.password-reset summary { color: var(--muted); cursor: pointer; }
.password-reset form { margin-top: 16px; }
.password-reset p { margin: 0; }
.health-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.health-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--section); font-weight: 500; }
.health-heading > .badge { font-size: var(--body); }
.health-details { margin: 0; padding: 4px 16px; }
.health-details > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.health-details > div + div { border-top: 1px solid var(--line); }
.health-details dt { color: var(--muted); flex-shrink: 0; }
.health-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.health-healthy { color: var(--accent); background: var(--accent-soft); }
.health-failed, .health-invalid { color: #b91c1c; background: #fef2f2; }
.health-stale, .health-missing { color: #92400e; background: #fffbeb; }
.health-running { color: #1d4ed8; background: #eff6ff; }
@media (max-width: 639px) {
  .workspace-fields { grid-template-columns: minmax(0, 1fr); }
  .person-summary { gap: 8px; padding: 14px 12px; flex-wrap: wrap; }
  .person-identity { flex-basis: calc(100% - 44px); }
  .person-summary > .badge { margin-left: 36px; }
  .person-summary > .person-chevron { margin-left: auto; }
  .health-heading, .health-details { padding-left: 12px; padding-right: 12px; }
  .health-details > div { align-items: flex-start; }
  .health-details dd { max-width: 65%; }
}

.workspace-people .card-heading > .badge { font-size: var(--body); }
.password-reset summary { display: flex; align-items: center; min-height: 36px; }
