/* Codra — GitHub Dark Theme */
:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --bg-softer: #21262d;
  --border: #30363d;
  --border-soft: #21262d;
  --fg: #c9d1d9;
  --fg-muted: #8b949e;
  --fg-light: #6e7681;
  --link: #58a6ff;
  --link-hover: #79c0ff;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --accent-light: #1f6feb;
  --success: #3fb950;
  --success-light: #0d4f21;
  --danger: #f85149;
  --danger-light: #490202;
  --warning: #d29922;
  --warning-light: #735c0f;
  --info: #58a6ff;
  --info-light: #0d4f8c;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.4), 0 6px 6px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.3), 0 10px 10px -5px rgba(0,0,0,0.2);
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--fg); background: var(--bg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); font-size: 13px; }
h1, h2, h3 { margin: 0 0 12px; font-weight: 600; }
h1 { font-size: 24px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 16px 0; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.main { padding: 32px 24px; min-height: calc(100vh - 140px); }
.centered { max-width: 800px; margin: 0 auto; }

.topbar { 
  background: var(--bg-soft); 
  color: var(--fg); 
  padding: 16px 0; 
  position: sticky; 
  top: 0; 
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; }
.topbar a { color: var(--fg); transition: color 0.2s ease; }
.topbar a:hover { color: var(--link); text-decoration: none; }
.brand { 
  font-weight: 600; 
  font-size: 20px; 
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand::before {
  content: "⎇";
  font-size: 18px;
}
.search { flex: 1; max-width: 400px; }
.search input { 
  width: 100%; 
  padding: 8px 12px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  background: var(--bg-softer); 
  color: var(--fg);
  transition: all 0.2s ease;
}
.search input:focus { 
  outline: none; 
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.search input::placeholder { color: var(--fg-muted); }
.nav-left { display: flex; align-items: center; gap: 20px; flex: 1; }
.navlinks { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; }

/* Dropdowns */
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.dropdown-toggle:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
}
.profile-btn {
  padding: 4px;
  border: 1px solid var(--border);
  background: none;
}
.avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  display: none;
  padding: 8px 0;
  margin-top: 4px;
}
.dropdown-menu-right {
  right: 0;
  left: auto;
}
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Prevent dropdown from closing when moving from button to menu */
.dropdown {
  position: relative;
}

.dropdown-toggle + .dropdown-menu {
  margin-top: 0;
}
.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease;
}
.dropdown-menu a:hover {
  background: var(--bg);
  color: var(--link);
}
.dropdown-menu hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--fg);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}
.nav-icon:hover {
  background: var(--bg-soft);
}

.footer { border-top: 1px solid var(--border-soft); padding: 16px 0; color: var(--fg-muted); font-size: 12px; }
.footer .wrap { display: flex; justify-content: space-between; }

/* Buttons */
.btn, .btn-primary, .btn-danger, .btn-ghost {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  padding: 8px 16px; 
  border-radius: var(--radius); 
  font-size: 14px; 
  font-weight: 500; 
  cursor: pointer; 
  border: 1px solid var(--border);
  background: var(--bg-soft); 
  color: var(--fg); 
  text-decoration: none; 
  line-height: 1;
  transition: all 0.2s ease;
}
.btn:hover { 
  background: var(--bg-softer); 
  text-decoration: none; 
  border-color: var(--accent);
}
.btn-primary { 
  background: var(--accent); 
  color: #fff; 
  border-color: var(--accent); 
}
.btn-primary:hover { 
  background: var(--accent-hover); 
  color: #fff; 
  border-color: var(--accent-hover);
}
.btn-danger { 
  background: var(--danger); 
  color: #fff; 
  border-color: var(--danger); 
}
.btn-danger:hover { 
  background: #dc3545; 
  color: #fff; 
  border-color: #dc3545;
}
.btn-ghost { 
  background: transparent; 
  border-color: var(--border); 
  color: var(--fg);
}
.btn-ghost:hover { 
  background: var(--bg-soft); 
  border-color: var(--accent);
}

