:root {
  color-scheme: light;
  --ink: #1d2939;
  --muted: #66758b;
  --line: #e1e6ee;
  --bg: #f4f6f9;
  --blue: #315fce;
  --blue2: #eaf0ff;
  --green: #18794e;
  --green-bg: #e9f6ef;
  --orange: #a85d12;
  --orange-bg: #fff3e3;
  --red: #b93838;
  --surface: #ffffff;
  --surface-muted: #f7f8fa;
  --sidebar-bg: #ffffff;
  --sidebar-text: #263449;
  --sidebar-muted: #64748b;
  --sidebar-border: #e4e8ef;
  --link: #315fce;
  --accent: #315fce;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7edf6;
  --muted: #a5b1c4;
  --line: #344155;
  --bg: #121a27;
  --blue: #9ab5ff;
  --blue2: #243554;
  --green: #78d3a4;
  --green-bg: #1b382d;
  --orange: #f0bd78;
  --orange-bg: #3b3022;
  --red: #ff9b9b;
  --surface: #1b2738;
  --surface-muted: #202d40;
  --sidebar-bg: #101827;
  --sidebar-text: #e1e8f2;
  --sidebar-muted: #a8b5c8;
  --sidebar-border: #2b374a;
  --link: #a6bdff;
  --accent: #89a8ff;
}

body,
.main-area { background: var(--bg); color: var(--ink); }

.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-muted);
  border-right: 1px solid var(--sidebar-border);
}

