:root {
  --background: #ececef;
  --surface: #ffffff;
  --ink: #1f2328;
  --muted: #62636b;
  --border: #dcdce2;
  --accent: #1f75cb;
  --accent-soft: #e9e9ed;
  --radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--background);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a,
input,
select,
textarea {
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ui-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
.masthead {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--brand-ink);
}
.brand-mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.signed-out .shell,
.signed-out .header-right {
  display: none;
}
.login-page {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.login-page[hidden],
.field[hidden],
.branch-option[hidden] {
  display: none;
}
.login-card {
  width: min(100%, 400px);
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.login-mascot {
  display: block;
  margin: 0 auto 16px;
  object-fit: contain;
}
.login-card h1,
.login-card > p {
  text-align: center;
}
.login-card h1 {
  font-size: 24px;
}
.login-card form {
  margin-top: 24px;
}
.login-submit {
  width: 100%;
  justify-content: center;
}
.branch-picker {
  position: relative;
}
.branch-picker summary {
  cursor: pointer;
  list-style: none;
}
.branch-picker summary::-webkit-details-marker {
  display: none;
}
.branch-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  max-width: calc(100vw - 40px);
  z-index: 10;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px #1f23281a;
  padding: 8px;
}
.branch-menu-title {
  font-size: 13px;
  font-weight: 650;
  padding: 6px 8px 10px;
}
.branch-menu .search {
  width: 100%;
  margin-bottom: 8px;
}
#branch-options {
  max-height: 300px;
  overflow: auto;
}
.branch-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
  text-align: left;
  overflow-wrap: anywhere;
}
.branch-option:hover,
.branch-option[aria-pressed="true"] {
  background: var(--background);
}
.branch-check {
  width: 16px;
  flex-shrink: 0;
}
.branch-option .tag {
  margin-left: auto;
}
.workspace-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.prototype,
.tag,
.counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 8px;
  color: var(--muted);
  background: var(--subtle);
}
.prototype {
  font-weight: 500;
}
.header-right,
.connection {
  display: flex;
  align-items: center;
  gap: 16px;
}
.connection {
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.connection i {
  width: 6px;
  height: 6px;
  background: #108548;
  border-radius: 50%;
}
.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--strong-border);
  padding: 0;
  background: var(--avatar-background);
  color: var(--avatar-ink);
  font-weight: 600;
}
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 48px);
}
.sidebar {
  position: sticky;
  top: 48px;
  height: calc(100vh - 48px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.workspace:hover {
  background: var(--hover);
  border-color: var(--border);
}
.workspace-label {
  flex: 1;
  min-width: 0;
}
.workspace-arrow {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.workspace-icon,
.entity-icon,
.repo-monogram {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--subtle);
  color: var(--brand-ink);
  border-radius: 6px;
}
.workspace-icon {
  width: 32px;
  height: 32px;
  font-weight: 600;
}
.workspace strong,
.workspace-label > span {
  display: block;
}
.workspace-label > span {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.navigation {
  display: grid;
  gap: 3px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.nav-item {
  border: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  border-radius: 6px;
}
.nav-item:hover,
.tree-row:hover {
  background: var(--hover);
}
.nav-item.active {
  color: var(--ink);
  background: var(--selected);
  font-weight: 600;
}
.tree-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 10px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.icon-button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  padding: 3px 7px;
}
.icon-button:hover {
  background: var(--accent-soft);
}
.group-tree {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 8px;
}
.sidebar .tree-search {
  flex: 0 0 auto;
  width: 100%;
  height: 32px;
  min-height: 32px;
  font-size: 12px;
}
.tree-empty {
  padding: 12px 8px;
  color: var(--muted);
  font-size: 12px;
}
.tree-row {
  display: flex;
  align-items: center;
  border-radius: 5px;
}
.tree-row.selected {
  background: var(--selected);
  font-weight: 600;
}
.tree-toggle,
.tree-spacer {
  width: 26px;
  flex-shrink: 0;
}
.tree-toggle {
  display: grid;
  place-items: center;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.tree-toggle .ui-icon {
  width: 12px;
  height: 12px;
}
.tree-toggle[aria-expanded="true"] .ui-icon {
  transform: rotate(90deg);
}
.tree-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 6px 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  font-size: 13px;
  text-align: left;
}
.tree-item .ui-icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.tree-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.tree-children {
  padding-left: 8px;
  margin-left: 6px;
}
.sidebar-context {
  display: grid;
  gap: 5px;
  padding: 10px 10px 14px;
  border-top: 1px solid var(--border);
}
.sidebar-scope-kind {
  color: var(--muted);
  font-size: 11px;
}
.sidebar-context strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-parent {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}
.sidebar-parent .ui-icon {
  width: 14px;
  height: 14px;
}
.sidebar-parent:hover {
  color: var(--ink);
}
.sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 8px 4px;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.sidebar-account:hover {
  background: var(--hover);
}
.sidebar-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--avatar-background);
  color: var(--avatar-ink);
  font-weight: 600;
}
.sidebar-account-label {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 3px;
}
.sidebar-account-label > span,
.local-note {
  color: var(--muted);
  font-size: 12px;
}
.sidebar-settings {
  color: var(--muted);
  font-size: 18px;
}
main {
  min-width: 0;
  margin: 0 8px 8px 0;
  padding: 20px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 3px #1f232810;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 13px;
  min-height: 24px;
  margin-bottom: 24px;
  color: var(--muted);
}
.breadcrumb button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
}
.breadcrumb button:hover {
  color: var(--accent);
  text-decoration: underline;
}
.breadcrumb [aria-current="page"] {
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.page-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.entity-icon {
  width: 48px;
  height: 48px;
  background: var(--subtle);
  color: var(--muted);
}
.entity-icon .ui-icon {
  width: 25px;
  height: 25px;
}
.entity-heading {
  flex: 1;
  min-width: 0;
}
.entity-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
h1 {
  font-size: 26px;
  font-weight: 650;
  margin: 0;
  overflow-wrap: anywhere;
}
.entity-visibility {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.entity-visibility .ui-icon {
  width: 14px;
  height: 14px;
}
.page-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}
.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--strong-border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.button:hover {
  background: var(--hover);
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}
.button.primary:hover {
  background: var(--accent-hover);
}
.repo-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.repo-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 12px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
.repo-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}
.counter {
  background: var(--hover);
  border: 0;
  padding: 1px 7px;
  color: var(--ink);
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.search {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--strong-border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}
.catalog-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.repo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.repo-row:hover {
  background: var(--subtle);
}
.repo-monogram {
  width: 40px;
  height: 40px;
  background: var(--subtle);
  color: var(--muted);
}
.group-monogram {
  background: var(--accent-soft);
  color: var(--brand-ink);
}
.repo-information {
  flex: 1;
  min-width: 0;
}
.repo-title {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  overflow-wrap: anywhere;
}
.repo-title:hover {
  color: var(--accent);
  text-decoration: underline;
}
.repo-information p {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.repo-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.visibility .ui-icon {
  width: 12px;
  height: 12px;
}
.group-row-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.group-access {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
}
.group-access strong {
  color: var(--ink);
}
.group-access span {
  margin-left: auto;
}
.repository-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
}
.repository-code {
  min-width: 0;
}
.code-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
}
.branch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--subtle);
  font-size: 13px;
}
.button.primary.clone-button {
  margin-left: auto;
  color: white;
  background: var(--clone-background);
  border-color: var(--clone-hover);
}
.button.primary.clone-button:hover {
  background: var(--clone-hover);
}
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--subtle);
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.panel-heading small {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}
.commit-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: var(--subtle);
  font-size: 13px;
}
.commit-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--commit-background);
  color: var(--commit-ink);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}