/* Forms */
.form { 
  max-width: 680px; 
  background: var(--bg-soft); 
  border: 1px solid var(--border); 
  border-radius: var(--radius-lg); 
  padding: 24px; 
  margin: 0 auto;
}
.form label { 
  display: block; 
  margin: 16px 0 6px; 
  font-weight: 600; 
  font-size: 14px; 
  color: var(--fg);
}
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=url], .form textarea, .form select {
  width: 100%; 
  padding: 8px 12px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius);
  font-family: inherit; 
  font-size: 14px; 
  background: var(--bg);
  color: var(--fg);
  transition: all 0.2s ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; 
  border-color: var(--accent); 
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: flex; gap: 16px; }
.form .row > * { flex: 1; }
.form .actions { margin-top: 24px; display: flex; gap: 12px; }
.form .help { color: var(--fg-muted); font-size: 12px; margin-top: 6px; }

/* Flash */
.flash { 
  padding: 12px 16px; 
  font-size: 14px; 
  font-weight: 500;
  border-radius: var(--radius);
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid;
}
.flash-info { 
  background: var(--info-light); 
  color: var(--info); 
  border-color: var(--info);
}
.flash-error { 
  background: var(--danger-light); 
  color: var(--danger); 
  border-color: var(--danger);
}
.flash-success { 
  background: var(--success-light); 
  color: var(--success); 
  border-color: var(--success);
}

/* Cards & lists */
.card { 
  border: 1px solid var(--border); 
  border-radius: var(--radius-lg); 
  padding: 20px; 
  background: var(--bg-soft); 
  margin-bottom: 16px;
}
.card + .card { margin-top: 16px; }
.muted { color: var(--fg-muted); }
.small { font-size: 12px; }
.badge { 
  display: inline-block; 
  padding: 2px 8px; 
  border-radius: 12px; 
  font-size: 11px; 
  font-weight: 600;
  border: 1px solid var(--border); 
  background: var(--bg-softer); 
  color: var(--fg-muted); 
}
.badge-open { 
  background: var(--success-light); 
  color: var(--success); 
  border-color: var(--success);
}
.badge-closed { 
  background: var(--danger-light); 
  color: var(--danger); 
  border-color: var(--danger);
}
.badge-private { 
  background: var(--warning-light); 
  color: var(--warning); 
  border-color: var(--warning);
}

/* Repo list */
.repo-list { list-style: none; padding: 0; margin: 0; }
.repo-list li { 
  padding: 20px 0; 
  border-bottom: 1px solid var(--border-soft); 
  transition: all 0.2s ease;
}
.repo-list li:hover {
  background: var(--bg-soft);
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 -16px;
  border-radius: var(--radius);
}
.repo-list li:last-child { border-bottom: 0; }
.repo-title { 
  font-size: 20px; 
  font-weight: 700; 
  color: var(--link);
  transition: color 0.2s ease;
}
.repo-title:hover { color: var(--link-hover); }
.repo-desc { 
  color: var(--fg-muted); 
  margin-top: 8px; 
  font-size: 15px;
  line-height: 1.4;
}
.repo-meta { 
  color: var(--fg-muted); 
  font-size: 13px; 
  margin-top: 12px; 
  display: flex; 
  gap: 20px; 
  font-weight: 500;
}

/* Layouts */
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 24px; } }

/* Dashboard Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 1200px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-right {
    display: none;
  }
}
@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    display: none;
  }
}

.dashboard-sidebar, .dashboard-right {
  min-width: 0;
}

.sidebar-section {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.sidebar-section h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.sidebar-repo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-repo-list li {
  margin-bottom: 4px;
}

.sidebar-repo-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  color: var(--fg);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.sidebar-repo-list a:hover {
  background: var(--bg);
}

.repo-icon {
  font-size: 12px;
}

.repo-name {
  flex: 1;
  font-size: 13px;
}

.dashboard-main {
  min-width: 0;
}

.activity-feed {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-message {
  margin: 4px 0;
  font-size: 14px;
}

.activity-message a {
  color: var(--link);
  text-decoration: none;
}

.activity-message a:hover {
  text-decoration: underline;
}

.activity-time {
  font-size: 12px;
  color: var(--fg-muted);
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.starred-repo {
  padding: 4px 0;
}

.starred-repo a {
  color: var(--link);
  text-decoration: none;
  font-size: 13px;
}

.starred-repo a:hover {
  text-decoration: underline;
}

/* Repo header & tabs */
.repo-header { 
  padding: 24px 0 0; 
  border-bottom: 1px solid var(--border-soft); 
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
}

.repo-title-section {
  margin-bottom: 16px;
}

