:root {
  --bs-body-bg: #0d1117;
  --bs-body-color: #f5f7fb;
  --bs-secondary-color: #98a2b3;
  --bs-warning: #f6ad55;
  --bs-warning-rgb: 246, 173, 85;
  --bs-link-color: #f6ad55;
  --bs-link-hover-color: #ffd08a;
  --gitoku-surface: rgba(15, 23, 42, 0.78);
  --gitoku-surface-border: rgba(255, 255, 255, 0.08);
  --gitoku-sidebar-width: 18rem;
}

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

body.gitoku-shell {
  background:
    radial-gradient(circle at top left, rgba(246, 173, 85, 0.28), transparent 32%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.2), transparent 28%),
    linear-gradient(180deg, #111827 0%, #0d1117 50%, #090c10 100%);
  font-family: "Instrument Sans", "Inter", "Segoe UI", sans-serif;
}

.gitoku-flash {
  z-index: 1080;
  width: min(32rem, calc(100vw - 1.5rem));
}

.gitoku-public-nav {
  backdrop-filter: blur(20px);
  background: rgba(6, 11, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.gitoku-auth-shell,
.gitoku-dashboard {
  position: relative;
}

.gitoku-auth-divider {
  letter-spacing: 0.14em;
}

.gitoku-empty-state,
.gitoku-repo-card,
.gitoku-marketing-panel,
.gitoku-auth-card,
.gitoku-surface {
  backdrop-filter: blur(20px);
  background: var(--gitoku-surface);
  border: 1px solid var(--gitoku-surface-border);
}

.gitoku-marketing-panel {
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.28);
}

.gitoku-auth-card {
  border-radius: 1.75rem;
}

.gitoku-surface {
  border-radius: 1.5rem;
}

.gitoku-empty-state,
.gitoku-repo-card {
  background: rgba(6, 11, 21, 0.55);
}

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

.gitoku-repo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 173, 85, 0.4) !important;
}

.form-control,
.form-control:disabled,
.form-control:focus {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.form-control::placeholder {
  color: rgba(248, 250, 252, 0.45);
}

.btn-warning {
  color: #16181d;
  font-weight: 600;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
}

.alert {
  border: 0;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.24);
}

.gitoku-layout-shell {
  position: relative;
}

.gitoku-main {
  min-height: 100vh;
}

.gitoku-sidebar-desktop {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--gitoku-sidebar-width);
  padding: 5rem 1rem 1.5rem;
  background: rgba(6, 11, 21, 0.72);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--gitoku-surface-border);
  z-index: 1030;
}

.gitoku-sidebar-offcanvas {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(9, 12, 16, 0.98) 100%);
}

.gitoku-sidebar-panel,
.gitoku-settings-section,
.gitoku-settings-modal {
  backdrop-filter: blur(20px);
}

.gitoku-sidebar-panel,
.gitoku-settings-section {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--gitoku-surface-border);
}

.gitoku-sidebar-nav .btn {
  border-radius: 0.95rem;
  padding: 0.8rem 1rem;
}