.commit-message {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.file-table,
.member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.file-table th,
.member-table th {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  background: var(--subtle);
}
.file-table td,
.member-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.file-table td:last-child,
.file-table th:last-child {
  text-align: right;
}
.file-table td:not(:first-child) {
  color: var(--muted);
}
.file-name {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}
.file-name .ui-icon {
  color: var(--muted);
}
.file-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  font-size: 13px;
}
.file-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.file-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.file-breadcrumb button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
}
.file-breadcrumb button:hover {
  text-decoration: underline;
}
.file-breadcrumb button[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.file-view-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.button.selected-view {
  background: var(--accent-soft);
  border-color: var(--strong-border);
}
.source-scroll {
  overflow: auto;
  max-height: 70vh;
}
.source-table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}
.source-table th {
  width: 52px;
  padding: 0 14px;
  border-right: 1px solid var(--border);
  background: var(--subtle);
  color: var(--muted);
  text-align: right;
  vertical-align: top;
  font-weight: 400;
  user-select: none;
}
.source-table td {
  padding: 0 16px;
  white-space: pre;
}
.source-table code {
  font: inherit;
}
.source-table tr:first-child th,
.source-table tr:first-child td {
  padding-top: 12px;
}
.source-table tr:last-child th,
.source-table tr:last-child td {
  padding-bottom: 12px;
}
.file-table code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.readme {
  margin-top: 20px;
}
.markdown-body {
  padding: 24px 28px;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.markdown-body h1,
.markdown-body h2 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin: 20px 0 16px;
}
.markdown-body h1:first-child {
  margin-top: 0;
}
.markdown-body h1 {
  font-size: 25px;
}
.markdown-body h2 {
  font-size: 20px;
}
.markdown-body p {
  margin: 0 0 16px;
}
.markdown-body pre {
  background: var(--subtle);
  border-radius: 5px;
  padding: 16px;
  white-space: pre-wrap;
}
.markdown-list {
  padding-left: 16px;
}
.repository-about h2,
.repository-about h3 {
  font-size: 14px;
  margin: 5px 0 14px;
  font-weight: 600;
}
.repository-about p {
  font-size: 13px;
  line-height: 1.7;
  margin: 12px 0 20px;
}
.about-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0;
}
.repository-about hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  padding: 7px 0;
}
.mini-row strong {
  color: var(--ink);
  font-weight: 500;
}
.muted {
  color: var(--muted);
}
.tag.green {
  color: var(--success-ink);
  background: var(--success-background);
  border-color: var(--success-border);
}
.tag.amber {
  color: var(--warning-ink);
  background: var(--warning-background);
  border-color: var(--warning-border);
}
.tag.red {
  color: var(--danger-ink);
  background: var(--danger-background);
  border-color: var(--danger-border);
}
.notice {
  padding: 12px 16px;
  border: 1px solid var(--notice-border);
  border-radius: 5px;
  background: var(--notice-background);
  color: var(--notice-ink);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.empty-state {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.job-row {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.job-row:last-child {
  border-bottom: 0;
}
.job-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.job-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
}
.job-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.job-prompt {
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.job-row details {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.job-row summary {
  cursor: pointer;
}
.job-details > summary {
  padding: 6px 0;
  color: var(--ink);
}
.job-details[open] > summary {
  margin-bottom: 8px;
}
.ci-management {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
.ci-management > summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.ci-management > .panel {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.ci-management > summary:focus-visible,
.job-details > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.log {
  padding: 16px;
  border-radius: 5px;
  background: #24272e;
  color: #e3e5eb;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 12px;
}
dialog {
  width: 460px;
  max-width: calc(100vw - 32px);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 40px #1f232830;
}
dialog::backdrop {
  background: #1f232860;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 20px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--strong-border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field small {
  font-size: 12px;
  color: var(--muted);
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 18px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
.form-error {
  font-size: 13px;
  color: var(--danger-ink);
}
#clone-content code {
  display: block;
  padding: 14px;
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  margin-bottom: 16px;
}
#clone-content p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #24272e;
  color: white;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 4px 20px #0002;
  display: none;
  z-index: 10;
}
@media (max-width: 1100px) {
  .repository-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .repository-about {
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
  main {
    padding: 20px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-actions {
    margin-left: 62px;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 174px minmax(0, 1fr);
  }
  .connection {
    display: none;
  }
  .sidebar {
    padding: 16px 8px;
  }
  main {
    padding: 16px;
  }
  .workspace-label > span {
    display: none;
  }
  .workspace-icon {
    width: 24px;
    height: 24px;
  }
  .catalog-toolbar {
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .search {
    flex-basis: 100%;
  }
  .repo-row {
    flex-wrap: wrap;
    padding: 16px 0;
  }
  .repo-row > .tag,
  .group-row-count {
    display: none;
  }
  .file-table td,
  .file-table th,
  .member-table td,
  .member-table th {
    padding: 10px 8px;
  }
  .file-table th:last-child,
  .file-table td:last-child {
    display: none;
  }
  .markdown-body {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.source-table .hljs-keyword,
.source-table .hljs-selector-tag,
.source-table .hljs-literal {
  color: var(--syntax-keyword);
}
.source-table .hljs-string,
.source-table .hljs-regexp {
  color: var(--syntax-string);
}
.source-table .hljs-title,
.source-table .hljs-type,
.source-table .hljs-built_in {
  color: var(--syntax-title);
}
.source-table .hljs-comment {
  color: var(--syntax-comment);
  font-style: italic;
}
.source-table .hljs-number,
.source-table .hljs-attr,
.source-table .hljs-symbol {
  color: var(--syntax-number);
}
.source-table .hljs-meta,
.source-table .hljs-name {
  color: var(--syntax-meta);
}

.markdown-body img {
  display: block;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 6px;
  margin: 12px 0;
}
.fork-source {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brand-ink);
  text-align: left;
}
.fork-source:hover {
  text-decoration: underline;
}

.creation-dialog {
  width: 880px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 0;
}
.creation-dialog .dialog-heading {
  padding: 22px 24px;
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.creation-dialog .dialog-heading h2 {
  font-size: 18px;
}
.creation-dialog .dialog-heading .icon-button {
  width: 32px;
  height: 32px;
  padding: 0;
}
.creation-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}
.creation-context {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  background: var(--subtle);
  border-right: 1px solid var(--border);
  min-width: 0;
}
.creation-context-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--brand-ink);
}
.creation-context-icon .ui-icon {
  width: 22px;
  height: 22px;
}
.creation-eyebrow {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.creation-context strong {
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.creation-context-path {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 6px;
  line-height: 1.6;
}
.creation-facts {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  width: 100%;
}
.creation-facts > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 500;
}
.creation-facts .ui-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.creation-facts p {
  margin: 8px 0 20px;
}
.creation-facts p:last-child {
  margin-bottom: 0;
}
.creation-inputs {
  padding: 26px 28px;
  min-width: 0;
}
.creation-inputs h3 {
  font-size: 13px;
  margin: 0 0 14px;
  color: var(--ink);
}
.creation-inputs h3:not(:first-child) {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 22px;
}
.creation-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.creation-dialog .field {
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 500;
  min-width: 0;
}
.creation-dialog .field input,
.creation-dialog .field select,
.creation-dialog .field textarea,
.creation-dialog .field small,
.field-error {
  font-weight: 400;
}
.creation-dialog .field input,
.creation-dialog .field select {
  height: 40px;
}
.creation-dialog .field textarea {
  min-height: 80px;
}
.form-destination {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.form-destination > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-destination .ui-icon {
  width: 14px;
  height: 14px;
}
.form-destination code {
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.6;
}
.creation-dialog .dialog-footer {
  margin: 0;
  padding: 18px 24px;
  background: var(--surface);
  position: sticky;
  bottom: 0;
}
.creation-dialog .form-error:not(:empty) {
  padding: 0 24px 16px;
  margin: 0;
}
.field-error {
  color: var(--danger-ink);
  font-size: 12px;
}
.field-error:empty,
.form-error:empty {
  display: none;
}
.field input[aria-invalid="true"] {
  border-color: var(--danger-ink);
}
#dialog-title:focus {
  outline: none;
}
@media (max-width: 720px) {
  .creation-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .creation-context {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
  }
  .creation-context-icon {
    display: none;
  }
  .creation-facts {
    margin-top: 14px;
    padding-top: 12px;
  }
  .creation-facts p {
    margin-bottom: 12px;
  }
  .creation-inputs {
    padding: 22px 24px;
  }
  .creation-name-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

.pipeline-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 13px;
}
.pipeline-ref svg {
  width: 16px;
  height: 16px;
}
.pipeline-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.pipeline-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}
.pipeline-stage.passed {
  background: #f0faf4;
  color: #236844;
}
.pipeline-stage.failed {
  background: #fff1f0;
  color: #a8312c;
}
.pipeline-deployment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}
.pipeline-deployment svg {
  width: 16px;
  height: 16px;
}

.creation-dialog #form-submit[hidden] {
  display: none;
}

.confirmation-message {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.button.danger {
  color: var(--danger-ink);
  border-color: var(--danger-ink);
}

#group-invitations {
  margin-top: 24px;
}

.runner-panel {
  margin-bottom: 24px;
}

.runner-table-scroll {
  overflow-x: auto;
}

.runner-table {
  min-width: 840px;
}

.runner-table th:not(:first-child),
.runner-table td:not(:first-child) {
  white-space: nowrap;
}

.runner-table td:first-child {
  min-width: 200px;
  max-width: 300px;
}

.runner-registration [type="submit"][hidden] {
  display: none;
}

.runner-registration code {
  display: block;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.ci-variables-dialog {
  padding: 0;
}

.variable-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.5fr);
}

.variable-list-pane {
  padding: 24px;
  border-right: 1px solid var(--border);
  background: var(--background);
  overflow-wrap: anywhere;
}

.variable-list-pane h3 {
  margin: 0;
}

[data-variable-list] {
  max-height: 380px;
  overflow-y: auto;
}

.variable-list-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 12px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.variable-list-item[aria-pressed="true"] {
  border-color: var(--accent, #7544ad);
  background: var(--accent-soft);
}

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

.variable-editor {
  padding: 24px;
  min-width: 0;
}

.variable-editor h3 {
  margin-top: 0;
}

.variable-editor textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 90px;
}

.variable-scope,
.variable-editor-actions {
  display: flex;
  gap: 8px;
}

.variable-editor-actions {
  justify-content: flex-end;
}

[data-delete-variable][hidden] {
  display: none;
}

@media (max-width: 680px) {
  .variable-workspace {
    grid-template-columns: 1fr;
  }

  .variable-list-pane {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

.variable-scope {
  flex-wrap: wrap;
}

.variable-scope .tag {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.history-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.history-subject {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  overflow-wrap: anywhere;
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--muted);
  font-size: 13px;
}

.history-meta code {
  overflow-wrap: anywhere;
}

.history-files {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.history-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  overflow-wrap: anywhere;
}

.history-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
}

.jobs-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.jobs-search input {
  flex: 1;
  min-width: 160px;
  max-width: 100%;
}

.commit-diff {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  tab-size: 4;
}

.diff-line {
  display: block;
  min-height: 1.6em;
  padding: 0 16px;
}

.diff-added {
  background: #e6ffed;
  color: #116329;
}

.diff-removed {
  background: #ffebe9;
  color: #82071e;
}

.diff-hunk {
  background: #ddf4ff;
  color: #0550ae;
}

.empty-repository p,
.empty-git-commands {
  margin: 16px 20px;
}

.empty-git-commands {
  overflow-x: auto;
  padding: 16px;
  background: var(--surface);
}

.readme-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.blame-table .blame-author {
  min-width: 170px;
  white-space: normal;
}

.blame-author span,
.blame-author time {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.file-table td:last-child .file-link {
  white-space: normal;
  text-align: left;
}

.release-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.release-assets li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 6px 0;
}

.release-dialog {
  width: min(600px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}

.lfs-oid {
  display: block;
  overflow-wrap: anywhere;
  margin-block: 8px;
}

.move-dialog {
  width: min(960px, calc(100vw - 32px));
}

.move-scopes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.move-scopes section {
  min-width: 0;
  overflow-wrap: anywhere;
}

.move-paths dd {
  margin: 4px 0 16px;
  overflow-wrap: anywhere;
}

.lfs-dialog [data-objects] {
  padding: 0 20px;
}

.lfs-dialog > .notice,
.lfs-dialog > .dialog-actions {
  margin: 16px 20px;
}

.webhook-dialog [hidden],
.package-dialog [hidden] {
  display: none;
}

.release-form-fields {
  padding: 20px;
}

.policy-rule {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.policy-rule legend {
  padding: 0 6px;
  font-weight: 600;
}

.git-key-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.git-key-list li {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.git-key-list button {
  justify-self: start;
}

.pull-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.pull-comment-location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
}

.pull-detail > h3 {
  margin-top: 24px;
}

.pull-body {
  padding: 20px;
}

.pull-body > .history-meta {
  padding: 0;
}

.audit-dialog {
  width: min(960px, calc(100vw - 32px));
}

.audit-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
}

.audit-toolbar .field {
  flex: 1;
  min-width: 160px;
  margin: 0;
}

.audit-entry {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.audit-entry summary {
  cursor: pointer;
  overflow-wrap: anywhere;
}

.audit-snapshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-top: 12px;
}

.audit-snapshots dl {
  display: grid;
  grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1fr);
  gap: 8px 12px;
}

.audit-snapshots dt {
  color: var(--muted);
}

.audit-snapshots dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.audit-snapshots dd > div {
  white-space: pre-wrap;
}

.audit-target {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}

.audit-meta {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .audit-snapshots {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.code-search-dialog {
  width: min(960px, calc(100vw - 32px));
}

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

.code-search-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  padding: 16px 20px;
}

.code-search-status {
  margin: 16px 20px;
  overflow-wrap: anywhere;
}

.code-search-hit {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.code-search-dialog > .notice {
  margin: 0 20px 16px;
}

.code-search-dialog [data-search-results] {
  padding: 0 20px;
}

.code-search-dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px;
}

.code-search-hit a {
  color: var(--accent);
  font-weight: 600;
}

.code-search-hit pre {
  margin: 0;
  padding: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface);
}

.source-table .source-selected-line td,
.source-table .source-selected-line th {
  background: var(--accent-soft);
}

.source-table th a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 640px) {
  .code-search-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* 이슈 본문과 입력 창은 기존 패널의 폭·간격을 사용한다. */
.issue-body,
.issue-dialog {
  padding: 24px;
}

.issue-dialog {
  width: min(760px, calc(100vw - 32px));
}

.issue-dialog .field {
  margin-block: 16px;
}

.issue-filter {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
}

.issue-filter .field {
  flex: 1 1 180px;
}

.issue-panel [data-issue-comment] {
  margin-top: 24px;
}

.issue-panel .history-meta {
  flex-wrap: wrap;
}

.issue-panel .notice:empty,
.issue-dialog .notice:empty {
  display: none;
}

.pipeline-artifacts {
  padding: 0;
  list-style: none;
}

.pipeline-artifacts li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.pipeline-artifacts small {
  color: var(--muted);
}

.pipeline-inputs {
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.pipeline-inputs li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.ssh-key-fingerprint {
  overflow-wrap: anywhere;
}

.ssh-key-public {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#account-dialog [data-operations][hidden] {
  display: none;
}

.operations-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.operations-group {
  margin: 0 0 20px;
}

.operations-metrics {
  margin: 0;
}

.operations-metrics > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.operations-metrics dt {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.operations-metrics dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.deployment-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.deployment-summary p {
  margin: 8px 0;
}

.deployment-target {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px;
}

.deployment-target select {
  max-width: 100%;
}

.deployment-panel > p {
  margin: 16px;
}

.deployment-panel > button {
  margin: 0 16px 16px;
}

[data-schedule-list] {
  max-height: 420px;
  overflow-y: auto;
}

[data-schedule-runs] {
  max-height: 250px;
  overflow-y: auto;
}

.ci-schedules-dialog .schedule-enabled {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

.ci-schedules-dialog .schedule-enabled input {
  width: 18px;
  height: 18px;
  margin: 0;
}
