/* GitHub Primer-inspired presentation. GitLab remains the application and source of permissions. */
html[data-github-theme="on"] {
  --gh-bg: #ffffff;
  --gh-subtle: #f6f8fa;
  --gh-inset: #f6f8fa;
  --gh-fg: #1f2328;
  --gh-muted: #59636e;
  --gh-border: #d1d9e0;
  --gh-border-muted: #d1d9e0b3;
  --gh-link: #0969da;
  --gh-accent: #fd8c73;
  --gh-success: #1f883d;
  --gh-success-hover: #1a7f37;
  --gh-hover: #818b981f;
  --gh-shadow: 0 1px 0 #1f23280a;
  --gh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --gh-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --default-regular-font: var(--gh-font);
  --default-mono-font: var(--gh-mono);
  --gl-font-family: var(--gh-font);
  --gl-font-family-monospace: var(--gh-mono);
  --gl-text-color-default: var(--gh-fg);
  --gl-text-color-heading: var(--gh-fg);
  --gl-text-color-strong: var(--gh-fg);
  --gl-text-color-subtle: var(--gh-muted);
  --gl-text-color-link: var(--gh-link);
  --gl-text-color-link-visited: var(--gh-link);
  --gl-background-color-default: var(--gh-bg);
  --gl-background-color-subtle: var(--gh-subtle);
  --gl-background-color-strong: var(--gh-inset);
  --gl-background-color-application-chrome: var(--gh-subtle);
  --gl-border-color-default: var(--gh-border);
  --gl-border-color-subtle: var(--gh-border-muted);
  --gl-border-color-strong: var(--gh-border);
  --gl-border-radius-base: 6px;
  --gl-border-radius-default: 6px;
  --gl-border-radius-lg: 6px;
  --gl-border-radius-xl: 6px;
  --top-bar-height: 64px;
}

html[data-github-theme="on"].gl-dark {
  --gh-bg: #0d1117;
  --gh-subtle: #151b23;
  --gh-inset: #010409;
  --gh-fg: #f0f6fc;
  --gh-muted: #9198a1;
  --gh-border: #3d444d;
  --gh-border-muted: #3d444db3;
  --gh-link: #4493f8;
  --gh-success: #238636;
  --gh-success-hover: #29903b;
  --gh-hover: #656c7633;
  --gh-shadow: 0 1px 0 #01040966;
}

@media (prefers-color-scheme: dark) {
  html[data-github-theme="on"].gl-system:not(.gl-light) {
    --gh-bg: #0d1117;
    --gh-subtle: #151b23;
    --gh-inset: #010409;
    --gh-fg: #f0f6fc;
    --gh-muted: #9198a1;
    --gh-border: #3d444d;
    --gh-border-muted: #3d444db3;
    --gh-link: #4493f8;
    --gh-success: #238636;
    --gh-success-hover: #29903b;
    --gh-hover: #656c7633;
    --gh-shadow: 0 1px 0 #01040966;
  }
}

html[data-github-theme="on"] body {
  color: var(--gh-fg);
  background: var(--gh-bg);
  font-family: var(--gh-font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

html[data-github-theme="on"] :is(button, input, select, textarea, .gl-button, .gl-form-input, .gl-form-select) {
  font-family: inherit;
}

html[data-github-theme="on"] :is(pre, code, .blob-content, .diff-line-num, .line_content, .gl-font-monospace) {
  font-family: var(--gh-mono);
}

html[data-github-theme="on"] .super-topbar {
  flex-shrink: 0;
  min-height: 64px;
  padding-inline: 24px;
  background: var(--gh-subtle);
  border-bottom: 1px solid var(--gh-border);
  gap: 16px;
}

html[data-github-theme="on"] .super-topbar :is(.gl-button, .gl-new-dropdown-toggle) {
  border-radius: 6px !important;
}

html[data-github-theme="on"] .super-topbar .topbar-search-button {
  min-height: 32px;
  border: 1px solid var(--gh-border) !important;
  border-radius: 6px !important;
  background: var(--gh-bg) !important;
  color: var(--gh-muted) !important;
  box-shadow: none;
}

html[data-github-theme="on"] .topbar-search-button-placeholder {
  min-width: 240px !important;
  font-size: 14px;
  font-weight: 400 !important;
}

html[data-github-theme="on"] :is(.panel-content, .panel-content-inner, .content-wrapper, .content-panels) {
  background-color: var(--gh-bg);
}

html[data-github-theme="on"] .panel-header-inner {
  background: var(--gh-bg);
  border-color: var(--gh-border-muted);
}

html[data-github-theme="on"] :is(.gl-button.btn-default, .btn-default) {
  background: var(--gh-subtle);
  border-color: var(--gh-border);
  color: var(--gh-fg);
  border-radius: 6px;
  box-shadow: var(--gh-shadow);
  font-size: 14px;
  font-weight: 500;
}

html[data-github-theme="on"] .gl-button.btn-confirm {
  background: var(--gh-success);
  border-color: #1f232826;
  color: #fff;
  border-radius: 6px;
  box-shadow: var(--gh-shadow);
  font-weight: 500;
}

html[data-github-theme="on"] .gl-button.btn-confirm:hover {
  background: var(--gh-success-hover);
}

html[data-github-theme="on"] :is(.gl-new-dropdown-panel, .dropdown-menu, .gl-modal .modal-content) {
  border-color: var(--gh-border);
  border-radius: 8px;
}

html[data-github-theme="on"] :is(.gl-form-input, .gl-form-select, .form-control) {
  border-color: var(--gh-border);
  border-radius: 6px;
}

html[data-github-theme="on"] :is(.gl-form-input, .gl-form-select, .form-control):focus {
  border-color: var(--gh-link);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gh-link) 25%, transparent);
}