.gitoku-account-toggle {
  background: rgba(6, 11, 21, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  color: #f5f7fb;
  padding: 0.85rem 1rem;
}

.gitoku-account-toggle:hover,
.gitoku-account-toggle:focus,
.gitoku-account-toggle:active,
.gitoku-account-toggle.show {
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(246, 173, 85, 0.3) !important;
  color: #fff6df !important;
}

.gitoku-account-toggle::after {
  margin-left: auto;
}

.gitoku-account-menu {
  --bs-dropdown-bg: rgba(9, 12, 16, 0.96);
  --bs-dropdown-border-color: rgba(255, 255, 255, 0.08);
  --bs-dropdown-link-color: #f5f7fb;
  --bs-dropdown-link-hover-color: #fff6df;
  --bs-dropdown-link-hover-bg: rgba(246, 173, 85, 0.12);
  --bs-dropdown-link-active-bg: rgba(246, 173, 85, 0.18);
  --bs-dropdown-link-active-color: #fff6df;
  border-radius: 1rem;
  padding: 0.5rem;
}

.gitoku-account-menu .dropdown-item {
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
}

.gitoku-account-menu form {
  margin: 0;
}

.gitoku-avatar {
  align-items: center;
  background: linear-gradient(135deg, #f6ad55 0%, #facc15 100%);
  border-radius: 999px;
  color: #16181d;
  display: inline-flex;
  flex: 0 0 2.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  height: 2.75rem;
  justify-content: center;
  line-height: 1;
  width: 2.75rem;
}

.gitoku-settings-modal {
  background: rgba(9, 12, 16, 0.96);
}

.gitoku-settings-tabs .nav-link {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 600;
  padding: 0.65rem 1rem;
}

.gitoku-settings-tabs .nav-link:hover,
.gitoku-settings-tabs .nav-link:focus {
  color: #fff6df;
}

.gitoku-settings-tabs .nav-link.active {
  background: rgba(246, 173, 85, 0.18);
  border-color: rgba(246, 173, 85, 0.35);
  color: #fff6df;
}

.gitoku-settings-tabs + .tab-content {
  margin-top: 1.25rem;
}

@media (min-width: 992px) {
  .gitoku-main {
    margin-left: var(--gitoku-sidebar-width);
    width: calc(100% - var(--gitoku-sidebar-width));
  }
}

.gitoku-repo-path {
  color: #94a3b8;
  font-size: 1.15rem;
  font-weight: 600;
}

.gitoku-repo-nav-shell,
.gitoku-repository-browser,
.gitoku-diff-card,
.gitoku-diff-summary {
  background: rgba(6, 11, 21, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
}

.gitoku-repo-nav-shell {
  backdrop-filter: blur(20px);
  padding: 0.9rem 1rem;
}

.gitoku-repo-tabs {
  gap: 0.75rem;
}

.gitoku-repo-tab-link {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  color: #cbd5e1;
  font-weight: 600;
  padding: 0.7rem 0.95rem;
}

.gitoku-repo-tab-link:hover,
.gitoku-repo-tab-link:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff6df;
}

.gitoku-repo-tab-link.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

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

.gitoku-clone-trigger {
  font-weight: 700;
}

.gitoku-clone-menu,
.gitoku-repo-dropdown {
  --bs-dropdown-bg: rgba(9, 12, 16, 0.98);
  --bs-dropdown-border-color: rgba(255, 255, 255, 0.08);
  --bs-dropdown-link-color: #f5f7fb;
  --bs-dropdown-link-hover-bg: rgba(246, 173, 85, 0.12);
  --bs-dropdown-link-hover-color: #fff6df;
  --bs-dropdown-link-active-bg: rgba(246, 173, 85, 0.18);
  --bs-dropdown-link-active-color: #fff6df;
}

.gitoku-clone-menu {
  border-radius: 1rem;
  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: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
}

.gitoku-clone-tabs .nav-link.active {
  background: rgba(246, 173, 85, 0.18);
  border-color: rgba(246, 173, 85, 0.35);
  color: #fff6df;
}

.gitoku-pr-banner {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.14) 0%, rgba(34, 197, 94, 0.14) 100%);
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 1.25rem;
}

.gitoku-repository-browser {
  overflow: hidden;
}