.repo-header h1 { 
  font-size: 28px; 
  font-weight: 700; 
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.repo-header h1 strong { 
  font-weight: 800; 
  color: var(--fg);
}
.repo-description { 
  color: var(--fg-muted); 
  font-size: 16px; 
  margin: 0 0 16px;
  line-height: 1.4;
}

.repo-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.repo-tabs { 
  display: flex; 
  gap: 4px; 
  margin-top: 0; 
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
}
.repo-tabs a { 
  padding: 12px 16px; 
  color: var(--fg-muted); 
  border-bottom: 3px solid transparent; 
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border-radius: var(--radius) var(--radius) 0 0;
  white-space: nowrap;
  text-decoration: none;
}
.repo-tabs a:hover { 
  text-decoration: none; 
  background: var(--bg-soft); 
  color: var(--fg);
}
.repo-tabs a.active { 
  border-bottom-color: var(--accent); 
  color: var(--accent);
  background: var(--accent-light);
}

/* File Explorer Bar */
.file-explorer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-bottom: 0;
}

.branch-selector {
  display: flex;
  align-items: center;
}

.branch-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.branch-dropdown-toggle:hover {
  background: var(--bg-softer);
  border-color: var(--accent);
}

.branch-icon {
  font-size: 12px;
}

.branch-name {
  font-weight: 600;
}

.branch-arrow {
  font-size: 10px;
  color: var(--fg-muted);
}

.file-explorer-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-top: none;
  font-size: 14px;
  color: var(--fg-muted);
}

.breadcrumb a {
  color: var(--link);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--fg);
}

/* File browser */
.files { 
  border: 1px solid var(--border); 
  border-radius: var(--radius-lg); 
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: none;
}
.files .head { 
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-softer) 100%); 
  padding: 16px 24px; 
  border-bottom: 1px solid var(--border); 
  font-size: 13px; 
  color: var(--fg-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.files .row { 
  display: flex; 
  align-items: center;
  padding: 12px 24px; 
  border-bottom: 1px solid var(--border-soft); 
  font-size: 14px;
  transition: all 0.2s ease;
}
.files .row:hover {
  background: var(--bg-soft);
}
.files .row:last-child { border-bottom: 0; }

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin-bottom: 4px;
}

.file-name a {
  color: var(--link);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-name a:hover {
  text-decoration: underline;
}

.file-icon {
  font-size: 16px;
  color: var(--fg-muted);
}

.file-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-muted);
}