html[data-github-theme="on"] .gh-repository-navigation {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  gap: 8px;
  padding: 0 24px;
  min-height: 49px;
  overflow-x: auto;
  background: var(--gh-subtle);
  border-bottom: 1px solid var(--gh-border);
  scrollbar-width: thin;
}

html[data-github-theme="on"] .gh-repository-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  padding: 9px 12px 11px;
  color: var(--gh-fg);
  font-size: 14px;
  line-height: 28px;
  text-decoration: none;
  white-space: nowrap;
}

html[data-github-theme="on"] .gh-repository-tab:hover {
  background: var(--gh-hover);
  border-radius: 6px 6px 0 0;
}

html[data-github-theme="on"] .gh-repository-tab[aria-current="page"] {
  font-weight: 600;
}

html[data-github-theme="on"] .gh-repository-tab[aria-current="page"]::after {
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 3px;
  background: var(--gh-accent);
  border-radius: 6px;
  content: "";
}

html[data-github-theme="on"] .gh-nav-icon {
  flex-shrink: 0;
  fill: currentColor;
  color: var(--gh-muted);
}

html[data-github-theme="on"] .gh-native-menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  min-height: 32px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  color: var(--gh-fg);
  background: transparent;
  cursor: pointer;
}

html[data-github-theme="on"] :is(.gh-native-menu-toggle, .gh-repository-tab):focus-visible {
  outline: 2px solid var(--gh-link);
  outline-offset: -2px;
}

html[data-github-theme="on"] .gh-native-menu-toggle:hover {
  background: var(--gh-hover);
}

html[data-github-theme="on"] .gh-project-layout .container-limited {
  max-width: 1280px;
}

html[data-github-theme="on"] .gh-project-layout {
  --container-padding-x: 32px;
  --gh-repository-nav-height: 49px;
}

html[data-github-theme="on"] .gh-project-layout .layout-page {
  /* The topbar and repository navigation are separate siblings above the flexed panel. */
  max-height: calc(100dvh - var(--top-bar-height) - var(--gh-repository-nav-height) - var(--system-header-height, 0px) - var(--performance-bar-height, 0px) - var(--system-footer-height, 0px));
}

html[data-github-theme="on"] .gh-project-layout .static-panel .container-fluid {
  padding-inline: var(--container-padding-x);
}

html[data-github-theme="on"] .gh-project-layout .project-home-panel {
  padding-block: 20px;
  margin-top: 0 !important;
  border-bottom: 1px solid var(--gh-border-muted);
}