.gitoku-repository-toolbar,
.gitoku-commit-summary-row {
  background: rgba(15, 23, 42, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gitoku-repo-toolbar-button {
  min-width: 10rem;
}

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

.gitoku-repo-dropdown .dropdown-item {
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
}

.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 {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  gap: 1rem;
}

.gitoku-browser-pane,
.gitoku-preview-pane,
.gitoku-diff-card,
.gitoku-diff-summary {
  background: rgba(6, 11, 21, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
}

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

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

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

.gitoku-tree-folder summary,
.gitoku-tree-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  color: #e2e8f0;
  cursor: pointer;
}

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

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

.gitoku-tree-button {
  background: transparent;
  border: 0;
  text-align: left;
}

.gitoku-tree-folder summary:hover,
.gitoku-tree-button:hover,
.gitoku-tree-button[data-selected="True"] {
  background: rgba(246, 173, 85, 0.12);
  color: #fff6df;
}

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

.gitoku-file-preview {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  color: #edf2f7;
  margin: 0;
  min-height: 18rem;
  overflow: auto;
  padding: 1rem 1.1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.gitoku-clone-command {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  color: #fff6df;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding: 1rem;
}

.gitoku-copy-button[data-copy-state="copied"] {
  background: rgba(246, 173, 85, 0.2);
  border-color: rgba(246, 173, 85, 0.45);
  color: #fff6df;
}

.gitoku-pr-card {
  background: rgba(6, 11, 21, 0.4);
  transition: transform 160ms ease, border-color 160ms ease;
}

.gitoku-pr-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.32) !important;
}

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

.gitoku-commit-card {
  background: rgba(6, 11, 21, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: transform 160ms ease, border-color 160ms ease;
}

.gitoku-commit-card:hover {
  border-color: rgba(246, 173, 85, 0.28);
  transform: translateY(-1px);
}

.gitoku-roadmap-copy {
  max-width: 44rem;
}

.gitoku-roadmap-search {
  min-width: min(100%, 22rem);
}

.gitoku-roadmap-card {
  background: rgba(6, 11, 21, 0.48);
}

.gitoku-roadmap-description,
.gitoku-roadmap-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.gitoku-roadmap-comment {
  background: rgba(6, 11, 21, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
}

.gitoku-roadmap-avatar {
  align-items: center;
  background: rgba(246, 173, 85, 0.16);
  border: 1px solid rgba(246, 173, 85, 0.26);
  border-radius: 999px;
  color: #fff6df;
  display: inline-flex;
  font-weight: 700;
  height: 2.75rem;
  justify-content: center;
  width: 2.75rem;
}

.gitoku-diff-summary {
  background: rgba(15, 23, 42, 0.78);
}

.gitoku-summary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gitoku-diff-card {
  overflow: hidden;
}

.gitoku-diff-card-header,
.gitoku-diff-hunk-header {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gitoku-diff-hunks {
  display: flex;
  flex-direction: column;
}

.gitoku-diff-hunk + .gitoku-diff-hunk {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gitoku-diff-table {
  --bs-table-bg: transparent;
  --bs-table-color: #e5edf7;
  --bs-table-border-color: rgba(255, 255, 255, 0.05);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  margin-bottom: 0;
}

.gitoku-diff-table td {
  border-top: 0;
  padding: 0.15rem 0.75rem;
  vertical-align: top;
}

.gitoku-diff-line-number {
  text-align: right;
  user-select: none;
  width: 3.25rem;
}

.gitoku-diff-line-sign {
  text-align: center;
  user-select: none;
  width: 2rem;
}

.gitoku-diff-code-cell {
  width: 100%;
}

.gitoku-inline-code,
.sourceCode {
  background: transparent;
  color: inherit;
  display: block;
  font-family: inherit;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.gitoku-diff-row-context {
  background: rgba(13, 17, 23, 0.28);
}

.gitoku-diff-row-addition {
  background: rgba(34, 197, 94, 0.11);
}

.gitoku-diff-row-deletion {
  background: rgba(248, 113, 113, 0.12);
}

.gitoku-diff-row-note {
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  font-style: italic;
}

.sourceCode .kw,
.sourceCode .cf {
  color: #ff9e64;
  font-weight: 700;
}

.sourceCode .dt,
.sourceCode .bu {
  color: #7dd3fc;
}

.sourceCode .fu {
  color: #93c5fd;
}

.sourceCode .va,
.sourceCode .at,
.sourceCode .an {
  color: #f9a8d4;
}

.sourceCode .op {
  color: #f8fafc;
}

.sourceCode .st,
.sourceCode .ss,
.sourceCode .vs,
.sourceCode .ch {
  color: #86efac;
}

.sourceCode .dv,
.sourceCode .bn,
.sourceCode .fl {
  color: #fcd34d;
}

.sourceCode .co,
.sourceCode .cv,
.sourceCode .do {
  color: #94a3b8;
  font-style: italic;
}

.sourceCode .pp,
.sourceCode .im {
  color: #c4b5fd;
}

@media (max-width: 991.98px) {
  .gitoku-marketing-panel {
    padding: 1.5rem;
  }

  .gitoku-account-menu {
    width: 100%;
  }

  .gitoku-browser-shell {
    grid-template-columns: 1fr;
  }

  .gitoku-summary-grid {
    grid-template-columns: 1fr;
  }

  .gitoku-public-nav {
    border-radius: 1.25rem;
  }
}
