.gitoku-repo-nav-shell,
.gitoku-repository-browser,
.gitoku-diff-card,
.gitoku-diff-summary {
  background: rgb(var(--gitoku-ink-975) / 0.58);
  border: 1px solid rgb(var(--gitoku-white) / 0.08);
  border-radius: var(--gitoku-radius-xl);
}

.gitoku-repo-nav-shell {
  backdrop-filter: blur(20px);
  padding: 0.75rem 0.85rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.gitoku-repo-nav-row {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gitoku-repo-nav-tabs {
  min-width: 0;
  width: 100%;
}

@media (min-width: 1200px) {
  .gitoku-repo-nav-row {
    flex-direction: row;
    justify-content: space-between;
  }

  .gitoku-repo-nav-tabs {
    flex: 1 1 auto;
  }
}

.gitoku-repo-nav-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.gitoku-repo-tabs {
  flex-wrap: nowrap;
  gap: 0.45rem;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.gitoku-repo-tabs::-webkit-scrollbar {
  height: 0.4rem;
}

.gitoku-repo-tabs::-webkit-scrollbar-thumb {
  background: rgb(var(--gitoku-white) / 0.14);
  border-radius: var(--gitoku-radius-pill);
}

.gitoku-repo-tab-link {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--gitoku-radius-md);
  color: rgb(var(--gitoku-slate-400));
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  scroll-snap-align: start;
  white-space: nowrap;
}

.gitoku-repo-tab-link:hover,
.gitoku-repo-tab-link:focus {
  background: rgb(var(--gitoku-white) / 0.04);
  border-color: rgb(var(--gitoku-white) / 0.08);
  color: rgb(var(--gitoku-amber-100));
}

.gitoku-repo-tab-link:focus-visible {
  outline: 2px solid rgb(var(--gitoku-amber-500) / 0.6);
  outline-offset: 2px;
}

.gitoku-repo-tab-link.active {
  background: rgb(var(--gitoku-white) / 0.05);
  border-color: rgb(var(--gitoku-white) / 0.08);
  color: rgb(var(--gitoku-slate-100));
}

.gitoku-repo-tab-content {
  margin-top: 1.25rem;
}

.gitoku-repository-page-shell,
.gitoku-new-repository-page-shell {
  padding-inline: clamp(1.5rem, 2.5vw, 2.5rem);
}

.gitoku-new-repository-dashboard,
.gitoku-new-repository-page-shell,
.gitoku-new-repository-page-stack,
.gitoku-new-repository-import-pane,
.gitoku-new-repository-import-section,
.gitoku-new-repository-import-flow,
.gitoku-import-form {
  min-height: 0;
}

.gitoku-new-repository-dashboard-import {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

.gitoku-new-repository-page-shell-import,
.gitoku-new-repository-page-stack-import,
.gitoku-new-repository-import-pane,
.gitoku-new-repository-import-section,
.gitoku-new-repository-import-flow,
.gitoku-import-form,
.gitoku-import-results {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.gitoku-new-repository-page-shell-import,
.gitoku-new-repository-page-stack-import,
.gitoku-new-repository-import-pane,
.gitoku-new-repository-import-section,
.gitoku-new-repository-import-flow,
.gitoku-import-form,
.gitoku-import-results {
  overflow: hidden;
}

.gitoku-new-repository-page-shell .gitoku-import-form .gitoku-import-source-list {
  align-content: start;
  align-items: start;
  flex: 1 1 auto;
  grid-auto-rows: max-content;
  max-height: none;
  min-height: 0;
}

.gitoku-new-repository-page-shell .gitoku-import-form .gitoku-import-source-list-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin-bottom: 1rem;
  min-height: 0;
  position: relative;
}

.gitoku-new-repository-page-shell .gitoku-import-form .gitoku-import-results-indicator {
  align-items: center;
  background: rgb(var(--gitoku-ink-975) / 0.6);
  border-radius: 1rem;
  display: flex;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.gitoku-new-repository-page-shell .gitoku-import-form .gitoku-import-actions {
  flex: 0 0 auto;
}

.gitoku-clone-trigger {
  font-size: 0.92rem;
  font-weight: 600;
}

.gitoku-copy-button {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.gitoku-copy-button[data-copied="true"] {
  background: rgb(var(--gitoku-emerald-500) / 0.2);
  border-color: rgb(var(--gitoku-emerald-500) / 0.4);
  box-shadow: 0 0 0 0.18rem rgb(var(--gitoku-emerald-500) / 0.15);
  color: rgb(var(--gitoku-slate-100));
}

.gitoku-copy-button[data-copied="true"]:hover,
.gitoku-copy-button[data-copied="true"]:focus {
  background: rgb(var(--gitoku-emerald-500) / 0.24);
  border-color: rgb(var(--gitoku-emerald-500) / 0.48);
  color: rgb(var(--gitoku-slate-100));
}

.gitoku-clone-menu,
.gitoku-repo-dropdown {
  --bs-dropdown-bg: rgb(var(--gitoku-ink-975) / 0.98);
  --bs-dropdown-border-color: rgb(var(--gitoku-white) / 0.08);
  --bs-dropdown-zindex: 1040;
  --bs-dropdown-link-color: rgb(var(--gitoku-slate-100));
  --bs-dropdown-link-hover-bg: rgb(var(--gitoku-amber-500) / 0.12);
  --bs-dropdown-link-hover-color: rgb(var(--gitoku-amber-100));
  --bs-dropdown-link-active-bg: rgb(var(--gitoku-amber-500) / 0.18);
  --bs-dropdown-link-active-color: rgb(var(--gitoku-amber-100));
}

.gitoku-clone-menu {
  border-radius: var(--gitoku-radius-lg);
  overflow: hidden;
  padding: 0;
  width: min(30rem, calc(100vw - 2rem));
}

.gitoku-clone-tabs {
  border-bottom: 0;
  gap: 0.5rem;
}

.gitoku-clone-tabs .nav-link {
  background: rgb(var(--gitoku-white) / 0.04);
  border: 1px solid rgb(var(--gitoku-white) / 0.08);
  border-radius: var(--gitoku-radius-pill);
  color: rgb(var(--gitoku-slate-400));
  font-weight: 600;
  padding: 0.45rem 0.9rem;
}

.gitoku-clone-tabs .nav-link.active {
  background: rgb(var(--gitoku-amber-500) / 0.18);
  border-color: rgb(var(--gitoku-amber-500) / 0.35);
  color: rgb(var(--gitoku-amber-100));
}

.gitoku-repository-toolbar,
.gitoku-commit-summary-row {
  background: rgb(var(--gitoku-ink-925) / 0.78);
  border-bottom: 1px solid rgb(var(--gitoku-white) / 0.08);
}

.gitoku-repository-toolbar {
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
}

.gitoku-repo-toolbar-button {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  min-width: 8.5rem;
}

.gitoku-repo-toolbar-button::after {
  flex: 0 0 auto;
  margin-left: auto;
}

.gitoku-repo-toolbar-button-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gitoku-repo-toolbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gitoku-repo-toolbar-actions .btn,
.gitoku-repo-toolbar-actions .dropdown-toggle {
  font-size: 0.92rem;
  padding: 0.45rem 0.8rem;
}

.gitoku-repo-filter-button {
  min-width: 0;
  padding-inline: 0.7rem;
  white-space: nowrap;
}

.gitoku-repo-filter-clear-button {
  padding-inline: 0.7rem;
  white-space: nowrap;
}

.gitoku-repo-dropdown {
  border-radius: var(--gitoku-radius-lg);
  padding: 0.5rem;
  width: min(22rem, calc(100vw - 2rem));
}

.gitoku-repo-dropdown .dropdown-item {
  border-radius: var(--gitoku-radius-md);
  min-width: 0;
  padding: 0.75rem 0.85rem;
}

.gitoku-repo-dropdown-row {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  min-width: 0;
}

.gitoku-repo-dropdown-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gitoku-repo-dropdown-description {
  color: rgb(var(--gitoku-slate-400));
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  white-space: normal;
}

.gitoku-task-split-action .btn {
  padding-inline: 1rem;
}

.gitoku-task-split-primary {
  min-width: 12rem;
}

.gitoku-task-split-toggle {
  padding-inline: 0.9rem;
}

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

.gitoku-project-column {
  background: rgb(var(--gitoku-ink-975) / 0.45);
  border: 1px solid rgb(var(--gitoku-white) / 0.08);
  border-radius: var(--gitoku-radius-xl);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 30rem;
  overflow: hidden;
  padding: 1rem;
}

.gitoku-project-column-header {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.gitoku-project-list {
  background:
    linear-gradient(180deg, rgb(var(--gitoku-ink-925) / 0.26), rgb(var(--gitoku-ink-925) / 0.12)),
    rgb(var(--gitoku-ink-925) / 0.16);
  border: 1px dashed rgb(var(--gitoku-white) / 0.08);
  border-radius: var(--gitoku-radius-lg);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 16rem;
  overflow-y: auto;
  padding: 0.85rem;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.gitoku-project-list-active-drop {
  background:
    linear-gradient(180deg, rgb(var(--gitoku-amber-500) / 0.18), rgb(var(--gitoku-ink-925) / 0.18)),
    rgb(var(--gitoku-ink-925) / 0.24);
  border-color: rgb(var(--gitoku-amber-500) / 0.36);
  box-shadow: inset 0 0 0 1px rgb(var(--gitoku-amber-500) / 0.18);
}

.gitoku-project-empty {
  align-items: center;
  border: 1px dashed rgb(var(--gitoku-white) / 0.08);
  border-radius: var(--gitoku-radius-lg);
  color: rgb(var(--gitoku-slate-500));
  display: flex;
  flex: 1 1 auto;
  font-size: 0.95rem;
  justify-content: center;
  min-height: 8rem;
  padding: 1rem;
  text-align: center;
}

.gitoku-project-list[data-project-has-cards="true"] .gitoku-project-empty {
  display: none;
}

.gitoku-project-card {
  background: rgb(var(--gitoku-ink-925) / 0.92);
  border: 1px solid rgb(var(--gitoku-white) / 0.08);
  border-radius: var(--gitoku-radius-lg);
  box-shadow: 0 18px 44px rgb(var(--gitoku-ink-975) / 0.16);
  cursor: default;
  padding: 1rem;
  transform-origin: center top;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.gitoku-project-card:hover {
  border-color: rgb(var(--gitoku-amber-500) / 0.24);
  transform: translateY(-1px);
}

.gitoku-project-card-draggable {
  cursor: pointer;
}

.gitoku-project-card-draggable:active,
.gitoku-project-card-dragging {
  cursor: grabbing;
}

.gitoku-project-card-ghost {
  background: rgb(var(--gitoku-ink-925) / 0.78);
  border-color: rgb(var(--gitoku-amber-500) / 0.42);
  box-shadow: 0 20px 52px rgb(var(--gitoku-ink-975) / 0.22);
  opacity: 0.78;
}

.gitoku-project-card-chosen,
.gitoku-project-card-dragging {
  border-color: rgb(var(--gitoku-amber-500) / 0.3);
  box-shadow: 0 26px 64px rgb(var(--gitoku-ink-975) / 0.32);
  filter: saturate(1.04);
  transform: rotate(0.75deg) scale(1.02);
}

@media (max-width: 1199.98px) {
  .gitoku-project-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .gitoku-project-board {
    grid-template-columns: 1fr;
  }
}

.gitoku-commit-summary-link {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  text-align: left;
}

.gitoku-browser-shell {
  --gitoku-browser-sticky-top: calc(var(--gitoku-repo-nav-shell-height, 4.75rem) + 1rem);
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (min-width: 992px) {
  .gitoku-browser-explorer-pane {
    align-self: start;
    max-height: calc(100vh - var(--gitoku-browser-sticky-top) - 1rem);
    overflow: hidden;
    position: sticky;
    top: var(--gitoku-browser-sticky-top);
  }

  .gitoku-browser-tree {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 991.98px) {
  .gitoku-browser-shell {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }

  .gitoku-browser-shell > * {
    min-width: 0;
    width: 100%;
  }
}

.gitoku-browser-pane,
.gitoku-preview-pane,
.gitoku-diff-card,
.gitoku-diff-summary {
  background: rgb(var(--gitoku-ink-975) / 0.55);
  border: 1px solid rgb(var(--gitoku-white) / 0.08);
  border-radius: var(--gitoku-radius-xl);
}

.gitoku-google-login {
  min-height: 40px;
}

.gitoku-google-login [data-google-login-button] {
  min-height: 40px;
  overflow: hidden;
  border-radius: 4px;
}

.gitoku-google-fallback {
  min-height: 44px;
}

.gitoku-browser-pane,
.gitoku-preview-pane {
  min-height: 20rem;
}

#repository-prompts .gitoku-browser-pane,
#repository-prompts .gitoku-preview-pane {
  min-height: 16rem;
}

#repository-prompts-preview .gitoku-prompts-preview-stack {
  gap: 1rem !important;
}

#repository-prompts-preview .gitoku-prompt-context-card,
#repository-prompts-preview .gitoku-empty-state {
  padding: 1rem !important;
}

@media (min-width: 992px) {
  #repository-prompts .gitoku-browser-content-pane {
    max-height: var(--gitoku-browser-available-height, none);
    overflow: auto;
  }
}

.gitoku-browser-explorer-pane {
  display: flex;
  flex-direction: column;
}

.gitoku-browser-content-pane {
  min-width: 0;
}

.gitoku-browser-tree {
  max-height: 70vh;
  overflow: auto;
}

.gitoku-tree-file-row {
  align-items: stretch;
  display: flex;
}

.gitoku-tree-folder summary,
.gitoku-tree-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--gitoku-radius-lg);
  border: 1px solid transparent;
  color: rgb(var(--gitoku-slate-300));
  cursor: pointer;
}

.gitoku-tree-folder summary {
  list-style: none;
}

.gitoku-tree-folder summary::-webkit-details-marker {
  display: none;
}

.gitoku-tree-folder summary,
.gitoku-tree-button {
  background: transparent;
  text-align: left;
}

.gitoku-tree-file-row .gitoku-tree-button {
  flex: 1 1 auto;
  margin-bottom: 0;
  min-width: 0;
}

.gitoku-tree-folder summary:hover,
.gitoku-tree-button:hover {
  background: rgb(var(--gitoku-slate-500) / 0.08);
  border-color: rgb(var(--gitoku-slate-500) / 0.12);
  color: rgb(var(--gitoku-slate-100));
}

.gitoku-prompt-entry-button {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.55rem;
  white-space: normal;
}

.gitoku-prompt-entry-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-width: 0;
}

.gitoku-prompt-entry-excerpt {
  color: rgb(var(--gitoku-slate-300));
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gitoku-prompt-entry-meta {
  align-items: center;
  color: rgb(var(--gitoku-slate-500));
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 0.45rem;
}

.gitoku-prompt-modified-file {
  background: rgb(var(--gitoku-ink-925) / 0.46);
  border: 1px solid rgb(var(--gitoku-white) / 0.08);
  border-radius: var(--gitoku-radius-lg);
  padding: 0.75rem 0.85rem;
}

.gitoku-tree-button[data-selected="True"] {
  background: rgb(var(--gitoku-sky-400) / 0.1);
  border-color: rgb(var(--gitoku-sky-400) / 0.18);
  color: rgb(var(--gitoku-slate-100));
}

.gitoku-tree-button:focus-visible,
.gitoku-tree-folder summary:focus-visible {
  outline: 2px solid rgb(var(--gitoku-amber-500) / 0.6);
  outline-offset: -2px;
}

.gitoku-tree-toggle,
.gitoku-tree-icon {
  color: rgb(var(--gitoku-slate-500));
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.gitoku-tree-toggle {
  transition: transform 160ms ease, color 160ms ease;
  width: 0.85rem;
}

.gitoku-tree-folder[open] > summary .gitoku-tree-toggle {
  color: rgb(var(--gitoku-amber-100));
  transform: rotate(90deg);
}

.gitoku-tree-icon {
  width: 1.1rem;
}

.gitoku-tree-toggle svg,
.gitoku-tree-icon svg {
  display: block;
  height: auto;
  width: 100%;
}

.gitoku-tree-icon-folder {
  color: rgb(var(--gitoku-amber-500));
}

.gitoku-tree-icon-file {
  color: rgb(var(--gitoku-sky-400));
}

.gitoku-tree-folder summary:hover .gitoku-tree-icon,
.gitoku-tree-button:hover .gitoku-tree-icon,
.gitoku-tree-button[data-selected="True"] .gitoku-tree-icon {
  color: inherit;
}

.gitoku-tree-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gitoku-tree-indent {
  padding-left: 0.85rem;
}

.gitoku-pr-file-tree-button {
  justify-content: space-between;
  text-decoration: none;
}

.gitoku-pr-file-tree-main {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  min-width: 0;
}

.gitoku-file-preview,
.gitoku-file-editor {
  --gitoku-file-line-gap: 0.5rem;
  --gitoku-file-line-gutter-width: 2.05rem;
  --gitoku-file-line-padding-inline-start: 0.7rem;
  --gitoku-file-line-padding-inline-end: 1.1rem;
  background: rgb(var(--gitoku-ink-925) / 0.88);
  border: 1px solid rgb(var(--gitoku-white) / 0.06);
  border-radius: var(--gitoku-radius-lg);
  color: rgb(var(--gitoku-slate-200));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  margin: 0;
  min-height: 18rem;
}

.gitoku-file-preview {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.85rem 0;
}

.gitoku-file-editor {
  display: block;
  line-height: 1.6;
  overflow: auto;
  padding: 0.85rem 1.1rem;
  resize: vertical;
  width: 100%;
}

.gitoku-file-editor:focus {
  border-color: rgb(var(--gitoku-amber-500) / 0.32);
  box-shadow: 0 0 0 1px rgb(var(--gitoku-amber-500) / 0.14);
  outline: none;
}

.gitoku-editor-actions {
  padding-top: 0.1rem;
}

.gitoku-file-line-row {
  display: flex;
  flex-direction: column;
}

.gitoku-file-line {
  align-items: flex-start;
  display: grid;
  gap: var(--gitoku-file-line-gap);
  grid-template-columns: var(--gitoku-file-line-gutter-width) minmax(0, 1fr);
  min-height: 1.6rem;
  padding: 0 var(--gitoku-file-line-padding-inline-end) 0 var(--gitoku-file-line-padding-inline-start);
  position: relative;
}

.gitoku-file-line:hover,
.gitoku-file-line:focus-within {
  background: rgb(var(--gitoku-amber-500) / 0.05);
}

.gitoku-file-line-group {
  position: relative;
}

.gitoku-file-line-group-lines {
  position: relative;
}

.gitoku-file-line-group-attributed .gitoku-file-line-group-lines::before {
  background: linear-gradient(180deg, rgb(var(--gitoku-amber-300) / 0.92), rgb(var(--gitoku-amber-500) / 0.82));
  border-radius: var(--gitoku-radius-pill);
  content: "";
  inset: 0.15rem auto 0.15rem 0.3rem;
  position: absolute;
  width: 0.22rem;
}

.gitoku-file-line-number {
  color: rgb(var(--gitoku-white) / 0.42);
  flex-shrink: 0;
  font-size: 0.78rem;
  line-height: 1.6rem;
  justify-self: end;
  padding-top: 0;
  text-align: right;
  user-select: none;
  width: auto;
}

.gitoku-file-line-main {
  min-width: 0;
  position: relative;
}

.gitoku-file-line.gitoku-ai-context-line {
  border-radius: 0.95rem;
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.gitoku-file-line.gitoku-ai-context-line:hover,
.gitoku-file-line.gitoku-ai-context-line:focus-visible {
  background: rgb(var(--gitoku-amber-300) / 0.08);
  box-shadow: inset 0 0 0 1px rgb(var(--gitoku-amber-300) / 0.16);
  outline: none;
}

.gitoku-file-line.gitoku-ai-context-line-start {
  border-bottom-left-radius: 0.35rem;
  border-bottom-right-radius: 0.35rem;
  border-top-left-radius: 0.95rem;
  border-top-right-radius: 0.95rem;
}

.gitoku-file-line.gitoku-ai-context-line-middle {
  border-radius: 0.35rem;
}

.gitoku-file-line.gitoku-ai-context-line-end {
  border-bottom-left-radius: 0.95rem;
  border-bottom-right-radius: 0.95rem;
  border-top-left-radius: 0.35rem;
  border-top-right-radius: 0.35rem;
}

.gitoku-file-line-code-shell {
  flex: 1 1 auto;
  min-width: 0;
}

.gitoku-file-line-context {
  flex: 0 0 auto;
}

.gitoku-file-line-trigger {
  align-self: flex-start;
}

.gitoku-file-line-context-row {
  display: grid;
  gap: var(--gitoku-file-line-gap);
  grid-template-columns: var(--gitoku-file-line-gutter-width) minmax(0, 1fr);
  padding: 0 var(--gitoku-file-line-padding-inline-end) 0.75rem var(--gitoku-file-line-padding-inline-start);
}

.gitoku-file-line-context-spacer {
  width: var(--gitoku-file-line-gutter-width);
}

.gitoku-file-line-context-panel {
  min-width: 0;
}

.gitoku-file-preview .sourceCode,
.gitoku-file-line-code {
  display: block;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

.gitoku-clone-command {
  background: rgb(var(--gitoku-ink-925) / 0.88);
  border: 1px solid rgb(var(--gitoku-white) / 0.08);
  border-radius: var(--gitoku-radius-lg);
  color: rgb(var(--gitoku-amber-100));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding: 1rem;
}

.gitoku-pr-card {
  background: rgb(var(--gitoku-ink-975) / 0.4);
  transition: transform 160ms ease, border-color 160ms ease;
}

.gitoku-clickable-card {
  cursor: pointer;
  position: relative;
}

.gitoku-clickable-card form,
.gitoku-clickable-card button,
.gitoku-clickable-card .btn,
.gitoku-clickable-card input,
.gitoku-clickable-card select,
.gitoku-clickable-card textarea {
  position: relative;
  z-index: 2;
}

.gitoku-list-card {
  transition: transform 160ms ease, border-color 160ms ease;
}

.gitoku-import-source-card {
  cursor: pointer;
}

.gitoku-import-source-card .gitoku-import-source-card-label,
.gitoku-import-source-card .form-check-input {
  cursor: inherit;
}

.gitoku-import-source-card-disabled {
  cursor: not-allowed;
}

.gitoku-list-card:hover {
  transform: translateY(-2px);
  border-color: rgb(var(--gitoku-sky-500) / 0.32) !important;
}

.gitoku-pr-card:hover {
  transform: translateY(-2px);
  border-color: rgb(var(--gitoku-sky-500) / 0.32) !important;
}

.gitoku-list-title-link,
.gitoku-pr-title-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  color: rgb(var(--gitoku-slate-100));
  text-decoration: none;
  transition: background-size 160ms ease, color 160ms ease;
}

.gitoku-list-title-link:hover,
.gitoku-list-title-link:focus,
.gitoku-pr-title-link:hover,
.gitoku-pr-title-link:focus,
.gitoku-clickable-card:hover .gitoku-list-title-link,
.gitoku-clickable-card:focus-within .gitoku-list-title-link,
.gitoku-clickable-card:hover .gitoku-pr-title-link,
.gitoku-clickable-card:focus-within .gitoku-pr-title-link {
  background-size: 100% 1px;
  color: rgb(var(--gitoku-sky-300));
}

.gitoku-commit-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gitoku-commit-card {
  background: rgb(var(--gitoku-ink-975) / 0.4);
  border: 1px solid rgb(var(--gitoku-white) / 0.08);
  border-radius: var(--gitoku-radius-xl);
  transition: border-color 160ms ease;
}

.gitoku-commit-card:hover {
  border-color: rgb(var(--gitoku-sky-500) / 0.32);
}

.gitoku-commit-diff-shell {
  background: rgb(var(--gitoku-ink-975) / 0.72);
  border: 1px solid rgb(var(--gitoku-white) / 0.08);
  border-radius: var(--gitoku-radius-xl);
  color: rgb(var(--gitoku-slate-300));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  overflow-x: auto;
  padding: 1.25rem;
  white-space: pre;
}

.gitoku-commit-prompt {
  white-space: pre-wrap;
}

/* ── Light theme: Repository browser & file tree ─── */

[data-bs-theme="light"] .gitoku-repository-toolbar,
[data-bs-theme="light"] .gitoku-commit-summary-row {
  background: rgb(var(--gitoku-slate-200) / 0.82);
  border-bottom-color: rgb(var(--gitoku-ink-925) / 0.08);
}

[data-bs-theme="light"] .gitoku-browser-pane,
[data-bs-theme="light"] .gitoku-preview-pane {
  background: rgb(var(--gitoku-white) / 0.82);
  border-color: rgb(var(--gitoku-ink-925) / 0.08);
}

[data-bs-theme="light"] .gitoku-tree-folder summary,
[data-bs-theme="light"] .gitoku-tree-button {
  color: rgb(var(--gitoku-slate-800));
}

[data-bs-theme="light"] .gitoku-tree-folder summary:hover,
[data-bs-theme="light"] .gitoku-tree-button:hover {
  background: rgb(var(--gitoku-slate-500) / 0.08);
  border-color: rgb(var(--gitoku-slate-500) / 0.14);
  color: rgb(var(--gitoku-slate-800));
}

[data-bs-theme="light"] .gitoku-tree-button[data-selected="True"] {
  background: rgb(var(--gitoku-sky-700) / 0.08);
  border-color: rgb(var(--gitoku-sky-700) / 0.16);
  color: rgb(var(--gitoku-sky-900));
}

[data-bs-theme="light"] .gitoku-prompt-entry-excerpt {
  color: rgb(var(--gitoku-slate-800));
}

[data-bs-theme="light"] .gitoku-prompt-entry-meta {
  color: rgb(var(--gitoku-slate-700));
}

[data-bs-theme="light"] .gitoku-prompt-entry-meta code {
  color: #be185d;
}

[data-bs-theme="light"] .gitoku-tree-button[data-selected="True"] .gitoku-prompt-entry-excerpt {
  color: rgb(var(--gitoku-ink-850));
}

[data-bs-theme="light"] .gitoku-tree-button[data-selected="True"] .gitoku-prompt-entry-meta {
  color: rgb(var(--gitoku-slate-800));
}

[data-bs-theme="light"] .gitoku-tree-toggle,
[data-bs-theme="light"] .gitoku-tree-icon {
  color: rgb(var(--gitoku-slate-600));
}

[data-bs-theme="light"] .gitoku-tree-icon-folder {
  color: rgb(var(--gitoku-amber-700));
}

[data-bs-theme="light"] .gitoku-tree-icon-file {
  color: rgb(var(--gitoku-sky-700));
}

[data-bs-theme="light"] .gitoku-tree-folder[open] > summary .gitoku-tree-toggle {
  color: rgb(var(--gitoku-amber-900));
}

/* ── Light theme: File preview & editor ──────────── */

[data-bs-theme="light"] .gitoku-file-preview,
[data-bs-theme="light"] .gitoku-file-editor {
  background: rgb(var(--gitoku-slate-100) / 0.92);
  border-color: rgb(var(--gitoku-ink-925) / 0.08);
  color: rgb(var(--gitoku-ink-850));
}

[data-bs-theme="light"] .gitoku-file-editor:focus {
  border-color: rgb(var(--gitoku-amber-700) / 0.32);
  box-shadow: 0 0 0 1px rgb(var(--gitoku-amber-700) / 0.1);
}

[data-bs-theme="light"] .gitoku-file-line:hover,
[data-bs-theme="light"] .gitoku-file-line:focus-within {
  background: rgb(var(--gitoku-amber-700) / 0.04);
}

[data-bs-theme="light"] .gitoku-file-line-number {
  color: rgb(var(--gitoku-ink-925) / 0.44);
}

/* ── Light theme: Clone tabs & command ───────────── */

[data-bs-theme="light"] .gitoku-clone-tabs .nav-link {
  background: rgb(var(--gitoku-ink-925) / 0.03);
  border-color: rgb(var(--gitoku-ink-925) / 0.08);
  color: rgb(var(--gitoku-slate-700));
}

[data-bs-theme="light"] .gitoku-clone-tabs .nav-link.active {
  background: rgb(var(--gitoku-amber-700) / 0.1);
  border-color: rgb(var(--gitoku-amber-700) / 0.24);
  color: rgb(var(--gitoku-amber-900));
}

[data-bs-theme="light"] .gitoku-clone-command {
  background: rgb(var(--gitoku-slate-100) / 0.92);
  border-color: rgb(var(--gitoku-ink-925) / 0.08);
  color: rgb(var(--gitoku-amber-800));
}

/* ── Light theme: PR cards, list cards, commit cards  */

[data-bs-theme="light"] .gitoku-pr-card,
[data-bs-theme="light"] .gitoku-commit-card {
  background: rgb(var(--gitoku-white) / 0.78);
  border-color: rgb(var(--gitoku-ink-925) / 0.08);
}

[data-bs-theme="light"] .gitoku-list-card:hover,
[data-bs-theme="light"] .gitoku-pr-card:hover,
[data-bs-theme="light"] .gitoku-commit-card:hover {
  border-color: rgb(var(--gitoku-sky-800) / 0.28) !important;
}

[data-bs-theme="light"] .gitoku-list-title-link,
[data-bs-theme="light"] .gitoku-pr-title-link {
  color: rgb(var(--gitoku-ink-850));
}

[data-bs-theme="light"] .gitoku-list-title-link:hover,
[data-bs-theme="light"] .gitoku-list-title-link:focus,
[data-bs-theme="light"] .gitoku-pr-title-link:hover,
[data-bs-theme="light"] .gitoku-pr-title-link:focus,
[data-bs-theme="light"] .gitoku-clickable-card:hover .gitoku-list-title-link,
[data-bs-theme="light"] .gitoku-clickable-card:focus-within .gitoku-list-title-link,
[data-bs-theme="light"] .gitoku-clickable-card:hover .gitoku-pr-title-link,
[data-bs-theme="light"] .gitoku-clickable-card:focus-within .gitoku-pr-title-link {
  color: rgb(var(--gitoku-sky-800));
}

/* ── Light theme: Commit diff shell ──────────────── */

[data-bs-theme="light"] .gitoku-commit-diff-shell {
  background: rgb(var(--gitoku-slate-100) / 0.88);
  border-color: rgb(var(--gitoku-ink-925) / 0.08);
  color: rgb(var(--gitoku-slate-800));
}

/* ── Light theme: Copy button ────────────────────── */

[data-bs-theme="light"] .gitoku-copy-button[data-copied="true"] {
  background: rgb(var(--gitoku-emerald-500) / 0.12);
  border-color: rgb(var(--gitoku-emerald-500) / 0.3);
  color: rgb(var(--gitoku-emerald-700));
}

[data-bs-theme="light"] .gitoku-copy-button[data-copied="true"]:hover,
[data-bs-theme="light"] .gitoku-copy-button[data-copied="true"]:focus {
  background: rgb(var(--gitoku-emerald-500) / 0.16);
  border-color: rgb(var(--gitoku-emerald-500) / 0.38);
  color: rgb(var(--gitoku-emerald-700));
}

/* ── Light theme: Repo card hover ────────────────── */

[data-bs-theme="light"] .gitoku-repo-card:hover {
  border-color: rgb(var(--gitoku-amber-700) / 0.3) !important;
}

/* ── Light theme: Repo tab link ──────────────────── */

[data-bs-theme="light"] .gitoku-repo-tab-link {
  color: rgb(var(--gitoku-slate-700));
}

[data-bs-theme="light"] .gitoku-repo-tab-link:hover,
[data-bs-theme="light"] .gitoku-repo-tab-link:focus {
  background: rgb(var(--gitoku-ink-925) / 0.04);
  border-color: rgb(var(--gitoku-ink-925) / 0.06);
  color: rgb(var(--gitoku-ink-850));
}

[data-bs-theme="light"] .gitoku-repo-tab-link.active {
  background: rgb(var(--gitoku-ink-925) / 0.05);
  border-color: rgb(var(--gitoku-ink-925) / 0.08);
  color: rgb(var(--gitoku-ink-850));
}

/* ── Light theme: Avatar ─────────────────────────── */

[data-bs-theme="light"] .gitoku-avatar {
  background: linear-gradient(135deg, rgb(var(--gitoku-amber-700)) 0%, rgb(var(--gitoku-amber-700)) 100%);
  color: rgb(var(--gitoku-white));
}

.gitoku-workflow-log-entry {
  background: rgb(var(--gitoku-white) / 0.04);
}

.gitoku-workflow-log-entry-summary {
  cursor: pointer;
  display: block;
  list-style: none;
}

.gitoku-workflow-log-entry-summary::-webkit-details-marker {
  display: none;
}

.gitoku-workflow-log-entry-summary::marker {
  display: none;
}

.gitoku-workflow-log-entry-toggle {
  display: inline-flex;
  line-height: 1;
  margin-top: 0.125rem;
  transition: transform 0.15s ease;
}

.gitoku-workflow-log-entry[open] > .gitoku-workflow-log-entry-summary .gitoku-workflow-log-entry-toggle {
  transform: rotate(90deg);
}

.gitoku-workflow-log-entry-panel {
  min-width: 0;
}

[data-bs-theme="light"] .gitoku-workflow-log-entry {
  background: rgb(var(--gitoku-slate-100) / 0.88);
}