html[data-github-theme="on"] .gh-project-layout .home-panel-title {
  color: var(--gh-link);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

html[data-github-theme="on"] .gh-project-layout .home-panel-title-row > .gl-avatar {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  margin-right: 10px !important;
  font-size: 14px;
  border-radius: 6px;
}

html[data-github-theme="on"] .gh-project-layout .project-page-sidebar {
  padding-inline: 0 !important;
  font-size: 14px;
}

html[data-github-theme="on"] .gh-project-layout .project-page-sidebar h2 {
  margin-bottom: 14px !important;
  font-size: 16px;
  font-weight: 600;
}

html[data-github-theme="on"] .gh-project-layout .project-page-sidebar-block {
  border-color: var(--gh-border-muted);
  padding-block: 20px;
}

html[data-github-theme="on"] .gh-project-layout :is(.tree-content-holder, .file-holder, .readme-holder) {
  border-color: var(--gh-border);
  border-radius: 6px;
}

html[data-github-theme="on"] .gh-project-layout :is(.tree-table, .files) {
  color: var(--gh-fg);
  font-size: 14px;
}

html[data-github-theme="on"] .gh-project-layout :is(.tree-table, .files) tr:hover {
  background-color: var(--gh-subtle);
}

html[data-github-theme="on"] .gh-project-layout .tree-table :is(th, td) {
  padding-block: 9px;
  border-color: var(--gh-border-muted);
}

html[data-github-theme="on"] .gh-project-layout .tree-table thead {
  background: var(--gh-subtle);
}

html[data-github-theme="on"] .gh-project-layout .tree-item-link {
  color: var(--gh-fg);
}

html[data-github-theme="on"] .gh-project-layout .tree-item-link:hover {
  color: var(--gh-link);
}

html[data-github-theme="on"] .gh-project-layout :is(.readme-holder .file-title, .file-holder .file-title) {
  padding: 16px;
  border-color: var(--gh-border);
  background: var(--gh-subtle);
  font-weight: 600;
}

html[data-github-theme="on"] .gh-project-layout .md {
  color: var(--gh-fg);
  font-size: 16px;
  line-height: 1.6;
}

@media (min-width: 1200px) {
  html[data-github-theme="on"] .gh-project-layout .super-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  html[data-github-theme="on"] .gh-project-layout .gh-native-menu-toggle {
    display: inline-flex;
  }

  html[data-github-theme="on"] .gh-project-layout .layout-page {
    padding-inline: 0;
    padding-bottom: 0;
  }

  html[data-github-theme="on"] .gh-project-layout:not(.gh-native-menu-open) .super-sidebar-wrapper {
    display: none;
  }

  html[data-github-theme="on"] .gh-project-layout .static-panel {
    border-radius: 0;
    box-shadow: none;
  }

  html[data-github-theme="on"] .gh-project-layout .project-page-indicator:not(.hidden) + .project-page-layout {
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 32px;
    padding-top: 4px;
  }

  html[data-github-theme="on"] .gh-project-layout.gh-native-menu-open .super-sidebar-wrapper {
    padding: 8px;
    background: var(--gh-subtle);
    border-right: 1px solid var(--gh-border);
  }

  html[data-github-theme="on"] .gh-project-layout.gh-native-menu-open .super-sidebar {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  html[data-github-theme="on"] .gh-project-layout {
    --container-padding-x: 16px;
  }
  html[data-github-theme="on"] .super-topbar {
    padding-inline: 12px;
    gap: 8px;
  }

  html[data-github-theme="on"] .topbar-search-button-placeholder {
    min-width: 12vw !important;
  }

  html[data-github-theme="on"] .gh-repository-navigation {
    gap: 0;
    padding-inline: 8px;
  }

  html[data-github-theme="on"] .gh-repository-tab {
    padding-inline: 10px;
  }

  html[data-github-theme="on"] .gh-project-layout .project-home-panel {
    padding-block: 16px;
  }
}

@media (max-width: 1199.98px) {
  html[data-github-theme="on"] .gh-project-layout .project-page-indicator:not(.hidden) + .project-page-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  html[data-github-theme="on"] .gh-project-layout .project-page-layout-content {
    order: 1;
    min-width: 0;
  }

  html[data-github-theme="on"] .gh-project-layout .project-page-layout-sidebar {
    order: 2;
  }

  html[data-github-theme="on"] .gh-project-layout .project-page-sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }
}

@media (forced-colors: active) {
  html[data-github-theme="on"] .gh-repository-tab[aria-current="page"]::after {
    background: Highlight;
  }
}

/* Keep GitLab's native authentication forms; only the initial sign-in page gets the narrow layout. */
html[data-github-theme="on"].html-devise-layout,
html[data-github-theme="on"] .login-page {
  background: var(--gh-bg) !important;
}

html[data-github-theme="on"] .login-page::before,
html[data-github-theme="on"] .login-page::after {
  content: none !important;
  background: none !important;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) {
  min-height: 100dvh;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) > .gl-grow {
  flex-direction: column;
  align-items: center;
  width: 100%;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) > .gl-grow > .container {
  align-self: flex-start !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 384px;
  margin-inline: auto;
  padding: 48px 16px;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) > .gl-grow > .gl-w-full.gl-self-end {
  margin-top: auto;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) main.content > .row {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 !important;
  padding: 0;
  background: transparent;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) main.content > .row > .col-md {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  padding: 0;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) main.content > .row > .order-md-12 {
  order: 0 !important;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) main.content > .row > .col-md > .col-sm-12 {
  padding: 0;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) main.content > .row > .col-md:not(.order-md-12) h1 {
  display: none !important;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) .bar {
  width: 100%;
  max-width: 352px;
  margin-inline: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) .bar > .gl-text-center {
  margin-bottom: 20px !important;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) .bar > .gl-text-center > img {
  display: block;
  width: 48px;
  height: 48px !important;
  margin: 0 auto 16px;
  object-fit: contain;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) .bar > .gl-text-center > img:not([src^="data:"]) {
  visibility: visible !important;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) .bar > .gl-text-center > h1 {
  display: block !important;
  margin: 0 !important;
  color: var(--gh-fg);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) #sign-in-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) #sign-in-form .form-group {
  margin-bottom: 16px;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) #sign-in-form label {
  color: var(--gh-fg);
  font-size: 14px;
  font-weight: 400;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) #sign-in-form .gl-form-input {
  min-height: 40px;
  background-color: var(--gh-bg);
  color: var(--gh-fg);
  font-size: 14px;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) #sign-in-form a {
  color: var(--gh-link);
  font-size: 12px;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) #sign-in-form .form-group:has(#user_password) {
  position: relative;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) #sign-in-form .form-group:has(#user_password) > label {
  padding-inline-end: 50%;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) #sign-in-form .form-group:has(#user_password) .form-text {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  max-width: 50%;
  margin-top: 0;
  line-height: 20px;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) [data-testid="sign-in-button"] {
  min-height: 40px;
  border: 1px solid #1f232826;
  background: var(--gh-success);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) [data-testid="sign-in-button"]:hover:not(:disabled) {
  background: var(--gh-success-hover);
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) [data-testid="passkey-form"] {
  margin-top: 16px !important;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) [data-testid="passkey-login-button"] {
  min-height: 40px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-bg);
  color: var(--gh-link);
  box-shadow: none;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) [data-testid="passkey-login-button"]:hover {
  background: var(--gh-subtle);
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) #js-custom-sign-in-description {
  color: var(--gh-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) #js-custom-sign-in-description > p {
  margin-bottom: 0;
  text-align: center;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) .footer-container {
  width: 100%;
  margin-top: auto;
  padding-bottom: 0;
  border: 0;
  background: var(--gh-subtle);
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) .footer-container > hr {
  display: none;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) .footer-container > .container {
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 12px 20px;
  max-width: 900px;
  padding-block: 16px !important;
  padding-inline: 16px;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) .footer-container > .container > .gl-hidden {
  display: flex !important;
  justify-content: center;
  gap: 12px 16px !important;
}

html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) .footer-container a {
  color: var(--gh-muted);
  font-size: 12px;
}

@media (max-width: 360px) {
  /* Leave room for GitLab's native 304px CAPTCHA on a 320px viewport. */
  html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) > .gl-grow > .container {
    padding-inline: 8px;
  }

  html[data-github-theme="on"] .login-page[data-page="sessions:new"]:has(#js-sign-in-form-app) #js-custom-sign-in-description {
    padding-inline: 8px;
  }
}

/* Personal pages share GitHub's flat canvas and comfortable content gutter. */
html[data-github-theme="on"] body:is([data-page="dashboard:home"], [data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="homepage-greeting-header"], [data-testid="projects-dashboard-tab-title"])) .panels-container {
  border-radius: 0;
  box-shadow: none;
}