.commit-message {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commit-time {
  color: var(--fg-light);
  white-space: nowrap;
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-size {
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* File Viewer */
.file-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 16px;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-path {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.file-path a {
  color: var(--link);
  text-decoration: none;
}

.file-path a:hover {
  text-decoration: underline;
}

.file-path span {
  color: var(--fg);
}

.file-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--fg-muted);
}

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

.file-content {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.binary-warning {
  padding: 40px;
  text-align: center;
  color: var(--fg-muted);
}

.binary-warning p {
  margin-bottom: 16px;
}

.code-view {
  overflow-x: auto;
}

.code-table {
  width: 100%;
  border-collapse: collapse;
}

.line-numbers {
  background: var(--bg-softer);
  border-right: 1px solid var(--border);
  padding: 0;
  width: 50px;
  vertical-align: top;
  user-select: none;
}

.line-number {
  height: 20px;
  line-height: 20px;
  text-align: right;
  padding-right: 10px;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--mono);
  cursor: pointer;
}

.line-number:hover {
  background: var(--bg-soft);
}

.code-content {
  padding: 0;
  vertical-align: top;
}

.code-content pre {
  margin: 0;
  padding: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 20px;
  color: var(--fg);
  white-space: pre;
  overflow-x: auto;
}

.code-content code {
  background: transparent;
  padding: 0;
  border: none;
  color: inherit;
}

/* Basic syntax highlighting */
.language-php .keyword { color: #c678dd; }
.language-php .string { color: #98c379; }
.language-php .comment { color: #5c6370; font-style: italic; }
.language-php .variable { color: #e06c75; }
.language-php .function { color: #61afef; }

.language-javascript .keyword { color: #c678dd; }
.language-javascript .string { color: #98c379; }
.language-javascript .comment { color: #5c6370; font-style: italic; }
.language-javascript .function { color: #61afef; }

.language-css .selector { color: #e06c75; }
.language-css .property { color: #d19a66; }
.language-css .value { color: #98c379; }
.language-css .comment { color: #5c6370; font-style: italic; }

.language-html .tag { color: #e06c75; }
.language-html .attribute { color: #d19a66; }
.language-html .value { color: #98c379; }
.language-html .comment { color: #5c6370; font-style: italic; }

/* Commits Page */
.commits-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 16px;
}

.commits-info {
  font-size: 14px;
  color: var(--fg-muted);
}

.commits-list {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.commit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s ease;
}

.commit-item:hover {
  background: var(--bg);
}

.commit-item:last-child {
  border-bottom: none;
}

.commit-avatar {
  flex-shrink: 0;
}

.commit-content {
  flex: 1;
  min-width: 0;
}

.commit-header {
  margin-bottom: 8px;
}

.commit-title {
  margin-bottom: 4px;
}

.commit-title a {
  color: var(--fg);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.commit-title a:hover {
  color: var(--link);
}

.commit-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-muted);
}

.commit-hash {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 11px;
}

.commit-author {
  font-weight: 500;
}

.commit-time {
  color: var(--fg-light);
}

.commit-files {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.commit-file {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
}

.file-status {
  font-size: 10px;
}

.file-name {
  color: var(--link);
  text-decoration: none;
}

.file-name:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--fg-muted);
}

.empty-state p {
  margin-bottom: 16px;
}

/* Pages */
.pages-setup {
  text-align: center;
  padding: 32px;
}

.pages-setup h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.pages-setup p {
  color: var(--fg-muted);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pages-status {
  padding: 32px;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.status-header h3 {
  font-size: 24px;
  margin: 0;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active {
  background: var(--success);
  color: white;
}

.pages-info {
  margin-bottom: 32px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item label {
  font-weight: 600;
  min-width: 120px;
  color: var(--fg-muted);
}

.info-item a {
  color: var(--link);
  text-decoration: none;
}

.info-item a:hover {
  text-decoration: underline;
}

.pages-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.analytics-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.analytics-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.analytics-label {
  font-size: 14px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Commits / issues */
.commit, .issue { 
  padding: 20px 24px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-lg); 
  margin-bottom: 12px; 
  background: var(--bg); 
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}
.commit:hover, .issue:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.commit .msg { 
  font-weight: 600; 
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 8px;
}
.commit .meta, .issue .meta { 
  color: var(--fg-muted); 
  font-size: 13px; 
  margin-top: 8px;
  font-weight: 500;
}
.issue-title { 
  font-size: 18px; 
  font-weight: 700; 
  color: var(--fg);
  margin-bottom: 8px;
}
.comment { 
  border: 1px solid var(--border); 
  border-radius: var(--radius-lg); 
  padding: 20px 24px; 
  margin: 16px 0; 
  background: var(--bg); 
  box-shadow: var(--shadow);
}
.comment .meta { 
  color: var(--fg-muted); 
  font-size: 13px; 
  margin-bottom: 12px;
  font-weight: 600;
}

/* Hero on home */
.hero { 
  text-align: center; 
  padding: 80px 20px; 
  border-bottom: 1px solid var(--border-soft); 
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.hero h1 { 
  font-size: 48px; 
  margin-bottom: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { 
  font-size: 20px; 
  color: var(--fg-muted); 
  max-width: 680px; 
  margin: 0 auto 32px;
  line-height: 1.6;
  font-weight: 500;
}
.hero .actions { 
  display: flex; 
  gap: 16px; 
  justify-content: center;
  flex-wrap: wrap;
}

/* Webhook list */
.webhook { 
  padding: 16px 20px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-lg); 
  margin-bottom: 12px;
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}
.webhook:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.webhook code { 
  background: var(--bg-soft); 
  padding: 4px 8px; 
  border-radius: var(--radius); 
  font-weight: 600;
  color: var(--accent);
}

table.t { 
  width: 100%; 
  border-collapse: collapse; 
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.t th, table.t td { 
  padding: 12px 16px; 
  border-bottom: 1px solid var(--border-soft); 
  text-align: left; 
  font-size: 14px;
}
table.t th { 
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-softer) 100%); 
  font-weight: 700;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}
table.t tr:hover {
  background: var(--bg-soft);
}
table.t tr:last-child td {
  border-bottom: none;
}