.brand { color: var(--sidebar-text); }
.brand-mark { background: var(--accent); }
.brand-mark span { color: #dbe6ff; }
.brand-sub { color: var(--sidebar-muted); }
.workspace {
  background: var(--surface-muted);
  border-color: var(--line);
}
.workspace-icon { background: var(--blue2); color: var(--accent); }
.workspace strong,
.sidebar-bottom strong { color: var(--sidebar-text); }
.workspace small,
.sidebar-bottom small,
.chevron { color: var(--sidebar-muted); }
.side-label { color: #77859a; }
.nav-item,
.sidebar-repo { color: var(--sidebar-muted); }
.nav-item:hover,
.nav-item.active,
.sidebar-repo:hover {
  background: var(--blue2);
  color: var(--accent);
}
.nav-icon,
.repo-mini,
.nav-count { color: var(--sidebar-muted); }
.nav-item.active .nav-icon { color: var(--accent); }
.nav-count { background: var(--surface-muted); }
.repo-label button,
.profile-action { color: var(--sidebar-muted); }
.sidebar-bottom { border-color: var(--sidebar-border); }
.avatar { background: var(--blue2); color: var(--accent); }
.profile-action:hover { color: var(--accent); }

.topbar {
  background: var(--surface);
  border-color: var(--line);
}
.breadcrumbs { color: var(--muted); }
.breadcrumbs b { color: #aab4c2; }
.breadcrumbs strong { color: var(--ink); }
.status-pill { color: var(--muted); }
.icon-button { color: var(--muted); }
.top-avatar { background: var(--blue2); color: var(--accent); }

.content { color: var(--ink); }
.eyebrow { color: var(--muted); }
.page-heading h1,
.detail-title h1,
.pr-subtitle,
.issue-detail-title h1 { color: var(--ink); }
.page-heading p,
.repo-description,
.about-content,
.about-stat,
.branch-summary,
.pr-summary,
.review-info,
.sync-status { color: var(--muted); }

.panel,
.stat-card,
.repo-card,
.modal,
.auth-card,
.issue-comment,
.notification-row {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.panel-header,
.pr-section-head,
.readme-title,
.latest-commit,
.modal-foot {
  background: var(--surface-muted);
  border-color: var(--line);
  color: var(--ink);
}
.panel-title,
.repo-card h3,
.pr-title,
.commit-history-main strong,
.issue-title,
.issue-detail-title h1,
.issue-comment header strong,
.modal-head h2 { color: var(--ink); }
.repo-row,
.pr-row,
.comment,
.repo-file-row,
.repo-tabs,
.issue-row,
.commit-history-row,
.notification-row { border-color: var(--line); }
.repo-name,
.repo-file-row,
.markdown-body a,
.about-source a,
.text-link,
.commit-history-link,
.commit-hash-link,
.release-meta a,
.release-asset>a,
.issue-source-link { color: var(--link); }
.button,
.google-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.button:hover,
.google-button:hover,
.repo-file-row:hover,
.latest-commit-link:hover { background: var(--surface-muted); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: #284fb4; border-color: #284fb4; }
.button.dark { background: #263449; border-color: #263449; color: #fff; }
.button.merge { background: #18794e; border-color: #18794e; color: #fff; }
.button.danger { color: var(--red); }

.stat-icon { background: var(--blue2); color: var(--accent); }
.stat-icon.green { background: var(--green-bg); color: var(--green); }
.stat-icon.amber { background: var(--orange-bg); color: var(--orange); }
.state.open { color: var(--green); background: var(--green-bg); }
.state.closed { color: var(--orange); background: var(--orange-bg); }
.state.merged { color: #6b55a3; background: #f0ecf8; }
.branch-chip,
.branch-flow code,
.clone-box,
.markdown-body code { background: var(--surface-muted); color: var(--muted); border-color: var(--line); }
.repo-symbol { border-color: var(--line); color: var(--muted); }
.repo-meta,
.repo-description,
.repo-card-foot,
.pr-meta,
.stat-label,
.stat-note,
.visibility,
.commit-history-meta { color: var(--muted); }
.repo-card-foot,
.repo-file-row,
.latest-commit,
.readme-title,
.commit-detail-meta,
.commit-message,
.commit-changed-file,
.commit-history-row,
.issue-row { border-color: var(--line); }
.markdown-body,
.commit-message,
.commit-detail-meta,
.commit-full-hash code,
.commit-changed-file code,
.issue-comment-body { color: var(--muted); }
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 { color: var(--ink); }
.markdown-body pre,
.source-code,
.diff-line.file { background: var(--surface-muted); border-color: var(--line); }
.diff-line.add { background: #eaf6ee; color: #21633e; }
.diff-line.del { background: #fff0ef; color: #9b3e3e; }
.diff-line.hunk { background: var(--blue2); color: var(--link); }
.modal-head,
.modal-foot,
.comment-form,
.issue-comment-form { border-color: var(--line); }
.field label,
.issue-comment-form label { color: var(--muted); }
.field input,
.field textarea,
.field select,
.comment-form textarea,
.issue-comment-form textarea,
.search input,
.code-search-form input,
.code-search-form select,
.audit-filters input,
.audit-filters select,
.history-branch-select,
.branch-controls select,
.file-view-head select {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.comment-form textarea:focus,
.issue-comment-form textarea:focus,
.search input:focus,
.code-search-form input:focus,
.code-search-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.theme-toggle {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.theme-toggle:hover { background: var(--surface-muted); }
.auth-screen { background: var(--bg); }
.auth-brand,
.auth-card h1 { color: var(--ink); }
.auth-card p,
.auth-note { color: var(--muted); }
.issue-filter { color: var(--muted); }
.issue-filter.active,
.issue-filter:hover { background: var(--blue2); color: var(--accent); }
.issue-import-badge { background: var(--surface-muted); color: var(--muted); }
.notification-row { color: var(--ink); }
.notification-row:hover { background: var(--surface-muted); }
.notification-row.unread { background: var(--blue2); }
.notification-mark { background: var(--blue2); color: var(--accent); }
.inline-review-comment,
.inline-comment-form,
.release-asset { background: var(--surface); border-color: var(--line); color: var(--ink); }
.release-upload-form { background: var(--surface-muted); }
.dependency-alert { border-color: var(--line); }
.audit-filters,
.audit-result-meta,
.audit-event { border-color: var(--line); }
.audit-event-main>strong { color: var(--ink); }
.audit-action { background: var(--blue2); color: var(--accent); }
.audit-details pre,
.cutover-differences { background: var(--surface-muted); color: var(--ink); }
.sync-check-row,
.sync-check-row.complete { background: var(--surface); border-color: var(--line); }

:root[data-theme="dark"] .sidebar { background: var(--sidebar-bg); }
:root[data-theme="dark"] .sidebar-bottom,
:root[data-theme="dark"] .workspace,
:root[data-theme="dark"] .nav-count { border-color: var(--sidebar-border); }
:root[data-theme="dark"] .workspace,
:root[data-theme="dark"] .nav-count { background: #182337; }
:root[data-theme="dark"] .workspace-icon,
:root[data-theme="dark"] .avatar,
:root[data-theme="dark"] .top-avatar { background: #263653; color: var(--link); }
:root[data-theme="dark"] .side-label { color: #8795aa; }
:root[data-theme="dark"] .nav-item,
:root[data-theme="dark"] .sidebar-repo,
:root[data-theme="dark"] .repo-mini { color: var(--sidebar-muted); }
:root[data-theme="dark"] .nav-item:hover,
:root[data-theme="dark"] .nav-item.active,
:root[data-theme="dark"] .sidebar-repo:hover { background: #22324d; color: var(--link); }
:root[data-theme="dark"] .nav-item.active .nav-icon { color: var(--link); }
:root[data-theme="dark"] .panel-header,
:root[data-theme="dark"] .pr-section-head,
:root[data-theme="dark"] .readme-title,
:root[data-theme="dark"] .latest-commit,
:root[data-theme="dark"] .modal-foot,
:root[data-theme="dark"] .branch-chip,
:root[data-theme="dark"] .branch-flow code,
:root[data-theme="dark"] .clone-box,
:root[data-theme="dark"] .markdown-body code,
:root[data-theme="dark"] .markdown-body pre,
:root[data-theme="dark"] .source-code,
:root[data-theme="dark"] .diff-line.file,
:root[data-theme="dark"] .audit-details pre,
:root[data-theme="dark"] .cutover-differences { background: var(--surface-muted); }
:root[data-theme="dark"] body,
:root[data-theme="dark"] .main-area { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] .auth-screen { background: var(--bg); }
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .repo-card,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .issue-comment,
:root[data-theme="dark"] .notification-row,
:root[data-theme="dark"] .inline-review-comment,
:root[data-theme="dark"] .inline-comment-form,
:root[data-theme="dark"] .release-asset { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] .button,
:root[data-theme="dark"] .google-button,
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .comment-form textarea,
:root[data-theme="dark"] .issue-comment-form textarea,
:root[data-theme="dark"] .search input,
:root[data-theme="dark"] .code-search-form input,
:root[data-theme="dark"] .code-search-form select,
:root[data-theme="dark"] .audit-filters input,
:root[data-theme="dark"] .audit-filters select,
:root[data-theme="dark"] .history-branch-select,
:root[data-theme="dark"] .branch-controls select,
:root[data-theme="dark"] .file-view-head select,
:root[data-theme="dark"] .theme-toggle { background: #141e2d; border-color: var(--line); color: var(--ink); }
:root[data-theme="dark"] .button.primary,
:root[data-theme="dark"] .button.merge { color: #fff; }
:root[data-theme="dark"] .button.primary { background: var(--accent); border-color: var(--accent); }
:root[data-theme="dark"] .button.merge { background: #18794e; border-color: #18794e; }
:root[data-theme="dark"] .button.dark { background: #314158; border-color: #314158; color: #fff; }
:root[data-theme="dark"] .button:hover,
:root[data-theme="dark"] .google-button:hover,
:root[data-theme="dark"] .repo-file-row:hover,
:root[data-theme="dark"] .latest-commit-link:hover,
:root[data-theme="dark"] .theme-toggle:hover { background: #29384d; }
:root[data-theme="dark"] .button.primary:hover { background: #6f91f3; border-color: #6f91f3; color: #fff; }
:root[data-theme="dark"] .button.merge:hover { background: #239260; border-color: #239260; color: #fff; }
:root[data-theme="dark"] .auth-screen { background: var(--bg); }
:root[data-theme="dark"] .auth-card h1,
:root[data-theme="dark"] .auth-brand,
:root[data-theme="dark"] .breadcrumbs,
:root[data-theme="dark"] .breadcrumbs strong,
:root[data-theme="dark"] .page-heading h1,
:root[data-theme="dark"] .detail-title h1,
:root[data-theme="dark"] .pr-subtitle,
:root[data-theme="dark"] .issue-detail-title h1,
:root[data-theme="dark"] .panel-title,
:root[data-theme="dark"] .repo-card h3,
:root[data-theme="dark"] .pr-title,
:root[data-theme="dark"] .commit-history-main strong,
:root[data-theme="dark"] .issue-title,
:root[data-theme="dark"] .issue-comment header strong,
:root[data-theme="dark"] .modal-head h2,
:root[data-theme="dark"] .markdown-body h1,
:root[data-theme="dark"] .markdown-body h2,
:root[data-theme="dark"] .markdown-body h3,
:root[data-theme="dark"] .markdown-body h4 { color: var(--ink); }
:root[data-theme="dark"] .auth-card p,
:root[data-theme="dark"] .auth-note,
:root[data-theme="dark"] .page-heading p,
:root[data-theme="dark"] .repo-description,
:root[data-theme="dark"] .about-content,
:root[data-theme="dark"] .branch-summary,
:root[data-theme="dark"] .pr-summary,
:root[data-theme="dark"] .review-info,
:root[data-theme="dark"] .sync-status,
:root[data-theme="dark"] .markdown-body { color: var(--muted); }
:root[data-theme="dark"] .repo-name,
:root[data-theme="dark"] .repo-file-row,
:root[data-theme="dark"] .markdown-body a,
:root[data-theme="dark"] .about-source a,
:root[data-theme="dark"] .text-link,
:root[data-theme="dark"] .commit-history-link,
:root[data-theme="dark"] .commit-hash-link,
:root[data-theme="dark"] .release-meta a,
:root[data-theme="dark"] .release-asset>a,
:root[data-theme="dark"] .issue-source-link { color: var(--link); }
:root[data-theme="dark"] .state.merged { background: #332c49; color: #c6b5ff; }
:root[data-theme="dark"] .state.closed { background: var(--orange-bg); color: var(--orange); }
:root[data-theme="dark"] .diff-line.add { background: #18352a; color: #9bdfb6; }
:root[data-theme="dark"] .diff-line.del { background: #3a2528; color: #ffaaaa; }
:root[data-theme="dark"] .dependency-severity.critical,
:root[data-theme="dark"] .dependency-severity.high { background: #442b32; color: #ffaaaa; }

@media (prefers-reduced-motion: no-preference) {
  body,
  .sidebar,
  .topbar,
  .panel,
  .stat-card,
  .repo-card,
  .button,
  .nav-item,
  .theme-toggle { transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
}

/* Shared interaction and layout refinements */
:where(a,button,input,textarea,select,[tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 56%, transparent);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.skip-link {
  position: fixed;
  z-index: 30;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 7px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.topbar { position: sticky; top: 0; z-index: 5; }
.breadcrumbs { min-width: 0; flex: 1; overflow: hidden; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; }
.breadcrumbs strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { flex: none; gap: 8px; }
.panel,
.stat-card,
.repo-card,
.issue-comment { box-shadow: 0 1px 2px rgb(16 24 40 / 3%); }
.repo-card { transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.repo-card:hover { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: 0 8px 22px rgb(16 24 40 / 7%); transform: translateY(-1px); }
.repo-card h3 a:hover,
.repo-name:hover,
.pr-title:hover,
.text-link:hover { text-decoration: underline; }
.button { border-radius: 8px; font-weight: 650; }
.button:disabled { cursor: not-allowed; }
.button.primary { box-shadow: 0 1px 2px rgb(31 79 190 / 16%); }
.field input,
.field textarea,
.field select,
.comment-form textarea,
.issue-comment-form textarea { border-radius: 8px; }
.search input,
.code-search-form input,
.code-search-form select,
.audit-filters input,
.audit-filters select { border-radius: 8px; }
.repo-tabs { overflow-x: auto; scrollbar-width: thin; }
.repo-tab { white-space: nowrap; }
.repo-toolbar { flex-wrap: wrap; }
.repo-toolbar .search { min-width: min(100%, 280px); }
.repo-card p { overflow-wrap: anywhere; }
.empty { line-height: 1.55; }
.empty strong { font-size: 16px; }
.empty .button { margin-top: 10px; }
.page-loading {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--muted);
  font-size: 14px;
}
.loading-spinner {
  width: 19px;
  height: 19px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: finluth-spin 700ms linear infinite;
}
@keyframes finluth-spin { to { transform: rotate(360deg); } }
.route-error {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  max-width: 760px;
  margin: 32px auto;
  padding: 25px;
}
.route-error-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0ef;
  color: var(--red);
  font-weight: 800;
}
.route-error h2 { margin: 2px 0 6px; color: var(--ink); font-size: 18px; }
.route-error p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.route-error-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.toast {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(520px, calc(100vw - 32px));
  border: 1px solid rgb(255 255 255 / 12%);
}
.toast span { overflow-wrap: anywhere; }
.toast-dismiss {
  flex: none;
  border: 0;
  border-radius: 5px;
  padding: 2px 6px;
  background: transparent;
  color: inherit;
  font-size: 19px;
  line-height: 1;
}
.toast-dismiss:hover { background: rgb(255 255 255 / 14%); }
.modal-backdrop { backdrop-filter: blur(4px); overscroll-behavior: contain; }
.modal {
  display: flex;
  flex-direction: column;
  max-height: min(90dvh, 900px);
}
.modal-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.modal-head,
.modal-foot { flex: none; }
.modal-close { border-radius: 6px; min-width: 36px; min-height: 36px; }
.modal-close:hover { background: var(--surface-muted); color: var(--ink); }
.content h1:focus,
.route-error h2:focus { outline: none; }
.notification-row:focus-visible { position: relative; z-index: 1; }
.issue-row:hover,
.pr-row:hover { background: color-mix(in srgb, var(--surface-muted) 75%, transparent); }
.repo-file-row { min-height: 44px; }
.issue-list-toolbar { flex-wrap: wrap; }
.page-heading { gap: 18px; }
.heading-actions { flex-wrap: wrap; }
.profile-action { border-radius: 6px; min-width: 34px; min-height: 34px; }
.profile-action:hover { background: var(--blue2); }
.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.icon-button:hover { background: var(--surface-muted); color: var(--ink); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

/* Repository context in the workspace navigation */
.dashboard-columns { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); }
.dashboard-pr-queue .pr-row { padding: 15px 17px; }
.dashboard-pr-queue .pr-row:last-child,
.dashboard-repositories .repo-row:last-child { border-bottom: 0; }
.dashboard-repositories .repo-row { padding: 13px 15px; }
.sidebar-repo { min-height: 42px; gap: 9px; padding: 6px 9px; }
.sidebar-repo-copy { display: grid; min-width: 0; gap: 1px; }
.sidebar-repo-copy strong { overflow: hidden; color: inherit; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-repo-copy small { overflow: hidden; color: var(--sidebar-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-repo.active { background: var(--blue2); color: var(--accent); box-shadow: inset 2px 0 var(--accent); }
.sidebar-repo.active .sidebar-repo-copy small { color: var(--accent); }
.sidebar-repo-browse { display: flex; justify-content: space-between; padding: 8px 10px; color: var(--sidebar-muted); font-size: 12px; text-decoration: none; }
.sidebar-repo-browse:hover { color: var(--accent); }
:root[data-theme="dark"] .sidebar-repo.active { background: #22324d; color: var(--link); }

/* Pull request review workspace */
.content.content-wide { max-width: 1760px; }
.pr-page { max-width: 1560px; margin: 0 auto; }
.pr-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; margin: 0 0 15px; }
.pr-heading-copy { min-width: 0; }
.pr-heading-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); }
.pr-heading-kicker > a { color: var(--link); font-size: 13px; font-weight: 650; text-decoration: none; }
.pr-heading-kicker > a:hover { text-decoration: underline; }
.pr-heading-copy h1 { margin: 9px 0 7px; color: var(--ink); font-size: clamp(23px, 2.2vw, 30px); line-height: 1.22; letter-spacing: -.55px; overflow-wrap: anywhere; }
.pr-heading-copy > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.pr-heading-copy > p code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-muted); color: var(--ink); font: 12px 'DM Mono', monospace; overflow-wrap: anywhere; }
.pr-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.pr-heading-actions .button { white-space: nowrap; }
.pr-heading-copy .github-pr-metadata { margin-top: 10px; }
.pr-jump-nav { position: sticky; top: 65px; z-index: 4; display: flex; gap: 5px; overflow-x: auto; margin: 0 0 14px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 3px 10px rgb(16 24 40 / 5%); scrollbar-width: thin; }
.pr-jump-nav button { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 34px; padding: 5px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.pr-jump-nav button:hover { background: var(--blue2); color: var(--accent); }
.pr-jump-nav button span { min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--surface-muted); color: var(--muted); font-size: 11px; text-align: center; }
.pr-description-card { margin-bottom: 16px; scroll-margin-top: 122px; }
.pr-description-card .panel-header { min-height: 46px; height: auto; }
.pr-description-body { padding: 16px 19px 13px; }
.pr-description-body .pr-summary { color: var(--ink); font-size: 14px; line-height: 1.65; }
.pr-description-body .pr-summary > :first-child { margin-top: 0; }
.pr-description-body .pr-summary > :last-child { margin-bottom: 0; }
.pr-description-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pr-diff-counts { display: inline-flex; gap: 8px; font: 600 12px 'DM Mono', monospace; }
.addition-count { color: var(--green); }
.deletion-count { color: var(--red); }
.pr-overview.pr-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(295px, 335px); gap: 17px; align-items: start; }
.pr-main-column { display: grid; gap: 16px; min-width: 0; }
.pr-files-panel { overflow: visible; scroll-margin-top: 122px; }
.pr-files-toolbar { position: sticky; top: 121px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 52px; padding: 8px 14px; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; background: var(--surface-muted); }
.pr-files-toolbar > div:first-child { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
.pr-files-toolbar > div:first-child > span { min-width: 22px; padding: 1px 6px; border-radius: 11px; background: var(--surface); color: var(--muted); font-size: 11px; text-align: center; }
.pr-file-tools { display: flex; align-items: center; gap: 12px; }
.pr-file-tools select { width: min(340px, 32vw); min-width: 180px; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 12px; }
.pr-diff { max-height: none; overflow: visible; color: var(--ink); font-size: 13px; }
.pr-file-diff { min-width: 0; border-bottom: 1px solid var(--line); scroll-margin-top: 174px; }
.pr-file-diff:last-child { border-bottom: 0; }
.pr-file-diff-heading { position: sticky; top: 174px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 43px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 2px 5px rgb(16 24 40 / 5%); }
.pr-file-diff-heading > code { min-width: 0; overflow: hidden; color: var(--ink); font: 600 12px 'DM Mono', monospace; text-overflow: ellipsis; white-space: nowrap; }
.pr-file-change-count { display: flex; flex: none; gap: 8px; font: 11px 'DM Mono', monospace; }
.pr-file-diff-body { padding: 5px 0 8px; }
.pr-diff .diff-line { min-height: 22px; padding: 1px 13px; }
.pr-diff .diff-line-number { width: 42px; font-size: 11px; line-height: 20px; }
.pr-diff .diff-line code { font-size: 12px; line-height: 20px; }
.pr-diff .diff-line.file { padding-top: 6px; }
.pr-diff .inline-comment-trigger { min-width: 25px; min-height: 24px; border-radius: 5px; font-size: 16px; }
.pr-diff .inline-comment-trigger:hover { background: var(--blue2); }
.pr-diff .inline-review-comment,
.pr-diff .inline-comment-form { margin-left: 60px; }
.pr-unscoped-diff { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pr-review-sidebar { position: sticky; top: 122px; display: grid; gap: 13px; max-height: calc(100vh - 136px); overflow: auto; align-self: start; scrollbar-width: thin; }
.pr-review-panel { overflow: hidden; }
.pr-review-panel > .panel-header { min-height: 49px; }
.pr-review-panel .review-card { padding: 13px 15px; }
.pr-review-panel .review-info { margin: 9px 0 1px; }
.pr-review-panel .review-actions { gap: 7px; }
.pr-review-panel .review-actions .button { flex: 1 1 0; }
.pr-review-panel .review-request-form,
.pr-review-panel .code-owner-panel,
.pr-review-panel .pr-checks { padding: 12px 15px; }
.pr-commits-panel { scroll-margin-top: 122px; }
.pr-commits-panel .panel-header { min-height: 48px; }
.pr-commits-panel .pr-row { padding: 11px 14px; }
.pr-conversation { scroll-margin-top: 122px; }
.pr-conversation .panel-header { min-height: 48px; }
.pr-conversation-list { padding: 0 14px; }
.pr-conversation-list > .empty { padding: 27px 14px; }
.pr-timeline-comment { padding: 13px 0; }
.pr-timeline-comment > b { font-size: 12px; }
.pr-timeline-comment > div:not(.reaction-chips) { margin-top: 6px; font-size: 14px; line-height: 1.6; }
.pr-comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.pr-comment-actions .field-hint { margin: 0; }
.pr-conversation .comment-form { padding: 14px 16px; }
:root[data-theme="dark"] .pr-jump-nav { box-shadow: 0 3px 10px rgb(0 0 0 / 18%); }
:root[data-theme="dark"] .pr-file-diff-heading { box-shadow: 0 2px 5px rgb(0 0 0 / 18%); }

@media (max-width: 1050px) {
  .dashboard-columns { grid-template-columns: minmax(0, 1fr); }
  .pr-overview.pr-workspace { grid-template-columns: minmax(0, 1fr) minmax(260px, 290px); gap: 13px; }
  .pr-heading { gap: 14px; }
  .pr-heading-actions { max-width: 250px; }
}
@media (max-width: 820px) {
  .pr-heading { grid-template-columns: minmax(0, 1fr); }
  .pr-heading-actions { justify-content: flex-start; max-width: none; }
  .pr-overview.pr-workspace { grid-template-columns: minmax(0, 1fr); }
  .dashboard-columns { grid-template-columns: minmax(0, 1fr); }
  .pr-review-sidebar { position: static; grid-row: 1; max-height: none; overflow: visible; }
  .pr-main-column { grid-row: 2; }
  .pr-review-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-review-panel > .panel-header { grid-column: 1 / -1; }
  .pr-review-panel .review-card { grid-column: 1 / -1; }
  .pr-review-panel .review-request-form,
  .pr-review-panel .code-owner-panel,
  .pr-review-panel .pr-checks { border-top: 1px solid var(--line); }
  .pr-file-tools select { width: min(340px, 48vw); }
}
@media (max-width: 600px) {
  .pr-heading-copy h1 { font-size: 22px; }
  .pr-heading-kicker { gap: 6px; }
  .pr-heading-kicker .eyebrow { width: 100%; }
  .pr-heading-actions { width: 100%; }
  .pr-heading-actions .button { flex: 1 1 auto; }
  .pr-jump-nav { top: 54px; margin-right: -16px; padding-right: 16px; border-radius: 7px 0 0 7px; }
  .pr-description-card,
  .pr-files-panel,
  .pr-conversation,
  .pr-commits-panel { scroll-margin-top: 105px; }
  .pr-description-body { padding: 13px 14px; }
  .pr-description-card .panel-header { padding: 0 13px; }
  .pr-files-toolbar { top: 104px; align-items: flex-start; flex-direction: column; gap: 8px; padding: 10px 12px; }
  .pr-file-tools { width: 100%; justify-content: space-between; }
  .pr-file-tools select { width: min(66vw, 320px); min-width: 0; flex: 1; }
  .pr-file-diff { scroll-margin-top: 158px; }
  .pr-file-diff-heading { top: 158px; min-height: 39px; padding: 7px 10px; }
  .pr-diff .diff-line { gap: 5px; padding-right: 7px; padding-left: 7px; }
  .pr-diff .diff-line-number { width: 31px; font-size: 10px; }
  .pr-diff .diff-line code { font-size: 11px; }
  .pr-diff .inline-review-comment,
  .pr-diff .inline-comment-form { margin-left: 42px; }
  .pr-review-panel { display: block; }
  .pr-review-panel .review-request-form,
  .pr-review-panel .code-owner-panel,
  .pr-review-panel .pr-checks { border-top: 1px solid var(--line); }
  .pr-timeline-comment > div:not(.reaction-chips) { font-size: 13px; }
}

:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .repo-card,
:root[data-theme="dark"] .issue-comment { box-shadow: 0 1px 2px rgb(0 0 0 / 14%); }
:root[data-theme="dark"] .repo-card:hover { box-shadow: 0 8px 22px rgb(0 0 0 / 24%); }
:root[data-theme="dark"] .route-error-icon { background: #442b32; }

@media (max-width: 1000px) {
  .content { padding: 28px clamp(20px, 3.5vw, 36px) 52px; }
  .sidebar { width: 226px; }
  .repo-layout { grid-template-columns: minmax(0, 1fr) 220px; }
}

@media (max-width: 700px) {
  .app-shell { display: flex; flex-direction: column; min-height: 100dvh; }
  .sidebar {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 12px 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--sidebar-border);
  }
  .brand { align-self: flex-start; margin: 0 0 10px; }
  .brand > span:last-child { font-size: 16px; }
  .workspace,
  .side-label,
  .sidebar-repos { display: none; }
  .nav {
    position: fixed;
    z-index: 12;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    gap: 2px;
    overflow-x: auto;
    padding: 5px 7px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--sidebar-border);
    background: var(--sidebar-bg);
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-item,
  .nav-item:not(.active),
  .nav-item.active {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 52px;
    max-width: 120px;
    height: 54px;
    padding: 5px 3px;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
  }
  .nav-label { display: block; white-space: nowrap; font-size: 10px; }
  .nav-icon { width: auto; font-size: 17px; line-height: 1; }
  .nav-count {
    position: absolute;
    top: 0;
    right: calc(50% - 23px);
    display: inline-flex;
    min-width: 16px;
    justify-content: center;
    padding: 1px 4px;
    font-size: 9px;
  }
  .sidebar-bottom {
    position: absolute;
    top: 11px;
    right: 12px;
    margin: 0;
    padding: 0;
    gap: 4px;
    border: 0;
  }
  .sidebar-bottom .avatar { display: none; }
  .sidebar-bottom .profile-action { display: grid; place-items: center; }
  .main-area { width: 100%; }
  .topbar { height: 54px; padding: 0 14px; }
  .top-actions { gap: 10px; }
  .content { padding: 22px 16px calc(86px + env(safe-area-inset-bottom)); }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .heading-actions { width: 100%; gap: 7px; }
  .heading-actions .button { flex: 1 1 auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-card { min-width: 0; min-height: 76px; padding: 11px; gap: 9px; }
  .stat-card:last-child { grid-column: 1 / -1; }
  .stat-note { display: none; }
  .stat-icon { width: 30px; height: 30px; flex: none; }
  .stat-label { line-height: 1.25; }
  .repo-grid { grid-template-columns: 1fr; }
  .repo-toolbar { align-items: stretch; }
  .repo-toolbar .search { flex-basis: 100%; max-width: none; }
  .repo-toolbar .count { width: 100%; }
  .repo-card { padding: 15px; }
  .repo-card p { min-height: 0; }
  .repo-tabs { gap: 14px; margin-right: -16px; padding-right: 16px; }
  .repo-layout,
  .issue-detail-layout,
  .pr-overview { grid-template-columns: minmax(0, 1fr); }
  .issue-list-toolbar { align-items: flex-start; flex-direction: column; padding: 12px; }
  .issue-filters { flex-wrap: wrap; }
  .issue-updated { white-space: normal; }
  .modal-backdrop { align-items: end; padding: 8px; }
  .modal { width: 100%; max-height: min(92dvh, 900px); border-radius: 14px 14px 10px 10px; }
  .modal-head { padding: 14px 16px; }
  .modal-body { padding: 16px; }
  .modal-foot { padding: 12px 16px; }
  .route-error { margin: 8px 0; padding: 18px; }
  .toast { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); left: 12px; max-width: none; }
  .audit-filters { grid-template-columns: 1fr 1fr; }
  .audit-filters input[name="q"] { grid-column: 1 / -1; }
}

@media (max-width: 390px) {
  .content { padding-right: 12px; padding-left: 12px; }
  .topbar { padding: 0 10px; }
  .breadcrumbs { gap: 7px; }
  .heading-actions .button { min-width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat-card:last-child { grid-column: auto; }
  .nav-item,
  .nav-item:not(.active),
  .nav-item.active { min-width: 48px; }
  .nav-label { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