html[data-github-theme="on"] body:is([data-page="dashboard:home"], [data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="homepage-greeting-header"], [data-testid="projects-dashboard-tab-title"])) .container-limited {
  max-width: 1280px;
  padding-inline: clamp(16px, 2vw, 32px);
}

/* GitLab 19.5 personal Home: preserve Vue widgets, controls, and permission-filtered data. */
html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) .container-limited {
  max-width: 1280px;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="base-layout-content"]:has(> [data-testid="homepage-greeting-header"]) {
  padding-bottom: 32px;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-greeting-header"] {
  margin-top: 24px;
  margin-bottom: 24px;
  gap: 12px;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="greeting-name"] {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="greeting-message"] {
  margin-top: 4px;
  color: var(--gh-muted);
  font-size: 14px;
  line-height: 1.5;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-greeting-header"] + .gl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-greeting-header"] + .gl-grid > :is(section, aside) {
  grid-column: auto;
  min-width: 0;
  gap: 24px;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-greeting-header"] + .gl-grid > :is(section, aside) > .gl-border {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-bg);
  box-shadow: var(--gh-shadow);
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-greeting-header"] + .gl-grid h2 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gh-fg);
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) :is(.homepage-todos-widget, .homepage-merge-requests-widget) .gl-tabs-nav {
  min-width: 0;
  gap: 8px;
  border-color: var(--gh-border-muted);
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) :is(.homepage-todos-widget, .homepage-merge-requests-widget) [role="tab"] {
  padding: 10px 8px;
  color: var(--gh-fg);
  font-size: 12px;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) :is(.homepage-todos-widget, .homepage-merge-requests-widget) [role="tab"][aria-selected="true"] {
  color: var(--gh-fg);
  box-shadow: inset 0 -2px var(--gh-accent);
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) .gl-tab-counter-badge {
  background: var(--gh-hover);
  color: var(--gh-fg);
  border-radius: 20px;
  font-weight: 500;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-activity-widget"] > .gl-flex:first-child {
  flex-wrap: wrap;
  row-gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gh-border-muted);
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-activity-widget"] :is([data-testid="empty-state"], [data-testid="error-message"]) {
  margin-block: 20px;
  color: var(--gh-muted);
  line-height: 1.6;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="events-list"] {
  margin: 0 0 16px;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="events-list"] > .event-item {
  padding-top: 20px;
  padding-bottom: 20px !important;
  color: var(--gh-muted);
  font-size: 14px;
  line-height: 1.5;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="events-list"] .event-item-timestamp {
  color: var(--gh-muted);
  font-size: 12px;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="events-list"] .event-body {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--gh-border-muted);
  border-radius: 6px;
  background: var(--gh-subtle);
  overflow-wrap: anywhere;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="events-list"] :is(.event-commits, .event-note p) {
  margin-bottom: 0;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) :is([data-testid="homepage-quick-access-widget"], [data-testid="projects-footer"]) {
  color: var(--gh-muted);
  font-size: 13px;
  line-height: 1.5;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-quick-access-widget"] a {
  font-size: 13px;
  font-weight: 500;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-pick-up-widget"] > .gl-border {
  border-color: var(--gh-border);
  border-radius: 6px;
  background: var(--gh-subtle);
}

@media (min-width: 1200px) {
  html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-greeting-header"] + .gl-grid {
    grid-template-columns: minmax(0, 1fr) 296px;
  }
}

@media (max-width: 767px) {
  html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-greeting-header"] {
    margin-block: 20px;
  }

  html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="greeting-name"] {
    font-size: 20px;
  }

  html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-greeting-header"] + .gl-grid,
  html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-greeting-header"] + .gl-grid > :is(section, aside) {
    gap: 16px;
  }

  html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-greeting-header"] + .gl-grid > :is(section, aside) > .gl-border {
    padding: 12px;
  }

  html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) [data-testid="homepage-activity-widget"] .gl-new-dropdown-toggle {
    max-width: 100%;
  }
}

