.project-general-background .background-primary-controls {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:end;
  gap:10px;
}

.project-general-background .background-editor {
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}

.project-general-background .background-primary-controls>label,
.project-general-background .background-config-grid>label {
  min-width:0;
}

.project-general-background .background-primary-controls:has([name="workspace_background_mode"] option[value="inherit"]:checked)>label:has([name="workspace_background_type"]) {
  visibility:hidden;
}

.background-editor .list-custom-select {
  margin-top:4px;
}

.background-editor .list-custom-select>summary {
  min-height:42px;
  text-transform:none;
  letter-spacing:normal;
}

.background-editor .list-custom-select>summary b,
.background-editor .list-custom-select-options>button {
  font-size:12px;
  text-transform:none;
}

.background-editor .list-custom-select-options {
  min-width:100%;
}

.project-general-background .background-pattern-controls {
  display:contents!important;
}

.project-general-background .background-pattern-controls.hidden {
  display:none!important;
}

.project-general-background .background-repeat-toggle {
  min-height:0;
  padding:0;
  display:grid;
  justify-items:start;
  align-content:end;
  gap:7px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:none;
}

.project-general-background .background-repeat-title {
  line-height:1.2;
}

.project-general-background .background-repeat-toggle input[type="checkbox"] {
  position:relative;
  width:40px;
  min-width:40px;
  height:23px;
  min-height:23px;
  margin:0;
  padding:0;
  appearance:none;
  border:1px solid color-mix(in srgb,var(--muted) 55%,var(--line));
  border-radius:999px;
  background:color-mix(in srgb,var(--muted) 28%,var(--soft));
  cursor:pointer;
  transition:.18s ease;
}

.project-general-background .background-repeat-toggle input[type="checkbox"]::after {
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:17px;
  height:17px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.28);
  transition:transform .18s ease;
}

.project-general-background .background-repeat-toggle input[type="checkbox"]:checked {
  border-color:var(--accent);
  background:var(--accent);
}

.project-general-background .background-repeat-toggle input[type="checkbox"]:checked::after {
  transform:translateX(17px);
}

.project-general-background .background-repeat-toggle input[type="checkbox"]:focus-visible {
  outline:2px solid color-mix(in srgb,var(--accent) 55%,transparent);
  outline-offset:2px;
}

.project-general-background .background-tilt-control {
  grid-column:1;
}

.project-general-background label:has([name="workspace_background_size"]) {
  grid-column:2;
}

@media(max-width:680px) {
  .project-general-background .background-primary-controls {
    grid-template-columns:minmax(0,1fr);
  }

  .project-general-background .background-tilt-control,
  .project-general-background label:has([name="workspace_background_size"]) {
    grid-column:1;
  }
}