/* Personal/explore project lists use GitLab's native tabs, queries and actions. */
html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) .gl-base-layout > header {
  margin-block: 24px 20px;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="page-heading"] {
  color: var(--gh-fg);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="page-heading-actions"] {
  gap: 8px;
  margin-top: 0;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="new-project-button"] {
  min-height: 32px;
  border: 1px solid #1f232826;
  background: var(--gh-success);
  color: #fff;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="new-project-button"]:hover {
  background: var(--gh-success-hover);
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [role="tablist"] {
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  border-color: var(--gh-border);
  scrollbar-width: thin;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [role="tab"] {
  padding: 12px 16px;
  border: 0;
  color: var(--gh-fg);
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [role="tab"][aria-selected="true"] {
  color: var(--gh-fg);
  box-shadow: inset 0 -2px 0 var(--gh-accent);
  font-weight: 600;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [role="tab"]:hover {
  background: var(--gh-hover);
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="tab-counter-badge"] {
  min-width: 20px;
  padding: 1px 7px;
  border: 0;
  border-radius: 20px;
  background: var(--gh-hover);
  color: var(--gh-fg);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) .gl-border-t.gl-bg-subtle:has([data-testid="groups-projects-sort"]) {
  padding: 16px 0 !important;
  border-top: 0;
  background: var(--gh-bg);
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) .gl-filtered-search-container {
  min-height: 34px;
  border-color: var(--gh-border);
  border-radius: 6px;
  background: var(--gh-bg);
  color: var(--gh-fg);
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="groups-projects-sort"] .gl-button {
  min-height: 34px;
  background: var(--gh-subtle);
  color: var(--gh-fg);
  font-size: 14px;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) ul:has(> [data-testid^="projects-list-item-"]) {
  margin-block: 0;
  border-top: 1px solid var(--gh-border-muted);
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid^="projects-list-item-"] > .gl-border-b {
  gap: 12px;
  padding-block: 24px;
  border-color: var(--gh-border-muted);
  background: var(--gh-bg);
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid^="projects-list-item-"] > .gl-border-b > .gl-grow {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-content"] {
  width: 100%;
  min-width: 0;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-content"] .gl-avatar-labeled {
  min-width: 0;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-content"] .gl-avatar {
  border: 1px solid var(--gh-border-muted);
  border-radius: 6px;
  background-color: var(--gh-subtle);
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-content"] .gl-avatar-labeled-label {
  color: var(--gh-link);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-content"] .gl-avatar-labeled-label:hover {
  text-decoration: underline;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-content"] .gl-truncate-text {
  max-width: 72ch;
  margin-top: 8px;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-content"] :is(.md, .md p) {
  margin-bottom: 0;
  color: var(--gh-muted);
  font-size: 14px;
  line-height: 1.6;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="user-access-role"] {
  padding: 1px 7px;
  border: 1px solid var(--gh-border);
  border-radius: 20px;
  background: transparent;
  color: var(--gh-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-topics"] {
  gap: 4px;
  margin-top: 8px;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-topics"] .gl-badge {
  border-radius: 20px;
  background: color-mix(in srgb, var(--gh-link) 10%, var(--gh-bg));
  color: var(--gh-link);
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-content"] + .gl-shrink-0 {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 20px;
  margin-top: 12px;
  padding-left: 40px !important;
  color: var(--gh-muted);
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-content"] + .gl-shrink-0 > .gl-mt-2 {
  margin-top: 0;
  font-size: 12px;
  line-height: 20px;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) :is([data-testid="stars-btn"], [data-testid="forks-btn"], [data-testid="mrs-btn"], [data-testid="issues-btn"]) {
  color: var(--gh-muted);
  font-size: 12px;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) :is([data-testid="stars-btn"], [data-testid="forks-btn"], [data-testid="mrs-btn"], [data-testid="issues-btn"]):hover {
  color: var(--gh-link);
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) .pagination .page-link {
  border-color: var(--gh-border);
  border-radius: 6px;
  background: var(--gh-bg);
  color: var(--gh-link);
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) .pagination .active .page-link {
  border-color: var(--gh-link);
  background: var(--gh-link);
  color: var(--gh-bg);
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [role="tab"]:focus-visible {
  outline: 2px solid var(--gh-link);
  outline-offset: -2px;
}

@media (max-width: 767px) {
  html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) .gl-base-layout > header {
    margin-block: 20px 16px;
  }

  html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="page-heading"] {
    font-size: 22px;
  }

  html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="page-heading-actions"] {
    flex-wrap: wrap;
  }

  html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [role="tab"] {
    padding-inline: 12px;
  }

  html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid^="projects-list-item-"] > .gl-border-b {
    gap: 8px;
    padding-block: 20px;
  }

  html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-content"] .gl-avatar-labeled-label {
    font-size: 18px;
  }

  html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-content"] + .gl-shrink-0 {
    padding-left: 0 !important;
    gap: 8px 16px;
  }

  html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-content"] + .gl-shrink-0 > .gl-flex {
    flex-wrap: wrap;
    height: auto;
    row-gap: 8px;
  }
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="page-heading-actions"] a:not([data-testid="new-project-button"]) {
  background: var(--gh-subtle);
  border-color: var(--gh-border);
  color: var(--gh-fg);
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) .gl-border:has(> [data-testid="homepage-quick-access-widget"]) > [role="tablist"] [role="tab"] {
  background: var(--gh-subtle);
  border-color: var(--gh-border);
  color: var(--gh-fg);
  font-size: 12px;
}

html[data-github-theme="on"] :is(body[data-page="root:index"]:has([data-testid="homepage-greeting-header"]), body[data-page="dashboard:home"]) .gl-border:has(> [data-testid="homepage-quick-access-widget"]) > [role="tablist"] [role="tab"][aria-selected="true"] {
  background: var(--gh-hover);
  color: var(--gh-fg);
  font-weight: 600;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) .gl-filtered-search-term-input {
  min-width: 0;
  background: transparent;
  color: var(--gh-fg);
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) .gl-filtered-search-term-input::placeholder {
  color: var(--gh-muted);
  opacity: 1;
}

html[data-github-theme="on"] body:is([data-page="dashboard:projects:index"], [data-page="explore:projects:index"], [data-page="root:index"]:has([data-testid="projects-dashboard-tab-title"])) [data-testid="project-content"] .gl-avatar-identicon {
  color: var(--gh-muted);
}

/* Native GitLab 19.5 issue/work-item and merge-request lists. */
html[data-github-theme="on"] body:is([data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"]) .panels-container {
  border-radius: 0;
  box-shadow: none;
}

html[data-github-theme="on"] body:is([data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"]) .container-limited {
  max-width: 1280px;
  padding-inline: clamp(16px, 2vw, 32px);
}

html[data-github-theme="on"] body:is([data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"]) #content-body > header,
html[data-github-theme="on"] body[data-page="dashboard:work_items"] #content-body > .gl-base-layout > header {
  margin-block: 24px 20px;
}

html[data-github-theme="on"] body:is([data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"]) [data-testid="page-heading"] {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"]) .issuable-list-container,
html[data-github-theme="on"] body[data-page="projects:work_items:index"]:has(.work-item-list-container) .planning-view .work-item-list-container {
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-bg);
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"]) .issuable-list-container > .top-area {
  min-height: 56px;
  margin: 0;
  padding: 8px 16px;
  gap: 8px 16px;
  border-bottom: 1px solid var(--gh-border);
  border-radius: 6px 6px 0 0;
  background: var(--gh-subtle);
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"]) .top-area .nav-controls {
  margin: 0;
  gap: 8px;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"]) :is(.issuable-state-filters, .top-area) [role="tablist"],
html[data-github-theme="on"] body[data-page="dashboard:search_merge_requests"] #content-body > [role="tablist"] {
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"]) :is(.issuable-state-filters, .top-area, #content-body > .nav) [role="tab"] {
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--gh-fg);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"]) :is(.issuable-state-filters, .top-area, #content-body > .nav) [role="tab"]:is([aria-selected="true"], .active) {
  box-shadow: inset 0 -2px 0 var(--gh-accent);
  font-weight: 600;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"]) :is(.issuable-state-filters, .top-area) .badge-neutral {
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 20px;
  background: var(--gh-hover);
  color: var(--gh-fg);
  font-size: 12px;
  line-height: 18px;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) [data-testid="issuable-search-container"] {
  margin: 0;
  padding: 12px 16px;
  border-color: var(--gh-border);
  background: var(--gh-bg);
}

html[data-github-theme="on"] body[data-page="projects:work_items:index"]:has(.work-item-list-container) .planning-view:has(.work-item-list-container) [data-testid="issuable-search-container"] {
  padding-inline: 0;
  border-bottom: 0;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) [data-testid="issuable-search-container"] :is(.gl-filtered-search-scrollable-container, .gl-filtered-search-token-segment) {
  background: var(--gh-bg);
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) [data-testid="issuable-search-container"] .gl-filtered-search-term-input {
  background: transparent;
  color: var(--gh-fg);
  font-size: 14px;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) [data-testid="issuable-search-container"] .gl-filtered-search-term-input::placeholder {
  color: var(--gh-muted);
  opacity: 1;
}

html[data-github-theme="on"] body[data-page="projects:work_items:index"]:has(.work-item-list-container) .planning-view:has(.work-item-list-container) .saved-views-selectors {
  margin-top: 16px;
  border-color: var(--gh-border);
}

html[data-github-theme="on"] body[data-page="projects:work_items:index"]:has(.work-item-list-container) .planning-view:has(.work-item-list-container) .saved-views-selectors .default-selector {
  min-height: 40px;
  border-radius: 0;
  color: var(--gh-fg);
  font-size: 14px;
}

html[data-github-theme="on"] body[data-page="projects:work_items:index"]:has(.work-item-list-container) .planning-view:has(.work-item-list-container) .saved-views-selectors .default-selector-active {
  box-shadow: inset 0 -2px 0 var(--gh-accent);
}

html[data-github-theme="on"] body[data-page="projects:work_items:index"]:has(.work-item-list-container) .planning-view:has(.work-item-list-container) [data-testid="state-count-row"] {
  height: auto;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--gh-border);
  border-radius: 6px 6px 0 0;
  background: var(--gh-subtle);
  color: var(--gh-muted);
  font-size: 12px;
}

html[data-github-theme="on"] body[data-page="projects:work_items:index"]:has(.work-item-list-container) .planning-view [data-testid="state-count-row"] + .work-item-list-container {
  border-top: 0;
  border-start-start-radius: 0;
  border-start-end-radius: 0;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) .issuable-list {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 0 6px 6px;
  list-style: none;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) .issuable-list > [data-testid="issuable-container"] {
  min-height: 76px;
  padding: 16px !important;
  border-bottom: 1px solid var(--gh-border-muted);
  background: var(--gh-bg);
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) .issuable-list > [data-testid="issuable-container"]:last-child {
  border-bottom: 0;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) .issuable-list > [data-testid="issuable-container"]:hover {
  background: var(--gh-subtle);
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) .issuable-list .issuable-main-info {
  min-width: 0;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) .issuable-list .issue-title-text {
  color: var(--gh-fg);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) .issuable-list .issue-title-text:hover {
  color: var(--gh-link);
  text-decoration: none;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) .issuable-list :is(.issuable-info, .issuable-meta) {
  color: var(--gh-muted);
  font-size: 12px;
  line-height: 20px;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) .issuable-list .issuable-info {
  margin-top: 4px;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="dashboard:search_merge_requests"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) .issuable-list .issuable-info .author-link {
  color: var(--gh-muted) !important;
  font-size: 12px;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) :is(.issuable-list-container > .gl-empty-state, .work-item-list-container > [data-testid="signed-in-empty-state-block"] .gl-empty-state) {
  margin: 0;
  padding: 48px 24px;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) :is(.issuable-list-container > .gl-empty-state, .work-item-list-container > [data-testid="signed-in-empty-state-block"] .gl-empty-state) img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) :is(.issuable-list-container > .gl-empty-state, .work-item-list-container > [data-testid="signed-in-empty-state-block"] .gl-empty-state) :is(h1, h2) {
  max-width: 560px;
  margin-inline: auto;
  color: var(--gh-fg);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

html[data-github-theme="on"] body[data-page="dashboard:search_merge_requests"] #content-body > .gl-bg-subtle {
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-bg);
}

html[data-github-theme="on"] body[data-page="dashboard:search_merge_requests"] .filtered-search-box {
  border-color: var(--gh-border);
  border-radius: 6px;
  background: var(--gh-bg);
  color: var(--gh-fg);
}

html[data-github-theme="on"] body[data-page="dashboard:search_merge_requests"] .filtered-search-box-input-container {
  border-color: var(--gh-border);
  background: var(--gh-bg);
  color: var(--gh-fg);
}

html[data-github-theme="on"] body[data-page="dashboard:search_merge_requests"] .filtered-search-box-input-container .form-control {
  background: transparent;
  color: var(--gh-fg);
}

/* Dashboard Search still uses server-rendered rows rather than the Vue list. */
html[data-github-theme="on"] body[data-page="dashboard:search_merge_requests"] .issuable-list.mr-list {
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-bg);
}

html[data-github-theme="on"] body[data-page="dashboard:search_merge_requests"] .mr-list > .merge-request {
  min-height: 76px;
  padding: 16px;
  border-color: var(--gh-border-muted);
}

html[data-github-theme="on"] body[data-page="dashboard:search_merge_requests"] .mr-list > .merge-request:hover {
  background: var(--gh-subtle);
}

html[data-github-theme="on"] body[data-page="dashboard:search_merge_requests"] .merge-request-title-text > a {
  color: var(--gh-fg);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

html[data-github-theme="on"] body[data-page="dashboard:search_merge_requests"] .merge-request-title-text > a:hover {
  color: var(--gh-link);
  text-decoration: none;
}

html[data-github-theme="on"] body[data-page="dashboard:search_merge_requests"] #content-body > .gl-empty-state img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

html[data-github-theme="on"] body[data-page="dashboard:search_merge_requests"] #content-body > .gl-empty-state h1 {
  color: var(--gh-fg);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

/* MR title and Overview chrome; native diff/editor layout remains authoritative. */
html[data-github-theme="on"] body[data-page="projects:merge_requests:show"] .detail-page-header [data-testid="title-content"] {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

html[data-github-theme="on"] body[data-page="projects:merge_requests:show"] .merge-request-tabs {
  gap: 4px;
  border-bottom: 1px solid var(--gh-border) !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

html[data-github-theme="on"] body[data-page="projects:merge_requests:show"] .merge-request-tabs > li > a {
  padding: 12px 16px;
  border: 0;
  color: var(--gh-fg);
  font-size: 14px;
  white-space: nowrap;
}

html[data-github-theme="on"] body[data-page="projects:merge_requests:show"] .merge-request-tabs > li.active > a {
  box-shadow: inset 0 -2px 0 var(--gh-accent);
  font-weight: 600;
}

html[data-github-theme="on"] body[data-page="projects:merge_requests:show"] #notes .issuable-discussion > .detail-page-description {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-bg);
}

html[data-github-theme="on"] body[data-page="projects:merge_requests:show"] #notes .issuable-discussion [data-testid="description-content"] {
  margin-top: 0 !important;
}

html[data-github-theme="on"] body[data-page="projects:merge_requests:show"] #notes .merge-request-overview .mr-section-container {
  border-color: var(--gh-border);
  border-radius: 6px;
  box-shadow: var(--gh-shadow);
}

html[data-github-theme="on"] body[data-page="projects:merge_requests:show"] #notes .merge-request-overview .gl-heading-2 {
  font-size: 20px;
  font-weight: 600;
}

@media (max-width: 767px) {
  html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"]) .issuable-list-container > .top-area {
    padding-inline: 12px;
  }

  html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) [data-testid="issuable-search-container"] {
    padding-inline: 12px;
  }

  html[data-github-theme="on"] body[data-page="projects:work_items:index"]:has(.work-item-list-container) .planning-view:has(.work-item-list-container) [data-testid="issuable-search-container"] {
    padding-inline: 0;
  }

  html[data-github-theme="on"] body[data-page="projects:merge_requests:show"] .detail-page-header [data-testid="title-content"] {
    font-size: 24px;
    line-height: 1.35;
  }
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) .issuable-list-container > [data-testid="list-footer"] {
  margin: 0;
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) .issuable-list-container > [data-testid="list-footer"]:has(.gl-new-dropdown) {
  min-height: 56px;
  padding: 12px 16px;
  border-top: 1px solid var(--gh-border-muted);
}

html[data-github-theme="on"] body:is([data-page="projects:merge_requests:index"], [data-page="dashboard:work_items"], [data-page="projects:work_items:index"]:has(.work-item-list-container)) .issuable-list-container > [data-testid="list-footer"] > .gl-new-dropdown {
  inset-inline-end: 16px;
}

/* Work items share this full-page chrome across types; drawers keep their native layout. */
html[data-github-theme="on"] body:is([data-page="projects:work_items:index"], [data-page="projects:work_items:show"]) .work-item-detail:has(h1[data-testid="work-item-title"]):not(:has([data-testid="work-item-title-input"])) h1[data-testid="work-item-title"] {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

html[data-github-theme="on"] body:is([data-page="projects:work_items:index"], [data-page="projects:work_items:show"]) .work-item-detail:has(h1[data-testid="work-item-title"]):not(:has([data-testid="work-item-title-input"])) .gl-detail-layout-container > [data-testid="detail-layout-content"] .work-item-description:has(> [data-testid="work-item-description"]) {
  padding: 16px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-bg);
}

html[data-github-theme="on"] body:is([data-page="projects:work_items:index"], [data-page="projects:work_items:show"]) .work-item-detail:has(h1[data-testid="work-item-title"]):not(:has([data-testid="work-item-title-input"])) .gl-detail-layout-container > [data-testid="detail-layout-sidebar"] .work-item-attributes-item {
  padding-block: 16px;
  border-color: var(--gh-border-muted);
}

html[data-github-theme="on"] body:is([data-page="projects:work_items:index"], [data-page="projects:work_items:show"]) .work-item-detail:has(h1[data-testid="work-item-title"]):not(:has([data-testid="work-item-title-input"])) .gl-detail-layout-container > [data-testid="detail-layout-sidebar"] .work-item-attributes-item h3 {
  color: var(--gh-fg);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 767px) {
  html[data-github-theme="on"] body:is([data-page="projects:work_items:index"], [data-page="projects:work_items:show"]) .work-item-detail:has(h1[data-testid="work-item-title"]):not(:has([data-testid="work-item-title-input"])) h1[data-testid="work-item-title"] {
    font-size: 24px;
    line-height: 1.35;
  }
}

/* GitLab 19.5 MR dashboard: retain native groups, grid columns, and disclosure controls. */
html[data-github-theme="on"] body[data-page="dashboard:merge_requests"]:has([data-testid="merge-request-dashboard-tab"]) .panels-container {
  border-radius: 0;
  box-shadow: none;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"]:has([data-testid="merge-request-dashboard-tab"]) .container-limited {
  max-width: 1280px;
  padding-inline: clamp(16px, 2vw, 32px);
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body .gl-base-layout:has([data-testid="merge-request-dashboard-tab"]) {
  min-width: 0;
  padding-bottom: 32px;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body .gl-base-layout > header {
  margin-block: 24px 20px;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="page-heading"] {
  color: var(--gh-fg);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="page-heading-actions"] {
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  gap: 8px;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="base-layout-content"] > .gl-tabs > .gl-tabs-wrapper > [role="tablist"] {
  flex-wrap: nowrap;
  min-width: 0;
  gap: 8px;
  border-color: var(--gh-border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="base-layout-content"] > .gl-tabs > .gl-tabs-wrapper > [role="tablist"] [role="tab"] {
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--gh-fg);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="base-layout-content"] > .gl-tabs > .gl-tabs-wrapper > [role="tablist"] [role="tab"][aria-selected="true"] {
  box-shadow: inset 0 -2px 0 var(--gh-accent);
  font-weight: 600;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="base-layout-content"] > .gl-tabs > .gl-tabs-wrapper > [role="tablist"] [role="tab"]:hover {
  background: var(--gh-hover);
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body .gl-tab-counter-badge {
  min-width: 20px;
  padding: 1px 7px;
  border: 0;
  border-radius: 20px;
  background: var(--gh-hover);
  color: var(--gh-fg);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body :is([data-testid="base-layout-content"], [data-testid="merge-request-dashboard-tab"], [data-testid="merge-request-dashboard-list"], [data-testid="merge-request-dashboard-list"] > [data-testid="crud-body"]) {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] {
  padding: 0;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-bg);
  box-shadow: var(--gh-shadow);
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] > [data-testid="crud-header"] {
  padding-inline-start: 16px;
  padding-inline-end: 52px;
  border-radius: 6px;
  background: var(--gh-subtle);
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] > [data-testid="crud-header"]:has([data-testid="crud-collapse-toggle"][aria-expanded="true"]) {
  border-bottom: 1px solid var(--gh-border);
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] [data-testid="crud-title"] {
  min-width: 0;
  color: var(--gh-fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] [data-testid="crud-count"] {
  padding: 1px 7px;
  border-radius: 20px;
  background: var(--gh-hover);
  color: var(--gh-muted);
  font-size: 12px;
  line-height: 18px;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] > [data-testid="crud-body"] {
  padding: 0;
  border-radius: 0 0 6px 6px;
  background: var(--gh-bg);
}

/* Keep horizontal scrolling within the native five-column table on narrow screens. */
html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] [role="table"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] [role="row"]:has(> [role="columnheader"]) {
  padding-block: 10px;
  padding-inline: 16px;
  border-color: var(--gh-border-muted);
  background: var(--gh-subtle);
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] [role="columnheader"] {
  color: var(--gh-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] [data-testid="merge-request"][role="row"] {
  padding: 16px;
  border-bottom: 1px solid var(--gh-border-muted);
  background: var(--gh-bg);
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] [data-testid="merge-request"][role="row"]:last-child {
  border-bottom: 0;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] [data-testid="merge-request"][role="row"] > [role="cell"] {
  min-width: 0;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] [data-testid="merge-request"][role="row"] > [role="cell"] > a.gl-font-bold {
  color: var(--gh-fg);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] [data-testid="merge-request"][role="row"] > [role="cell"] > a.gl-font-bold:hover {
  color: var(--gh-link);
  text-decoration: none;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] [data-testid="merge-request"][role="row"] .gl-text-subtle {
  color: var(--gh-muted);
  font-size: 12px;
  line-height: 20px;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-count-explanation"] {
  margin-block: 24px 16px;
  padding: 10px 12px;
  border: 1px solid var(--gh-border-muted);
  border-radius: 6px;
  background: var(--gh-subtle);
  color: var(--gh-muted);
  font-size: 12px;
  font-weight: 500;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] [data-testid="crud-empty"] > p {
  margin: 0;
  padding: 24px 16px;
  color: var(--gh-muted);
  font-size: 14px;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] > [data-testid="crud-body"] > [data-testid="crud-pagination"] {
  padding: 12px 16px;
  border-color: var(--gh-border-muted);
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] > [data-testid="crud-body"] > [data-testid="crud-pagination"]:empty {
  display: none;
}

html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] :is(a, button):focus-visible,
html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="base-layout-content"] > .gl-tabs > .gl-tabs-wrapper > [role="tablist"] [role="tab"]:focus-visible {
  outline: 2px solid var(--gh-link);
  outline-offset: -2px;
}

@media (max-width: 767px) {
  html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body .gl-base-layout > header {
    margin-block: 20px 16px;
  }

  html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="page-heading-actions"] {
    width: 100%;
  }

  html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="new-resource-dropdown"] {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
  }

  html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="new-resource-dropdown"] > button {
    min-width: 0;
    max-width: 100%;
  }

  html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="new-resource-dropdown"] > button .gl-button-text {
    white-space: normal;
    text-align: start;
  }

  html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] > [data-testid="crud-header"] {
    padding-inline-start: 12px;
  }

  html[data-github-theme="on"] body[data-page="dashboard:merge_requests"] #content-body [data-testid="merge-request-dashboard-list"] [data-testid="crud-title"] {
    flex-wrap: wrap;
    gap: 4px 8px;
  }
}
